LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   hardcode a device using udev (https://www.linuxquestions.org/questions/debian-26/hardcode-a-device-using-udev-885050/)

cccc 06-07-2011 02:56 PM

hardcode a device using udev
 
hi

My touchscreen "LG Display LGD-MultiTouch" will be recognized sometimes as /dev/input/event0 and sometimes as /dev/input/event3.
Howto hardcode /dev/input/event0 using udev and xorg.conf?

Code:

# cat /proc/bus/input/devices
I: Bus=0003 Vendor=1fd2 Product=0064 Version=0100
N: Name="LG Display LGD-MultiTouch"
P: Phys=usb-0000:00:1d.7-4.1/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1:1.0/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: EV=1b
B: KEY=403 0 30000 0 0 0 0 0 0 0 0
B: ABS=700 3f
B: MSC=10


# udevadm info --query=all --path=/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1:1.0/input/input0
P: /devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1:1.0/input/input0
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-4/1-4.1/1-4.1:1.0/input/input0
E: PRODUCT=3/1fd2/64/100
E: NAME="LG Display LGD-MultiTouch"
E: PHYS="usb-0000:00:1d.7-4.1/input0"
E: UNIQ=""
E: EV==1b
E: KEY==403 0 30000 0 0 0 0 0 0 0 0
E: ABS==700 3f
E: MSC==10
E: MODALIAS=input:b0003v1FD2p0064e0100-e0,1,3,4,k110,111,140,141,14A,ra0,1,2,3,4,5,28,29,2A,m4,lsfw
E: SUBSYSTEM=input


andrewthomas 06-07-2011 07:18 PM

Wouldn't you want to put a rule in /etc/udev/udev.rules?

cccc 06-09-2011 01:56 PM

Quote:

Originally Posted by andrewthomas (Post 4379306)
Wouldn't you want to put a rule in /etc/udev/udev.rules?

Thx, but can you give pls some more details howto add a roule in /etc/udev/udev.rules?

catkin 06-09-2011 11:25 PM

Quote:

Originally Posted by cccc (Post 4381239)
Thx, but can you give pls some more details howto add a roule in /etc/udev/udev.rules?

AFAIK the best page is still Daniel Drake's. It is outdated in that the udevinfo command is replaced by udevadm with the info option.


All times are GMT -5. The time now is 04:11 PM.