You are not logged in.

#1 2009-09-28 06:29:57

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

[SOLVED] laptop_mode not switching automatically

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? wink

vi3dr0

Last edited by vi3dr0 (2009-09-29 16:29:26)


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#2 2009-09-28 14:19:40

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: [SOLVED] laptop_mode not switching automatically

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

#3 2009-09-28 21:17:14

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: [SOLVED] laptop_mode not switching automatically

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 wink

Cheers
vi3dr0


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#4 2009-09-28 21:43:00

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: [SOLVED] laptop_mode not switching automatically

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

#5 2009-09-28 22:08:18

takedown
Member
From: Argentina
Registered: 2008-08-31
Posts: 219

Re: [SOLVED] laptop_mode not switching automatically

try: modprobe thinkpad_acpi

Offline

#6 2009-09-28 22:22:36

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [SOLVED] laptop_mode not switching automatically

I'm fairly sure it also needs acpid running.

Offline

#7 2009-09-29 06:25:08

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: [SOLVED] laptop_mode not switching automatically

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 wink

Last edited by vi3dr0 (2009-09-29 06:25:51)


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#8 2009-09-29 06:59:37

Solid1986Snake
Member
Registered: 2007-06-18
Posts: 258

Re: [SOLVED] laptop_mode not switching automatically

acpid daemon needs to be started before hal I think.... insert in rc.conf...

Offline

#9 2009-09-29 07:55:33

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: [SOLVED] laptop_mode not switching automatically

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

#10 2009-09-29 16:29:05

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: [SOLVED] laptop_mode not switching automatically

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

Board footer

Powered by FluxBB