Hi,
I was trying to run hid on ubuntu, but it doesn't detect any devices. I
don't have many, just the normal keyboard+touchpad (IBM Thinkpad), and
also an usb external cordless keyboard+mouse from Logitech.
Pd just says "error: [hid] open /dev/input/eventX failed error: [hid] can not open device X"
(I replaced the numbers with an X)
and the output of |print( is
Supported events:
Detected:
I looked for documentation, but there's only a README file saying how to
compile the package.
my /dev/input/ looks like:
crw-rw---- 1 root root 13, 64 2006-04-22 14:47 event0 crw-rw---- 1 root root 13, 65 2006-04-22 14:47 event1 crw-rw---- 1 root root 13, 66 2006-04-22 14:47 event2 crw-rw---- 1 root root 13, 67 2006-04-22 12:47 event3 crw-rw---- 1 root root 13, 68 2006-04-22 12:47 event4 crw-rw---- 1 root root 13, 69 2006-04-22 12:47 event5 crw-rw---- 1 root root 13, 63 2006-04-22 14:47 mice crw-rw---- 1 root root 13, 32 2006-04-22 14:47 mouse0 crw-rw---- 1 root root 13, 33 2006-04-22 12:47 mouse1 crw-rw---- 1 root root 13, 34 2006-04-22 12:47 mouse2 crw-rw---- 1 root root 13, 128 2006-04-22 12:47 ts0 crw-rw---- 1 root root 13, 129 2006-04-22 12:47 ts1 crw-rw---- 1 root root 13, 130 2006-04-22 12:47 ts2
Joao
On Saturday 22 Apr 2006 12:24, João Miguel Pais wrote:
crw-rw---- 1 root root 13, 64 2006-04-22 14:47 event0 crw-rw---- 1 root root 13, 65 2006-04-22 14:47 event1 crw-rw---- 1 root root 13, 66 2006-04-22 14:47 event2 crw-rw---- 1 root root 13, 67 2006-04-22 12:47 event3 crw-rw---- 1 root root 13, 68 2006-04-22 12:47 event4 crw-rw---- 1 root root 13, 69 2006-04-22 12:47 event5 crw-rw---- 1 root root 13, 63 2006-04-22 14:47 mice crw-rw---- 1 root root 13, 32 2006-04-22 14:47 mouse0 crw-rw---- 1 root root 13, 33 2006-04-22 12:47 mouse1 crw-rw---- 1 root root 13, 34 2006-04-22 12:47 mouse2 crw-rw---- 1 root root 13, 128 2006-04-22 12:47 ts0 crw-rw---- 1 root root 13, 129 2006-04-22 12:47 ts1 crw-rw---- 1 root root 13, 130 2006-04-22 12:47 ts2
For a start, you don't have access to those devices (unless you're root). Only root and those in the root group have rw access. You could probably fix it temporarily (ubuntu uses udev, no? the device nodes get recreated every boot) by chmod'ing the nodes to 0666 or making the group owner a group that you are in. 'audio', perhaps.
More permanently, you'll probably want to fiddle with the udev rules file to tell it to create the nodes as belonging to the audio group in future. (0660 root:audio)
robert.
João Miguel Pais wrote:
I was trying to run hid on ubuntu, but it doesn't detect any devices.
Does it work if you run PD as root?
d.