wok diff acpid/stuff/acpi/ac.sh @ rev 1512
acpid: acpi_fakekey added
author | Dominique Corbex <domcox@users.sourceforge.net> |
---|---|
date | Mon Oct 06 19:15:21 2008 +0200 (2008-10-06) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/acpid/stuff/acpi/ac.sh Mon Oct 06 19:15:21 2008 +0200 1.3 @@ -0,0 +1,40 @@ 1.4 +#!/bin/sh 1.5 +## 1.6 +## ac.sh 1.7 +## 1.8 +## Made by Dominique Corbex 1.9 +## Login <domcox@users.sourceforge.net> 1.10 +## 1.11 +## Started on Mon Oct 6 12:56:58 2008 Dominique Corbex 1.12 +## Last update 1.13 +## 1.14 + 1.15 +# Disable laptop mode 1.16 +# When laptop mode is enabled, the kernel will try to be smart 1.17 +# about when to do IO, to give the disk and the SATA links as 1.18 +# much time as possible in a low power state. 1.19 + 1.20 +if [ -e /proc/sys/vm/laptop_mode ] ; then 1.21 + echo "Disabling laptop mode" 1.22 + echo 0 > /proc/sys/vm/laptop_mode 1.23 +fi 1.24 + 1.25 +# AC97 audio power saving mode 1.26 +# The AC97 onboard audio chips support power saving, where the 1.27 +# analog parts (codec) are powered down when no program is using 1.28 +# the audio device. 1.29 + 1.30 +if [ -e /sys/module/snd_ac97_codec/parameters/power_save ] ; then 1.31 + echo "Enabling AC97 audio power saving mode" 1.32 + echo 0 > /sys/module/snd_ac97_codec/parameters/power_save 1.33 +fi 1.34 + 1.35 +# The VM writeback time 1.36 +# The VM subsystem caching allows the kernel to group consecutive 1.37 +# writes into one big write, and to generally optimize the disk IO 1.38 +# to be the most efficient. 1.39 + 1.40 +if [ -e /proc/sys/vm/dirty_writeback_centisecs ] ; then 1.41 + echo "Writeback time reset back to 500ms" 1.42 + echo 500 > /proc/sys/vm/dirty_writeback_centisecs 1.43 +fi