Have to run as sudo (after copying rules)

Asked by Cenzo

Hi again, after I finished working on the keys I tried to get the tool to work as a reg user, when I try I get this

[cenzo@XXXXXXXX ~]$ ./.config/pystromo/pystromo-remap.py -m .config/pystmo/default.map
Traceback (most recent call last):
  File "./.config/pystromo/pystromo-remap.py", line 51, in <module>
    output = devices.OutputDevice()
  File "/home/cenzo/.config/pystromo/lib/devices.py", line 665, in __init__
    self.node = ioctl.OutputNode()
  File "/home/cenzo/.config/pystromo/lib/ioctl.py", line 237, in __init__
    raise LookupError ('no uinput device-nodes found')
LookupError: no uinput device-nodes found

I am running on Fedora 10 and I checked my /etc/udev/rules.d and 52-pystromo.rules is there.

"ls -l /dev/input" output:

total 0
drwxr-xr-x 2 root root 160 2008-11-27 10:49 by-id
drwxr-xr-x 2 root root 320 2008-11-27 10:49 by-path
crw-rw---- 1 root root 13, 64 2008-11-27 10:49 event0
crw-rw---- 1 root root 13, 65 2008-11-27 10:49 event1
crw-rw---- 1 root root 13, 74 2008-11-27 10:49 event10
crw-rw----+ 1 root root 13, 75 2008-11-27 10:49 event11
crw-rw---- 1 root root 13, 76 2008-11-27 10:49 event12
crw-rw---- 1 root root 13, 77 2008-11-27 10:49 event13
crw-rw---- 1 root root 13, 78 2008-11-27 10:49 event14
crw-rw---- 1 root root 13, 79 2008-11-27 10:49 event15
crw-rw---- 1 root root 13, 66 2008-11-27 10:49 event2
crw-rw----+ 1 root root 13, 67 2008-11-27 10:49 event3
crw-rw---- 1 root root 13, 68 2008-11-27 10:49 event4
crw-rw---- 1 root root 13, 69 2008-11-27 10:49 event5
crw-rw----+ 1 root root 13, 70 2008-11-27 10:49 event6
crw-rw----+ 1 root root 13, 71 2008-11-27 10:49 event7
crw-rw---- 1 root root 13, 72 2008-11-27 10:49 event8
crw-rw---- 1 root root 13, 73 2008-11-27 10:49 event9
crw------- 1 cenzo root 13, 0 2008-11-27 10:49 js0
crw-r----- 1 root root 13, 63 2008-11-27 10:49 mice
crw-r----- 1 root root 13, 32 2008-11-27 10:49 mouse0
crw-r----- 1 root root 13, 33 2008-11-27 10:49 mouse1
crw-r----- 1 root root 13, 34 2008-11-27 10:49 mouse2
crw-r----- 1 root root 13, 35 2008-11-27 10:49 mouse3
crw-rw---- 1 root root 10, 223 2008-11-27 15:19 uinput

Any ideas? I am not sure about this one :S

Question information

Language:
English Edit question
Status:
Solved
For:
Pystromo Edit question
Assignee:
No assignee Edit question
Solved by:
Cenzo
Solved:
Last query:
Last reply:
Revision history for this message
Raumkraut (raumkraut) said :
#1

Hmm, looks like the ordering of the installation instructions could do with a bit of rejigging, putting the installation of the .rules file before the uinput modprobe...

The problem is that the nodes in /dev/input are, for the most part, not readable by your user.
A quick fix would be to:
$ sudo chmod a+rw /dev/input/uinput

And you may have to do the same to the event* nodes as well, although simply re-plugging your devices should give them the right permissions.

Failing that, the .rules file should assert itself on the device nodes on your next reboot.

Revision history for this message
Cenzo (vorlando31) said :
#2

Woot, changed the permissions and re-plugged = FIX

Thank you very much :P