Skip to content

Instantly share code, notes, and snippets.

@itsmaxymoo
Created July 1, 2022 20:54
Show Gist options
  • Save itsmaxymoo/dac5d77eac6d877442be0a792ffb7da0 to your computer and use it in GitHub Desktop.
Save itsmaxymoo/dac5d77eac6d877442be0a792ffb7da0 to your computer and use it in GitHub Desktop.
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
echo "Touch screen disabled!"
@veeronniecaw
Copy link

Thank you for this. Really helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment