You are not logged in.

#1 2024-10-01 14:35:43

eUser4
Member
Registered: 2024-03-10
Posts: 4

Sleep kbd button multi press causing system not to wake up

I have a PS/2 keyboard with sleep button.
If I accidentally make a multi-press of a button this cause a situation where system does go [deep] sleep but won't wake up. I have to use power button to start  computer.
If I am careful to not cause multi press then system go to sleep as well, but can(correctly) wake up by pressing any kbd button(as I have it set so and was working since ever, on Windows too).
This is 100% reproducible. With single(fast) press I can wake up computer multiple times in row, the moment I dare to do a mistake and cause multi press to register, computer won't wake up on any kbd button press - I have to power on on the case.

I use LXQT + SDDM but it also happened without display manager installed as well.

I have seen a lot of issues on the net about not able to power on from standby and wonder if it could be this. Of course I could use menu, but kbd button is more convenient.

Any idea?

EDIT: Also, I cannot reproduce this under XFCE + LXDM at all, that I have on another disk.

Last edited by eUser4 (2024-10-01 14:43:25)

Offline

#2 2024-10-03 10:01:05

eUser4
Member
Registered: 2024-03-10
Posts: 4

Re: Sleep kbd button multi press causing system not to wake up

I maybe have found the reason by searching online, but I am on the trip and cannot test it before late October.

I found from this: https://man.archlinux.org/man/logind.conf.5 ,that HandleSuspendKeyLongPress= defaults to "hibernate".
As I have a fairly short kbd repeat delay(300ms), there is a possibility that I am causing hibernate on top of suspend, or hibernation alone. Maybe systemd is not locking after initialization correctly, which would still mean bug.
After reading wiki about XFCE I found this one is handling suspend itself, whereas in LXQT this is likely done via systemd.

Offline

Board footer

Powered by FluxBB