Disabling touch screen on Linux
I have a dell inspiron 5557 laptop with broken touchscreen. The cursor jumps and clicks randomically each few seconds making the BIOS utility and graphic interfaces unusable and here is how I disabled it:
Solution:
- Press Alt+F3 to open a console;
- Edit /etc/rc.local to disable the touchscreen device;
- Make /etc/rc.local executable and reboot.
$ sudo nano /etc/rc.local
#!/bin/sh
ls -1 /sys/bus/hid/drivers/hid-multitouch | grep 2A94:5241 > /sys/bus/hid/drivers/hid-multitouch/unbind
$ sudo chmod +x /etc.rc.local
$ reboot
How to find the correct device:
If your laptop is not exactly the same as mine, you may need to find the correct usb device to disable it:
$ lsusb | grep -i touch
Bus 001 Device 006: ID 2a94:5241 G2Touch Multi-Touch(...)
$ cd /sys/bus/hid/drivers/hid-multitouch
$ ls -1
0003:2A94:5241.0006
0018:06CB:7621.0001
bind
(...)
then, test it:
$ sudo bash
$ cd /sys/bus/hid/drivers/hid-multitouch
$ echo "0003:2A94:5241.0006" > unbind
$ killall -9 Xorg
In my case, the gnome become unresponsive when I disabled the device. That is why I include a killall -9 Xorg
in the above example.
If your device is AAAA:BBBB:CCCC:DDDD, use the AAAA:BBBB:CCCC or BBBB:CCCC as deviceid on the /etc/rc.local script. The last 4 digits changed often to me.