Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#709239: laptop-mode-tools: Fail to set state on system shutdown

5 views
Skip to first unread message

Marco

unread,
May 21, 2013, 4:10:02 PM5/21/13
to
Package: laptop-mode-tools
Version: 1.63-2
Severity: important
Tags: patch

Dear Maintainer,
after the last laptop-mode-tool upgrade in testing I noticed that cpu
governor was not correctly set after boot (it was my kernel default, not as set
in /etc/laptop-mode/conf.d/cpufreq.conf). Manually restarting laptop-mode via
invoke-rc.d restored the situation.

Now, I found out that in /usr/sbin/laptop_mode is taouched the file /var/run
/laptop-mode/enabled just because $ENABLE_LAPTOP_MODE_TOOLS is '1', regardless
of the fact that the script may have been called with 'stop' parameter.

Since the same file is created/removed by the init.d script I tried to comment
out the line in /usr/sbin/laptop_mode (643) and this fixed the problem for me.
I'm not sure if this could break some other usecase though.

regards
Marco



-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (900, 'testing'), (800, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.35-custom-3 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages laptop-mode-tools depends on:
ii lsb-base 4.1+Debian9
ii psmisc 22.20-1
ii util-linux 2.20.1-5.3

Versions of packages laptop-mode-tools recommends:
ii ethtool 1:3.4.2-1
ii hdparm 9.43-1
ii net-tools 1.60-24.2
ii sdparm 1.07-1
ii udev 175-7.2
ii wireless-tools 30~pre9-8

Versions of packages laptop-mode-tools suggests:
ii acpid 1:2.0.18-1
ii apmd 3.2.2-14
ii hal 0.5.14-8

-- Configuration Files:
/etc/laptop-mode/conf.d/cpufreq.conf changed:
DEBUG=0
CONTROL_CPU_FREQUENCY=1
BATT_CPU_MAXFREQ=fastest
BATT_CPU_MINFREQ=slowest
BATT_CPU_GOVERNOR=ondemand
BATT_CPU_IGNORE_NICE_LOAD=1
LM_AC_CPU_MAXFREQ=fastest
LM_AC_CPU_MINFREQ=slowest
LM_AC_CPU_GOVERNOR=ondemand
LM_AC_CPU_IGNORE_NICE_LOAD=1
NOLM_AC_CPU_MAXFREQ=fastest
NOLM_AC_CPU_MINFREQ=slowest
NOLM_AC_CPU_GOVERNOR=ondemand
NOLM_AC_CPU_IGNORE_NICE_LOAD=0
CONTROL_CPU_THROTTLING=0
BATT_CPU_THROTTLING=medium
LM_AC_CPU_THROTTLING=medium
NOLM_AC_CPU_THROTTLING=minimum

/etc/laptop-mode/conf.d/hal-polling.conf changed:
DEBUG=0
CONTROL_HAL_POLLING=0
BATT_DISABLE_HAL_POLLING=1
AC_DISABLE_HAL_POLLING=0
HAL_POLLING_DEVICES="/dev/scd?"

/etc/laptop-mode/conf.d/wireless-ipw-power.conf changed:
DEBUG=0
CONTROL_IPW_POWER=0
IPW3945_AC_POWER=6
IPW3945_BATT_POWER=7
IPW2100_AC_POWER=0
IPW2100_BATT_POWER=5

/etc/laptop-mode/conf.d/wireless-iwl-power.conf changed:
DEBUG=0
CONTROL_IWL_POWER=0
IWL_AC_POWER=0
IWL_BATT_POWER=3

/etc/laptop-mode/conf.d/wireless-power.conf changed:
DEBUG=0
CONTROL_WIRELESS_POWER_SAVING=0
WIRELESS_AC_POWER_SAVING=0
WIRELESS_BATT_POWER_SAVING=1

/etc/laptop-mode/laptop-mode.conf changed:
ENABLE_LAPTOP_MODE_TOOLS=1
VERBOSE_OUTPUT=0
LOG_TO_SYSLOG=1
DEBUG=0
ENABLE_LAPTOP_MODE_ON_BATTERY=1
ENABLE_LAPTOP_MODE_ON_AC=1
ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
ENABLE_AUTO_MODULES=1
MINIMUM_BATTERY_CHARGE_PERCENT=3
DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
DISABLE_BATTERY_ALARM_CHECK=0
HD="/dev/[hs]d[abcdefgh]"
PARTITIONS="auto /dev/mapper/*"
ASSUME_SCSI_IS_SATA=1
LM_BATT_MAX_LOST_WORK_SECONDS=600
LM_AC_MAX_LOST_WORK_SECONDS=360
CONTROL_READAHEAD=1
LM_READAHEAD=3072
NOLM_READAHEAD=128
CONTROL_NOATIME=0
USE_RELATIME=1
CONTROL_HD_IDLE_TIMEOUT=1
LM_AC_HD_IDLE_TIMEOUT_SECONDS=20
LM_BATT_HD_IDLE_TIMEOUT_SECONDS=20
NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
CONTROL_HD_POWERMGMT="auto"
BATT_HD_POWERMGMT=1
LM_AC_HD_POWERMGMT=254
NOLM_AC_HD_POWERMGMT=254
CONTROL_HD_WRITECACHE=0
NOLM_AC_HD_WRITECACHE=1
NOLM_BATT_HD_WRITECACHE=0
LM_HD_WRITECACHE=0
CONTROL_MOUNT_OPTIONS=1
LM_DIRTY_RATIO=60
NOLM_DIRTY_RATIO=40
LM_DIRTY_BACKGROUND_RATIO=1
NOLM_DIRTY_BACKGROUND_RATIO=10
DEF_UPDATE=5
DEF_XFS_AGE_BUFFER=15
DEF_XFS_SYNC_INTERVAL=30
DEF_XFS_BUFD_INTERVAL=1
DEF_MAX_AGE=30
XFS_HZ=100
LM_SECONDS_BEFORE_SYNC=2


-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Ritesh Raj Sarraf

unread,
May 22, 2013, 3:20:02 AM5/22/13
to
tag 709239 -patch
thanks

On Wednesday 22 May 2013 01:37 AM, Marco wrote:
> Dear Maintainer,
> after the last laptop-mode-tool upgrade in testing I noticed that cpu
> governor was not correctly set after boot (it was my kernel default, not as set
> in /etc/laptop-mode/conf.d/cpufreq.conf). Manually restarting laptop-mode via
> invoke-rc.d restored the situation.

This could be caused by another service interfering. What other service
are you running?
And what Window manager are you on? They tend to control the cpu too.

>
> Now, I found out that in /usr/sbin/laptop_mode is taouched the file /var/run
> /laptop-mode/enabled just because $ENABLE_LAPTOP_MODE_TOOLS is '1', regardless
> of the fact that the script may have been called with 'stop' parameter.
>
> Since the same file is created/removed by the init.d script I tried to comment
> out the line in /usr/sbin/laptop_mode (643) and this fixed the problem for me.
> I'm not sure if this could break some other usecase though.
The reliance on that file is not important now. We have kept it only for
backward compatibility reasons.
LMT now is events based. It acts on events generated by the kernel.
Hence I have a strong feeling there's something else interfering with
the settings.

--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."


signature.asc

Marco Pattaro

unread,
May 22, 2013, 4:20:02 AM5/22/13
to
On 05/22/2013 09:07 AM, Ritesh Raj Sarraf wrote:
> tag 709239 -patch
> thanks
>
> On Wednesday 22 May 2013 01:37 AM, Marco wrote:
>> Dear Maintainer,
>> after the last laptop-mode-tool upgrade in testing I noticed that cpu
>> governor was not correctly set after boot (it was my kernel default, not as set
>> in /etc/laptop-mode/conf.d/cpufreq.conf). Manually restarting laptop-mode via
>> invoke-rc.d restored the situation.
> This could be caused by another service interfering. What other service
> are you running?
> And what Window manager are you on? They tend to control the cpu too.
Well i tested it without X11 starting at boot. By the way the only other
service I feared that could be in the way is cpufrequtils, but disabling
it with update-rc.d did not change anything.
>
>> Now, I found out that in /usr/sbin/laptop_mode is taouched the file /var/run
>> /laptop-mode/enabled just because $ENABLE_LAPTOP_MODE_TOOLS is '1', regardless
>> of the fact that the script may have been called with 'stop' parameter.
>>
>> Since the same file is created/removed by the init.d script I tried to comment
>> out the line in /usr/sbin/laptop_mode (643) and this fixed the problem for me.
>> I'm not sure if this could break some other usecase though.
> The reliance on that file is not important now. We have kept it only for
> backward compatibility reasons.
> LMT now is events based. It acts on events generated by the kernel.
> Hence I have a strong feeling there's something else interfering with
> the settings.
>
Still I believe there's something wrong with it, it's a fact that
leaving it's creation/deletion just to the init.d script solved the
problem.

It's ok that cpu governor is changed on kernel events; but here I find
LMT not starting because it believes it's already started. Reading
syslog, I find this message at every boot:

|May 21 13:50:42 silmaril laptop-mode: Laptop mode
May 21 13:50:42 silmaril laptop-mode: enabled,
May 21 13:50:42 silmaril laptop-mode: not active [unchanged]

|||

and the same apply if I try to manually start LMT without stopping it
first. It says [unchanged] because the file /var/run/laptop_mode/enabled
is there before bootup and it's used to initialize the $STATE variable
in /usr/sbin/laptop_mode. The same file is supposed to be removed on

$ invoke-rc.d laptop-mode stop

but it's then created again when

$ /usr/sbin/laptop_mode stop

is called by the init.d script just afterward.

Thanks
Marco

Ritesh Raj Sarraf

unread,
May 22, 2013, 9:40:02 AM5/22/13
to
On Wednesday 22 May 2013 01:44 PM, Marco Pattaro wrote:
> Still I believe there's something wrong with it, it's a fact that
> leaving it's creation/deletion just to the init.d script solved the
> problem.
>
> It's ok that cpu governor is changed on kernel events; but here I find
> LMT not starting because it believes it's already started. Reading
> syslog, I find this message at every boot:
>
> |May 21 13:50:42 silmaril laptop-mode: Laptop mode
> May 21 13:50:42 silmaril laptop-mode: enabled,
> May 21 13:50:42 silmaril laptop-mode: not active [unchanged]
>
> |||
>
> and the same apply if I try to manually start LMT without stopping it
> first. It says [unchanged] because the file
> /var/run/laptop_mode/enabled is there before bootup and it's used to
> initialize the $STATE variable in /usr/sbin/laptop_mode. The same file
> is supposed to be removed on
>
> $ invoke-rc.d laptop-mode stop
>
> but it's then created again when
>
> $ /usr/sbin/laptop_mode stop
>
> is called by the init.d script just afterward.
Okay! Thanks for the explanation. Let's try to debug this issue further
then.

In /etc/laptop-mode/conf.d/cpufreq.conf there is a debug switch. Could
you please enable the debug switch for this module, and then run your
tests? The logging will be done to syslog provided you enable the
following settings in /etc/laptop-mode/laptop-mode.conf. Then you can
share your relevant syslog messages.

#
# Set this to 1 if you want to see a lot of information when you start/stop
# laptop_mode.
#
VERBOSE_OUTPUT=0

# Set this to 1 if you want to log messages to syslog
LOG_TO_SYSLOG=1
signature.asc

Marco Pattaro

unread,
May 22, 2013, 3:20:02 PM5/22/13
to
Hallo,
I did the test with DEBUG=1, sadly it did not logged the full
output to syslog (attached laptop-mode part), much more is printed on
stderr. I did log a shutdown/boot, then I did some tests which I report
here (lot of text follows).

At a fresh boot this is the situation I can observe:

$ ls -la /var/run/laptop-mode-tools

total 4
drwxr-xr-x 2 root root 80 May 22 20:24 .
drwxr-xr-x 21 root root 880 May 22 20:24 ..
-rw-r--r-- 1 root root 0 May 22 20:24 enabled
-rw-r--r-- 1 root root 14 May 22 20:24 state


$ cat /var/run/laptop-mode-tools/state

1 1 1 enabled


$ cpufreq-info | grep governor

available cpufreq governors: ondemand, userspace, powersave,
conservative, performance
The governor "conservative" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, performance
The governor "conservative" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, performance
The governor "conservative" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave, conservative


* CPU governor is my kernel's default, should be 'ondemand' by LMT
configuration
* LMT says to be enabled

Ok, let's try to start laptop-mode

$ sudo invoke-rc.d laptop-mode start

Enabling debug mode for module /etc/laptop-mode/conf.d/cpufreq.conf
Determining power state from /sys/class/power_supply/ACAD/online.
Not trying other options, already found a power supply.
Battery level polling is disabled.
Prelim lock acquisition on descriptor 8 with pid 5366
Prelim lock acquisition on descriptor 9 with pid 5366
Now invoking lmt_main_function with arguments -- auto
On AC power: Activating, because ENABLE_LAPTOP_MODE_ON_AC is set.
On AC, not checking minimum battery charge.
Checking if desired state is different from current state.
Laptop mode enabled, active [unchanged].

$ ls -la /var/run/laptop-mode-tools

total 4
drwxr-xr-x 2 root root 80 May 22 20:24 .
drwxr-xr-x 21 root root 880 May 22 20:24 ..
-rw-r--r-- 1 root root 0 May 22 20:24 enabled
-rw-r--r-- 1 root root 14 May 22 20:24 state


$ cat /var/run/laptop-mode-tools/state

1 1 1 enabled


$ cpufreq-info | grep governor

available cpufreq governors: ondemand, userspace, powersave,
conservative, performance
The governor "conservative" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, performance
The governor "conservative" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, performance
The governor "conservative" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, performance
The governor "conservative" may decide which speed to use

* no changes in /var/run/laptop-mode-tools/
* CPU governor hasn't changed
Now let's go for a stop (I won't restart because the init.d script
behaves a little different when doing a restart)

