[clug] Disable a built-in USB device?

Carlo Hamalainen carlo at carlo-hamalainen.net
Tue Sep 24 19:45:55 CEST 2013


Hi,

I have a Lenovo X1 Carbon laptop with a touch-screen. I want to disable
it because sometimes when waking up from suspend it generates clicks
that do things on my desktop like creating new folders.

Using udevadm I can get some device info:

root at x1:~# udevadm info -a -p
/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input18

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device
'/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input18':
    KERNEL=="input18"
    SUBSYSTEM=="input"
    DRIVER==""
    ATTR{name}=="eGalax Inc. eGalaxTouch EXC7903-66v03_T1"
    ATTR{phys}=="usb-0000:00:14.0-3/input0"
    ATTR{uniq}==""
    ATTR{properties}=="2"

(lots more output snipped)


So I created  /etc/udev/rules.d/10-local.rules

with the line

    SUBSYSTEM=="input" ATTR{name}=="eGalax Inc. eGalaxTouch
EXC7903-66v03_T1" OPTIONS="ignore_device"

but when I reboot the touchscreen still works.

I've tried changing the end of the line to

    .... OPTIONS+="ignore_device" OPTIONS+="last_rule"

but that doesn't help.

Tried Googling for disabling a built-in usb device but didn't come
across anything useful.

Can anyone help?

Thanks,


-- 
Carlo Hamalainen
http://carlo-hamalainen.net



More information about the linux mailing list