# (0) Arch Linux
title Arch Linux [2.6.19-Arch]
root (hd0,4)
kernel /boot/vmlinuz26 root=/dev/hda5 vga=792 resume=/dev/hda6 processor.max_cstate=1 ro <===== add here
initrd /boot/kernel26.img
options processor max_cstate=1
Now you can load speedstep-centrino (this will automatically load the processor module) and thermal (for the thermal control).
You can add them to the MODULES line in the /etc/rc.conf.
For the throttling of the cpu frequency you have to use the powersaved daemon.
It works perfecly for me in BATTERY mode and in AC mode too.
/etc/rc.local:
echo 1 > /sys/module/processor/parameters/max_cstate
I tried that and it seems to be adequately worked around. I'm not completely sure what it does...but...it takes care of my problem. Now when I'm plugged in, the cpu still stays scaled back to 800MHz, then only goes up to 1733 when there is a load, but I think I'm ok with that.
I don't know if it's 'fixed' or just adequately worked around though. Thanks for the link though, I'd been searching for a few day for something that sounded right.
]]>Unplugged...plugging in....
[Sat Jan 6 00:36:00 2007] received event "battery BAT0 00000080 00000001"
[Sat Jan 6 00:36:00 2007] notifying client 2544[82:82]
[Sat Jan 6 00:36:00 2007] notifying client 2686[0:0]
[Sat Jan 6 00:36:00 2007] executing action "/etc/acpi/handler.sh battery BAT0 00000080 00000001"
[Sat Jan 6 00:36:00 2007] BEGIN HANDLER MESSAGES
[Sat Jan 6 00:36:00 2007] END HANDLER MESSAGES
[Sat Jan 6 00:36:00 2007] action exited with status 0
[Sat Jan 6 00:36:00 2007] executing action "/etc/acpi/actions/lm_battery.sh battery BAT0 00000080 00000001"
[Sat Jan 6 00:36:00 2007] BEGIN HANDLER MESSAGES
Laptop mode disabled, not active.
[Sat Jan 6 00:36:00 2007] END HANDLER MESSAGES
[Sat Jan 6 00:36:00 2007] action exited with status 0
[Sat Jan 6 00:36:00 2007] completed event "battery BAT0 00000080 00000001"
[Sat Jan 6 00:36:00 2007] received event "processor CPU0 00000080 00000000"
[Sat Jan 6 00:36:00 2007] notifying client 2544[82:82]
[Sat Jan 6 00:36:00 2007] notifying client 2686[0:0]
[Sat Jan 6 00:36:00 2007] executing action "/etc/acpi/handler.sh processor CPU0 00000080 00000000"
[Sat Jan 6 00:36:00 2007] BEGIN HANDLER MESSAGES
[Sat Jan 6 00:36:00 2007] END HANDLER MESSAGES
[Sat Jan 6 00:36:00 2007] action exited with status 0
[Sat Jan 6 00:36:00 2007] completed event "processor CPU0 00000080 00000000"
[Sat Jan 6 00:36:01 2007] received event "processor CPU0 00000081 00000000"
[Sat Jan 6 00:36:01 2007] notifying client 2544[82:82]
[Sat Jan 6 00:36:01 2007] notifying client 2686[0:0]
[Sat Jan 6 00:36:01 2007] executing action "/etc/acpi/handler.sh processor CPU0 00000081 00000000"
[Sat Jan 6 00:36:01 2007] BEGIN HANDLER MESSAGES
[Sat Jan 6 00:36:01 2007] END HANDLER MESSAGES
[Sat Jan 6 00:36:01 2007] action exited with status 0
[Sat Jan 6 00:36:01 2007] completed event "processor CPU0 00000081 00000000"
[Sat Jan 6 00:36:15 2007] received event "battery BAT0 00000080 00000001"
[Sat Jan 6 00:36:15 2007] notifying client 2544[82:82]
[Sat Jan 6 00:36:15 2007] notifying client 2686[0:0]
[Sat Jan 6 00:36:15 2007] executing action "/etc/acpi/handler.sh battery BAT0 00000080 00000001"
[Sat Jan 6 00:36:15 2007] BEGIN HANDLER MESSAGES
[Sat Jan 6 00:36:15 2007] END HANDLER MESSAGES
[Sat Jan 6 00:36:15 2007] action exited with status 0
[Sat Jan 6 00:36:15 2007] executing action "/etc/acpi/actions/lm_battery.sh battery BAT0 00000080 00000001"
[Sat Jan 6 00:36:15 2007] BEGIN HANDLER MESSAGES
Laptop mode disabled, not active [unchanged]
[Sat Jan 6 00:36:15 2007] END HANDLER MESSAGES
[Sat Jan 6 00:36:15 2007] action exited with status 0
[Sat Jan 6 00:36:15 2007] completed event "battery BAT0 00000080 00000001"
Is it like the /var/log/errors.log or something that I should post?
]]>[edit] maybe if you start your system on bat then plug in your ac, then post your message log somebody may spot something that may help
]]>What's happening is that when the system is plugged in to AC power, the CPU usage hovers between 25% & 45%. When I unplug it, it drops to 3-8% (depending on the throttling). CPU throttling is working fine. It runs at 1733MHz when it's plugged in and automatically switches to 800MHz when I unplug it. I'm looking through the user & system processes and am unable to find any process yeilding more than 2% usage. This leads me to my guess that it's something in the kernel, but I don't know how to find out what it is. I did try the beyond kernel, but it did the same thing.
The other troubleshooting done was to disable all the modules and daemons in rc.conf, which also yeilded no different results.
Just to muddy the waters, I don't recall having this problem before the kernel updated to 2.6.19. Looking through the /var/log files, I don't see any distinct errors (to my eye at least), but I can post any of the files that people want.
Help?
rc.conf :
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="America/Chicago"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
MOD_AUTOLOAD="yes"
MOD_BLACKLIST=()
MODULES=(e100 mii ipw2200 i915 speedstep_centrino sony_acpi)
USELVM="no"
HOSTNAME="Sony"
lo="lo 127.0.0.1"
eth0="dhcp"
ech1="dhcp"
INTERFACES=(lo !eth0 !eth1)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
DAEMONS=(syslog-ng 855resolution acpid hal dhcdbd networkmanager !network cups netfs crond portmap nfslock nfsd cpufreq)