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 |
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/python3 | |
# ------------------------------------ | |
# For easy execution, run the command: | |
# curl https://gist.githubusercontent.com/itsmaxymoo/3ffd38ed8f4d896e67e7c5af25b40173/raw | python3 - | |
# ------------------------------------ | |
import os |