Skip to content

Open uinput error

Paweł Kotiuk edited this page Aug 4, 2024 · 5 revisions

Fix problems with access to unpiut file

In some cases you can get error:

Could not open uinput device file
Please check that you have permission to write to the device

This is usually caused by lack of udev rule for AntiMicroX.

There may be 3 reasons of this:

  • Device settings are not applied yet. (I recommend restarting PC after installation)
  • You are using version older than 3.1.7 - in this case just update AntiMicroX to the latest version.
  • You installed Flatpak or AppImage version - in case of these packages udev rule can't be added by package and you have to do it by yourself (instruction below).

Adding missing udev rule

You just have do download missing file describing uinput rule

cd /usr/lib/udev/rules.d/
sudo wget https://raw.githubusercontent.com/AntiMicroX/antimicrox/master/other/60-antimicrox-uinput.rules

...and reboot your PC.

Now everything should work fine.

Note - sometimes it may be not possible to create this directory because the /usr/lib folder may be read-only (on Fedora Silverblue for example). Instead create the file in /usr/local/lib/udev/rules.d