swhkd
swhkd copied to clipboard
Mouse cursor doesn't work
Version Information:
- Linux yarikus-pc 5.18.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 09 Jun 2022 16:14:10 +0000 x86_64 GNU/Linux
- swhkd 1.2.0
Describe the bug: A mouse cursor doesn't work after start daemon.
Expected behavior: I can use my mouse cursor as before.
Actual behavior: A mouse cursor doesn't response.
To Reproduce:
swhks & pkexec swhkd
Additional information:
[yarikus@yarikus-pc ~]$ swhks & pkexec swhkd
[2] 9913
[2022-06-14T10:09:47Z TRACE swhks] Setting process umask.
[2022-06-14T10:09:47Z INFO swhks] XDG_RUNTIME_DIR Variable is present, using it's value as default file path.
[2022-06-14T10:09:47Z TRACE swhks] Reading /run/user/1000/swhks.pid file and checking for running instances.
[2022-06-14T10:09:47Z DEBUG swhks] Previous PID: 9025
[2022-06-14T10:09:47Z ERROR swhkd] XDG_RUNTIME_DIR has not been set.
[2022-06-14T10:09:48Z WARN swhkd] Running swhkd as root!
[2022-06-14T10:09:48Z ERROR swhkd] XDG_CONFIG_HOME has not been set.
[2022-06-14T10:09:48Z ERROR swhks] Server is already running!
[2022-06-14T10:09:49Z ERROR swhkd] XDG_RUNTIME_DIR has not been set.
Please run swhks && pkexec swhkd -d and post the log message concerning device detection here
Hi, I think I can get this fixed by either re-emitting cursor events ( this enables possible TouchPad gesture configuration too ) or by beefing up our keyboard detection.
Please run
swhks && pkexec swhkd -dand post the log message concerning device detection here
You're welcome.
Logitech M350 is actually my mouse, not keyboard.
[2022-06-15T13:02:59Z TRACE swhkd] Invoking UID: 1000
[2022-06-15T13:02:59Z TRACE swhkd] Setting process umask.
[2022-06-15T13:02:59Z ERROR swhkd] XDG_RUNTIME_DIR has not been set.
[2022-06-15T13:02:59Z TRACE swhkd] Reading /run/swhkd/swhkd_1000.pid file and checking for running instances.
[2022-06-15T13:02:59Z DEBUG swhkd] Previous PID: 15338
[2022-06-15T13:03:00Z WARN swhkd] Running swhkd as root!
[2022-06-15T13:03:00Z DEBUG swhkd::perms] Setting initgroups...
[2022-06-15T13:03:00Z DEBUG swhkd::perms] Setting EGID...
[2022-06-15T13:03:00Z DEBUG swhkd::perms] Setting EUID...
[2022-06-15T13:03:00Z ERROR swhkd] XDG_CONFIG_HOME has not been set.
[2022-06-15T13:03:00Z DEBUG swhkd] Using config file path: "/etc/swhkd/swhkdrc"
[2022-06-15T13:03:00Z DEBUG swhkd] hotkey: Hotkey {
keybinding: KeyBinding {
keysym: KEY_SCROLLLOCK,
modifiers: [],
send: false,
on_release: false,
},
command: "firefox",
}
[2022-06-15T13:03:00Z DEBUG swhkd::perms] Setting EGID...
[2022-06-15T13:03:00Z DEBUG swhkd::perms] Setting EUID...
[2022-06-15T13:03:00Z DEBUG swhkd::perms] Setting initgroups...
[2022-06-15T13:03:00Z TRACE swhkd] Attempting to find all keyboard file descriptors.
[2022-06-15T13:03:00Z DEBUG swhkd] Keyboard: Logitech M350
[2022-06-15T13:03:00Z TRACE swhkd] Other: MC,LTD Mic Device
[2022-06-15T13:03:00Z DEBUG swhkd] Keyboard: MC,LTD Mic Device Keyboard
[2022-06-15T13:03:00Z TRACE swhkd] Other: SONiX USB DEVICE
[2022-06-15T13:03:00Z TRACE swhkd] Other: SONiX USB DEVICE Mouse
[2022-06-15T13:03:00Z DEBUG swhkd] Keyboard: SONiX USB DEVICE Keyboard
[2022-06-15T13:03:00Z TRACE swhkd] Other: SONiX USB DEVICE System Control
[2022-06-15T13:03:00Z DEBUG swhkd] Keyboard: SONiX USB DEVICE Consumer Control
[2022-06-15T13:03:00Z DEBUG swhkd] Keyboard: SONiX USB DEVICE
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=17
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=16
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=15
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=14
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=13
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=12
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=11
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=10
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=9
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=8
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=7
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=3
[2022-06-15T13:03:00Z DEBUG swhkd] Keyboard: persist-keyboard0
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=11
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=10
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=9
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=8
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=7
[2022-06-15T13:03:00Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=3
[2022-06-15T13:03:00Z TRACE swhkd] Other: Video Bus
[2022-06-15T13:03:00Z TRACE swhkd] Other: PC Speaker
[2022-06-15T13:03:00Z TRACE swhkd] Other: Power Button
[2022-06-15T13:03:00Z TRACE swhkd] Other: Sleep Button
[2022-06-15T13:03:00Z DEBUG swhkd] 6 Keyboard device(s) detected.
[2022-06-15T13:03:00Z ERROR swhkd] XDG_RUNTIME_DIR has not been set.
[2022-06-15T13:03:05Z DEBUG swhkd] state_modifiers: {}
[2022-06-15T13:03:05Z DEBUG swhkd] state_keysyms: {
BTN_LEFT,
}
[2022-06-15T13:03:05Z DEBUG swhkd] hotkey: [
Hotkey {
keybinding: KeyBinding {
keysym: KEY_SCROLLLOCK,
modifiers: [],
send: false,
on_release: false,
},
command: "firefox",
},
]
[2022-06-15T13:03:05Z DEBUG swhkd] state_modifiers: {}
[2022-06-15T13:03:05Z DEBUG swhkd] state_keysyms: {}
[2022-06-15T13:03:05Z DEBUG swhkd] hotkey: [
Hotkey {
keybinding: KeyBinding {
keysym: KEY_SCROLLLOCK,
modifiers: [],
send: false,
on_release: false,
},
command: "firefox",
},
]
[2022-06-15T13:03:07Z DEBUG swhkd] Keyboard: Logitech M350
[2022-06-15T13:03:07Z TRACE swhkd] Other: MC,LTD Mic Device
[2022-06-15T13:03:07Z DEBUG swhkd] Keyboard: MC,LTD Mic Device Keyboard
[2022-06-15T13:03:07Z TRACE swhkd] Other: SONiX USB DEVICE
[2022-06-15T13:03:07Z TRACE swhkd] Other: SONiX USB DEVICE Mouse
[2022-06-15T13:03:07Z DEBUG swhkd] Keyboard: SONiX USB DEVICE Keyboard
[2022-06-15T13:03:07Z TRACE swhkd] Other: SONiX USB DEVICE System Control
[2022-06-15T13:03:07Z DEBUG swhkd] Keyboard: SONiX USB DEVICE Consumer Control
[2022-06-15T13:03:07Z DEBUG swhkd] Keyboard: SONiX USB DEVICE
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=17
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=16
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=15
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=14
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=13
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=12
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=11
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=10
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=9
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=8
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=7
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA Intel PCH HDMI/DP,pcm=3
[2022-06-15T13:03:07Z DEBUG swhkd] Keyboard: persist-keyboard0
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=11
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=10
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=9
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=8
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=7
[2022-06-15T13:03:07Z TRACE swhkd] Other: HDA ATI HDMI HDMI/DP,pcm=3
[2022-06-15T13:03:08Z TRACE swhkd] Other: Video Bus
[2022-06-15T13:03:08Z TRACE swhkd] Other: PC Speaker
[2022-06-15T13:03:08Z TRACE swhkd] Other: Power Button
[2022-06-15T13:03:08Z TRACE swhkd] Other: Sleep Button
[2022-06-15T13:03:08Z WARN swhkd] Received SIGINT signal, exiting...
Hi you can try the --device argument introduced in https://github.com/waycrate/swhkd/pull/135 to specify which devices to use
this way your mouse is excluded from the grab!