[clug] Disable a built-in USB device?

Ian Munsie darkstarsword at gmail.com
Wed Sep 25 04:10:29 CEST 2013


Another option would be to disable it at the xinput layer.

First, determine the device name that xinput identifies it by with

xinput --list

You can try disabling it on the fly (to make sure you have the right
device name & enabled property) with:

xinput --set-prop 'The name you identified from xinput --list' 'Device
Enabled' 0

Then, create an X config fragment in your xorg.conf.d directory (or
add it to an existing xorg.conf if you have one - but I recommend
using fragments) that disables the device on hotplug, using something
like:

/etc/X11/xorg.conf.d/disable-touchscreen.conf:
Section "InputClass"
        Identifier      "Annoying Touch Screen"
        MatchProduct    "The name you identified from xinput --list"

        Option          "DeviceEnabled" "0"
EndSection

Restart X and you should be done.

Cheers,
-Ian

-- 
http://sites.google.com/site/DarkStarJunkSpace
--
http://darkstarshout.blogspot.com/
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


More information about the linux mailing list