![]() |
|
|
|||
|
debugging acpi
Hej!
I'm running gentoo on my Thinkpad R51e which works real fine. WLAN, Ethernet, Sound, Suspend to RAM, Video (I only need 2D), etc, no problem. But I have a hard time optimising life on battery. For starters the switch from ac to battery doesn't lead to execution of scripts in /etc/acpi :-( How do I debug this? It seems acpid never reports the switch as event: Apr 18 08:53:55 asterix acpid: received event "processor CPU 00000081 00000000" Apr 18 08:53:55 asterix acpid: notifying client 4346[104:443] Apr 18 08:53:55 asterix acpid: notifying client 4669[0:0] Apr 18 08:53:55 asterix acpid: client has disconnected Apr 18 08:53:55 asterix acpid: notifying client 4669[0:0] Apr 18 08:53:55 asterix acpid: client has disconnected Apr 18 08:53:55 asterix acpid: completed event "processor CPU 00000081 00000000" Apr 18 08:53:55 asterix acpid: client connected from 4669[0:0] Apr 18 08:53:55 asterix acpid: 1 client rule loaded Apr 19 01:34:16 asterix acpid: client connected from 13718[0:0] Apr 19 01:34:16 asterix acpid: 1 client rule loaded Apr 19 08:39:10 asterix acpid: received event "processor CPU 00000081 00000000" Apr 19 08:39:10 asterix acpid: notifying client 4346[104:443] Apr 19 08:39:10 asterix acpid: notifying client 4669[0:0] Apr 19 08:39:10 asterix acpid: notifying client 13718[0:0] Apr 19 08:39:10 asterix acpid: completed event "processor CPU 00000081 00000000" Apr 19 08:39:10 asterix acpid: client connected from 4669[0:0] Apr 19 08:39:10 asterix acpid: 1 client rule loaded 01:34 was start of suspend-to-RAM and 08:39 the resume. There are never any other events logged! I've added logger lines to the scripts in /etc/acpi/actions (from laptop mode) but those aren't executed. The state variable in /proc/acpi report the switch just fine: vitus@asterix:~$ cat /proc/acpi/ac_adapter/AC/state state: on-line vitus@asterix:~$ cat /proc/acpi/ac_adapter/AC/state state: off-line vitus@asterix:~$ cat /proc/acpi/ac_adapter/AC/state state: on-line Module thinkpad_acpi is loaded, controlling fan, volume and brightness works. Where do I start investigating? acpid, hald, thinkpad_acpi? Vitus PS: thing is this notebook can't really save power (celeron-m, atheros w/o powersave mode), but this is another story. -- Vitus Jensen, Hannover, Germany, Earth, Milky Way, Universe (current) |
|
|||
|
Re: debugging acpi
Vitus Jensen wrote:
> I'm running gentoo on my Thinkpad R51e which works real fine. WLAN, > Ethernet, Sound, Suspend to RAM, Video (I only need 2D), etc, no problem. > But I have a hard time optimising life on battery. For starters the > switch from ac to battery doesn't lead to execution of scripts in > /etc/acpi :-( > > How do I debug this? It seems acpid never reports the switch as event: .... It's this kernel bug: http://bugzilla.kernel.org/show_bug.cgi?id=8246 I've added ec_intr=0 to my kernel commandline to get reasonable boot/suspend/resume times and this prevents ACPI events. How do I get notified when the mentioned patch made it into the mainline kernel? I'm already in the CC list of that bug. Bye, Vitus -- Vitus Jensen, Hannover, Germany, Earth, Milky Way, Universe (current) |
|
|||
|
Re: debugging acpi
Vitus Jensen wrote:
> I'm running gentoo on my Thinkpad R51e which works real fine. WLAN, > Ethernet, Sound, Suspend to RAM, Video (I only need 2D), etc, no problem. > But I have a hard time optimising life on battery. For starters the > switch from ac to battery doesn't lead to execution of scripts in > /etc/acpi :-( > > How do I debug this? It seems acpid never reports the switch as event: .... It's this kernel bug: http://bugzilla.kernel.org/show_bug.cgi?id=8246 I've added ec_intr=0 to my kernel commandline to get reasonable boot/suspend/resume times and this prevents ACPI events. How do I get notified when the mentioned patch made it into the mainline kernel? I'm already in the CC list of that bug. Bye, Vitus -- Vitus Jensen, Hannover, Germany, Earth, Milky Way, Universe (current) |
|
|||
|
Re: debugging acpi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On Tuesday 06 May 2008 05:25 in article <68a4ukF2qr61eU1@mid.individual.net> of alt.os.linux.gentoo, Vitus Jensen(vjensen@gmx.de) wrote: > Vitus Jensen wrote: [snip] > It's this kernel bug: http://bugzilla.kernel.org/show_bug.cgi?id=8246 > > I've added ec_intr=0 to my kernel commandline to get reasonable > boot/suspend/resume times and this prevents ACPI events. How do I get > notified when the mentioned patch made it into the mainline kernel? > I'm already in the CC list of that bug. Hi Vitus, Long time, no read! [I presume you are the Vitus Jensen who used to post on Fidonet. If you aren't, I apologise.] If you want to get notified by the Gentoo project you need to add a bug record to Gentoo's Bugzilla, or CC yourself onto an existing record for that same upstream bug. The URI for Gentoo's Bugzilla is: https://bugs.gentoo.org/ An alternative is simply to read the change log of whichever kernel sources you are using. This is accessible from Gentoo's home page whenever the kernel source code is changed. To ensure the change has not rolled off the log, you should emerge --sync fairly frequently and read the change log a.s.a.p. after your Portage tree has a new kernel available. [My desktop machines do it twice a day, but that might be a little difficult for a laptop.] - -- Regards Dave [RLU#314465] ================================================== ==== dwnoon@spamtrap.ntlworld.com (David W Noon) Remove spam trap to reply via e-mail. ================================================== ==== -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkggmQ8ACgkQ9MqaUJQw2Mmm5QCdEAY2rmtNCw KoJpIoat5Qxxh+ 8boAmgK3mdaUY7UhlaGO1CSW8dEo+Oj9 =SsTK -----END PGP SIGNATURE----- |
|
|||
|
Re: debugging acpi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 On Tuesday 06 May 2008 05:25 in article <68a4ukF2qr61eU1@mid.individual.net> of alt.os.linux.gentoo, Vitus Jensen(vjensen@gmx.de) wrote: > Vitus Jensen wrote: [snip] > It's this kernel bug: http://bugzilla.kernel.org/show_bug.cgi?id=8246 > > I've added ec_intr=0 to my kernel commandline to get reasonable > boot/suspend/resume times and this prevents ACPI events. How do I get > notified when the mentioned patch made it into the mainline kernel? > I'm already in the CC list of that bug. Hi Vitus, Long time, no read! [I presume you are the Vitus Jensen who used to post on Fidonet. If you aren't, I apologise.] If you want to get notified by the Gentoo project you need to add a bug record to Gentoo's Bugzilla, or CC yourself onto an existing record for that same upstream bug. The URI for Gentoo's Bugzilla is: https://bugs.gentoo.org/ An alternative is simply to read the change log of whichever kernel sources you are using. This is accessible from Gentoo's home page whenever the kernel source code is changed. To ensure the change has not rolled off the log, you should emerge --sync fairly frequently and read the change log a.s.a.p. after your Portage tree has a new kernel available. [My desktop machines do it twice a day, but that might be a little difficult for a laptop.] - -- Regards Dave [RLU#314465] ================================================== ==== dwnoon@spamtrap.ntlworld.com (David W Noon) Remove spam trap to reply via e-mail. ================================================== ==== -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkggmQ8ACgkQ9MqaUJQw2Mmm5QCdEAY2rmtNCw KoJpIoat5Qxxh+ 8boAmgK3mdaUY7UhlaGO1CSW8dEo+Oj9 =SsTK -----END PGP SIGNATURE----- |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|