How to fix Error Permission denied:’/dev/input/eventX’ running kivy app in Linux

On running a Python script in vscode with the kivy package, the error of Permission denied:’/dev/input/eventX’ appears, where X is a number. To correct this error, open a terminal window and enter the following command:

$ sudo chmod u+r /dev/input/eventX <enter>

Above is only for one time execution. Error will repeat again if code is executed. To make it permanent, have to have:

$ sudo adduser $USER input

See
https://github.com/kivy/kivy/blob/d1ec864c892ef5cb67e016ac6eeac11f2afe0b86/doc/sources/installation/installation-linux.rst for Linux installation instructions.

Leave a comment