You are not logged in.

#1 2011-06-22 21:58:30

bmentink
Member
From: New Zealand
Registered: 2009-08-23
Posts: 442

udev issues

Hi All,

I am trying to get the WII remote software (wminput) working as a normal user, it works fine as root. However I am getting permission issues on  the device it creates
/dev/uinput , I have tried:

Putting a udev rule in /etc/udev/rules.d/50-cwid-input.rules .... contents being  <KERNEL=="uinput",  GROUP="plugdev"> I also tried a MODE="0660", in that line as well
but after restarting udevd and re-loading the uinput module, I am still seeing the /dev/uinput with root permissions ..

PS: My user is a member of group plugdev ..

Anyone have any ideas?

Offline

#2 2011-06-22 22:05:23

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: udev issues

udevadm info -a --name /dev/uinput

Then write a decent udev rule.

Offline

#3 2011-06-22 22:27:19

bmentink
Member
From: New Zealand
Registered: 2009-08-23
Posts: 442

Re: udev issues

brebs wrote:

udevadm info -a --name /dev/uinput

Then write a decent udev rule.

The output of that command is:

 looking at device '/devices/virtual/misc/uinput':
    KERNEL=="uinput"
    SUBSYSTEM=="misc"
    DRIVER==""

What do you mean by write a decent rule? What was wrong with the one I gave?
And why do I have to change my font? neutral

Last edited by bmentink (2011-06-22 22:44:43)

Offline

#4 2011-06-22 22:41:17

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: udev issues

bmentink wrote:

And why do I have to change my font?:|

That's just his signature. Unless you are jesting as well wink


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-06-22 22:43:21

bmentink
Member
From: New Zealand
Registered: 2009-08-23
Posts: 442

Re: udev issues

Inxsible wrote:
bmentink wrote:

And why do I have to change my font?:|

That's just his signature. Unless you are jesting as well wink

Yep, was jesting wink  except my neutral smiley didn't come out ....

EDIT .. has come out from hiding now ..

Last edited by bmentink (2011-06-22 22:45:27)

Offline

#6 2011-07-08 00:18:05

zerker
Member
From: Canada
Registered: 2011-07-08
Posts: 1
Website

Re: udev issues

If you haven't solved this yet, try this rules file:

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

The default rule file for uinput is 50-udev-default.rules, which may be loaded AFTER your rule file, thus clobbering your good work. If you check the man page for udev, := does an assignment but also prevents later rules from changing it.

You can also try increasing your number to make your rule loaded later, but the former fix should handle things anyhow.

Offline

Board footer

Powered by FluxBB