Okay, well, I've found
http://packages.debian.org/sid/all/l...tools/filelist. Perhaps it might be in
Code:
/etc/acpi/actions/lm_ac_adapter.sh
/etc/acpi/actions/lm_battery.sh
You're looking for code along the lines of
Code:
ac_adapter)
case "$2" in
AC*)
case "$4" in
00000000)
echo "conservative" >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo -n $minspeed >$setspeed
#/etc/laptop-mode/laptop-mode start
;;
(particularly the 'echo "conservative"' part).
Another possibility is /etc/laptop-mode/conf.d/cpufreq.conf - that may have lines similar to:
Code:
BATT_CPU_GOVERNOR=conservative
...
LM_AC_CPU_GOVERNOR=ondemand
...
NOLM_AC_CPU_GOVERNOR=ondemand
which can be tweaked to select an appropriate governor when the laptop thinks it's running on battery.