Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-19-2008, 07:57 AM
Vitus Jensen
 
Posts: n/a
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)
Reply With Quote
  #2 (permalink)  
Old 05-06-2008, 04:25 AM
Vitus Jensen
 
Posts: n/a
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)
Reply With Quote
  #3 (permalink)  
Old 05-06-2008, 04:25 AM
Vitus Jensen
 
Posts: n/a
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)
Reply With Quote
  #4 (permalink)  
Old 05-06-2008, 06:12 PM
David W Noon
 
Posts: n/a
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-----
Reply With Quote
  #5 (permalink)  
Old 05-06-2008, 06:12 PM
David W Noon
 
Posts: n/a
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-----
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:18 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109