swhkd: swhkd freezes keyboard upon execution

Version Information:

  • Distribution Information ( run uname -a )
  • Linux Arch 6.12.10-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:57 +0000 x86_64 GNU/Linux
  • swhkd 1.2.1

Describe the bug: When executing swhks & pkexec swhkd, the keyboard freezes. I am unable to use any system keybinds, type anything, even use of REISUB failed. The only way to terminate the process is by performing a hard reboot (I cannot close the terminal using only mouse).

Expected behavior:

  • Self-explanatory

Actual behavior:

  • Inability to use keyboard.

To Reproduce:

  • I didn’t do anything special, just installed it from the AUR, copied the config file from sxhkd, and attempted to run it.

Additional information:

  • Might have something to do with keyd remapping daemon.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

I have a feeling it’s due to the ioctl errors. We really need to hunt it down @newtoallofthis123

Okay it definitely does look like a keyd error which means it has something to do with the uinput module

Will look into it

Here are the logs:

[2025-01-26T12:51:08Z TRACE swhkd] Logger initialized.
[2025-01-26T12:51:08Z TRACE swhkd] Invoking UID: 1000
[2025-01-26T12:51:08Z TRACE swhkd] Setting process umask.
[2025-01-26T12:51:08Z ERROR swhkd] XDG_RUNTIME_DIR has not been set.
[2025-01-26T12:51:08Z DEBUG swhkd] Created runtime directory.
[2025-01-26T12:51:08Z DEBUG swhkd] Set runtime directory to readonly.
[2025-01-26T12:51:08Z WARN  swhkd] Running swhkd as root!
[2025-01-26T12:51:08Z DEBUG swhkd::perms] Setting initgroups...
[2025-01-26T12:51:08Z DEBUG swhkd::perms] Setting EGID...
[2025-01-26T12:51:08Z DEBUG swhkd::perms] Setting EUID...
[2025-01-26T12:51:08Z ERROR swhkd] XDG_CONFIG_HOME has not been set.
[2025-01-26T12:51:08Z DEBUG swhkd] Using config file path: "/etc/swhkd/swhkdrc"
[2025-01-26T12:51:08Z DEBUG swhkd::perms] Setting EGID...
[2025-01-26T12:51:08Z DEBUG swhkd::perms] Setting EUID...
[2025-01-26T12:51:08Z DEBUG swhkd::perms] Setting initgroups...
[2025-01-26T12:51:08Z TRACE swhkd] Attempting to find all keyboard file descriptors.
[2025-01-26T12:51:08Z TRACE swhkd] Other: Sleep Button
[2025-01-26T12:51:08Z TRACE swhkd] Other: Power Button
[2025-01-26T12:51:08Z TRACE swhkd] Other: Power Button
[2025-01-26T12:51:08Z DEBUG swhkd] Keyboard: LIZHI 750-B IC USB Keyboard
[2025-01-26T12:51:08Z DEBUG swhkd] Keyboard: LIZHI 750-B IC USB Keyboard Consumer Control
[2025-01-26T12:51:08Z TRACE swhkd] Other: LIZHI 750-B IC USB Keyboard System Control
[2025-01-26T12:51:08Z DEBUG swhkd] Keyboard: LIZHI 750-B IC USB Keyboard
[2025-01-26T12:51:08Z TRACE swhkd] Other: Logitech G203 Prodigy Gaming Mouse
[2025-01-26T12:51:08Z DEBUG swhkd] Keyboard: Logitech G203 Prodigy Gaming Mouse Keyboard
[2025-01-26T12:51:08Z TRACE swhkd] Other: PC Speaker
[2025-01-26T12:51:08Z TRACE swhkd] Other: Eee PC WMI hotkeys
[2025-01-26T12:51:08Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=3
[2025-01-26T12:51:08Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=7
[2025-01-26T12:51:08Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=8
[2025-01-26T12:51:08Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=9
[2025-01-26T12:51:08Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=10
[2025-01-26T12:51:08Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=11
[2025-01-26T12:51:09Z TRACE swhkd] Other: HDA Intel PCH Rear Mic
[2025-01-26T12:51:09Z TRACE swhkd] Other: HDA Intel PCH Front Mic
[2025-01-26T12:51:09Z TRACE swhkd] Other: HDA Intel PCH Line
[2025-01-26T12:51:09Z TRACE swhkd] Other: HDA Intel PCH Line Out
[2025-01-26T12:51:09Z TRACE swhkd] Other: HDA Intel PCH Front Headphone
[2025-01-26T12:51:09Z DEBUG swhkd] Keyboard: keyd virtual keyboard
[2025-01-26T12:51:09Z TRACE swhkd] Other: keyd virtual pointer
[2025-01-26T12:51:09Z DEBUG swhkd] 5 Keyboard device(s) detected.
[2025-01-26T12:51:09Z ERROR swhkd] XDG_RUNTIME_DIR has not been set.
[2025-01-26T12:51:41Z TRACE swhkd] Other: Sleep Button
[2025-01-26T12:51:41Z TRACE swhkd] Other: Power Button
[2025-01-26T12:51:41Z TRACE swhkd] Other: Power Button
[2025-01-26T12:51:41Z DEBUG swhkd] Keyboard: LIZHI 750-B IC USB Keyboard
[2025-01-26T12:51:41Z DEBUG swhkd] Keyboard: LIZHI 750-B IC USB Keyboard Consumer Control
[2025-01-26T12:51:41Z TRACE swhkd] Other: LIZHI 750-B IC USB Keyboard System Control
[2025-01-26T12:51:41Z DEBUG swhkd] Keyboard: LIZHI 750-B IC USB Keyboard
[2025-01-26T12:51:41Z TRACE swhkd] Other: Logitech G203 Prodigy Gaming Mouse
[2025-01-26T12:51:41Z DEBUG swhkd] Keyboard: Logitech G203 Prodigy Gaming Mouse Keyboard
[2025-01-26T12:51:41Z TRACE swhkd] Other: PC Speaker
[2025-01-26T12:51:41Z TRACE swhkd] Other: Eee PC WMI hotkeys
[2025-01-26T12:51:41Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=3
[2025-01-26T12:51:41Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=7
[2025-01-26T12:51:41Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=8
[2025-01-26T12:51:41Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=9
[2025-01-26T12:51:41Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=10
[2025-01-26T12:51:42Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=11
[2025-01-26T12:51:42Z TRACE swhkd] Other: HDA Intel PCH Rear Mic
[2025-01-26T12:51:42Z TRACE swhkd] Other: HDA Intel PCH Front Mic
[2025-01-26T12:51:42Z TRACE swhkd] Other: HDA Intel PCH Line
[2025-01-26T12:51:42Z TRACE swhkd] Other: HDA Intel PCH Line Out
[2025-01-26T12:51:42Z TRACE swhkd] Other: HDA Intel PCH Front Headphone
[2025-01-26T12:51:42Z DEBUG swhkd] Keyboard: keyd virtual keyboard
[2025-01-26T12:51:42Z TRACE swhkd] Other: keyd virtual pointer
[2025-01-26T12:51:42Z WARN  swhkd] Received signal: 15
[2025-01-26T12:51:42Z WARN  swhkd] Exiting...

@newtoallofthis123 can you kindly look into this issue?

On Sun, Jan 26, 2025 at 8:52 AM Letus252 @.***> wrote:

Assigned #293 https://github.com/waycrate/swhkd/issues/293 to @Shinyzenith https://github.com/Shinyzenith.

— Reply to this email directly, view it on GitHub https://github.com/waycrate/swhkd/issues/293#event-16068777100, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOP54YVTIVVO6AAFD7MODTD2MRIFTAVCNFSM6AAAAABV37TC2KVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJWGA3DQNZXG4YTAMA . You are receiving this because you were assigned.Message ID: @.***>