vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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) |
| |||
| 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) |
| |||
| -----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----- |
| |||
| David W Noon wrote: > 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.] Well, this is Usenet, you can't know who I am, can you? :-) But you're right, I'm the same guy. Running OS/2 plus LAN Server from 1991-2007 and now nslu plus gentoo. It's not that different as I started my career with DOS and Minix 1.3. It was on OS2PROG, right? It's a familiar feeling here: usenet is starting to get as deserted as fidonet :-( > 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/ OK, so probably I did the right thing when I added myself to bugzilla.kernel.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. Hmm, the Changelog is accessable via http://packages.gentoo.org/package/s...gentoo-sources so I don't need to update that often. But as that Changelog is fairly condensed the best is probably to do a diff. > [My desktop machines do it twice a day, but that might be a > little difficult for a laptop.] Is twice a day OK for gentoo mirrors? I thought syncing should be less often to keep the bandwith usage down? Or is twice a day seldom? From bugzilla.kernel.org: "I'm seeing the same problem, which isn't fixed with noapic: Appending ec_intr=0 does indeed shorten the time taken to load the modules, but ACPI events are not being detected. (/proc/acpi/button/lid/LID/state is correct however)" That bug apperently was already fixed, I can boot without ec_intr=0. But ACPI still aren't reported :-( Bye, Vitus -- Vitus Jensen, Hannover, Germany, Earth, Milky Way, Universe (current) |
| ||||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 07 May 2008 22:53 in article <68emm4F2ropsfU1@mid.individual.net> of alt.os.linux.gentoo, Vitus Jensen(vjensen@gmx.de) wrote: > David W Noon wrote: [snip] >> Long time, no read! [I presume you are the Vitus Jensen who used to >> post on Fidonet. If you aren't, I apologise.] > > Well, this is Usenet, you can't know who I am, can you? :-) :-) > But you're right, I'm the same guy. Running OS/2 plus LAN Server from > 1991-2007 and now nslu plus gentoo. It's not that different as I > started > my career with DOS and Minix 1.3. It was on OS2PROG, right? Correct. > It's a > familiar feeling here: usenet is starting to get as deserted as > fidonet :-( I guess the Internet is being swamped with non-technical people. [snip] >> [My desktop machines do it twice a day, but that might be a >> little difficult for a laptop.] > > Is twice a day OK for gentoo mirrors? I thought syncing should be > less > often to keep the bandwith usage down? Or is twice a day seldom? The more frequently one does an emerge --sync the less bandwidth each one takes. People who choose to mirror Gentoo completely are suggested to rsync every 3 hours or so. I guess Gentoo's own mirrors have plenty of bandwidth these days. - -- 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) iEYEARECAAYFAkgiP6YACgkQ9MqaUJQw2MkADACfVd5nMMyoow 0hK9lPV78clrzg JYoAoKg6wxcxjTKCrew7d3nC7nBQTulP =U6jt -----END PGP SIGNATURE----- |