Permission Denied
steven12138 opened this issue · comments
╰─ libinput-gestures -d -l ─╯
libinput-gestures: session KDE+x11 on Linux-6.6.1-arch1-1-x86_64-with-glibc2.38, python 3.11.5, libinput 1.24.0
Hash: 1e084483b086645ffe79e86f3b59961d
Gestures configured in ~/.config/libinput-gestures.conf:
Failed to open /dev/input/event2 (Permission denied)
Failed to open /dev/input/event15 (Permission denied)
Failed to open /dev/input/event14 (Permission denied)
Failed to open /dev/input/event1 (Permission denied)
Failed to open /dev/input/event0 (Permission denied)
Failed to open /dev/input/event6 (Permission denied)
Failed to open /dev/input/event7 (Permission denied)
Failed to open /dev/input/event8 (Permission denied)
Failed to open /dev/input/event9 (Permission denied)
Failed to open /dev/input/event10 (Permission denied)
Failed to open /dev/input/event11 (Permission denied)
Failed to open /dev/input/event12 (Permission denied)
Failed to open /dev/input/event13 (Permission denied)
Failed to open /dev/input/event5 (Permission denied)
Failed to open /dev/input/event16 (Permission denied)
Failed to open /dev/input/event17 (Permission denied)
Failed to open /dev/input/event18 (Permission denied)
Failed to open /dev/input/event19 (Permission denied)
Failed to open /dev/input/event20 (Permission denied)
Failed to open /dev/input/event21 (Permission denied)
Failed to open /dev/input/event3 (Permission denied)
Failed to open /dev/input/event4 (Permission denied)
Can not see any devices, did you add yourself to the input group and reboot?
Could not determine touchpad device.
after running sudo gpasswd -a $USER input
and reboot, i still got permission denied error.
i tried to use groups
to check the user group, and here is what i got.
╰─ groups ─╯
docker input wheel steven
and i check the devices permission by running ls -l /dev/input
╰─ ls -l /dev/input/ ─╯
总计 0
drwxr-xr-x 2 root root 80 11月16日 17:40 by-id
drwxr-xr-x 2 root root 220 11月16日 17:40 by-path
crw-r----- 1 root input 13, 64 11月16日 17:40 event0
crw-r----- 1 root input 13, 65 11月16日 17:40 event1
crw-r----- 1 root input 13, 74 11月16日 17:40 event10
crw-r----- 1 root input 13, 75 11月16日 17:40 event11
crw-r----- 1 root input 13, 76 11月16日 17:40 event12
crw-r----- 1 root input 13, 77 11月16日 17:40 event13
crw-r----- 1 root input 13, 78 11月16日 17:40 event14
crw-r----- 1 root input 13, 79 11月16日 17:40 event15
crw-r----- 1 root input 13, 80 11月16日 17:40 event16
crw-r----- 1 root input 13, 81 11月16日 17:40 event17
crw-r----- 1 root input 13, 82 11月16日 17:40 event18
crw-r----- 1 root input 13, 83 11月16日 17:40 event19
crw-r----- 1 root input 13, 66 11月16日 17:40 event2
crw-r----- 1 root input 13, 84 11月16日 17:40 event20
crw-r----- 1 root input 13, 85 11月16日 17:40 event21
crw-r----- 1 root input 13, 67 11月16日 17:40 event3
crw-r----- 1 root input 13, 68 11月16日 17:40 event4
crw-r----- 1 root input 13, 69 11月16日 17:40 event5
crw-r----- 1 root input 13, 70 11月16日 17:40 event6
crw-r----- 1 root input 13, 71 11月16日 17:40 event7
crw-r----- 1 root input 13, 72 11月16日 17:40 event8
crw-r----- 1 root input 13, 73 11月16日 17:40 event9
crw-rw---- 1 root input 13, 63 11月16日 17:40 mice
crw-rw---- 1 root input 13, 32 11月16日 17:40 mouse0
crw-rw---- 1 root input 13, 33 11月16日 17:40 mouse1
oh, now i know,
sudo chmod 660 /dev/input/event*
and i have to do this every time i reboot
but, why i need to do this
Just follow the instructions as stated in installation section. Your ls -l
shows your devices are readable by anyone in the input
group so it will work if you added yourself correctly. Did you reboot your system after adding yourself to the group (you say "reboot" above but you may have mis-interpreted that to mean just restart the app).
yes, i reboot several times, but no use. in practice, i know that i have to grant the write permission to input
group so i can run libinput-gestures
without root permission.
i temporarily add sudo
to ~/.config/autostart/libinput-gestures.desktop
to fix this, but i don't think this is a good idea to fix it in this way.
Never "add sudo" to "fix" things. You are likely to break stuff even further doing that as you may be creating/rewriting files as root around your home dir which your normal user then can not read/change/delete. On my stock Arch systems my permissions are:
$ ls -l /dev/input/event0
crw-rw---- 1 root input 13, 64 Nov 17 07:19 /dev/input/event0
but yours is missing that group write permission. Do you know why? Is that after a clean reboot? Have you got a custom rule (e.g. in /etc/udev/rules.d/
) changing anything?