February 9, 2010, Tuesday, 39

Udev rules

From Openice.org

Jump to: navigation, search

Useful Rules for devices:


Contents

FusionBrain:

 SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="000e", GROUP="auto", MODE="0666"

GPS (Prolific based)

Touchscreens

egalax based

This is what I have for a dual touchscreen setup. It's based on the USB port position. You will want to teak it for your system.

 KERNEL=="hiddev*", ATTRS{idVendor}=="0eef",ATTRS{idProduct}=="0001",KERNELS=="2-2", SYMLINK+="usb/tsright"
 KERNEL=="hiddev*", ATTRS{idVendor}=="0eef",ATTRS{idProduct}=="0001",KERNELS=="2-1", SYMLINK+="usb/tsleft"

For some reason, the egalax X driver doesn't like to use the symlink'd nodes. I'm not sure why...

HSDPA Modems

Huawie-e220

This will create /dev/hspda:

 SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1003", NAME="hsdpa"

Scantools:

OBDPro

Runs obdgpslogger when scantool is inserted.

 BUS=="usb", KERNEL=="ttyUSB*", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", RUN+=obdgpslogger -s %k