$ sudo invoke-rc.d laptop-mode stop
Enabling debug mode for module /etc/laptop-mode/conf.d/cpufreq.conf
Determining power state from /sys/class/power_supply/ACAD/online.
Not trying other options, already found a power supply.
Battery level polling is disabled.
Prelim lock acquisition on descriptor 8 with pid 5473
Prelim lock acquisition on descriptor 9 with pid 5473
Now invoking lmt_main_function with arguments -- stop
On AC power: Activating, because ENABLE_LAPTOP_MODE_ON_AC is set.
Laptop mode disabled because /var/run/laptop-mode-tools/enabled is missing.
Checking if desired state is different from current state.
Invoking module /usr/share/laptop-mode-tools/modules/ac97-powersave.
Invoking module /usr/share/laptop-mode-tools/modules/battery-level-polling.
Invoking module /usr/share/laptop-mode-tools/modules/bluetooth.
Invoking module
/usr/share/laptop-mode-tools/modules/configuration-file-control.
Invoking module /usr/share/laptop-mode-tools/modules/cpufreq.
+ disableDebug /usr/share/laptop-mode-tools/modules/cpufreq
+ . /usr/share/laptop-mode-tools/modules/cpufreq
+ basename /usr/share/laptop-mode-tools/modules/cpufreq
+ cut -d . -f1
+ tr+ sed s/-/_/g
[:lower:] [:upper:]
+ [ x1 = x1 ]
+ set +vx
Invoking module /usr/share/laptop-mode-tools/modules/dpms-standby.
Invoking module /usr/share/laptop-mode-tools/modules/eee-superhe.
Invoking module /usr/share/laptop-mode-tools/modules/ethernet.
Invoking module /usr/share/laptop-mode-tools/modules/exec-commands.
Invoking module /usr/share/laptop-mode-tools/modules/hal-polling.
Invoking module /usr/share/laptop-mode-tools/modules/hdparm.
Invoking module /usr/share/laptop-mode-tools/modules/intel-hda-powersave.
Invoking module /usr/share/laptop-mode-tools/modules/intel-sata-powermgmt.
Invoking module /usr/share/laptop-mode-tools/modules/laptop-mode.
Invoking module /usr/share/laptop-mode-tools/modules/lcd-brightness.
Invoking module /usr/share/laptop-mode-tools/modules/nmi-watchdog.
Invoking module /usr/share/laptop-mode-tools/modules/pcie-aspm.
Invoking module /usr/share/laptop-mode-tools/modules/runtime-pm.
Invoking module /usr/share/laptop-mode-tools/modules/sched-mc-power-savings.
Invoking module
/usr/share/laptop-mode-tools/modules/sched-smt-power-savings.
Invoking module /usr/share/laptop-mode-tools/modules/start-stop-programs.
Invoking module /usr/share/laptop-mode-tools/modules/syslog-conf.
AC97 power saving is not available. Perhaps CONFIG_SND_AC97_POWER_SAVE
option
Invoking module /usr/share/laptop-mode-tools/modules/terminal-blanking.
is not set in the kernel config, or the snd_ac97_codec module is not loaded.
#! /bin/sh
#
# Laptop mode tools module to handle CPU frequency settings.
#

# Set kernel setting, showing an error if this fails.
# Parameter 1: sysctl/proc path
# Parameter 2: the value
set_sysctl() {
log "VERBOSE" "Executing: echo $2 > $1"
if ! echo "$2" > "$1" ; then
echo "SETTING OF KERNEL PARAMETER FAILED: echo $2 \> $1"
fi
}


#
# get_medium_value
#
# Get the medium value from a list of numerical values.
# $1 = file containing the list of values
#
get_medium_value() {
cat "$1" | tr ' ' '\n' | sort -n | awk -v RS=""
'{n=split($0,a); print a[int
((n+1)/2)]}'
}


if [ x$CONTROL_CPU_FREQUENCY = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a
x$CONTROL_CPU
_FREQUENCY = xauto ]; then
if [ $ON_AC -eq 1 ] ; then
if [ "$ACTIVATE" -eq 1 ] ; then
CPU_MAXFREQ="$LM_AC_CPU_MAXFREQ"
CPU_MINFREQ="$LM_AC_CPU_MINFREQ"
CPU_GOVERNOR="$LM_AC_CPU_GOVERNOR"
CPU_IGNORE_NICE_LOAD="$LM_AC_CPU_IGNORE_NICE_LOAD"
else
CPU_MAXFREQ="$NOLM_AC_CPU_MAXFREQ"
CPU_MINFREQ="$NOLM_AC_CPU_MINFREQ"
CPU_GOVERNOR="$NOLM_AC_CPU_GOVERNOR"

CPU_IGNORE_NICE_LOAD="$NOLM_AC_CPU_IGNORE_NICE_LOAD"
fi
else
CPU_MAXFREQ="$BATT_CPU_MAXFREQ"
CPU_MINFREQ="$BATT_CPU_MINFREQ"
CPU_GOVERNOR="$BATT_CPU_GOVERNOR"
CPU_IGNORE_NICE_LOAD="$BATT_CPU_IGNORE_NICE_LOAD"
fi
for THISCPU in /sys/devices/system/cpu/* ; do
if [ -e $THISCPU/cpufreq/cpuinfo_min_freq ]; then
THIS_CPU_MAXFREQ="$CPU_MAXFREQ"
THIS_CPU_MINFREQ="$CPU_MINFREQ"
THIS_CPU_GOVERNOR="$CPU_GOVERNOR"
THIS_CPU_IGNORE_NICE_LOAD="$CPU_IGNORE_NICE_LOAD"

case "$CPU_MAXFREQ" in
"slowest")
THIS_CPU_MAXFREQ=`cat
$THISCPU/cpufreq/cpuinfo_min_f
req`
;;
"medium")
THIS_CPU_MAXFREQ=$(get_medium_value
$THISCPU/cpufreq
/scaling_available_frequencies)
;;
"fastest")
THIS_CPU_MAXFREQ=`cat
$THISCPU/cpufreq/cpuinfo_max_f
req`
;;
esac

case "$CPU_MINFREQ" in
"slowest")
THIS_CPU_MINFREQ=`cat
$THISCPU/cpufreq/cpuinfo_min_f
req`
;;
"medium")
THIS_CPU_MINFREQ=$(get_medium_value
$THISCPU/cpufreq
/scaling_available_frequencies)
;;
"fastest")
THIS_CPU_MINFREQ=`cat
$THISCPU/cpufreq/cpuinfo_max_f
req`
;;
esac

log "VERBOSE" "Setting CPU maximum frequency
for cpu $THISCP
U to $THIS_CPU_MAXFREQ."
set_sysctl $THISCPU/cpufreq/scaling_max_freq
$THIS_CPU_MAXFR
EQ
log "VERBOSE" "Setting CPU minimum frequency
for cpu $THISCP
U to $THIS_CPU_MINFREQ."
set_sysctl $THISCPU/cpufreq/scaling_min_freq
$THIS_CPU_MINFR
EQ
log "VERBOSE" "Setting CPU frequency governor
for cpu $THISC
PU to $THIS_CPU_GOVERNOR."
log "VERBOSE" "`/sbin/modprobe -q
cpufreq_$THIS_CPU_GOVERNOR
2>&1`"
set_sysctl $THISCPU/cpufreq/scaling_governor
$THIS_CPU_GOVER
NOR

# Retain for backward compatibility
if [ -f
"$THISCPU/cpufreq/$THIS_CPU_GOVERNOR/ignore_nice_loa
d" ] ; then
log "VERBOSE" "Setting CPU
ignore_nice_load for cpu
$THISCPU to $THIS_CPU_IGNORE_NICE_LOAD."
set_sysctl
$THISCPU/cpufreq/$THIS_CPU_GOVERNOR/ignor
e_nice_load $THIS_CPU_IGNORE_NICE_LOAD
else
log "VERBOSE" "Not setting CPU
ignore_nice_load for
cpu $THISCPU."
log "VERBOSE" "File
$THISCPU/cpufreq/$THIS_CPU_GOVER
NOR/ignore_nice_load does not exist."
fi
fi
done

# For kernels 2.6.32 and above, the sysfs interface for
OnDemand per-core po
wer savings has changed.
# Instead of per-core, the new interface is generic and a
single one
if [ -f
"/sys/devices/system/cpu/cpufreq/$THIS_CPU_GOVERNOR/ignore_nice_load
" ]; then
log "VERBOSE" "Setting CPU ignore_nice_load for all cpus"
set_sysctl
/sys/devices/system/cpu/cpufreq/$THIS_CPU_GOVERNOR/ignore
_nice_load $CPU_IGNORE_NICE_LOAD
else
log "VERBOSE" "No generic CPU ignore_nice_load
interface available"
fi
fi
+ [ x1 = x1 ]
+ [ 1 -eq 1 ]
+ [ 0 -eq 1 ]
+ CPU_MAXFREQ=fastest
+ CPU_MINFREQ=slowest
+ CPU_GOVERNOR=ondemand
+ CPU_IGNORE_NICE_LOAD=0
+ [ -e /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq ]
+ THIS_CPU_MAXFREQ=fastest
+ THIS_CPU_MINFREQ=slowest
+ THIS_CPU_GOVERNOR=ondemand
+ THIS_CPU_IGNORE_NICE_LOAD=0
Intel HDA power save mode disabled.
Prepare to release locks for descriptors 8 & 9
On AC power: setting pcie_aspm to default
Set terminal blanking timeout to 10 min, powerdown timeout to 50 min.
Activating Runtime PM for device type PCI
Control file is /sys/devices/platform/eeepc/cpufv
Executing comand
On AC power: setting scheduler power saving to 0.
+ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
Intel SATA link power saving set to max_performance for
/sys/class/scsi_host/host0/l
ink_power_management_policy.
Battery level polling is disabled.
On AC power: setting scheduler power saving to 0.
Intel HDA Controller power save set to N.
+ THIS_CPU_MAXFREQ=1333000
On AC power: setting NMI Watchdog Timer to 1
Platform does not support SuperHe
Terminal /dev/tty1 found, adjusting.
PCIe ASPM tweaking is prohibited by the kernel
+ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:00.0
Released locks for descriptors 8 & 9
Scheduler power saving is not available.
NMI Watchdog timer enabled
Invoking module /usr/share/laptop-mode-tools/modules/usb-autosuspend.
Executing: echo 0 > /proc/sys/vm/laptop_mode
Intel SATA link power saving set to max_performance for
/sys/class/scsi_host/host1/l
ink_power_management_policy.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:02.0
+ THIS_CPU_MINFREQ=666000
+ log VERBOSE Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu0 to
1333000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
Scheduler SMT power save mode disabled.
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU maximum frequency
for cpu /sys/d
evices/system/cpu/cpu0 to 1333000.
ethernet: /sys/devices/pci0000:00/0000:00:1c.5/0000:09:00.0/net/eth0
Intel SATA link power saving set to max_performance for
/sys/class/scsi_host/host2/l
ink_power_management_policy.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu0 to 1333000
.
Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu0 to
1333000.
+ set_sysctl /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1333000
+ log VERBOSE Executing: echo 1333000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling
_max_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 1333000 >
/sys/devices/syste
m/cpu/cpu0/cpufreq/scaling_max_freq
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:16.0

Intel SATA link power saving set to max_performance for
/sys/class/scsi_host/host3/l
ink_power_management_policy.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 1333000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_fr
eq
Executing: echo 1333000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
+ echo 1333000
+ log VERBOSE Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu0 to
666000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU minimum frequency
for cpu /sys/d
evices/system/cpu/cpu0 to 666000.
Adjusting 2.6+ kernel parameters to disable laptop mode.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu0 to 666000.
Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu0 to
666000.
+ set_sysctl /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 666000
+ log VERBOSE Executing: echo 666000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_
min_freqethernet: /sys/devices/pci0000:00/0000:00:1c.5/0000:09:00.0

+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 666000 >
/sys/devices/system
/cpu/cpu0/cpufreq/scaling_min_freq
Executing: echo 500 > /proc/sys/vm/dirty_writeback_centisecs
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1a.0
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1b.0
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 666000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fre
q
Executing: echo 666000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ echo 666000
+ log VERBOSE Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu0 to
ondemand.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU frequency governor
for cpu /sys/
devices/system/cpu/cpu0 to ondemand.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu0 to ondema
nd.
Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu0 to
ondemand.
Disabling autosuspend mode for USBCORE Controller, with timeout 0.
+ /sbin/modprobe -q cpufreq_ondemand
Executing: echo 3000 > /proc/sys/vm/dirty_expire_centisecs
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.0
+ log VERBOSE
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode
Executing: echo 40 > /proc/sys/vm/dirty_ratio
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.1
Invoking module /usr/share/laptop-mode-tools/modules/video-out.
Not disabling auto suspend mode for usb device 1-0:1.0
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.4
Not enabling ON power level for usb device 1-0:1.0
Executing comand
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo

+ set_sysctl /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
+ log VERBOSE Executing: echo ondemand >
/sys/devices/system/cpu/cpu0/cpufreq/scalin
g_governor
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo ondemand >
/sys/devices/syst
em/cpu/cpu0/cpufreq/scaling_governor
Setting powermanagement on drives to 254.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo ondemand >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_gover
nor
Executing: echo ondemand >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+ echo ondemand
+ [ -f /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu0.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-modeSetting Runtime PM auto for
device /sys/bus/p
ci/devices/0000:00:1c.5
Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu0.
Disabling auto suspend mode for usb device 1-1.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu0.
Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu0.
+ log VERBOSE File
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load do
es not exist.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1d.0
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode File
/sys/devices/system/cpu/cpu0/cpufreq/on
demand/ignore_nice_load does not exist.

video-out module is disabled.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1e.0
Enabling ON power level for usb device 1-1.
Executing: echo 10 > /proc/sys/vm/dirty_background_ratio
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.0
Remounting filesystems.

Querying /dev/sda media type using udevinfo:
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo File
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load does not
exist.
File /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load does
not exist.
+ Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.2
[ -e /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq ]
+ THIS_CPU_MAXFREQ=fastest
+ THIS_CPU_MINFREQ=slowest
+ THIS_CPU_GOVERNOR=ondemand
+ THIS_CPU_IGNORE_NICE_LOAD=0
Disabling auto suspend mode for usb device 1-1.6.
Invoking module /usr/share/laptop-mode-tools/modules/wireless-ipw-power.
Enabled wakeup-on-LAN for eth0
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.3
Executing comand
Enabling ON power level for usb device 1-1.6.
rootfs skipped for LMT
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.6
+ cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:03:00.0
+ THIS_CPU_MAXFREQ=1333000

+ cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:09:00.0
+ THIS_CPU_MINFREQ=666000
+ log VERBOSE Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu1 to
1333000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU maximum frequency
for cpu /sys/d
evices/system/cpu/cpu1 to 1333000.
Not disabling auto suspend mode for usb device 1-1.6:1.0
sysfs skipped for LMT
type 'disk' on bus 'ata' detected
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu1 to 1333000
.
Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu1 to
1333000.
+ set_sysctl /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1333000
+ log VERBOSE Executing: echo 1333000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling
_max_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 1333000 >
/sys/devices/syste
m/cpu/cpu1/cpufreq/scaling_max_freq
Executing comand
Not enabling ON power level for usb device 1-1.6:1.0
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 1333000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_fr
eq
Executing: echo 1333000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
+ echo 1333000
+ log VERBOSE Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu1 to
666000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU minimum frequency
for cpu /sys/d
evices/system/cpu/cpu1 to 666000.proc skipped for LMT

Invoking module /usr/share/laptop-mode-tools/modules/wireless-iwl-power.
Not disabling auto suspend mode for usb device 1-1.6:1.1

Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:00.0
Querying /dev/sda media type using udevinfo:
Intel IPW Wireless power setting is disabled.
Cannot advertise speed 1000
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:00.1
Not enabling ON power level for usb device 1-1.6:1.1
devtmpfs skipped for LMT
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu1 to 666000.
Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu1 to
666000.
+ set_sysctl /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 666000
+ log VERBOSE Executing: echo 666000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_
min_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 666000 >
/sys/devices/system
/cpu/cpu1/cpufreq/scaling_min_freq
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:02.0
Restored speed to 1000 Mbit for eth0
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 666000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fre
q
Executing: echo 666000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
+ echo 666000
+ log VERBOSE Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu1 to
ondemand.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU frequency governor
for cpu /sys/
devices/system/cpu/cpu1 to ondemand.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:02.1
devpts skipped for LMT
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:02.2
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu1 to ondema
nd.
Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu1 to
ondemand.
+ /sbin/modprobe -q cpufreq_ondemand
type 'disk' on bus 'ata' detected
Not disabling auto suspend mode for usb device 1-1.6:1.2
Executing comand
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:02.3
Executing: hdparm -B 254 /dev/sda
+ log VERBOSE
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode
Intel IWL Wireless power setting is disabled.
tmpfs skipped for LMT
Activating Runtime PM for device type SPI
Not enabling ON power level for usb device 1-1.6:1.2

/sys/bus/spi/devices/* does not support Runtime PM
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo

+ set_sysctl /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor ondemand
+ log VERBOSE Executing: echo ondemand >
/sys/devices/system/cpu/cpu1/cpufreq/scalin
g_governor
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
ext4 mount options apply
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo ondemand >
/sys/devices/syst
em/cpu/cpu1/cpufreq/scaling_governor
Activating Runtime PM for device type i2c
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo ondemand >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_gover
nor
Executing: echo ondemand >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
Not disabling auto suspend mode for usb device 1-1.6:1.3
+ echo ondemand
+ [ -f /sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu1.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Not setting CPU ignore_nice_load
for cpu /sy
s/devices/system/cpu/cpu1.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-0
/dev/disk/by-uuid/2da818e6-743f-430e-91d8-ec32f13b3b70 not found in
PARTITIONS.
Executing comand

Not enabling ON power level for usb device 1-1.6:1.3
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-1
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu1.
Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu1.
+ log VERBOSE File
/sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load do
es not exist.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode File
/sys/devices/system/cpu/cpu1/cpufreq/on
demand/ignore_nice_load does not exist.
/ not found in PARTITIONS.

/dev/sda:
setting Advanced Power Management level to 0xfe (254)
APM_level = 254
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo File
/sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load does not
exist.
File /sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load does
not exist.
+ [ -e /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_min_freq ]
+ THIS_CPU_MAXFREQ=fastest
+ THIS_CPU_MINFREQ=slowest
+ THIS_CPU_GOVERNOR=ondemand
+ THIS_CPU_IGNORE_NICE_LOAD=0
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-10
Setting spindown timeout on drives to 7200 seconds.
+ cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-11
Checking /dev/disk/by-uuid/2da818e6-743f-430e-91d8-ec32f13b3b70 against
HD because P
ARTITIONS contains "auto".
+ THIS_CPU_MAXFREQ=1333000
Not disabling auto suspend mode for usb device 1-1:1.0
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-12
+ Executing comand
cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_min_freq
/dev/disk/by-uuid/2da818e6-743f-430e-91d8-ec32f13b3b70 has a persistent
device namin
g. Extracting real name

(hdparm configuration value = 244.)
Not enabling ON power level for usb device 1-1:1.0
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-13
+ THIS_CPU_MINFREQ=666000
+ log VERBOSE Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu2 to
1333000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU maximum frequency
for cpu /sys/d
evices/system/cpu/cpu2 to 1333000.
Invoking module /usr/share/laptop-mode-tools/modules/wireless-power.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-14
Checking /dev/disk/by-uuid/2da818e6-743f-430e-91d8-ec32f13b3b70 against
HD because P
ARTITIONS contains "auto".
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-2
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu2 to 1333000
.
Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu2 to
1333000.
+ set_sysctl /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq 1333000
+ log VERBOSE Executing: echo 1333000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling
_max_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 1333000 >
/sys/devices/syste
m/cpu/cpu2/cpufreq/scaling_max_freq
Not disabling auto suspend mode for usb device 2-0:1.0
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-3
Considering /dev/sda.
Querying /dev/sda media type using udevinfo:

Generic wireless interface power saving module is disabled.
Module /usr/local/lib/laptop-mode-tools/modules/* is not executable or
is to be skip
ped.
Considering the persistent device names

+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 1333000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_fr
eq
Executing: echo 1333000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
+ echo 1333000
+ log VERBOSE Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu2 to
666000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU minimum frequency
for cpu /sys/d
evices/system/cpu/cpu2 to 666000.
Module /usr/local/share/laptop-mode-tools/modules/* is not executable or
is to be sk
ipped.
Not enabling ON power level for usb device 2-0:1.0
contains /dev/sda, which is in HD, so we will remount it.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-4
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu2 to 666000.
Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu2 to
666000.
+ set_sysctl /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 666000
+ log VERBOSE Executing: echo 666000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_
min_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 666000 >
/sys/devices/system
/cpu/cpu2/cpufreq/scaling_min_freq
Chaning dev to real_dev

Module /etc/laptop-mode/modules/* is not executable or is to be skipped.
Disabling auto suspend mode for usb device 2-1.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 666000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fre
q
Executing: echo 666000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
+ echo 666000
+ log VERBOSE Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu2 to
ondemand.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-5
[ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU frequency governor
for cpu /sys/
devices/system/cpu/cpu2 to ondemand.
Executing comand
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu2 to ondema
nd.
Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu2 to
ondemand.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-6
Enabling ON power level for usb device 2-1.
Original options:
rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordere
d

Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-7
+ /sbin/modprobe -q cpufreq_ondemand
Reducing file system type.
type 'disk' on bus 'ata' detected
+ log VERBOSE
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-8
No saved mount options, so apparently we never remounted this filesystem
during this
session.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo

+ set_sysctl /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor ondemand
+ log VERBOSE Executing: echo ondemand >
/sys/devices/system/cpu/cpu2/cpufreq/scalin
g_governor
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo ondemand >
/sys/devices/syst
em/cpu/cpu2/cpufreq/scaling_governor
Not remounting.
Querying /dev/sda media type using udevinfo:
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-9
Disabling auto suspend mode for usb device 2-1.2.
Executing: /sbin/blockdev --setfra 256 /dev/sda1
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo ondemand >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_gover
nor
Executing: echo ondemand >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
+ echo ondemand
+ type 'disk' on bus 'ata' detected
[ -f /sys/devices/system/cpu/cpu2/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu2.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Not setting CPU ignore_nice_load
for cpu /sy
s/devices/system/cpu/cpu2.
Executing comand
Enabling ON power level for usb device 2-1.2.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu2.
Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu2.
+ log VERBOSE File
/sys/devices/system/cpu/cpu2/cpufreq/ondemand/ignore_nice_load do
es not exist.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode File
/sys/devices/system/cpu/cpu2/cpufreq/on
demand/ignore_nice_load does not exist.

+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo File
/sys/devices/system/cpu/cpu2/cpufreq/ondemand/ignore_nice_load does not
exist.
File /sys/devices/system/cpu/cpu2/cpufreq/ondemand/ignore_nice_load does
not exist.
+ [ -e /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_min_freq ]
+ THIS_CPU_MAXFREQ=fastest
+ THIS_CPU_MINFREQ=slowest
+ THIS_CPU_GOVERNOR=ondemand
+ THIS_CPU_IGNORE_NICE_LOAD=0
+ cat /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq
Executing comand
Not disabling auto suspend mode for usb device 2-1.2:1.0

+ THIS_CPU_MAXFREQ=1333000
Executing: hdparm -S 244 /dev/sda
Not enabling ON power level for usb device 2-1.2:1.0
tmpfs skipped for LMT

+ Disabling auto suspend mode for usb device 2-1.4.
cat /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_min_freq
tmpfs skipped for LMT
+ THIS_CPU_MINFREQ=666000
+ log VERBOSE Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu3 to
1333000.
+ [ x1 = x1
/dev/sda:
setting standby to 244 (2 hours)
]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU maximum frequency
for cpu /sys/d
evices/system/cpu/cpu3 to 1333000.
ext4 mount options apply
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu3 to 1333000
.
Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu3 to
1333000.
+ set_sysctl /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq 1333000
+ log VERBOSE Executing: echo 1333000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling
_max_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 1333000 >
/sys/devices/syste
m/cpu/cpu3/cpufreq/scaling_max_freq
+ [ VERBOSE/dev/sda6 not found in PARTITIONS.
= VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 1333000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_fr
eq
Executing: echo 1333000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
+ echo 1333000
+ log VERBOSE Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu3 to
666000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU minimum frequency
for cpu /sys/d
evices/system/cpu/cpu3 to 666000.
/home not found in PARTITIONS.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu3 to 666000.
Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu3 to
666000.
+ set_sysctl /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 666000
+ log VERBOSEChecking /dev/sda6 against HD because PARTITIONS contains
"auto".
Executing: echo 666000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 666000 >
/sys/devices/system
/cpu/cpu3/cpufreq/scaling_min_freq
Enabling ON power level for usb device 2-1.4.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 666000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fre
qChecking /dev/sda6 against HD because PARTITIONS contains "auto".

Executing: echo 666000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
+ echo 666000
+ log VERBOSE Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu3 to
ondemand.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU frequency governor
for cpu /sys/
devices/system/cpu/cpu3 to ondemand.
Not disabling auto suspend mode for usb device 2-1.4:1.0
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu3 to ondema
nd.
Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu3 to
ondemand.
Considering /dev/sda.
+ /sbin/modprobe -q cpufreq_ondemand
Not enabling ON power level for usb device 2-1.4:1.0
/dev/sda6 contains /dev/sda, which is in HD, so we will remount it.
+ log VERBOSE
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode
Original options: rw,relatime,user_xattr,acl,barrier=1,data=ordered
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo

+ set_sysctl /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor ondemand
+ log VERBOSE Executing: echo ondemand >
/sys/devices/system/cpu/cpu3/cpufreq/scalin
g_governor
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo ondemand >
/sys/devices/syst
em/cpu/cpu3/cpufreq/scaling_governor
Not disabling auto suspend mode for usb device 2-1.4:1.1
Reducing file system type.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo ondemand >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_gover
nor
Executing: echo ondemand >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
+ echo ondemand
No saved mount options, so apparently we never remounted this filesystem
during this
session.
Not enabling ON power level for usb device 2-1.4:1.1
Not remounting.
Executing: /sbin/blockdev --setfra 256 /dev/sda6
Not disabling auto suspend mode for usb device 2-1:1.0

Not enabling ON power level for usb device 2-1:1.0
rpc_pipefs skipped for LMT
fusectl skipped for LMT
Disabling auto suspend mode for usb device usb1.
binfmt_misc skipped for LMT
Enabling ON power level for usb device usb1.
Disabling auto suspend mode for usb device usb2.
Enabling ON power level for usb device usb2.
+ [ -f /sys/devices/system/cpu/cpu3/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu3.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Not setting CPU ignore_nice_load
for cpu /sy
s/devices/system/cpu/cpu3.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu3.
Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu3.
+ log VERBOSE File
/sys/devices/system/cpu/cpu3/cpufreq/ondemand/ignore_nice_load do
es not exist.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode File
/sys/devices/system/cpu/cpu3/cpufreq/on
demand/ignore_nice_load does not exist.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo File
/sys/devices/system/cpu/cpu3/cpufreq/ondemand/ignore_nice_load does not
exist.
File /sys/devices/system/cpu/cpu3/cpufreq/ondemand/ignore_nice_load does
not exist.
+ [ -e /sys/devices/system/cpu/cpufreq/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/cpuidle/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/kernel_max/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/modalias/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/offline/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/online/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/possible/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/power/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/present/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/probe/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/release/cpufreq/cpuinfo_min_freq ]
+ [ -e
/sys/devices/system/cpu/sched_smt_power_savings/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/uevent/cpufreq/cpuinfo_min_freq ]
+ [ -f /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Setting CPU ignore_nice_load for all cpus
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU ignore_nice_load for
all cpus
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU ignore_nice_load for all cpus
Setting CPU ignore_nice_load for all cpus
+ set_sysctl /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load 0
+ log VERBOSE Executing: echo 0 >
/sys/devices/system/cpu/cpufreq/ondemand/ignore_ni
ce_load
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 0 >
/sys/devices/system/cpu/
cpufreq/ondemand/ignore_nice_load
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 0 >
/sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
Executing: echo 0 >
/sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
+ echo 0

if [ x$CONTROL_CPU_THROTTLING = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a
x$CONTROL_C
PU_THROTTLING = xauto ]; then
if [ $ON_AC -eq 1 ] ; then
if [ "$ACTIVATE" -eq 1 ] ; then
CPU_THROTTLING="$LM_AC_CPU_THROTTLING"
else
CPU_THROTTLING="$NOLM_AC_CPU_THROTTLING"
fi
else
CPU_THROTTLING="$BATT_CPU_THROTTLING"
fi
for THISCPU in /proc/acpi/processor/* ; do
if [ -e $THISCPU/throttling ]; then
NUM_LEVELS=`cat $THISCPU/throttling | grep
"T[0123456789]*\:
" | wc -l`
case "$CPU_THROTTLING" in
"minimum")
THIS_CPU_THROTTLING=0
;;
"medium")
# Divide but round up: that way,
"medium" on a two-l
evel system will
# lead to full throttling -- which is
50% on my syst
em, quite reasonable.
THIS_CPU_THROTTLING=$(( ($NUM_LEVELS /
2 ) ))
;;
"maximum")
THIS_CPU_THROTTLING=$(($NUM_LEVELS - 1))
;;
*)
THIS_CPU_THROTTLING="$CPU_THROTTLING"
esac

log "VERBOSE" "Setting throttling level for cpu
$THISCPU to
$THIS_CPU_THROTTLING."
set_sysctl $THISCPU/throttling $THIS_CPU_THROTTLING
fi
done
fi
+ [ x0 = x1 ]
+ [ x1 = x1 -a x0 = xauto ]

Laptop mode disabled, not active.


$ ls /var/run/laptop-mode-tools/
enabled state


$ cat /var/run/laptop-mode-tools/state
0 1 0 disabled


$ cpufreq-info | grep governor
available cpufreq governors: ondemand, userspace, powersave,
conservative, perform
ance
The governor "ondemand" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, perform
ance
The governor "ondemand" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, perform
ance
The governor "ondemand" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, perform
ance
The governor "ondemand" may decide which speed to use

* The CPU governor is right now!
and if I start LMT now everything works

$ sudo invoke-rc.d laptop-mode start
Enabling debug mode for module /etc/laptop-mode/conf.d/cpufreq.conf
Determining power state from /sys/class/power_supply/ACAD/online.
Not trying other options, already found a power supply.
Battery level polling is disabled.
Prelim lock acquisition on descriptor 8 with pid 6366
Prelim lock acquisition on descriptor 9 with pid 6366
Now invoking lmt_main_function with arguments -- auto
On AC power: Activating, because ENABLE_LAPTOP_MODE_ON_AC is set.
On AC, not checking minimum battery charge.
Checking if desired state is different from current state.
Invoking module /usr/share/laptop-mode-tools/modules/ac97-powersave.
AC97 power saving is not available. Perhaps CONFIG_SND_AC97_POWER_SAVE
option
is not set in the kernel config, or the snd_ac97_codec module is not loaded.
Invoking module /usr/share/laptop-mode-tools/modules/battery-level-polling.
Battery level polling is disabled.
Invoking module /usr/share/laptop-mode-tools/modules/bluetooth.
Invoking module
/usr/share/laptop-mode-tools/modules/configuration-file-control.
Invoking module /usr/share/laptop-mode-tools/modules/cpufreq.
+ disableDebug /usr/share/laptop-mode-tools/modules/cpufreq
+ . /usr/share/laptop-mode-tools/modules/cpufreq
#! /bin/sh
#
# Laptop mode tools module to handle CPU frequency settings.
#

# Set kernel setting, showing an error if this fails.
# Parameter 1: sysctl/proc path
# Parameter 2: the value
set_sysctl() {
log "VERBOSE" "Executing: echo $2 > $1"
if ! echo "$2" > "$1" ; then
echo "SETTING OF KERNEL PARAMETER FAILED: echo $2 \> $1"
fi
+ }

basename
#
/usr/share/laptop-mode-tools/modules/cpufreq# get_medium_value
#

# Get the medium value from a list of numerical values.
# $1 = file containing the list of values
#
+ get_medium_value() {
cat "$1" | tr ' ' '\n' | sort -n | awk -v RS=""
'{n=split($0,a); print a[int
((n+1)/2)]}'
cut -d}
. -f1


if [ x$CONTROL_CPU_FREQUENCY = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a
x$CONTROL_CPU
_FREQUENCY = xauto ]; then
if [ $ON_AC -eq 1 ] ; then
if [ "$ACTIVATE" -eq 1 ] ; then
CPU_MAXFREQ="$LM_AC_CPU_MAXFREQ"
CPU_MINFREQ="$LM_AC_CPU_MINFREQ"
CPU_GOVERNOR="$LM_AC_CPU_GOVERNOR"
CPU_IGNORE_NICE_LOAD="$LM_AC_CPU_IGNORE_NICE_LOAD"
else
CPU_MAXFREQ="$NOLM_AC_CPU_MAXFREQ"
CPU_MINFREQ="$NOLM_AC_CPU_MINFREQ"
CPU_GOVERNOR="$NOLM_AC_CPU_GOVERNOR"

CPU_IGNORE_NICE_LOAD="$NOLM_AC_CPU_IGNORE_NICE_LOAD"
fi
else
+ CPU_MAXFREQ="$BATT_CPU_MAXFREQ"
CPU_MINFREQ="$BATT_CPU_MINFREQ"
tr [:lower:] CPU_GOVERNOR="$BATT_CPU_GOVERNOR"
[:upper:]
CPU_IGNORE_NICE_LOAD="$BATT_CPU_IGNORE_NICE_LOAD"
fi
for THISCPU in /sys/devices/system/cpu/* ; do
if [ -e $THISCPU/cpufreq/cpuinfo_min_freq ]; then
THIS_CPU_MAXFREQ="$CPU_MAXFREQ"
THIS_CPU_MINFREQ="$CPU_MINFREQ"
THIS_CPU_GOVERNOR="$CPU_GOVERNOR"
+ THIS_CPU_IGNORE_NICE_LOAD="$CPU_IGNORE_NICE_LOAD"

sed case "$CPU_MAXFREQ" in
s/-/_/g "slowest")

THIS_CPU_MAXFREQ=`cat
$THISCPU/cpufreq/cpuinfo_min_f
req`
;;
"medium")
THIS_CPU_MAXFREQ=$(get_medium_value
$THISCPU/cpufreq
/scaling_available_frequencies)
;;
"fastest")
THIS_CPU_MAXFREQ=`cat
$THISCPU/cpufreq/cpuinfo_max_f
req`
;;
esac

case "$CPU_MINFREQ" in
"slowest")
THIS_CPU_MINFREQ=`cat
$THISCPU/cpufreq/cpuinfo_min_f
req`
;;
"medium")
THIS_CPU_MINFREQ=$(get_medium_value
$THISCPU/cpufreq
/scaling_available_frequencies)
;;
"fastest")
THIS_CPU_MINFREQ=`cat
$THISCPU/cpufreq/cpuinfo_max_f
req`
;;
esac

log "VERBOSE" "Setting CPU maximum frequency
for cpu $THISCP
U to $THIS_CPU_MAXFREQ."
set_sysctl $THISCPU/cpufreq/scaling_max_freq
$THIS_CPU_MAXFR
EQ
log "VERBOSE" "Setting CPU minimum frequency
for cpu $THISCP
U to $THIS_CPU_MINFREQ."
set_sysctl $THISCPU/cpufreq/scaling_min_freq
$THIS_CPU_MINFR
EQ
log "VERBOSE" "Setting CPU frequency governor
for cpu $THISC
PU to $THIS_CPU_GOVERNOR."
log "VERBOSE" "`/sbin/modprobe -q
cpufreq_$THIS_CPU_GOVERNOR
2>&1`"
set_sysctl $THISCPU/cpufreq/scaling_governor
$THIS_CPU_GOVER
NOR

# Retain for backward compatibility
if [ -f
"$THISCPU/cpufreq/$THIS_CPU_GOVERNOR/ignore_nice_loa
d" ] ; then
log "VERBOSE" "Setting CPU
ignore_nice_load for cpu
$THISCPU to $THIS_CPU_IGNORE_NICE_LOAD."
set_sysctl
$THISCPU/cpufreq/$THIS_CPU_GOVERNOR/ignor
e_nice_load $THIS_CPU_IGNORE_NICE_LOAD
else
log "VERBOSE" "Not setting CPU
ignore_nice_load for
cpu $THISCPU."
log "VERBOSE" "File
$THISCPU/cpufreq/$THIS_CPU_GOVER
NOR/ignore_nice_load does not exist."
fi
fi
done

# For kernels 2.6.32 and above, the sysfs interface for
OnDemand per-core po
wer savings has changed.
# Instead of per-core, the new interface is generic and a
single one
if [ -f
"/sys/devices/system/cpu/cpufreq/$THIS_CPU_GOVERNOR/ignore_nice_load
" ]; then
log "VERBOSE" "Setting CPU ignore_nice_load for all cpus"
set_sysctl
/sys/devices/system/cpu/cpufreq/$THIS_CPU_GOVERNOR/ignore
_nice_load $CPU_IGNORE_NICE_LOAD
else
log "VERBOSE" "No generic CPU ignore_nice_load
interface available"
fi
fi
+ [ x1 = x1 ]
+ [ 1 -eq 1 ]
+ [ 1 -eq 1 ]
+ CPU_MAXFREQ=fastest
+ CPU_MINFREQ=slowest
+ CPU_GOVERNOR=ondemand
+ CPU_IGNORE_NICE_LOAD=1
+ [ -e /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq ]
+ THIS_CPU_MAXFREQ=fastest
+ THIS_CPU_MINFREQ=slowest
+ THIS_CPU_GOVERNOR=ondemand
+ THIS_CPU_IGNORE_NICE_LOAD=1+
[ x1 = x1 ]
+ set +vx
+ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
+ THIS_CPU_MAXFREQ=1333000
Invoking module /usr/share/laptop-mode-tools/modules/dpms-standby.
+ cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq
+ THIS_CPU_MINFREQ=666000
+ log VERBOSE Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu0 to
1333000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU maximum frequency
for cpu /sys/d
evices/system/cpu/cpu0 to 1333000.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu0 to 1333000
.
Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu0 to
1333000.
+ set_sysctl /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1333000
+ log VERBOSE Executing: echo 1333000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling
_max_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 1333000 >
/sys/devices/syste
m/cpu/cpu0/cpufreq/scaling_max_freq
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 1333000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_fr
eq
Executing: echo 1333000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
+ echo 1333000
+ log VERBOSE Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu0 to
666000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU minimum frequency
for cpu /sys/d
evices/system/cpu/cpu0 to 666000.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu0 to 666000.
Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu0 to
666000.
+ set_sysctl /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 666000
+ log VERBOSE Executing: echo 666000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_
min_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 666000 >
/sys/devices/system
/cpu/cpu0/cpufreq/scaling_min_freq
Invoking module /usr/share/laptop-mode-tools/modules/eee-superhe.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 666000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_fre
q
Executing: echo 666000 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
+ echo 666000
+ log VERBOSE Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu0 to
ondemand.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU frequency governor
for cpu /sys/
devices/system/cpu/cpu0 to ondemand.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu0 to ondema
nd.
Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu0 to
ondemand.
+ /sbin/modprobe -q cpufreq_ondemand
+ log VERBOSE
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode
Control file is /sys/devices/platform/eeepc/cpufv
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo

+ set_sysctl /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
+ log VERBOSE Executing: echo ondemand >
/sys/devices/system/cpu/cpu0/cpufreq/scalin
g_governor
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo ondemand >
/sys/devices/syst
em/cpu/cpu0/cpufreq/scaling_governor
Platform does not support SuperHe
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo ondemand >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_gover
nor
Executing: echo ondemand >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+ echo ondemand
+ [ -f /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu0.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
Invoking module /usr/share/laptop-mode-tools/modules/ethernet.
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Not setting CPU ignore_nice_load
for cpu /sy
s/devices/system/cpu/cpu0.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu0.
Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu0.
+ log VERBOSE File
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load do
es not exist.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode File
/sys/devices/system/cpu/cpu0/cpufreq/on
demand/ignore_nice_load does not exist.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo File
/sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load does not
exist.
File /sys/devices/system/cpu/cpu0/cpufreq/ondemand/ignore_nice_load does
not exist.
+ [ -e /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq ]
+ THIS_CPU_MAXFREQ=fastest
+ THIS_CPU_MINFREQ=slowest
+ THIS_CPU_GOVERNOR=ondemand
+ THIS_CPU_IGNORE_NICE_LOAD=1
+ cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
+ THIS_CPU_MAXFREQ=1333000
+ cat /sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
+ THIS_CPU_MINFREQ=666000
+ log VERBOSE Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu1 to
1333000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU maximum frequency
for cpu /sys/d
evices/system/cpu/cpu1 to 1333000.
ethernet: /sys/devices/pci0000:00/0000:00:1c.5/0000:09:00.0/net/eth0
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu1 to 1333000
.
Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu1 to
1333000.
Invoking module /usr/share/laptop-mode-tools/modules/exec-commands.
ethernet: /sys/devices/pci0000:00/0000:00:1c.5/0000:09:00.0
+ set_sysctl /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq 1333000
+ log VERBOSE Executing: echo 1333000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling
_max_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 1333000 >
/sys/devices/syste
m/cpu/cpu1/cpufreq/scaling_max_freq
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 1333000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_fr
eq
Executing: echo 1333000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
+ echo 1333000
+ log VERBOSE Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu1 to
666000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU minimum frequency
for cpu /sys/d
evices/system/cpu/cpu1 to 666000.

+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu1 to 666000.
Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu1 to
666000.
+ set_sysctl /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 666000
+ log VERBOSE Executing: echo 666000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_
min_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 666000 >
/sys/devices/system
/cpu/cpu1/cpufreq/scaling_min_freq
Enabled wakeup-on-LAN for eth0
Executing comand
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 666000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_fre
q
Executing: echo 666000 >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
+ echo 666000
+ log VERBOSE Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu1 to
ondemand.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU frequency governor
for cpu /sys/
devices/system/cpu/cpu1 to ondemand.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu1 to ondema
nd.
Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu1 to
ondemand.
+ /sbin/modprobe -q cpufreq_ondemand

+ log VERBOSE
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo

+ set_sysctl /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor ondemand
+ log VERBOSE Executing: echo ondemand >
/sys/devices/system/cpu/cpu1/cpufreq/scalin
g_governor
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo ondemand >
/sys/devices/syst
em/cpu/cpu1/cpufreq/scaling_governor
Invoking module /usr/share/laptop-mode-tools/modules/hal-polling.
Executing comand
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo ondemand >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_gover
nor
Executing: echo ondemand >
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
+ echo ondemand
+ [ -f /sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu1.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Not setting CPU ignore_nice_load
for cpu /sy
s/devices/system/cpu/cpu1.
Cannot advertise speed 1000
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu1.
Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu1.
+ log VERBOSE File
/sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load do
es not exist.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode File
/sys/devices/system/cpu/cpu1/cpufreq/on
demand/ignore_nice_load does not exist.
Restored speed to 1000 Mbit for eth0

+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo File
/sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load does not
exist.
File /sys/devices/system/cpu/cpu1/cpufreq/ondemand/ignore_nice_load does
not exist.
+ [ -e /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_min_freq ]
+ THIS_CPU_MAXFREQ=fastest
+ THIS_CPU_MINFREQ=slowest
+ THIS_CPU_GOVERNOR=ondemand
+ THIS_CPU_IGNORE_NICE_LOAD=1
+ cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq
+ THIS_CPU_MAXFREQ=1333000
+ cat /sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_min_freq
+ THIS_CPU_MINFREQ=666000
+ log VERBOSE Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu2 to
1333000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU maximum frequency
for cpu /sys/d
evices/system/cpu/cpu2 to 1333000.
Invoking module /usr/share/laptop-mode-tools/modules/hdparm.
Executing comand
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu2 to 1333000
.
Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu2 to
1333000.
+ set_sysctl /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq 1333000
+ log VERBOSE Executing: echo 1333000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling
_max_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 1333000 >
/sys/devices/syste
m/cpu/cpu2/cpufreq/scaling_max_freq

+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 1333000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_fr
eq
Executing: echo 1333000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq
+ echo 1333000
+ log VERBOSE Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu2 to
666000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU minimum frequency
for cpu /sys/d
evices/system/cpu/cpu2 to 666000.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu2 to 666000.
Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu2 to
666000.
+ set_sysctl /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 666000
+ log VERBOSE Executing: echo 666000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_
min_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 666000 >
/sys/devices/system
/cpu/cpu2/cpufreq/scaling_min_freq
Executing comand
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 666000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_fre
q
Executing: echo 666000 >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
+ echo 666000
+ log VERBOSE Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu2 to
ondemand.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU frequency governor
for cpu /sys/
devices/system/cpu/cpu2 to ondemand.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu2 to ondema
nd.
Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu2 to
ondemand.
+ /sbin/modprobe -q cpufreq_ondemand

+ log VERBOSE
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
Invoking module /usr/share/laptop-mode-tools/modules/intel-hda-powersave.
Executing comand
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode
Setting powermanagement on drives to 254.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo

+ set_sysctl /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor ondemand
+ log VERBOSE Executing: echo ondemand >
/sys/devices/system/cpu/cpu2/cpufreq/scalin
g_governor
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo ondemand >
/sys/devices/syst
em/cpu/cpu2/cpufreq/scaling_governor

Querying /dev/sda media type using udevinfo:
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo ondemand >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_gover
nor
Executing: echo ondemand >
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
+ echo ondemand
+ [ -f /sys/devices/system/cpu/cpu2/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu2.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Not setting CPU ignore_nice_load
for cpu /sy
s/devices/system/cpu/cpu2.
Executing comand
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu2.
Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu2.
+ log VERBOSE File
/sys/devices/system/cpu/cpu2/cpufreq/ondemand/ignore_nice_load do
es not exist.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode File
/sys/devices/system/cpu/cpu2/cpufreq/on
demand/ignore_nice_load does not exist.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo File
/sys/devices/system/cpu/cpu2/cpufreq/ondemand/ignore_nice_load does not
exist.
File /sys/devices/system/cpu/cpu2/cpufreq/ondemand/ignore_nice_load does
not exist.
+ [ -e /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_min_freq ]
+ THIS_CPU_MAXFREQ=fastest
+ THIS_CPU_MINFREQ=slowest
+ THIS_CPU_GOVERNOR=ondemand
+ THIS_CPU_IGNORE_NICE_LOAD=1

+ cat /sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq
+ THIS_CPU_MAXFREQ=1333000
+ cattype 'disk' on bus 'ata' detected
/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_min_freq
Intel HDA power save mode disabled.
Executing comand
+ THIS_CPU_MINFREQ=666000
+ log VERBOSE Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu3 to
1333000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU maximum frequency
for cpu /sys/d
evices/system/cpu/cpu3 to 1333000.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU maximum frequency for cpu
/sys/devices/system/cpu/cpu3 to 1333000
.
Setting CPU maximum frequency for cpu /sys/devices/system/cpu/cpu3 to
1333000.
+ set_sysctl /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq 1333000
+ log VERBOSE Executing: echo 1333000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling
_max_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]

+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 1333000 >
/sys/devices/syste
m/cpu/cpu3/cpufreq/scaling_max_freq
Intel HDA Controller power save set to N.
Querying /dev/sda media type using udevinfo:
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 1333000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_fr
eq
Executing: echo 1333000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq
+ echo 1333000
+ log VERBOSE Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu3 to
666000.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU minimum frequency
for cpu /sys/d
evices/system/cpu/cpu3 to 666000.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU minimum frequency for cpu
/sys/devices/system/cpu/cpu3 to 666000.
Setting CPU minimum frequency for cpu /sys/devices/system/cpu/cpu3 to
666000.
+ set_sysctl /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq 666000
+ log VERBOSE Executing: echo 666000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_
min_freq
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 666000 >
/sys/devices/system
/cpu/cpu3/cpufreq/scaling_min_freq
Invoking module /usr/share/laptop-mode-tools/modules/intel-sata-powermgmt.
Executing comand
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 666000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_fre
q
Executing: echo 666000 >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
+ echo 666000
+ log VERBOSE Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu3 to
ondemand.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU frequency governor
for cpu /sys/
devices/system/cpu/cpu3 to ondemand.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU frequency governor for cpu
/sys/devices/system/cpu/cpu3 to ondema
nd.
Setting CPU frequency governor for cpu /sys/devices/system/cpu/cpu3 to
ondemand.
+ /sbin/modprobe -q cpufreq_ondemand

+ log VERBOSE
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode
Intel SATA link power saving set to max_performance for
/sys/class/scsi_host/host0/l
ink_power_management_policy.
type 'disk' on bus 'ata' detected
Intel SATA link power saving set to max_performance for
/sys/class/scsi_host/host1/l
ink_power_management_policy.
Executing: hdparm -B 254 /dev/sda
+ [ VERBOSE = VERBOSE ]
+ Intel SATA link power saving set to max_performance for
/sys/class/scsi_host/host2
/link_power_management_policy.
[ 1 = 1 ]
Executing comand
+ echo

+ set_sysctl /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor ondemand
+ log VERBOSE Executing: echo ondemand >
/sys/devices/system/cpu/cpu3/cpufreq/scalin
g_governor
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo ondemand >
/sys/devices/syst
em/cpu/cpu3/cpufreq/scaling_governor
Intel SATA link power saving set to max_performance for
/sys/class/scsi_host/host3/l
ink_power_management_policy.


/dev/sda:
setting Advanced Power Management level to 0xfe (254)
APM_level = 254
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo ondemand >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_gover
nor
Executing: echo ondemand >
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
Invoking module /usr/share/laptop-mode-tools/modules/laptop-mode.
+ echo ondemand
+ [ -f /sys/devices/system/cpu/cpu3/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu3.
Setting spindown timeout on drives to 20 seconds.
Executing comand
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Not setting CPU ignore_nice_load
for cpu /sy
s/devices/system/cpu/cpu3.
Invoking module /usr/share/laptop-mode-tools/modules/lcd-brightness.
Adjusting 2.6+ kernel parameters to enable laptop mode.
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Not setting CPU ignore_nice_load for cpu
/sys/devices/system/cpu/cpu3.
Not setting CPU ignore_nice_load for cpu /sys/devices/system/cpu/cpu3.
+ log VERBOSE File
/sys/devices/system/cpu/cpu3/cpufreq/ondemand/ignore_nice_load do
es not exist.
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode File
/sys/devices/system/cpu/cpu3/cpufreq/on
demand/ignore_nice_load does not exist.
Executing: echo 2 > /proc/sys/vm/laptop_mode
(hdparm configuration value = 4.)

Executing: echo 36000 > /proc/sys/vm/dirty_writeback_centisecs
+ [ VERBOSE = VERBOSE ]
Executing: echo 36000 > /proc/sys/vm/dirty_expire_centisecs
+ [ 1 = 1 ]
+ echo File
/sys/devices/system/cpu/cpu3/cpufreq/ondemand/ignore_nice_load does not
exist.
File /sys/devices/system/cpu/cpu3/cpufreq/ondemand/ignore_nice_load does
not exist.
+ [ -e /sys/devices/system/cpu/cpufreq/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/cpuidle/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/kernel_max/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/modalias/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/offline/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/online/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/possible/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/power/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/present/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/probe/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/release/cpufreq/cpuinfo_min_freq ]
+ [ -e
/sys/devices/system/cpu/sched_smt_power_savings/cpufreq/cpuinfo_min_freq ]
+ [ -e /sys/devices/system/cpu/uevent/cpufreq/cpuinfo_min_freq ]
+ [ -f /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load ]
+ log VERBOSE Setting CPU ignore_nice_load for all cpus
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Setting CPU ignore_nice_load for
all cpus
Querying /dev/sda media type using udevinfo:
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Setting CPU ignore_nice_load for all cpus
Setting CPU ignore_nice_load for all cpus
+ set_sysctl /sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load 1
+ log VERBOSE Executing: echo 1 >
/sys/devices/system/cpu/cpufreq/ondemand/ignore_ni
ce_load
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo 1 >
/sys/devices/system/cpu/
cpufreq/ondemand/ignore_nice_load
Executing: echo 60 > /proc/sys/vm/dirty_ratio
+ [ VERBOSE = VERBOSE ]
+ [ 1 = 1 ]
+ echo Executing: echo 1 >
/sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
Executing: echo 1 >
/sys/devices/system/cpu/cpufreq/ondemand/ignore_nice_load
+ echo 1

if [ x$CONTROL_CPU_THROTTLING = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a
x$CONTROL_C
PU_THROTTLING = xauto ]; then
if [ $ON_AC -eq 1 ] ; then
if [ "$ACTIVATE" -eq 1 ] ; then
CPU_THROTTLING="$LM_AC_CPU_THROTTLING"
else
CPU_THROTTLING="$NOLM_AC_CPU_THROTTLING"
fi
else
CPU_THROTTLING="$BATT_CPU_THROTTLING"
fi
for THISCPU in /proc/acpi/processor/* ; do
if [ -e $THISCPU/throttling ]; then
NUM_LEVELS=`cat $THISCPU/throttling | grep
"T[0123456789]*\:
" | wc -l`
case "$CPU_THROTTLING" in
"minimum")
THIS_CPU_THROTTLING=0
;;
"medium")
# Divide but round up: that way,
"medium" on a two-l
evel system will
# lead to full throttling -- which is
50% on my syst
em, quite reasonable.
THIS_CPU_THROTTLING=$(( ($NUM_LEVELS /
2 ) ))
;;
"maximum")
THIS_CPU_THROTTLING=$(($NUM_LEVELS - 1))
;;
*)
THIS_CPU_THROTTLING="$CPU_THROTTLING"
esac

log "VERBOSE" "Setting throttling level for cpu
$THISCPU to
$THIS_CPU_THROTTLING."
set_sysctl $THISCPU/throttling $THIS_CPU_THROTTLING
fi
done
fi
+ [ x0 = x1 ]
+ [ x1 = x1 -a x0 = xauto ]

type 'disk' on bus 'ata' detected
Invoking module /usr/share/laptop-mode-tools/modules/nmi-watchdog.
Querying /dev/sda media type using udevinfo:
type 'disk' on bus 'ata' detected
Executing: hdparm -S 4 /dev/sda
On AC power: setting NMI Watchdog Timer to 1
NMI Watchdog timer enabled

/dev/sda:
setting standby to 4 (20 seconds)
Invoking module /usr/share/laptop-mode-tools/modules/pcie-aspm.
On AC power: setting pcie_aspm to default
PCIe ASPM tweaking is prohibited by the kernel
Executing: echo 1 > /proc/sys/vm/dirty_background_ratio
Invoking module /usr/share/laptop-mode-tools/modules/runtime-pm.
Remounting filesystems.
Activating Runtime PM for device type PCI
rootfs skipped for LMT
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:00.0
sysfs skipped for LMT
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:02.0
Invoking module /usr/share/laptop-mode-tools/modules/sched-mc-power-savings.
proc skipped for LMT
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:16.0
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1a.0
devtmpfs skipped for LMT
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1b.0
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.0
On AC power: setting scheduler power saving to 0.
devpts skipped for LMT
Scheduler power saving is not available.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.1
Invoking module
/usr/share/laptop-mode-tools/modules/sched-smt-power-savings.
tmpfs skipped for LMT
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.4
ext4 mount options apply
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1c.5
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1d.0
/dev/disk/by-uuid/2da818e6-743f-430e-91d8-ec32f13b3b70 not found in
PARTITIONS.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1e.0
/ not found in PARTITIONS.
On AC power: setting scheduler power saving to 0.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.0
Checking /dev/disk/by-uuid/2da818e6-743f-430e-91d8-ec32f13b3b70 against
HD because P
ARTITIONS contains "auto".
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.2
Scheduler SMT power save mode disabled.
Invoking module /usr/share/laptop-mode-tools/modules/start-stop-programs.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.3
/dev/disk/by-uuid/2da818e6-743f-430e-91d8-ec32f13b3b70 has a persistent
device namin
g. Extracting real name

Setting Runtime PM auto for device /sys/bus/pci/devices/0000:00:1f.6
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:03:00.0
Checking /dev/disk/by-uuid/2da818e6-743f-430e-91d8-ec32f13b3b70 against
HD because P
ARTITIONS contains "auto".
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:09:00.0
Prepare to release locks for descriptors 8 & 9
Considering /dev/sda.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:00.0
Considering the persistent device names

Released locks for descriptors 8 & 9
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:00.1
Invoking module /usr/share/laptop-mode-tools/modules/syslog-conf.
contains /dev/sda, which is in HD, so we will remount it.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:02.0
Chaning dev to real_dev

Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:02.1
Original options:
rw,relatime,errors=remount-ro,user_xattr,acl,barrier=1,data=ordere
d
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:02.2
Updating /var/run/laptop-mode-tools/nolm-mountopts.
Setting Runtime PM auto for device /sys/bus/pci/devices/0000:ff:02.3
Invoking module /usr/share/laptop-mode-tools/modules/terminal-blanking.
START_SERVICES =
Reducing file system type.
STOP_SERVICES =
Removing commit mount option from original options.
Activating Runtime PM for device type SPI
Set terminal blanking timeout to 10 min, powerdown timeout to 10 min.
Terminal /dev/tty1 found, adjusting.
/sys/bus/spi/devices/* does not support Runtime PM
Invoking module /usr/share/laptop-mode-tools/modules/usb-autosuspend.
Activating Runtime PM for device type i2c
Executing: mount /dev/sda1 / -t ext4 -o
remount,rw,relatime,errors=remount-ro,user_x
attr,acl,barrier=1,data=ordered,commit=360
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-0
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-1
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-10
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-11
Disabling autosuspend mode for USBCORE Controller, with timeout 0.
Not disabling auto suspend mode for usb device 1-0:1.0
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-12
Not enabling ON power level for usb device 1-0:1.0
Invoking module /usr/share/laptop-mode-tools/modules/video-out.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-13
Disabling auto suspend mode for usb device 1-1.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-14
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-2
Enabling ON power level for usb device 1-1.
video-out module is disabled.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-3
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-4
Disabling auto suspend mode for usb device 1-1.6.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-5
Enabling ON power level for usb device 1-1.6.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-6
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-7
Invoking module /usr/share/laptop-mode-tools/modules/wireless-ipw-power.
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-8
Setting Runtime PM auto for device /sys/bus/i2c/devices/i2c-9
Not disabling auto suspend mode for usb device 1-1.6:1.0
Not enabling ON power level for usb device 1-1.6:1.0
Intel IPW Wireless power setting is disabled.
Invoking module /usr/share/laptop-mode-tools/modules/wireless-iwl-power.
Not disabling auto suspend mode for usb device 1-1.6:1.1
Not enabling ON power level for usb device 1-1.6:1.1
Not disabling auto suspend mode for usb device 1-1.6:1.2
Not enabling ON power level for usb device 1-1.6:1.2
Intel IWL Wireless power setting is disabled.
Invoking module /usr/share/laptop-mode-tools/modules/wireless-power.
Not disabling auto suspend mode for usb device 1-1.6:1.3
Not enabling ON power level for usb device 1-1.6:1.3
Generic wireless interface power saving module is disabled.
Not disabling auto suspend mode for usb device 1-1:1.0
Not enabling ON power level for usb device 1-1:1.0
Module /usr/local/lib/laptop-mode-tools/modules/* is not executable or
is to be skip
ped.
Module /usr/local/share/laptop-mode-tools/modules/* is not executable or
is to be sk
ipped.
Not disabling auto suspend mode for usb device 2-0:1.0
Module /etc/laptop-mode/modules/* is not executable or is to be skipped.
Not enabling ON power level for usb device 2-0:1.0
Disabling auto suspend mode for usb device 2-1.
Enabling ON power level for usb device 2-1.
Disabling auto suspend mode for usb device 2-1.2.
Enabling ON power level for usb device 2-1.2.
Not disabling auto suspend mode for usb device 2-1.2:1.0
Not enabling ON power level for usb device 2-1.2:1.0
Disabling auto suspend mode for usb device 2-1.4.
Enabling ON power level for usb device 2-1.4.
Not disabling auto suspend mode for usb device 2-1.4:1.0
Not enabling ON power level for usb device 2-1.4:1.0
Not disabling auto suspend mode for usb device 2-1.4:1.1
Not enabling ON power level for usb device 2-1.4:1.1
Not disabling auto suspend mode for usb device 2-1:1.0
Not enabling ON power level for usb device 2-1:1.0
Disabling auto suspend mode for usb device usb1.
Enabling ON power level for usb device usb1.
Disabling auto suspend mode for usb device usb2.
Enabling ON power level for usb device usb2.
Executing: /sbin/blockdev --setfra 6144 /dev/sda1

tmpfs skipped for LMT
tmpfs skipped for LMT
ext4 mount options apply
/dev/sda6 not found in PARTITIONS.
/home not found in PARTITIONS.
Checking /dev/sda6 against HD because PARTITIONS contains "auto".
Checking /dev/sda6 against HD because PARTITIONS contains "auto".
Considering /dev/sda.
/dev/sda6 contains /dev/sda, which is in HD, so we will remount it.
Original options: rw,relatime,user_xattr,acl,barrier=1,data=ordered
Updating /var/run/laptop-mode-tools/nolm-mountopts.
Reducing file system type.
Removing commit mount option from original options.
Executing: mount /dev/sda6 /home -t ext4 -o
remount,rw,relatime,user_xattr,acl,barri
er=1,data=ordered,commit=360
Executing: /sbin/blockdev --setfra 6144 /dev/sda6

rpc_pipefs skipped for LMT
fusectl skipped for LMT
binfmt_misc skipped for LMT
Laptop mode enabled, active.


$ ls /var/run/laptop-mode-tools/
enabled nolm-mountopts start-stop-undo-actions state


$ cat /var/run/laptop-mode-tools/state
1 1 1 enabled


$ cpufreq-info | grep governor
available cpufreq governors: ondemand, userspace, powersave,
conservative, perform
ance
The governor "ondemand" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, perform
ance
The governor "ondemand" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, perform
ance
The governor "ondemand" may decide which speed to use
available cpufreq governors: ondemand, userspace, powersave,
conservative, perform
ance
The governor "ondemand" may decide which speed to use
syslog

Ritesh Raj Sarraf

unread,
May 22, 2013, 4:00:02 PM5/22/13
to
On Thursday 23 May 2013 12:39 AM, Marco Pattaro wrote:
> Hallo,
> I did the test with DEBUG=1, sadly it did not logged the full
> output to syslog (attached laptop-mode part), much more is printed on
> stderr. I did log a shutdown/boot, then I did some tests which I
> report here (lot of text follows).
Hmmm!! Yes. You are right. The debug messages are only redirected to the
active console.


It does show in the logs that it set the scaling governor to ondemand.

+ set_sysctl /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor ondemand
+ log VERBOSE Executing: echo ondemand >
/sys/devices/system/cpu/cpu3/cpufreq/scalin
g_governor
+ [ x1 = x1 ]
+ [ -x /usr/bin/logger -a VERBOSE != STATUS ]
+ [ VERBOSE = MSG ]
+ [ VERBOSE = ERR ]
+ [ VERBOSE = VERBOSE ]
+ [ x1 = x1 ]
+ logger -p daemon.debug -t laptop-mode Executing: echo ondemand >
/sys/devices/syst
em/cpu/cpu3/cpufreq/scaling_governor
Intel SATA link power saving set to max_performance for
/sys/class/scsi_host/host3/l
ink_power_management_policy.


I am not sure if that log is from the system boot or during your manual
restart of the service. The log messages with a timestamp will help you
determine that.

Apart from that, there are some items you could try:

1) Disable LMT. After boot is complete, try to manually start LMT. If
ondemand is reflected, then something else is interfering.
2) On system boot, LMT will start as soon as the udev subsystem is
activated. At that point, if syslog is not available, your logs will not
be available in syslog.
3) If you are using systemd as your init, some parts of udev is service
now by systemd. Though we have systemd support, there could be a miss of
logs there.


BTW, on my box, I see ondeamnd to be active.

rrs@zan:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ondemand


Meanwhile, I will reboot my box and see if I can reproduce the problem.
Thanks for spending the time to debug it.

signature.asc

Ritesh Raj Sarraf

unread,
May 23, 2013, 9:00:04 AM5/23/13
to
tag 709239 +unreproducible, moreinfo
thanks

On Thursday 23 May 2013 01:19 AM, Ritesh Raj Sarraf wrote:
> Meanwhile, I will reboot my box and see if I can reproduce the problem.
> Thanks for spending the time to debug it.

I rebooted my box and was able to see the ondemand governor effective on
first boot.
signature.asc
0 new messages