* Unexpected sleep on old iBook
@ 2002-11-19 7:43 Halfmann, Klaus
0 siblings, 0 replies; 7+ messages in thread
From: Halfmann, Klaus @ 2002-11-19 7:43 UTC (permalink / raw)
To: linuxppc-dev
Since kernel 2.4.20-rc1 (and possibly some versions before)
my iBook (first generation) goes to sleep when I use pmud.
I fetched the latest pmud I could get (1.1.1.1 2002/12/07 11:31:46 sleemburg)
I use pmud -s (if that matters at all).
I set "lid_wakeup=0" in boot.local via /proc/pmu/options.
The logs do not show any clue why the kernel puts the iBook to sleep.
I feel that pressing keys keeps the iBook from sleeping, but
running processes or usage of the track pad do not.
This does not change when the Box in on AC or on Battery.
I rsynced against source.mvista.com yesterday (2002-11-18)
(no space for a Bitkeeper tree :-| )
Can someone help ?
Thanks
klaus.halfmann@t-online.de, (49)-(0)-6172/492497
Klaus Halfmann, Mainstrasse 8, 61352 Bad Homburg GERMANY
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Unexpected sleep on old iBook
@ 2002-11-19 8:15 Halfmann, Klaus
2002-11-19 16:48 ` Michael Schmitz
0 siblings, 1 reply; 7+ messages in thread
From: Halfmann, Klaus @ 2002-11-19 8:15 UTC (permalink / raw)
To: Benjamin Herrenschmidt, linuxppc-dev
> ...
> The kernel will never trigger a sleep by itself. Only
> pmud or pbbuttonsd may. You will want to look at those logs or
> track an eventual bug in there.
>
> Ben.
OK, I'll have a look at the pmud code and come back later.
klaus.halfmann@t-online.de, (49)-(0)-6172/492497
Klaus Halfmann, Mainstrasse 8, 61352 Bad Homburg GERMANY
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Unexpected sleep on old iBook
2002-11-19 8:15 Unexpected sleep on old iBook Halfmann, Klaus
@ 2002-11-19 16:48 ` Michael Schmitz
2002-11-19 20:33 ` Ethan Blanton
0 siblings, 1 reply; 7+ messages in thread
From: Michael Schmitz @ 2002-11-19 16:48 UTC (permalink / raw)
To: Halfmann, Klaus; +Cc: Benjamin Herrenschmidt, linuxppc-dev
> > The kernel will never trigger a sleep by itself. Only
> > pmud or pbbuttonsd may. You will want to look at those logs or
> > track an eventual bug in there.
> >
> > Ben.
>
> OK, I'll have a look at the pmud code and come back later.
Please try running pmud with the -s or -S flag (signal init on power low)
and take note of the battery power level readings. I suspect the kernel
does return erroneous power readings on occasion, causing pmud to trigger
sleep. I've not been able to reproduce this on my Lombard Powerbook -
other users (iBook IIRC) report the battery power suddenly dropping to
zero from as much as 80%. I'm currently trying to collect more information
on this new feature.
Michael
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unexpected sleep on old iBook
2002-11-19 16:48 ` Michael Schmitz
@ 2002-11-19 20:33 ` Ethan Blanton
2002-11-21 6:19 ` Segher Boessenkool
0 siblings, 1 reply; 7+ messages in thread
From: Ethan Blanton @ 2002-11-19 20:33 UTC (permalink / raw)
To: Michael Schmitz; +Cc: Halfmann, Klaus, Benjamin Herrenschmidt, linuxppc-dev
Michael Schmitz spake unto us the following wisdom:
> Please try running pmud with the -s or -S flag (signal init on power low)
> and take note of the battery power level readings. I suspect the kernel
> does return erroneous power readings on occasion, causing pmud to trigger
> sleep. I've not been able to reproduce this on my Lombard Powerbook -
> other users (iBook IIRC) report the battery power suddenly dropping to
> zero from as much as 80%. I'm currently trying to collect more information
> on this new feature.
I have a first generation iceBook (500MHz/64MB stock/Rage128
Mobility), and I never see this behavior ... however, I recently
talked my girlfriend into a new iceBook, and the model she got
(600MHz/128MB stock/Radeon Mobility M6 LY) does. It doesn't seem to
be predictable as best we can tell, and it doesn't happen often. It
seems to happen whether the laptop is plugged into wall power or not.
(Does it irritate anyone else that there seems to be no *good* way to
differentiate iBook versions? I'm sure there's some motherboard
resource version that's unambiguous, but come on...)
If I can provide any information that might be useful, please let me
know. I have both of these laptops sitting in the same room with me
pretty much every day of the world for at least some period of time.
Ethan
--
And if I claim to be a wise man / it surely means that I don't know.
-- Kansas, "Carry on Wayward Son"
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Unexpected sleep on old iBook
@ 2002-11-20 11:11 Halfmann, Klaus
0 siblings, 0 replies; 7+ messages in thread
From: Halfmann, Klaus @ 2002-11-20 11:11 UTC (permalink / raw)
To: Ethan Blanton, linuxppc-dev; +Cc: Benjamin Herrenschmidt
> From: Ethan Blanton [mailto:eblanton@cs.ohiou.edu]
> Sent: Dienstag, 19. November 2002 21:34
>...
> If I can provide any information that might be useful, please let me
> know. I have both of these laptops sitting in the same room with me
> pretty much every day of the world for at least some period of time.
>
Ok, when I do
pmud -ds 2>&1 | tee pmud.txt
I get:
pmud[1226]: pmud [treshold = 420, margin = 15] started
pmud[1226]: opening /dev/adb
pmud[1226]: opening /dev/pmu
pmud[1226]: pmu_op(0xea, ..., version req)
pmud[1226]: PMU version 12: iBook/G3 Pismo/G4 Titanium
pmud[1226]: starting monitoring loop
pmud[1226]: pmu_op(0xdc, ..., switch req)
pmud[1226]: pmu_op(0x6f, ..., smart battery req)
pmud[1226]: pmu_op(0x6f, ..., smart battery req)
pmud[1226]: timeleft = -1
pmud[1226]: running /etc/power/pwrctl maximum ac
pmud[1226]: PMU interrupt:
pmud[1226]: 40
pmud[1226]: 14
pmud[1226]: pmu_op(0xdc, ..., switch req)
pmud[1226]: pmu_op(0x6f, ..., smart battery req)
pmud[1226]: pmu_op(0x6f, ..., smart battery req)
pmud[1226]: timeleft = -1
... several seconds later ...
pmud[1226]: PMU interrupt:
pmud[1226]: 40
pmud[1226]: 14
pmud[1226]: pmu_op(0xdc, ..., switch req)
pmud[1226]: pmu_op(0x6f, ..., smart battery req)
pmud[1226]: pmu_op(0x6f, ..., smart battery req)
pmud[1226]: timeleft = -1
pmud[1226]: initiating user requested sleep
... I did not touch the iBook at all ...
pmud[1226]: polling adb for trackpad
pmud[1226]: found a trackpad (id = 3)
pmud[1226]: trackpad settings tap drag lock
pmud[1226]: calling sync()
pmud[1226]: running /etc/power/pwrctl sleep ac
pmud[1226]: going to sleep
pmud[1226]: system awake again
pmud[1226]: requested settings tap drag lock
pmud[1226]: trackpad settings tap drag lock
pmud[1226]: running /etc/power/pwrctl wakeup ac
May I need to add additional debug output ?
klaus.halfmann@t-online.de, (49)-(0)-6172/492497
Klaus Halfmann, Mainstrasse 8, 61352 Bad Homburg GERMANY
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unexpected sleep on old iBook
2002-11-19 20:33 ` Ethan Blanton
@ 2002-11-21 6:19 ` Segher Boessenkool
2002-11-22 4:47 ` Ethan Blanton
0 siblings, 1 reply; 7+ messages in thread
From: Segher Boessenkool @ 2002-11-21 6:19 UTC (permalink / raw)
To: Ethan Blanton
Cc: Michael Schmitz, Halfmann, Klaus, Benjamin Herrenschmidt,
linuxppc-dev
Ethan Blanton wrote:
> (Does it irritate anyone else that there seems to be no *good* way to
> differentiate iBook versions? I'm sure there's some motherboard
> resource version that's unambiguous, but come on...)
Just read the device tree:
/proc/device-tree/model gives you the model name.
/proc/device-tree/scb# gives you the revision number.
Segher
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Unexpected sleep on old iBook
2002-11-21 6:19 ` Segher Boessenkool
@ 2002-11-22 4:47 ` Ethan Blanton
0 siblings, 0 replies; 7+ messages in thread
From: Ethan Blanton @ 2002-11-22 4:47 UTC (permalink / raw)
To: Segher Boessenkool
Cc: Michael Schmitz, Halfmann, Klaus, Benjamin Herrenschmidt,
linuxppc-dev
Segher Boessenkool spake unto us the following wisdom:
> Ethan Blanton wrote:
> > (Does it irritate anyone else that there seems to be no *good* way to
> > differentiate iBook versions? I'm sure there's some motherboard
> > resource version that's unambiguous, but come on...)
>
> Just read the device tree:
>
> /proc/device-tree/model gives you the model name.
> /proc/device-tree/scb# gives you the revision number.
I actually meant for the layman ... I realize that I can look up
system resources (in this case OF values) that will tell me, but hand
me an iBook and ask me what rev it is ... no clue.
Ethan
--
And if I claim to be a wise man / it surely means that I don't know.
-- Kansas, "Carry on Wayward Son"
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-11-22 4:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19 8:15 Unexpected sleep on old iBook Halfmann, Klaus
2002-11-19 16:48 ` Michael Schmitz
2002-11-19 20:33 ` Ethan Blanton
2002-11-21 6:19 ` Segher Boessenkool
2002-11-22 4:47 ` Ethan Blanton
-- strict thread matches above, loose matches on Subject: below --
2002-11-20 11:11 Halfmann, Klaus
2002-11-19 7:43 Halfmann, Klaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).