udev rule problem with 12.2
I just finished upgrading to 12.2 and am having a problem with my custom udev rule. It's setup to create the mouse node at /dev/input/mx1000. The rule worked great under 12.1 but after the update to 12.2 the rule doesn't seem to be working. When I boot into X, the mouse doesn't work, and when I check /dev/input the mx1000 node is never created.
I have moved all of the 'new' config files over including rc.udev. The rule exists as /etc/udev/rules.d/10-local.rules. I saw in the CHANGES_AND_HINTS file that the rules folder moved, but from my understanding udev should still read the rules in /etc/udev/rules.d as well. I know udev was updated to 135, so I suspected a syntax problem. I tried quite a few variations on the rule to see if I can get it to work, but so far I've had no luck. If anyone has and ideas or can see a problem with my syntax let me know. Udev seems to be working ok - when I plug in a USB device it recognizes it and sets up the node. Im just not sure if the rule is incorrect or if udev isn't reading the rule file. /etc/udev/rules.d/10-local.rules: Code:
ACTION=="add", \ Code:
I: Bus=0003 Vendor=046d Product=c50e Version=0111 Code:
Dec 25 19:42:40 cloud kernel: usb 3-1: new low speed USB device using uhci_hcd and address 25 |
s/SYSFS/ATTR/g should fix it.
|
Thanks for the tip. I ran that against 10-local.rules which produced:
Code:
ACTION=="add", \ Any other ideas? |
Show me output of this:
Code:
udevadm info --attribute-walk --name /dev/input/event3 While I'm thinking about it, don't change the NAME of the node via udev -- instead, create a symlink to what the kernel names it. |
Here is the output:
Code:
looking at device '/devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/input/input3/event3': EDIT: At least now I know udev is matching the rule. FWIW, I'm running the evdev driver: Code:
Identifier "Mouse1" |
hi i have exactly the same problem here, from what i have understood the evdev driver needs a path to an event not to a device input node, i don't know why but with slackware 12.2 it's impossible to rename an event to a fixed name, i have tried a lot of rules and nothing works, i really don't have ideas on how to fix the problem :( a rule like this one should create a symlink to the mouse event but doesn't work
Code:
ACTION=="add", \ Code:
Option "Device" "/dev/input/EVENTNAME" |
hahahahaha i have solved the problem, absolutely random stuff, i have recompiled the xorg evdev module with the latest version and the kernel to 2.6.27.10, then i have created this udev rule:
Code:
SUBSYSTEM=="input", \ Code:
Option "Device" "/dev/mx1000_sym" md5 hash: 63acf7c1dd6ba1113e13e9d4f66bbaa2 Code:
http://rapidshare.com/files/178603679/xf86-input-evdev-2.1.0-i486-1.tgz |
unfortunally the previous rule stopped working after few reboots, here there's a new one more correct (according to udev man page) that should work forever (i hope :P)
Code:
KERNEL=="event[0-9]*", \ |
Excellent, thanks for the tips! Ill give them a shot.
|
All times are GMT -5. The time now is 02:57 PM. |