FS#71443 - suspend keypress send twice
Attached to Project:
Arch Linux
Opened by Karl Meier (lolbaum) - Sunday, 04 July 2021, 15:48 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 10 July 2021, 07:11 GMT
Opened by Karl Meier (lolbaum) - Sunday, 04 July 2021, 15:48 GMT
Last edited by Andreas Radke (AndyRTR) - Saturday, 10 July 2021, 07:11 GMT
|
Details
I made a hotkey for `systemctl suspend` or `systemctl
hibernate` in dwm. However after I power my PC back on
again, it suspend a second time. This is not an issue of the
systemctl command, the same problem with `echo mem >
/sys/power/state`. It is also not a dwm problem, same issue
with sxhkd on keypress event. However if sxhkd executes the
command on key release, it works fine. On Gentoo I didn't
have this problem. I used an elogind command because I was
using openrc as init system.
I think a keypress event is sent after suspend/hibernate for all the keys pressed before suspend, so the hotkey executes twice. |
This task depends upon
Comment by Andreas Radke (AndyRTR) -
Sunday, 04 July 2021, 18:08 GMT
Please try a different kernel branch (-lts) or some older systemd.
Maybe also some intel/AMD firmware. You need to find out what
package causes your issue. Check and provide your log files. Right
now this is a generic issue. Please use IRC/forum for generic
help.