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 |