waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
666 stars 47 forks source link

Keyboard stops working after running `pkexec swhkd` #227

Open saurabhsharan opened 7 months ago

saurabhsharan commented 7 months ago

Version Information:

Describe the bug: I am following the instructions to install and run swhkd. After I run pkexec swhkd, my keyboard becomes unresponsive and I have to reboot my machine to restore the keyboard.

Expected behavior: Keyboard should continue working after running pkexec swhkd.

Actual behavior: Keyboard stops working after running pkexec swhkd.

To Reproduce: Following instructions from README, run swhks & followed by pkexec swhkd.

Additional information: Anything else you'd like us to know ?

In case it's useful information: I installed swhkd using yay -S swhkd-git.

Shinyzenith commented 7 months ago

Can we get some logs?

Shinyzenith commented 7 months ago

I presume the kernel grab failed on your machine and the syscall logs would help, try strace and the swhkd logs too

drkknigt commented 7 months ago

I am facing the same issue .

Shinyzenith commented 7 months ago

The logs seem fine, this slightly worries me ( did upstream linux break userspace? ) I have not updated any deps since last release I believe. If it's not too much of a hassle, could you guys try the latest LTS kernel once?

drkknigt commented 7 months ago

ok i found the culprit . It looks like keyd daemon is somehow interfering with swhkd. I disabled the daemon via systemd and now everything is working fine. is keyd not compatible with swhkd ?

Shinyzenith commented 7 months ago

ok i found the culprit . It looks like keyd daemon is somehow interfering with swhkd. I disabled the daemon via systemd and now everything is working fine. is keyd not compatible with swhkd ?

This is interesting, we have had systemd users who also use swhkd but this situation never arrived.

Does this fix work for you? @saurabhsharan

I wonder if this is a regression of systemd or the kernel itself. Any runit users around who can test this hypothesis?