Skip to content

Instantly share code, notes, and snippets.

@mrdev023
Created May 11, 2023 17:45
Show Gist options
  • Save mrdev023/bb207e4f0893e53cb19c097325773635 to your computer and use it in GitHub Desktop.
Save mrdev023/bb207e4f0893e53cb19c097325773635 to your computer and use it in GitHub Desktop.
Add hwdb configuration to avoid shutdown or sleeping computer when keyboard go to sleep
#!/bin/sh
echo "Download last version of falchion patch"
wget https://raw.githubusercontent.com/mrdev023/falchion-shutdown/master/99-asus-falchion.hwdb
echo "Install patch"
mkdir -p $pkgdir/etc/udev/hwdb.d
cp ./99-asus-falchion.hwdb /etc/udev/hwdb.d/99-asus-falchion.hwdb
echo "Update hwdb"
systemd-hwdb update
echo "Clean useless files"
rm 99-asus-falchion.hwdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment