]>
git.sthu.org Git - shutils.git/blob - lenovo-x220-linuxacpi/etc/acpi/default.sh
3 # Default acpi script that takes an entry for all actions
14 logger
"ACPI event unhandled: $*"
21 /etc
/acpi
/actions
/powerbtn.sh
24 # if your laptop doesnt turn on/off the display via hardware
25 # switch and instead just generates an acpi event, you can force
26 # X to turn off the display via dpms. note you will have to run
27 # 'xhost +local:0' so root can access the X DISPLAY.
32 *) log_unhandled $
* ;;
38 # Add code here to handle when the system is unplugged
39 # (maybe change cpu scaling to powersave mode). For
40 # multicore systems, make sure you set powersave mode
43 # cpufreq-set -g powersave
46 # Add code here to handle when the system is plugged in
47 # (maybe change cpu scaling to performance mode). For
48 # multicore systems, make sure you set performance mode
51 # cpufreq-set -g performance
54 *) log_unhandled $
* ;;
58 *) log_unhandled $
* ;;