You are not logged in.
Hi,
I just found out laptop_mode stopped working as it used to. Now when I switch from AC to batt. power I've got to start it _manually_, the same thing other way when I plug AC.
Does anyone has the same problem, or even better, maybe a solution?
vi3dr0
Last edited by vi3dr0 (2009-09-29 16:29:26)
Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox
Offline
have you got laptop-mode-tools installed (extra)?
The daemon is running?
watch if ENABLE_LAPTOP_MODE_ON_BATTERY is set to 1 in /etc/laptop-mode/laptop-mode.conf
Offline
Sure it's installed.
Deamon _should_ be running (it's set in rc.conf, and i start it manually with /etc/rc.d/laptop_mode restart).
ENABLE_LAPTOP_MODE_ON_BATTERY is also set to 1, as it has been all the time.
The problem is: Laptop_mode is working correctly (changes cpu governor, hdd settings, dpms times and all the other stuff), but only when I invoke laptop_mode manually (either by sudo laptop_mode or sudo /etc/rc.d/laptop_mode restart). Changes are not made automatically, as they used to.
Long story short: to make it work I've got to restart laptop_mode over and over, every time I plug in/out AC adapter.
Finally, thanks for such a quick response
Cheers
vi3dr0
Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox
Offline
Upon a fresh reboot verify that the laptop-mode daemon is running:
$ ls /var/run/daemons/
If it is listed there then it sounds like your ACPI events aren't updating properly. You can test by having a look at this:
$ cat /proc/acpi/ac_adapter/*/state
...while your notebook is on and off AC power to see if the status changes.
thayer williams ~ cinderwick.ca
Offline
try: modprobe thinkpad_acpi
Offline
I'm fairly sure it also needs acpid running.
Offline
laptop-mode daemon starts with system correctly.
AC adapter status is read correctly.
thinkpad_acpi module was always there.
i didn't use acpid eariler, however i just installed it, and can't start due to
acpid: can't open /proc/acpi/event: Device or resource busy
[FAIL]
that may be the problem.
running to college late, bye
Last edited by vi3dr0 (2009-09-29 06:25:51)
Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox
Offline
acpid daemon needs to be started before hal I think.... insert in rc.conf...
Offline
The hal daemon starts (in this order) dbus, acpid, hal. So it's best to just insert hal into the DAEMONS line
Last edited by Army (2009-09-29 07:56:52)
Offline
Well, reinstaling acpid, stopping hal and starting acpid helped indeed.
Thanks for all. Marked as solved.
Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox
Offline