Hans, Daniel,
Hi again,
I made a 90-puredata.rules file in /lib/udev/rules.d/ containing the following line:
KERNEL=="event[0-9]*", MODE="0660", GROUP="plugdev"
The "evdev EVIOCGABS ioctl: Invalid argument" doesn't appear anymore but [hid] still can't recieve data from de /dev/input/event8 that is where my touchpad is located.
I tried copying the 90.puredata.rules file to the old ubuntu udev rules directory (/etc/udev/rules.d/) but it didn't work either. I also tried both modes (0660 and 0666).
Am I doing something wrong?
thanks again,
Diego.
--- On Sat, 7/18/09, Hans-Christoph Steiner hans@at.or.at wrote:
From: Hans-Christoph Steiner hans@at.or.at Subject: Re: [PD] HID problem in Xubuntu. To: "Daniel Wilcox" danomatika@gmail.com Cc: "Diego Azar" dazar_uy@yahoo.com, pd-list@iem.at Date: Saturday, July 18, 2009, 10:31 PM
Hey Dan,
Making a 90-puredata.rules file and including it in the package sounds like a good idea. We will need to be careful with the permissions stuff, I don't want to be responsible for lots of people getting their machines pwned via pd ;) I imagine MODE=0666 is not necessary, for example, MODE=0660 with the plugdev group should work and be more secure.
If you have something sketched out, how about committing it to the SVN, or posting it to the patch tracker. Or really whatever it takes to get people to contribute work on this stuff. I don't know the udev stuff really, so I don't have much to contribute there.
I see no reason not to include the .rules file in the Pd-extended package, we'll just have to work out the security details if its going to be loaded by default.
.hc
On Fri, 2009-07-17 at 12:53 +0200, Daniel Wilcox wrote:
Hi? Hans, I've been checking the archives and found only one issue that has to do with the ubuntu problem and sais to put this line: KERNEL=="event[0-9]*", MODE="0666" in /etc/udev/rules.d/40- permissions.rules file. The problem is that xubuntu 9.04 (jaunty) doesn't have this file any more and permissions.rules, i think, are given in other archives... i'm looking in ubuntu forums to see what can i do... If someone knows something about...
If you are using Ubuntu/Xubuntu Jaunty, the udev permissions files have been moved to /lib/udev/rules.d: https://lists.ubuntu.com/archives/jaunty-changes/2009-January/002619.html
As for the above, you can try adding the group to plugdev, something like
KERNEL=="event[0-9]*", MODE="0666", GROUP="plugdev"
since all users should be in the plugdev group.
I use this technique to open the mouse on my visual application which uses sdl and runs from a basic terminal without X:
KERNEL=="mouse*" GROUP="plugdev"
There is also no need to modify the existing udev rule files since they are read sequentially and can overwrite each other. So, following the debian udev rule naming convention, if you make a file called 90-puredata.rules and put the event rule in there, it should override or modify the existing default rule.
Hans, it should be totally possible to ship a pd Ubuntu .deb that can install this automatically as I've done this with my own tools. I can help with this if needed, I just havent used [hid] much.
Also, udev is really picky ... make sure each rule is on one line or it will fail. You can also use the udev tools to test each script for parse errors, but I'm at work on a Hardy machine so I can't give you the command right now. The udev admin script changed names between versions.
-- Dan Wilcox danomatika www.robotcowboy.com _______________________________________________ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list