Skip to content

Instantly share code, notes, and snippets.

@kevinchappell
Created October 22, 2021 13:46
Show Gist options
  • Save kevinchappell/274ca457fe7a76af36036b967c98f1c3 to your computer and use it in GitHub Desktop.
Save kevinchappell/274ca457fe7a76af36036b967c98f1c3 to your computer and use it in GitHub Desktop.
screenpad-reinstall.sh
#!/bin/sh
#remove asus-wmi module
sudo dkms remove -m asus-wmi -v 1.0 --all
sudo rm -r /usr/src/asus-wmi-1.0
# install asus-wmi module
sudo mkdir /usr/src/asus-wmi-1.0
cd /usr/src/asus-wmi-1.0
sudo wget 'https://github.com/Plippo/asus-wmi-screenpad/archive/master.zip'
sudo unzip master.zip
sudo mv asus-wmi-screenpad-master/* .
sudo rmdir asus-wmi-screenpad-master
sudo rm master.zip
sudo sh prepare-for-current-kernel.sh
sudo dkms add -m asus-wmi -v 1.0
sudo dkms build -m asus-wmi -v 1.0
sudo dkms install -m asus-wmi -v 1.0
sudo apt install --reinstall linux-image-$(uname -r)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment