********** ANNOTATED ************ ******************************************** **** Laptop state straight after reboot **** ******************************************** Script started on Fri 03 Jul 2009 12:41:39 PM CEST *********************************************** **** Laptop booted with AC power connected **** *********************************************** root@tails:/home/jrt# cat /proc/acpi/ac_adapter/AC/state state: on-line root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 800 MHz and 2.50 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 800 MHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (4) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 800 MHz and 2.50 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 800 MHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (5) *************************************************************** ***** Attempt to adjust frequencies using SYSFS interface ***** *************************************************************** root@tails:/home/jrt# for i in 0 1 ; do > echo 2000000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_min_freq > done root@tails:/home/jrt# for i in 0 1 ; do > echo 2000000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq > done ************************************ ***** New frequencies accepted ***** ************************************ root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.00 GHz and 2.00 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.00 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (5) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.00 GHz and 2.00 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.00 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (6) ****************************************************** ***** Attempt to change governor and frequencies ***** ****************************************************** root@tails:/home/jrt# for i in 0 1 ; do > echo "performance" > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor > done root@tails:/home/jrt# for i in 0 1 ; do > echo 2501000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq > done root@tails:/home/jrt# for i in 0 1 ; do echo 2501000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_min_freq; done ************************************************************************* ***** New governor accepted, frequencies accepted with new governor ***** ************************************************************************* root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.50 GHz and 2.50 GHz. The governor "performance" may decide which speed to use within this range. current CPU frequency is 2.50 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (6) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.50 GHz and 2.50 GHz. The governor "performance" may decide which speed to use within this range. current CPU frequency is 2.50 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (7) *************************************** ***** Unplug AC power from laptop ***** *************************************** root@tails:/home/jrt# cat /proc/acpi/ac_adapter/AC/state state: off-line ****************************************** ***** Governor changed automatically ***** ****************************************** root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.50 GHz and 2.50 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.50 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (6) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.50 GHz and 2.50 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.50 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (7) **************************************************************** ***** Attempt to change frequencies while on battery power ***** **************************************************************** root@tails:/home/jrt# for i in 0 1 ; do echo 2000000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_min_freq ; done root@tails:/home/jrt# for i in 0 1 ; do echo 2000000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_min_freq ; done ************************************ ***** New frequencies accepted ***** ************************************ root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.00 GHz and 2.00 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.00 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (7) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.00 GHz and 2.00 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.00 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (8) root@tails:/home/jrt# for i in 0 1 ; do echo 2000000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq ; done root@tails:/home/jrt# for i in 0 1 ; do echo 2501000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq ; done root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.50 GHz and 2.50 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.50 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (8) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.50 GHz and 2.50 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.50 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (11) ****************************** ***** Reconnect AC power ***** ****************************** root@tails:/home/jrt# cat /proc/acpi/ac_adapter/AC/state state: on-line ****************************************************************************** ***** For some reason frequencies automatically adjusted to minimum freq ***** ****************************************************************************** root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 800 MHz and 800 MHz. The governor "performance" may decide which speed to use within this range. current CPU frequency is 800 MHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (10) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 800 MHz and 800 MHz. The governor "performance" may decide which speed to use within this range. current CPU frequency is 800 MHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (13) ********************************************************* ***** No longer able to change frequencies manually ***** ********************************************************* root@tails:/home/jrt# for i in 0 1 ; do echo 2501000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_min_freq ; done root@tails:/home/jrt# for i in 0 1 ; do echo 2501000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq ; done bash: echo: write error: Invalid argument bash: echo: write error: Invalid argument **************************************** ***** Frequencies remain unchanged ***** **************************************** root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 800 MHz and 800 MHz. The governor "performance" may decide which speed to use within this range. current CPU frequency is 800 MHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (10) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 800 MHz and 800 MHz. The governor "performance" may decide which speed to use within this range. current CPU frequency is 800 MHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (13) ********************************* ***** Unplug AC power again ***** ********************************* root@tails:/home/jrt# cat /proc/acpi/ac_adapter/AC/state state: off-line ************************************************************************** ***** Frequencies remain the same but governor automatically updated ***** ************************************************************************** root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 800 MHz and 800 MHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 800 MHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (10) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 800 MHz and 800 MHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 800 MHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (13) ************************************************** ***** Attempt to manually change frequencies ***** ************************************************** root@tails:/home/jrt# for i in 0 1 ; do echo 2501000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_max_freq ; done root@tails:/home/jrt# for i in 0 1 ; do echo 2501000 > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_min_freq ; done *************************************************************** ***** Frequencies accepted (but only on battery power???) ***** *************************************************************** root@tails:/home/jrt# cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to cpufreq@lists.linux.org.uk, please. analyzing CPU 0: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.50 GHz and 2.50 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.50 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (23) analyzing CPU 1: driver: acpi-cpufreq CPUs which need to switch frequency at the same time: 1 hardware limits: 800 MHz - 2.50 GHz available frequency steps: 2.50 GHz, 2.50 GHz, 2.00 GHz, 1.60 GHz, 1.20 GHz, 800 MHz available cpufreq governors: conservative, ondemand, userspace, powersave, performance current policy: frequency should be within 2.50 GHz and 2.50 GHz. The governor "ondemand" may decide which speed to use within this range. current CPU frequency is 2.50 GHz (asserted by call to hardware). cpufreq stats: 2.50 GHz:0.00%, 2.50 GHz:0.00%, 2.00 GHz:0.00%, 1.60 GHz:0.00%, 1.20 GHz:0.00%, 800 MHz:0.00% (25) root@tails:/home/jrt# exit Script done on Fri 03 Jul 2009 12:55:48 PM CEST