Anybody - greetings:

I have been trying to get a .rules file to work to rename my Shuttle device.

BUS=="USB", SYSFS{idProduct}=="0020", SYSFS{idVendor}=="0b33", MODE="660", 
GROUP="plugdev"

works fine. Device appears in /dev/input as mouse2 but with correct plugdev 
Group.

If I change the .rules file to

BUS=="USB", SYSFS{idProduct}=="0020", SYSFS{idVendor}=="0b33", MODE="660", 
GROUP="plugdev", NAME="xpress"

then the line seems to be ignored as device comes as mouse2 and group is 
root (as per default with no rule).

I have tried lots of different positions in the line for NAME=  - everything 
seems to make the line be invalid (ignored).

(a) It it illegal to name a USB device like this?
(b) Where might I expect to find the error logged (if anywhere)?

I can get away with the long name from the driver in /proc/bus/input/devices 
as I currently only have one device (a lathe would be good with two - one 
day)

===========================

Jeff Epler wrote:


>I fixed the bug that caused "-KRAL" to be required.

Thanks
>
> Though I don't generally use pdb, it seems to be possible:
>    $ realtime start
>    $ pdb hal_input -L keyboard
>    > /home/jepler/emc2.head/bin/hal_input(18)?()
>    -> import linux_event, sys, os, fcntl, hal, select, time, glob, fnmatch

I get that far but will have to do more work on my (very basic) Python 
skills to get it all running in context of EMC so I can see the events.

As a really crude approach I have tried some "print"s in the hal_input 
update() method.  Early tests suggest that the kernel driver (thinking 
device is a mouse) is giving funny events. But it needs some more testing 
(and research on what the kernel usb drivers do) :=)

John Prentice 




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to