Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Xboxdrv - Uinput permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
darklegion
Guru
Guru


Joined: 14 Nov 2004
Posts: 468

PostPosted: Wed Jul 21, 2010 3:57 am    Post subject: [SOLVED] Xboxdrv - Uinput permissions Reply with quote

I've recently decided to hook up my xbox 360 controller to my PC. The in kernel Xpad driver has the button mapping all wrong, so I decided to use the userspace xboxdrv instead. It installs fine, but when I modprobe uinput, I end up with permissions like this:
Code:

crw-r----- 1 root root 10, 223 Jul 21 13:53 /dev/input/uinput


This isn't usable with a normal user. I created a udev rule to workaround this:
Code:

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


But only the group part of the rule seems to be applied:
Code:

crw-r----- 1 root uinput 10, 223 Jul 21 13:55 /dev/input/uinput


I'm in the uinput group, BTW, but I guess the driver requires write access.

Any ideas?

Thanks


Last edited by darklegion on Thu Jul 22, 2010 6:36 am; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3789
Location: sleeping in the bathtub

PostPosted: Thu Jul 22, 2010 1:00 am    Post subject: Reply with quote

Try changing MODE="0660" to MODE:="0660", the ':=' operator should assign a "final" value and prevent other rules from changing what you've set, which is probably what's happening here.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
darklegion
Guru
Guru


Joined: 14 Nov 2004
Posts: 468

PostPosted: Thu Jul 22, 2010 6:35 am    Post subject: Reply with quote

Sadako wrote:
Try changing MODE="0660" to MODE:="0660", the ':=' operator should assign a "final" value and prevent other rules from changing what you've set, which is probably what's happening here.


Yeah, that worked. Thanks! :)
Back to top
View user's profile Send private message
SnackMasterX
Apprentice
Apprentice


Joined: 26 Jan 2006
Posts: 231

PostPosted: Sun Apr 08, 2012 3:31 am    Post subject: Reply with quote

I'm having the same permission issue, which file should I place this udev rule in? I am not too familiar with udev rules so not sure where to place them.

Thanks in Advance!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum