My new laptop has its power led on the side, so it’s not visible when sitting in front of it.
When I sit down in front of it, after being away for some time, I see no lights on the laptop and I’m thinking it has hibernated. Hence I press the power button. There has been several occasions now where it wasn’t hibernated, it had just turned off the display. The result is that when I think I’m telling the pc to wake up, I’m actually telling it to shutdown!
Is there any way to change the reaction to a press to the power button while the pc is showing the lockscreen? Any change would be to better: Ignore that the button was pressed, suspend to ram, suspend to disk, show a dialog asking if I’m sure I want to shutdown… Anything is better than just performing the shutdown!
In power manager I can change the behavior of the power button. But this seems to not apply while the lockscreen is shown.
and post some more information so we can see what’s really going on. Now we know the symptom of the disease, but we need some more probing to know where the origin lies…
An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information… (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment you’re using, which CPU/GPU you have, … More specifically: redefining the power button depends on your DE.
The solution seems to be: Do the powersettings as prefered in the gui while logged in. Then copy the config to etc as root
cp /home/USERNAME/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/