photo lineviral_1.png

Disable Touchscreen Inwards Linux

t similar touchscreens on laptops as well as I tin Disable touchscreen inwards LinuxI accept a Dell Inspiron 5547, massive laptop amongst 16GB RAM as well as Intel i7. It also got a touchscreen. I don’t similar touchscreens on laptops as well as I can’t recall e'er using it. I normally plugin my laptop, Desktop as well as RaspberryPi ii to an IOGear 4port KVM switch as well as purpose a unmarried keyboard as well as mouse amongst Dual-screen display. So my indicate is, I just wanted to disable the touchscreen effort the few times I tried to construct clean my covert of approximately dust, (forgetting I accept a touchscreen), it messed upwardly my lastly session. I did approximately tests as well as constitute the best manner to disable touchscreen inwards Linux. So hither goes:


List loaded modules


Hardware drivers these days uses loadable Kernel module (LKM). So I only listed all heart as well as somebody modules as well as searched for anything that was described every bit touchscreen.


root@kali: # lsmod | grep touch
hid_multitouch 20480 0
hid 118784 five i2c_hid,hid_multitouch,hid_generic,hid_rmi,usbhid

t similar touchscreens on laptops as well as I tin Disable touchscreen inwards Linux


Note that hid_multitouch module … that is maybe what nosotros are looking for.


Find to a greater extent than information close module


We involve to ensure that nosotros got the right module past times looking into using modinfo


root@kali: # modinfo hid_multitouch | head
filename: /lib/modules/4.7.0-kali1-amd64/kernel/drivers/hid/hid-multitouch.ko
license: GPL
description: HID multitouch panels
author: Benjamin Tissoires <benjamin.tissoires@gmail.com>
author: Stephane Chatty <chatty@enac.fr>

Seems legit, every bit the description clearly says it’s for HID multitouch panels.


Disable touchscreen module


We could effort to take away this hid_multitouch to encounter if that disables touchscreen.


root@kali: # modprobe -r hid_multitouch 

It worked.


I was also looking inwards /var/log/messages


root@kali: # tail -f /var/log/messages

Oct nineteen 10:58:35 kali /usr/lib/gdm3/gdm-x-session[2299]: (II) config/udev: removing device ELAN Touchscreen
Oct nineteen 10:58:35 kali /usr/lib/gdm3/gdm-x-session[2299]: (**) Option "fd" "46"
Oct nineteen 10:58:35 kali gnome-settings-[2505]: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

gnome/gdm3 wasn’t every bit good happy … but that’s normal. Double-checking using lsmod again


root@kali: # lsmod | grep touch

returns nothing, which is just what nosotros wanted.


Making it permanent


Now this is withal temporary. Next fourth dimension I restart my laptop, it volition charge this hid_multitouch module again. To terminate this Linux heart as well as somebody module from machine loading, nosotros involve blacklist it.


In Kali / Debian / Ubuntu, it’s every bit uncomplicated every bit creating a novel blacklist file inwards modprobe.d folder amongst right module name:


root@kali: # vi /etc/modprobe.d/hid_multitouch.conf
# Use next syntax
# blacklist driver-name
blacklist hid_multitouch

Save the file as well as reboot, hid_multitouch module volition non live loaded adjacent time. You tin follow the same procedure to disable / unload Linux Kernel modules or blacklist Linux Kernel modules.


Conclusion


This take explained as well as concentrated on how to disable touchscreen inwards Linux. But every bit yous tin see, yous tin disable almost whatsoever modules similarly. Just produce it temporarily showtime as well as you’ll live pretty condom on a unmarried user machine.


Buat lebih berguna, kongsi:
close