question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

udev rules not changing permissions for /dev/uinput

See original GitHub issue

Hello, I’d just like to report a small oddity I found when trying out version 0.5.1 (I’m not sure if it happened before, as it’s my first time using ds4drv)

See #94 for the following part. I split this to a separate issue. -@Ape /etc/ds4drv.conf doesn’t exist in my system after installation (by default). Despite me having my own config file at ~/.config/ds4drv.conf , it isn’t immediately picked up by the program when it is ran. I’m not sure if this happens because it looks first for the /etc/ one and when it doesn’t find it it stops looking, or if it’s something wrong on my end.

The simple fix is that I have to run sudo ds4drv --hidraw --config ~/.config/ds4drv.conf and then it works. (I spent about an hour figuring out what was wrong with my config and why it wasn’t picking up my toggles, turns out it was just a matter of directing the program to the supposed-to-be-default .conf file, haha)

Also, that’s another minor thing: despite me following the guide on Permissions in the ReadMe, I still have to apply sudo to the command , otherwise I get the “Failed to create input device: “/dev/uinput” cannot be opened for writing” message. I don’t know if this is normal or if, again, it’s something on my end.

I tried version 0.5.1 because the stable release wasn’t working on Debian Testing (probably due to the python-evdev thing)

Cheers, and thanks for the driver guys it’s really cool work you’re doing

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

13reactions
parkerlreedcommented, Dec 6, 2016

Same issue on Arch Linux for me. I have the udev file in the correct place but the uinput permissions never change.

EDIT: I also tried this line and it didn’t work either https://github.com/tuomasjjrasanen/python-uinput/blob/master/udev-rules/40-uinput.rules

SUBSYSTEM=="misc", KERNEL=="uinput", MODE="0660", GROUP="uinput"

EDIT2: WEIRRRD I think I figured it out. Somehow on boot there is a /dev/uinput that is created BUT uinput kernel module isn’t loaded. Modprobing uinput then gives it the correct permissions.

Creating /etc/modules-load.d/uinput.conf with the contents of

uinput

makes it work correctly on a fresh boot.

0reactions
Apecommented, Jul 16, 2016

I split this issue into two parts, see #94. I left the udev part here since it’s discussed more.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing uInput Device Permission - tkcheng - WordPress.com
Target: To change the /dev/uinput permission to allow non-root application to open/read/write the device file Creating A New Group: uInput ...
Read more >
uinput and setting file permissions by chmod or rules
To start, I just tried running the script without changing the group and with no extra rules in /etc/udev/rules.d. By default, the permissions...
Read more >
Changing permissions on /dev/uinput - Arch Linux Forums
I'm trying to set up my system so that /dev/uinput is owned by group input and has ... /etc/udev/rules.d/99-uinput.rules KERNEL=="uinput", ...
Read more >
846705 – udev rules MODE= does not change permissions
Bug 846705 - udev rules MODE= does not change permissions ... A rule to match, can be composed by the attributes of the...
Read more >
Having problem with udev rules and running ds4drv on ...
but that's not working due to the fact that I still can't run ds4drv without sudo permissions. Any idea what might be going...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found