/usr/src/linux/Documentation/laptop-mode.txt, chmod it as executable, and run it as root: laptop_mode start/usr/src/linux/Documentation/laptop-mode.txt for more infoSection "Monitor" ... Option "DPMS" Option "StandbyTime" "time" Option "SuspendTime" "time" Option "OffTime" "time" ... EndSection
You can also enter a power saving state by using xset dpms force "state", where "state" is either: "standby", "suspend", "off" or "on".
mknod /etc/power/apm p
Change ~/.asapmrc to:
device /etc/power/apm
/etc/sysconfig/power (ydl):
PMUD_FLAGS=-a
To pass options to it on startup, edit /etc/sysconfig/power.
Every time pmud detects an action it executes the configuration files. So make sure they are marked executable:
chmod +x /etc/power/*.
(bind socket) error
Power management options --->
CPU Frequency scaling --->
[*] CPU Frequency scaling
<*> CPU frequency translation statistics
[*] CPU frequency translation statistics details
Default CPUFreq governor (performance) --->
<M> 'powersave' governor
<M> 'userspace' governor for userspace frequency scaling
<*> 'ondemand' cpufreq policy governor
<M> 'conservative' cpufreq governor
<*> ACPI Processor P-States driver
The translation statistics are in: /sys/devices/system/cpu/cpu0/cpufreq/stats/
With this enabled, you should get the following files in /sys/devices/system/cpu/cpu0/cpufreq/:
cpuinfo_max_freq cpuinfo_min_freq scaling_available_governors scaling_driver scaling_governor scaling_max_freq scaling_min_freq scaling_setspeed
echo -n "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
To dynamically adjust the CPU frequency based on the current CPU load you can either use a daemon, or use the "ondemand" scaling_governor.
If you want to use a daemon insted set the scaling_governor to "userspace". Then you can use a daemon like cpudynd or cpufreqd and gnome-cpufreq-applet to display the current frequency in the gnome panel. To manually set the speed while using the userspace governor, do echo -n "300000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed