swhkd icon indicating copy to clipboard operation
swhkd copied to clipboard

`/dev/input/mouse1`: Inappropriate ioctl for device

Open foxjaw opened this issue 1 year ago • 10 comments

Version Information:

  • Distribution Information ( run uname -a )

Linux arch 6.6.7-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Thu, 14 Dec 2023 03:45:20 +0000 x86_64 GNU/Linux

  • swhkd version ( swhkd -V )

swhkd 1.3.0-dev

Describe the bug:

$[~]$ pkexec swhkd -d
[2023-12-20T11:19:27Z TRACE swhkd] Logger initialized.
[2023-12-20T11:19:27Z TRACE swhkd] Invoking UID: 1000
[2023-12-20T11:19:27Z TRACE swhkd] Setting process umask.
[2023-12-20T11:19:27Z ERROR swhkd] XDG_RUNTIME_DIR has not been set.
[2023-12-20T11:19:27Z TRACE swhkd] Reading /run/swhkd/swhkd_1000.pid file and checking for running instances.
[2023-12-20T11:19:27Z DEBUG swhkd] Previous PID: 28297
[2023-12-20T11:19:27Z WARN  swhkd] Running swhkd as root!
[2023-12-20T11:19:27Z DEBUG swhkd::perms] Setting initgroups...
[2023-12-20T11:19:27Z DEBUG swhkd::perms] Setting EGID...
[2023-12-20T11:19:27Z DEBUG swhkd::perms] Setting EUID...
[2023-12-20T11:19:27Z ERROR swhkd] XDG_CONFIG_HOME has not been set.
[2023-12-20T11:19:27Z DEBUG swhkd] Using config file path: "/etc/swhkd/swhkdrc"
[2023-12-20T11:19:27Z DEBUG swhkd::perms] Setting EGID...
[2023-12-20T11:19:27Z DEBUG swhkd::perms] Setting EUID...
[2023-12-20T11:19:27Z DEBUG swhkd::perms] Setting initgroups...
[2023-12-20T11:19:27Z TRACE swhkd] Attempting to find all keyboard file descriptors.
[2023-12-20T11:19:27Z TRACE swhkd] Other: Sleep Button
[2023-12-20T11:19:27Z TRACE swhkd] Other: Power Button
[2023-12-20T11:19:27Z TRACE swhkd] Other: Power Button
[2023-12-20T11:19:27Z TRACE swhkd] Other: Logitech M350
[2023-12-20T11:19:27Z DEBUG swhkd] Keyboard: Logitech K230
[2023-12-20T11:19:27Z TRACE swhkd] Other: PC Speaker
[2023-12-20T11:19:27Z TRACE swhkd] Other: Eee PC WMI hotkeys
[2023-12-20T11:19:27Z TRACE swhkd] Other: HDA NVidia HDMI/DP,pcm=3
[2023-12-20T11:19:27Z TRACE swhkd] Other: HDA NVidia HDMI/DP,pcm=7
[2023-12-20T11:19:27Z TRACE swhkd] Other: HDA NVidia HDMI/DP,pcm=8
[2023-12-20T11:19:27Z TRACE swhkd] Other: HDA NVidia HDMI/DP,pcm=9
[2023-12-20T11:19:27Z TRACE swhkd] Other: HDA Intel PCH Front Mic
[2023-12-20T11:19:27Z TRACE swhkd] Other: HDA Intel PCH Rear Mic
[2023-12-20T11:19:27Z TRACE swhkd] Other: HDA Intel PCH Line
[2023-12-20T11:19:27Z TRACE swhkd] Other: HDA Intel PCH Line Out
[2023-12-20T11:19:28Z TRACE swhkd] Other: HDA Intel PCH Front Headphone
[2023-12-20T11:19:28Z DEBUG swhkd] 1 Keyboard device(s) detected.
[2023-12-20T11:19:28Z ERROR swhkd] XDG_RUNTIME_DIR has not been set.
[2023-12-20T11:19:28Z ERROR swhkd] Could not open evdev device at /dev/input/mouse1: Inappropriate ioctl for device (os error 25)
...

Mouse works fine, not sure what this issue is.

foxjaw avatar Dec 20 '23 11:12 foxjaw

Is it related to #137. Caz I run Logitech K230+M350 with the same unifying receiver.

foxjaw avatar Dec 20 '23 17:12 foxjaw

I do not have a unifying receiver so I don't think I can test this. If anyone with this hardware can send a patch, that would be amazing.

Shinyzenith avatar Dec 29 '23 08:12 Shinyzenith

I'm willing to --ignore-device /dev/input/mouse1 would that work ?

foxjaw avatar Dec 29 '23 12:12 foxjaw

I'm not too sure since I don't have that kind of hardware. Only a trial and error can suffice.

Shinyzenith avatar Dec 29 '23 15:12 Shinyzenith

+1 for this.

I'm currently using an ELECOM HUGE Trackball Mouse and it gets swallowed by swhkd, making it unusable atm.

I'd be willing to test out any available branch and report back.

lukelex avatar Feb 13 '24 09:02 lukelex

Being author of this issue I couldn't help you caz right now I've stopped using swhkd, because of the reasons for stubborn pkexec daemon. Now I only rely on my compositor (sway) for inputs. Couldn't justify why I should use swhkd.

foxjaw avatar Feb 13 '24 09:02 foxjaw

+1 for this.

I'm currently using an ELECOM HUGE Trackball Mouse and it gets swallowed by swhkd, making it unusable atm.

I'd be willing to test out any available branch and report back.

Hi we have a flag to ignore particular devices I believe. Can you try that?

Shinyzenith avatar Feb 14 '24 08:02 Shinyzenith

Being author of this issue I couldn't help you caz right now I've stopped using swhkd, because of the reasons for stubborn pkexec daemon. Now I only rely on my compositor (sway) for inputs. Couldn't justify why I should use swhkd.

You're absolutely correct and I understand your pain point, it's part of our gsoc program.

Shinyzenith avatar Feb 14 '24 08:02 Shinyzenith

Hi we have a flag to ignore particular devices I believe. Can you try that?

@Shinyzenith Would you point me in the direction of the docs that describe how to use the flag? The --help section doesn't include that.

lukelex avatar Feb 14 '24 15:02 lukelex

I believe you can just pass the name of the device. The names are emitted after: "attempting to find all keyboard file descriptors" in the logs.

Shinyzenith avatar Feb 14 '24 19:02 Shinyzenith