[clug] Disable a built-in USB device?

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


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

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
    ATTR{name}=="eGalax Inc. eGalaxTouch EXC7903-66v03_T1"

(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?


Carlo Hamalainen

More information about the linux mailing list