Skip to content

Instantly share code, notes, and snippets.

@itsmaxymoo
itsmaxymoo / t480-touchscreen-disable.sh
Created July 1, 2022 20:54
Completely disable touch screen on Lenovo T480
#!/bin/bash
# Disable touch screen on Lenovo T480
# This may produce great battery savings
# To re-enable, delete the file created by this script & reboot
DISABLE_TEXT="SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"2a94\", ATTRS{idProduct}==\"464d\", ATTR{authorized}=\"0\""
echo $DISABLE_TEXT | sudo tee -a /etc/udev/rules.d/80-touchscreen.rules
sudo udevadm control --reload-rules && sudo udevadm trigger