wok view acpid/stuff/acpi/ac.sh @ rev 1582

ekiga: depends on libiconv, libunixODBC
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 16 07:39:09 2008 +0000 (2008-10-16)
parents
children
line source
1 #!/bin/sh
2 ##
3 ## ac.sh
4 ##
5 ## Made by Dominique Corbex
6 ## Login <domcox@users.sourceforge.net>
7 ##
8 ## Started on Mon Oct 6 12:56:58 2008 Dominique Corbex
9 ## Last update
10 ##
12 # Disable laptop mode
13 # When laptop mode is enabled, the kernel will try to be smart
14 # about when to do IO, to give the disk and the SATA links as
15 # much time as possible in a low power state.
17 if [ -e /proc/sys/vm/laptop_mode ] ; then
18 echo "Disabling laptop mode"
19 echo 0 > /proc/sys/vm/laptop_mode
20 fi
22 # AC97 audio power saving mode
23 # The AC97 onboard audio chips support power saving, where the
24 # analog parts (codec) are powered down when no program is using
25 # the audio device.
27 if [ -e /sys/module/snd_ac97_codec/parameters/power_save ] ; then
28 echo "Enabling AC97 audio power saving mode"
29 echo 0 > /sys/module/snd_ac97_codec/parameters/power_save
30 fi
32 # The VM writeback time
33 # The VM subsystem caching allows the kernel to group consecutive
34 # writes into one big write, and to generally optimize the disk IO
35 # to be the most efficient.
37 if [ -e /proc/sys/vm/dirty_writeback_centisecs ] ; then
38 echo "Writeback time reset back to 500ms"
39 echo 500 > /proc/sys/vm/dirty_writeback_centisecs
40 fi