add g53s utility scripts

This commit is contained in:
Josh Holtrop 2012-09-07 22:41:03 -04:00
commit e0a9716a65
2 changed files with 19 additions and 0 deletions

11
etc-g53s-laptop-settings Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
# Enable keyboard backlight
echo 0x00050021 > /sys/kernel/debug/asus-nb-wmi/dev_id
echo 0x82 > /sys/kernel/debug/asus-nb-wmi/ctrl_param
cat /sys/kernel/debug/asus-nb-wmi/devs > /dev/null
# disable wake from sleep on USB device 2-1.4 (mouse)
echo disabled > /sys/bus/usb/devices/2-1.4/power/wakeup
exit 0

View File

@ -0,0 +1,8 @@
#!/bin/bash
case "$1" in
hibernate|suspend)
;;
thaw|resume)
/etc/g53s-laptop-settings
;;
esac