Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/dev/input/mouse1: Inappropriate ioctl for device #230

Open
foxjaw opened this issue Dec 20, 2023 · 10 comments
Open

/dev/input/mouse1: Inappropriate ioctl for device #230

foxjaw opened this issue Dec 20, 2023 · 10 comments
Assignees

Comments

@foxjaw
Copy link

foxjaw commented Dec 20, 2023

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
Copy link
Author

foxjaw commented Dec 20, 2023

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

@foxjaw foxjaw changed the title /dev/input/mouse1: Inappropriate ioctl for device /dev/input/mouse1: Inappropriate ioctl for device Dec 20, 2023
@Shinyzenith
Copy link
Member

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.

@foxjaw
Copy link
Author

foxjaw commented Dec 29, 2023

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

@Shinyzenith
Copy link
Member

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

@lukelex
Copy link

lukelex commented Feb 13, 2024

+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.

@foxjaw
Copy link
Author

foxjaw commented Feb 13, 2024

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.

@Shinyzenith
Copy link
Member

+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
Copy link
Member

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.

@lukelex
Copy link

lukelex commented Feb 14, 2024

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.

@Shinyzenith
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants