Unreliable handling of standby request by pressing power button

Hi,

Since moving from Kubuntu to Manjaro/KDE a few years back I experience a problem with going to standby.

I usually assign “GO TO STANDBY” to a short power button press.

In Manjaro in these cases it instead shuts down the system:

  • If I switch off the screen before pressing the power button
  • after kernel update??? not exactly sure about this.
  • sometimes the screen doesn’t go into sleep automatically any more.

wouldn’t be a problem, if it warned before shutting down.
but like this, it’s really annoying.

Since I am not sure what exactly is responsible for this, I would like to ask for your guesses.

thank you very much

JPT

Does this mean you have seen this issue for a longer time?

yes, at least for a year.

If you have kept your system up-to-date in that period - then I have no idea.

I am fairly certain that using a desktop system does not differentiate from a laptop system - and I have more than one laptop with the excact configuration - it always work.

Please check by creating a new user - logout - login as the new user - setup the power settings to use your preferred configuration - then verify - if you cannot reproduce - then it is a local configuration file gone haywire.

I have it from time to time that going in standby by pressing the powerbutton that requires the escalated password. But only every now and then.

If i leave the device untouched, it goes to standby every time without issues.

I tried:

  • create new user
  • logoff and logon as new user
  • power off monitor + press power button = standby
  • wait a few hours + press power button = standby
  • install update including kernel + press power button = standby - except it created stock (ie almost empty) pacnew files for passwd, hosts.conf and shells which I did NOT accept. Maybe because I ran the update from a different user?
  • completely log off + press power button = shut down

so yeah, it’s probably something with local KDE config. which directory should I move/delete?

thanks

The creation of these files is not a matter of consent -
they are created unconditionally
because and whenever there are differences between the current version and the “new”, stock one.

They should be - carefully - merged.
Or: ignored … if you know what you are doing when choosing to ignore them


That seems to be different than what you did before.
I read this as:
before you used the power button while still logged in
now: while logged out (initiated from the login screen)

Where did you set what you call “GO TO STANDBY"? What did you set here in this setting?

I have an Tuxedo Pulse Gen2 that I installed in 2022 with KDE Plasma and just recently managed to attend my pacnew files and from recent update I should also look into it.

In the recent weeks or maybe since the bigger update from April with the new Grub installation I started to notice weird behavior like when my AC is plugged in my sleep button works without a problem and closing the display will trigger sleep as well without an problem but on Battery for some unknown reason it doesn’t work.

Do you have the same behavior on AC and on Battery?

Yes, exactly. I set “When power button pressed = Sleep”

My PC does not have a battery.

Bah, happened again.

I just checked some login settings and disabled auto login and enabled lock after suspend. Let’s see if this helps.

So, this issue has existed ever since the switch from Plasma 5 to Plasma 6, possibly even before then?

Perhaps some system information might help out? I’ve looked through all of your previous posts & topics, but I cannot find any inxi output anywhere. At the moment everyone here who is trying to help is just making educated guesses.

We don’t even know if you are running Plasma on X11 or Wayland. The type of Plasma session can make a huge difference when it comes to power management features such as sleep etc.

Could you please post the output of inxi -zv8?

2 Likes