分类: LINUX
2008-06-05 13:38:03
代码: |
Power Management Options --->
[*] Power Management Support [ ] Software Suspend ACPI( Advanced Configuration and Power Interface ) Support ---> [*] ACPI Support [ ] Sleep States [ ] /proc/acpi/sleep (deprecated) [*] AC Adapter [*] Battery [ ] Generic Hotkey < > ASUS/Medion Laptop Extras < > IBM ThinkPad Laptop Extras < > Toshiba Laptop Extras (0) Disable ACPI for systems before Jan 1st this year [ ] Debug Statements [*] Power Management Timer Support < > ACPI0004,PNP0A05 and PNP0A06 Container Driver (EXPERIMENTAL) CPU Frequency Scaling ---> [*] CPU Frequency scaling [ ] Enable CPUfreq debugging < > CPU frequency translation statistics [ ] CPU frequency translation statistics details Default CPUFreq governor (userspace) <*> 'performance' governor <*> 'powersave' governor <*> 'ondemand' cpufreq policy governor <*> 'conservative' cpufreq governor <*> CPU frequency table helpers <*> CPUFreq driver for your processor |
代码: |
Section "ServerLayout"
Identifier [...] [...] Option "BlankTime" "5" # Blank the screen after 5 minutes (Fake) Option "StandbyTime" "10" # Turn off screen after 10 minutes (DPMS) Option "SuspendTime" "20" # Full suspend after 20 minutes Option "OffTime" "30" # Turn off after half an hour [...] EndSection [...] Section "Monitor" Identifier [...] Option "DPMS" "true" [...] EndSection |
代码: |
sudo /etc/init.d/acpid restart
xset dpms force off |
代码: |
sudo apt-get install cpufrequtils |
代码: |
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to , please. analyzing CPU 0: driver: powernow-k8 CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 1.60 GHz available frequency steps: 1.60 GHz, 800 MHz available cpufreq governors: userspace, powersave, ondemand, conservative, performance current policy: frequency should be within 800 MHz and 1.60 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 800 MHz. |
代码: |
sudo -s
echo powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor |
代码: |
aticonfig --lsp
core/mem [flags] ----------------- * 1: 100/150 MHz 2: 301/200 MHz [default state] aticonfig --set-powerstate=0 |
代码: |
Section "Device"
[...] Option "DynamicClocks" "on" EndSection |
代码: |
present: yes
design capacity: 6000 mAh last full capacity: 3808 mAh battery technology: rechargeable design voltage: 14800 mV design capacity warning: 209 mAh design capacity low: 133 mAh capacity granularity 1: 10 mAh capacity granularity 2: 25 mAh model number: JM-6 serial number: xxxxxxxxxxxxxxx battery type: LION OEM info: Hewlett-Packard |
代码: |
ENABLE_LAPTOP_MODE=true |
代码: |
# Enable laptop mode when on battery power. # 在电池模式下启动laptop_mode ENABLE_LAPTOP_MODE_ON_BATTERY=1 # Disable all data loss sensitive features when the battery level (in % of the # battery capacity) reaches this value. # 在低电量的情况下禁止laptop-mode MINIMUM_BATTERY_CHARGE_PERCENT=10 # Disable data loss sensitive features when the battery reports its state # as "critical". # 在极底电量下禁止laptop_mode DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=8 # The drives that laptop mode controls. # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a # wildcard, which will get you all your IDE and SCSI/SATA drives. # HD="/dev/[hs]d[abcdefgh]" # 设定需要控制的硬盘 HD="/dev/hda" # Should laptop mode tools control readahead? # 启动 readahead CONTROL_READAHEAD=1 # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB). # Effectively, the disk will read a complete MP3 at once, and will then spin # down while the MP3/OGG is playing. Don't set this too high, because the # readahead is applied to _all_ files that are read from disk. # 设定laptop_mode下的readahead buffer,如果是听mp3 3-5M,如果是看电影 8-10M LM_READAHEAD=4096 NOLM_READAHEAD=128 # Should laptop mode tools control the maximum CPU frequency? # 启动CPU频率控制 CONTROL_CPU_FREQUENCY=1 # Legal values are "slowest" for the slowest speed that your # CPU is able to operate at, "fastest" for the fastest speed, # "medium" for some value in the middle, or any value listed in # /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_frequencies. # 设定电池模式下的CPU频率 BATT_CPU_MAXFREQ=slowest BATT_CPU_MINFREQ=slowest BATT_CPU_GOVERNOR=ondemand |
代码: |
# tmpfs /tmp tmpfs size=32m 0 0 |
代码: |
sudo swapoff /dev/hdax |
代码: |
section screen
DefaultDepth 16 |
代码: |
sudo iwconfig wlan0 power off |
代码: |
for x in /proc/acpi/ac_adapter/*; do
grep -q off-line $x/state if [ $? = 0 ] && [ x$1 != xstop ]; then for SCRIPT in /etc/acpi/battery.d/*.sh; do . $SCRIPT done if [ x$ENABLE_LAPTOP_MODE = xtrue ]; then (sleep 5 && laptop_mode_enable)& fi else for SCRIPT in /etc/acpi/ac.d/*.sh; do . $SCRIPT done if [ x$ENABLE_LAPTOP_MODE = xtrue ]; then (sleep 5 && laptop_mode_disable)& fi fi done |