Created
July 1, 2022 20:54
-
-
Save itsmaxymoo/dac5d77eac6d877442be0a792ffb7da0 to your computer and use it in GitHub Desktop.
Completely disable touch screen on Lenovo T480
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this. Really helpful