Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

LXQt/sddm "leave" buttons questions

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
scott092707
Posts: 15
Joined: 2019-04-19 00:07

LXQt/sddm "leave" buttons questions

#1 Post by scott092707 »

Hi.

I am using Debian testing LXQt..

I have a few questions about SDDM, that concern the 4 buttons that appear to
correspond to the icons that are shown when lxqt-leave is invoked:

1. I could tell the red power button was probably shutdown, and then the yellow symbol next to it therefore
was probably reboot.
The other two appeared to be greyed out, and probably were inactive.
Wrong.
I could not tell what they were. One of them looked like the symbol one clicks on to change settings for an app.
I could not see the other one well enough. Having seen what the symbols in the lxqt-leave dialog look like,
it seems clear that the settings-style icon denotes hibernate, and the other (which looks like the greek letter theta)
denotes suspend.
I suggest that these buttons should have tooltips. (bug report - wishlist, I guess....)
2. I clicked on the settings (Hibernate) button and the screen went black, but the computer remained on.
Nothing I did brought back the computer to usability. This included ctrl-alt-f1 (or -f2, or ...)
I guess this must be a bug, as hibernate is supposed to save everything (to swap) and shut down.
3. I clicked on suspend and thought the computer shut down, but found the power indicator light was not off,
but also not on - it was flashing. I hit the shift key and was back in business. I have tested this from sddm and
invoking lxqt-leave and selecting suspend.
When suspending, are the computer fans supposed to turn off? I would be worried about overheating...
I have a graphics card, and I believe that its fan also is off.

I have tried to figure out where sddm invokes the commands to shutdown/reboot/suspend/hibernate, but
have not figured it out yet.
lxqt-leave just calls lxqt-leave --shutdown or --reboot or --suspend or --hibernate, so I don't know what is
actually being invoked.
/usr/share/doc/sddm/README.Debian
states: "There is an example configuration file in:
/usr/share/doc/sddm/sddm.conf"
but there isn't,,, (another bug?)
man sddm.conf says:
"/usr/lib/sddm/sddm.conf.d
System configuration directory
/etc/sddm.conf.d
Local configuration directory
/etc/sddm.conf
Local configuration file for compatibility"
but none of these exist.
It lists a config option for HaltCommand= and RebootCommand=
but nothing for suspend/hibernate.
Their defaults are /bin/systemctl poweroff (or ...reboot)
but I don't know what for suspend/hibernate...
Googling for systemctl lead me to the command:
systemctl list-unit-files
halt.service and reboot.service are "masked"
halt.target, poweroff.target, reboot.target are "disabled"
hibernate.target, shutdown.target, suspend.target, suspend-then-hibernate.target are all "static"
Following the breadcrumbs, it looks as if eventually
/lib/systemd/systemd-sleep suspend or
/lib/systemd/systemd-sleep hibernate
are called.
The manpage for /lib/systemd/systemd-sleep seems to be corrupted (another bug!), but showed enough to induce me
to invoke it with --help, which lead to looking at the manpage for systemd-suspend.service
This looks interesting, but I don't know if I will ultimately be able to find any more useful info
(and it is approaching midnight...), so I may just (tomorrow!) file some bug reports and see
what if anything happens...

If anyone wants to respond, I would be grateful.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: LXQt/sddm "leave" buttons questions

#2 Post by Head_on_a_Stick »

scott092707 wrote:I clicked on the settings (Hibernate) button and the screen went black, but the computer remained on.
Nothing I did brought back the computer to usability. This included ctrl-alt-f1 (or -f2, or ...)
I guess this must be a bug, as hibernate is supposed to save everything (to swap) and shut down.
Does this hibernate the machine correctly:

Code: Select all

systemctl hibernate
scott092707 wrote:I clicked on suspend and thought the computer shut down, but found the power indicator light was not off,
but also not on - it was flashing. I hit the shift key and was back in business. I have tested this from sddm and
invoking lxqt-leave and selecting suspend.
Does this suspend the machine correctly:

Code: Select all

systemctl suspend
scott092707 wrote:When suspending, are the computer fans supposed to turn off?
Yes.
scott092707 wrote:The manpage for /lib/systemd/systemd-sleep seems to be corrupted
Not in my buster system, the man systemd-sleep command brings up systemd-suspend.service(8).

Which command are you running and what exactly do you mean by "corrupted"?

How exactly did you install Debian buster and is it fully updated?

Do you have these problems if you use GDM instead of SDDM?
deadbang

scott092707
Posts: 15
Joined: 2019-04-19 00:07

Re: LXQt/sddm "leave" buttons questions

#3 Post by scott092707 »

>the man systemd-sleep command brings up systemd-suspend.service(8).
It does for me as well.
For some reason I did
man /lib/systemd/systemd-sleep
instead, and got much gibberish (as if I tried to textedit a binary) AND some readable manpage stuff,
from which I noted that there was a --help option, that I then used to find later info...

scott092707
Posts: 15
Joined: 2019-04-19 00:07

Re: LXQt/sddm "leave" buttons questions

#4 Post by scott092707 »

systemctl suspend
has the same effect as clicking on the suspend button from SDDM or lxqt-leave,
so I suspect that suspend works properly.

Should I be concerned about overheating when the fans turn off?

I will try "systemctl hibernate" after making sure all my work is saved.

I expect it will do what it did before: computer stays on, display disappears,
unknown if OS is operating or not, as I am unable to bring it back, and have
to do a hard shutdown.
(If that is the case, I will have to respond tomorrow or later, as it is too late
tonight to do anything more.)

>How exactly did you install Debian buster and is it fully updated?
20190311_debian-live-testing-amd64-lxqt+nonfree.iso I believe this was "alpha 5"
I have apt-get update / apt-get upgrade a couple of times between then and now.

>Do you have these problems if you use GDM instead of SDDM?
I do not have GDM - SDDM came with the .iso, and I am already used to using it
from Lubuntu Next and Lubuntu since 18.04 (just for testing purposes)

From what you say, suspend probably is not a problem, and I have seldom gotten
hibernate to work or continue to work, so probably does not work here.
status quo, therefore...

Post Reply