linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* pismo sleep behaviour w/ 2.4.4-benh
@ 2001-05-12 20:09 Jörn Nettingsmeier
  2001-05-12 20:34 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 16+ messages in thread
From: Jörn Nettingsmeier @ 2001-05-12 20:09 UTC (permalink / raw)
  To: linuxppc-dev@lists.linuxppc.org


hello linuxppc-dev people !

i have been running the mentioned system for about 10 days now,
using the latest pmud daemon, and it works fine for me, except:

* the box usually falls asleep again after waking up. when woken
again, it stays up like it should.
* every 10 or so sleep cycles, the machine locks up. blank screen,
no standby-led, and i can only power off with ctrl-alt-apple-power.
sysrq fails, too.
* the box falls asleep sometimes even when i'm busy typing or moving
the mouse. this happens at least once every half hour.

some minor glitches that might be unrelated to power management:
* the first console cannot issue ctrl commands like break or
suspend, while the others still do. resetting doesn't help.
* there seems to be a problem under KDE with keyboard/trackpad
focus: sometimes they are attached to different windows.

i'd like to help tracking this down, but i'm rather new to the ppc
platform, so please tell me what to do.
is there a place where i can monitor power management events ? (more
detailed than in the syslog)

regards,

jörn


--
Jörn Nettingsmeier
home://Kurfürstenstr.49.45138.Essen.Germany
phone://+49.201.491621
http://icem-www.folkwang-hochschule.de/~nettings/
http://www.linuxdj.com/audio/lad/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-12 20:09 pismo sleep behaviour w/ 2.4.4-benh Jörn Nettingsmeier
@ 2001-05-12 20:34 ` Benjamin Herrenschmidt
  2001-05-12 21:51   ` Ira Weiny
  2001-05-13  7:47   ` Jörn Nettingsmeier
  0 siblings, 2 replies; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2001-05-12 20:34 UTC (permalink / raw)
  To: Jörn Nettingsmeier, linuxppc-dev


>
>* the box usually falls asleep again after waking up. when woken
>again, it stays up like it should.

Never seen that. How do you trigger sleep ?

>* every 10 or so sleep cycles, the machine locks up. blank screen,
>no standby-led, and i can only power off with ctrl-alt-apple-power.
>sysrq fails, too.

It locks up on wakeup or on sleep ?

>* the box falls asleep sometimes even when i'm busy typing or moving
>the mouse. this happens at least once every half hour.

What do you mean by "fall asleep" ? it stops working ? how do you
get it back ?

>some minor glitches that might be unrelated to power management:
>* the first console cannot issue ctrl commands like break or
>suspend, while the others still do. resetting doesn't help.
>* there seems to be a problem under KDE with keyboard/trackpad
>focus: sometimes they are attached to different windows.
>
>i'd like to help tracking this down, but i'm rather new to the ppc
>platform, so please tell me what to do.
>is there a place where i can monitor power management events ? (more
>detailed than in the syslog)
>
>regards,


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-12 20:34 ` Benjamin Herrenschmidt
@ 2001-05-12 21:51   ` Ira Weiny
  2001-05-13 10:04     ` Benjamin Herrenschmidt
  2001-05-13  7:47   ` Jörn Nettingsmeier
  1 sibling, 1 reply; 16+ messages in thread
From: Ira Weiny @ 2001-05-12 21:51 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, linuxppc-dev


Benjamin Herrenschmidt wrote:

> >* every 10 or so sleep cycles, the machine locks up. blank screen,
> >no standby-led, and i can only power off with ctrl-alt-apple-power.
> >sysrq fails, too.
>
> It locks up on wakeup or on sleep ?
>

Just for the record, my Titanium did this the other day as well.  I woke
it up.  I got a screen.  It blanked (the video driver was driving the
screen but displaying all black.) and that was it...  It happened out of
the blue, not before or since.

I could not try to telnet into the box, no other machine.  So I don't
know if it was really down or not.  This is with a recent (< 1week) Ben's
tree and no logs pertaining to anything wrong?

Anyway,  I have not been counting my sleep cycles so I will try what the
gentelman above said to see if I can reproduce it.  But I don't think
I can since I rarely shutdown the machine, just make it sleep.

Anyway thanks because this is working great 99.999% of the time...  ;-)

Ira


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-12 20:34 ` Benjamin Herrenschmidt
  2001-05-12 21:51   ` Ira Weiny
@ 2001-05-13  7:47   ` Jörn Nettingsmeier
  2001-05-13 10:06     ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 16+ messages in thread
From: Jörn Nettingsmeier @ 2001-05-13  7:47 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


Benjamin Herrenschmidt wrote:
>
> >
> >* the box usually falls asleep again after waking up. when woken
> >again, it stays up like it should.
>
> Never seen that. How do you trigger sleep ?

either by closing the lid, by not doing anything for a while or by
using the "snooze" program that comes with pmud.

> >* every 10 or so sleep cycles, the machine locks up. blank screen,
> >no standby-led, and i can only power off with ctrl-alt-apple-power.
> >sysrq fails, too.
>
> It locks up on wakeup or on sleep ?

well, it looks like it's going to sleep, but the standby led doesn't
blink. just like when i switch it off, except i can't switch it on
again by simply pressing "power", so i suspect it hangs.


> >* the box falls asleep sometimes even when i'm busy typing or moving
> >the mouse. this happens at least once every half hour.
>
> What do you mean by "fall asleep" ? it stops working ? how do you
> get it back ?

it enters sleep mode, even though there are pretty many keyboard and
mouse events that should keep it from doing so.
i get it back by pressing a key after waiting a few seconds.
(immediately after entering sleep mode, key events seem to be
ignored for a few seconds.)




--
Jörn Nettingsmeier
home://Kurfürstenstr.49.45138.Essen.Germany
phone://+49.201.491621
http://icem-www.folkwang-hochschule.de/~nettings/
http://www.linuxdj.com/audio/lad/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-12 21:51   ` Ira Weiny
@ 2001-05-13 10:04     ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2001-05-13 10:04 UTC (permalink / raw)
  To: Ira Weiny, linuxppc-dev


>
>Just for the record, my Titanium did this the other day as well.  I woke
>it up.  I got a screen.  It blanked (the video driver was driving the
>screen but displaying all black.) and that was it...  It happened out of
>the blue, not before or since.

If that happens, I'd appreciate to have some details about these:

 - Were you in console mode or in X when you put it to sleep ? (There
are still some known issues with sleep & console mode)

 - When you woke it up, did you see the screen and then see it blank
or did it come up already blanked ? Did you see the sleep LED flash
briefly 3 times as it normally does on wakeup or did the machine hang
before that ?

 - If you are "blanked", only keyboard or trackpad will get you out
of it. However, as you may have noticed, ADB probe is done asynchronously
on these machines. That means that the trackpad and the keyboard will only
be active after a few seconds. Well, I guess you did wait long enough
before deciding it was dead, but well... the next time, if you have an
USB keyboard or mouse at hand, try plugging it in and see if you get
it out of "blank" this way. Basically, I need to know if the machine actually
died or if it's the ADB part that did not come back up.

>I could not try to telnet into the box, no other machine.  So I don't
>know if it was really down or not.  This is with a recent (< 1week) Ben's
>tree and no logs pertaining to anything wrong?
>
>Anyway,  I have not been counting my sleep cycles so I will try what the
>gentelman above said to see if I can reproduce it.  But I don't think
>I can since I rarely shutdown the machine, just make it sleep.
>
>Anyway thanks because this is working great 99.999% of the time...  ;-)


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13  7:47   ` Jörn Nettingsmeier
@ 2001-05-13 10:06     ` Benjamin Herrenschmidt
  2001-05-13 11:31       ` Jörn Nettingsmeier
  0 siblings, 1 reply; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2001-05-13 10:06 UTC (permalink / raw)
  To: Jörn Nettingsmeier, linuxppc-dev


>
>well, it looks like it's going to sleep, but the standby led doesn't
>blink. just like when i switch it off, except i can't switch it on
>again by simply pressing "power", so i suspect it hangs.

Ok, well, it dies. Are you in console or X mode when that happens ?
>
>> >* the box falls asleep sometimes even when i'm busy typing or moving
>> >the mouse. this happens at least once every half hour.
>>
>> What do you mean by "fall asleep" ? it stops working ? how do you
>> get it back ?

>it enters sleep mode, even though there are pretty many keyboard and
>mouse events that should keep it from doing so.
>i get it back by pressing a key after waiting a few seconds.
>(immediately after entering sleep mode, key events seem to be
>ignored for a few seconds.)

Are you sure it's actually sleep mode (with the blinking sleep LED) ?
and not the console blank mode or X blank mode ?

That's really weird.... maybe pmud incorrectly thinks you are running
off an empty battery ?

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 10:06     ` Benjamin Herrenschmidt
@ 2001-05-13 11:31       ` Jörn Nettingsmeier
  2001-05-13 11:41         ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 16+ messages in thread
From: Jörn Nettingsmeier @ 2001-05-13 11:31 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


Benjamin Herrenschmidt wrote:
>
> >
> >well, it looks like it's going to sleep, but the standby led doesn't
> >blink. just like when i switch it off, except i can't switch it on
> >again by simply pressing "power", so i suspect it hangs.
>
> Ok, well, it dies. Are you in console or X mode when that happens ?

it happens in both modes.

> >> >* the box falls asleep sometimes even when i'm busy typing or moving
> >> >the mouse. this happens at least once every half hour.
> >>
> >> What do you mean by "fall asleep" ? it stops working ? how do you
> >> get it back ?
>
> >it enters sleep mode, even though there are pretty many keyboard and
> >mouse events that should keep it from doing so.
> >i get it back by pressing a key after waiting a few seconds.
> >(immediately after entering sleep mode, key events seem to be
> >ignored for a few seconds.)
>
> Are you sure it's actually sleep mode (with the blinking sleep LED) ?
> and not the console blank mode or X blank mode ?

yes. the led is blinking.

besides, when only blanking, the system is back on immediately,
while in the case described above, it takes a few seconds. plus it
acknowledges the wakeup event by rapidly flashing the standby led a
few times while waking.

> That's really weird.... maybe pmud incorrectly thinks you are running
> off an empty battery ?

i don't think so. i have set it up to shut the box down when the
battery runs low.
and when it occured, there was always at least 1/2 of a battery left
(according to the meters on the battery modules themselves). oh,
btw, i'm using two batteries.

here is a syslog excerpt from booting to falling asleep in spite of
me typing (this time on a console):

May 14 13:07:19 ephraim syslogd 1.3-3: restart.
May 14 13:07:19 ephraim sshd[204]: RSA key generation complete.
May 14 13:07:21 ephraim usbmgr[220]: start 0.4.1
May 14 13:07:21 ephraim usbmgr[222]: "hid" was loaded
May 14 13:07:21 ephraim usbmgr[222]: "mousedev" was loaded
May 14 13:07:21 ephraim usbmgr[222]: "usb-ohci" was loaded
May 14 13:07:21 ephraim usbmgr[227]: mount /proc/bus/usb
May 14 13:07:21 ephraim usbmgr[222]: class:0x9 subclass:0x0
protocol:0x0
May 14 13:07:21 ephraim usbmgr[222]: USB device is matched the
configuration
May 14 13:07:21 ephraim usbmgr[222]: "none" isn't loaded
May 14 13:07:22 ephraim kernel: klogd 1.3-3, log source = /proc/kmsg
started.
May 14 13:07:22 ephraim kernel: Inspecting /boot/System.map
May 14 13:07:22 ephraim kernel: Loaded 16080 symbols from
/boot/System.map.
May 14 13:07:22 ephraim kernel: Symbols match kernel version 2.4.4.
May 14 13:07:22 ephraim kernel: Loaded 65 symbols from 3 modules.
May 14 13:07:22 ephraim kernel: usb.c: registered new driver
usbdevfs
May 14 13:07:22 ephraim kernel: usb.c: registered new driver hub
May 14 13:07:22 ephraim kernel: PCI: Enabling device 01:18.0 (0000
-> 0002)
May 14 13:07:22 ephraim kernel: usb-ohci.c: USB OHCI at membase
0xcd914000, IRQ 27
May 14 13:07:22 ephraim kernel: usb-ohci.c: usb-01:18.0, Apple
Computer Inc. KeyLargo USB
May 14 13:07:22 ephraim kernel: usb.c: new USB bus registered,
assigned bus number 1
May 14 13:07:22 ephraim kernel: hub.c: USB hub found
May 14 13:07:22 ephraim kernel: hub.c: 2 ports detected
May 14 13:07:22 ephraim kernel: PCI: Enabling device 01:19.0 (0000
-> 0002)
May 14 13:07:22 ephraim kernel: usb-ohci.c: USB OHCI at membase
0xcd916000, IRQ 28
May 14 13:07:22 ephraim kernel: usb-ohci.c: usb-01:19.0, Apple
Computer Inc. KeyLargo USB (#2)
May 14 13:07:22 ephraim kernel: usb.c: new USB bus registered,
assigned bus number 2
May 14 13:07:22 ephraim kernel: hub.c: USB hub found
May 14 13:07:22 ephraim kernel: hub.c: 2 ports detected
May 14 13:07:22 ephraim kernel: usb.c: registered new driver hid
May 14 13:07:23 ephraim pmud[270]: pmud [treshold = 420, margin =
15] started
May 14 13:07:23 ephraim pmud[270]: PMU version 12: iBook
May 14 13:07:23 ephraim pmud[270]: Sleep for this PMU unsupported:
will shutdown the machine on sleep request

^^^^^^^^^^^^^^^^^^^^^^^^^^ (i have not been able to find a newer
pmud version - anyway, it DOES sleep)

May 14 13:07:23 ephraim pmud[271]: running /etc/power/pwrctl minimum
battery
May 14 13:07:23 ephraim pmud[270]: daemon stopped (parent exiting
[note PID])
May 14 13:07:23 ephraim pwrctl: no function for PMU 12
May 14 13:07:24 ephraim modprobe: modprobe: Can't locate module
net-pf-10
May 14 13:07:24 ephraim /usr/sbin/cron[305]: (CRON) STARTUP (fork
ok)
Mai 14 13:08:25 ephraim PAM-unix2[367]: session started for user
nettings, service xdm
May 14 13:12:11 ephraim login: FAILED LOGIN 1 FROM /dev/tty1 FOR
root, Authentication failure

^^^^^^^ now i log in as root and view logfiles. suddenly, while
typing, the box goes to sleep:

May 14 13:15:01 ephraim pmud[271]: initiating user requested sleep

how can i request sleep ? is there some hotkey that i might be
triggering ? but then, it seems to happen no matter what i type.

May 14 13:15:01 ephraim pmud[271]: running /etc/power/pwrctl sleep
battery
May 14 13:15:01 ephraim pwrctl: no function for PMU 12
May 14 13:15:01 ephraim pmud[271]: going to sleep

^^^^^^^^ i press a key after about 1 sec, the standby led flashes
quickly, the disk spins up again, the screen comes back.
after less than 10 secs, it is up again.

looking at the timestamps, syslogd seems to log the events only
after the system is back:

May 14 13:15:18 ephraim kernel: usb-ohci.c: USB suspend: usb-01:18.0
May 14 13:15:18 ephraim kernel: usb-ohci.c: USB suspend: usb-01:19.0
May 14 13:15:18 ephraim kernel: hda: Enabling Ultra DMA 4
May 14 13:15:18 ephraim kernel: usb-ohci.c: USB continue:
usb-01:18.0 from host wakeup
May 14 13:15:18 ephraim kernel: usb-ohci.c: USB continue:
usb-01:19.0 from host wakeup
May 14 13:15:18 ephraim kernel: adb: starting probe task...
May 14 13:15:18 ephraim pmud[271]: system awake again
May 14 13:15:18 ephraim pmud[271]: running /etc/power/pwrctl wakeup
battery
May 14 13:15:18 ephraim pwrctl: no function for PMU 12
May 14 13:15:20 ephraim kernel: adb devices: [2]: 2 c4 [3]: 3 1 [7]:
7 1f
May 14 13:15:20 ephraim kernel: keybdev.c: Removing keyboard: input1
May 14 13:15:20 ephraim kernel: ADB keyboard at 2, handler 1
May 14 13:15:20 ephraim kernel: Detected ADB keyboard, type ISO,
swapping keys.
May 14 13:15:20 ephraim kernel: event1: Event device for input1
May 14 13:15:20 ephraim kernel: keybdev.c: Adding keyboard: input1
May 14 13:15:20 ephraim kernel: input1: ADB HID on ID 2:2.c4
May 14 13:15:20 ephraim kernel: event2: Event device for input2
May 14 13:15:20 ephraim kernel: input2: ADB HID on ID 7:7.1f
May 14 13:15:20 ephraim kernel: ADB mouse at 3, handler set to 4
(trackpad)
May 14 13:15:20 ephraim kernel: event3: Event device for input3
May 14 13:15:20 ephraim kernel: mouse1: PS/2 mouse device for input3
May 14 13:15:20 ephraim kernel: input3: ADB HID on ID 3:3.01
May 14 13:15:20 ephraim kernel: adb: finished probe task...
May 14 13:15:38 ephraim su: (to nobody) root on none
May 14 13:15:38 ephraim PAM-unix2[820]: session started for user
nobody, service su

if you're interested, i can provide another excerpt of the box
falling asleep after waking.
you don't happen to have some good places for printk's to zero in on
the problem, have you ?
i'd be glad to put some in, but i could never work out for myself
where.

regards,

jörn



--
Jörn Nettingsmeier
home://Kurfürstenstr.49.45138.Essen.Germany
phone://+49.201.491621
http://icem-www.folkwang-hochschule.de/~nettings/
http://www.linuxdj.com/audio/lad/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 11:31       ` Jörn Nettingsmeier
@ 2001-05-13 11:41         ` Benjamin Herrenschmidt
  2001-05-13 12:03           ` Jörn Nettingsmeier
  0 siblings, 1 reply; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2001-05-13 11:41 UTC (permalink / raw)
  To: Jörn Nettingsmeier, linuxppc-dev


>ay 14 13:15:01 ephraim pmud[271]: initiating user requested sleep
>
>how can i request sleep ? is there some hotkey that i might be
>triggering ? but then, it seems to happen no matter what i type.
>
>May 14 13:15:01 ephraim pmud[271]: running /etc/power/pwrctl sleep
>battery
>May 14 13:15:01 ephraim pwrctl: no function for PMU 12
>May 14 13:15:01 ephraim pmud[271]: going to sleep

Looks like it's pmud who is triggering the sleep request. Looks like
it thinkgs it got a sleep request from either the "snooze" program,
Batmon sleep button or whatever...

I don't know pmud very well, but I'd rather start from it and add
some debug output to it to see what's going on.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 11:41         ` Benjamin Herrenschmidt
@ 2001-05-13 12:03           ` Jörn Nettingsmeier
  2001-05-13 12:12             ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 16+ messages in thread
From: Jörn Nettingsmeier @ 2001-05-13 12:03 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


Benjamin Herrenschmidt wrote:
>
> >ay 14 13:15:01 ephraim pmud[271]: initiating user requested sleep
> >
> >how can i request sleep ? is there some hotkey that i might be
> >triggering ? but then, it seems to happen no matter what i type.
> >
> >May 14 13:15:01 ephraim pmud[271]: running /etc/power/pwrctl sleep
> >battery
> >May 14 13:15:01 ephraim pwrctl: no function for PMU 12
> >May 14 13:15:01 ephraim pmud[271]: going to sleep
>
> Looks like it's pmud who is triggering the sleep request. Looks like
> it thinkgs it got a sleep request from either the "snooze" program,
> Batmon sleep button or whatever...

when i disable pmud, is there any way to issue sleep requests
"natively" to the kernel ?
like in /proc/sysctl/ ?

i'd rather try that than hacking pmud.

what userland programs do you use on your ti book to make it sleep ?



--
Jörn Nettingsmeier
home://Kurfürstenstr.49.45138.Essen.Germany
phone://+49.201.491621
http://icem-www.folkwang-hochschule.de/~nettings/
http://www.linuxdj.com/audio/lad/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 12:03           ` Jörn Nettingsmeier
@ 2001-05-13 12:12             ` Benjamin Herrenschmidt
  2001-05-13 13:02               ` Jörn Nettingsmeier
  0 siblings, 1 reply; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2001-05-13 12:12 UTC (permalink / raw)
  To: Jörn Nettingsmeier, linuxppc-dev


>
>when i disable pmud, is there any way to issue sleep requests
>"natively" to the kernel ?
>like in /proc/sysctl/ ?
>
>i'd rather try that than hacking pmud.
>
>what userland programs do you use on your ti book to make it sleep ?

There's a version of snooze that directly sends the proper ioctl
to /dev/pmu. But you should rather get pmud fixed as it does
some additional useful things.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 12:12             ` Benjamin Herrenschmidt
@ 2001-05-13 13:02               ` Jörn Nettingsmeier
  2001-05-13 13:13                 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 16+ messages in thread
From: Jörn Nettingsmeier @ 2001-05-13 13:02 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


Benjamin Herrenschmidt wrote:
>
> >
> >when i disable pmud, is there any way to issue sleep requests
> >"natively" to the kernel ?
> >like in /proc/sysctl/ ?
> >
> >i'd rather try that than hacking pmud.
> >
> >what userland programs do you use on your ti book to make it sleep ?
>
> There's a version of snooze that directly sends the proper ioctl
> to /dev/pmu. But you should rather get pmud fixed as it does
> some additional useful things.

ok, to recap this:
sleeping works for you on  a ti powerbook with the same kernel i
use, you are also using pmud
version @(#)$Id: pmud.c,v 1.10 2000/11/21 20:58:32 stephan Exp $,
and you suspect it's pmud that's causing me grief ?

i will use snooze -f for a while to check if that cures it, and
start nagging stephan if it does :)


--
Jörn Nettingsmeier
home://Kurfürstenstr.49.45138.Essen.Germany
phone://+49.201.491621
http://icem-www.folkwang-hochschule.de/~nettings/
http://www.linuxdj.com/audio/lad/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 13:02               ` Jörn Nettingsmeier
@ 2001-05-13 13:13                 ` Benjamin Herrenschmidt
  2001-05-13 18:55                   ` Ira Weiny
  2001-05-13 19:18                   ` Jörn Nettingsmeier
  0 siblings, 2 replies; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2001-05-13 13:13 UTC (permalink / raw)
  To: Jörn Nettingsmeier, linuxppc-dev


>
>ok, to recap this:
>sleeping works for you on  a ti powerbook with the same kernel i
>use, you are also using pmud
>version @(#)$Id: pmud.c,v 1.10 2000/11/21 20:58:32 stephan Exp $,
>and you suspect it's pmud that's causing me grief ?

Not exactly. I use pmud 0.7-2 on a Pismo PowerBook (which is approx
the same motherboard as the TiBook).

>i will use snooze -f for a while to check if that cures it, and
>start nagging stephan if it does :)


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 13:13                 ` Benjamin Herrenschmidt
@ 2001-05-13 18:55                   ` Ira Weiny
  2001-05-13 19:18                   ` Jörn Nettingsmeier
  1 sibling, 0 replies; 16+ messages in thread
From: Ira Weiny @ 2001-05-13 18:55 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, linuxppc-dev


Benjamin Herrenschmidt wrote:
>
>
> Not exactly. I use pmud 0.7-2 on a Pismo PowerBook (which is approx
> the same motherboard as the TiBook).
>
> >i will use snooze -f for a while to check if that cures it, and
> >start nagging stephan if it does :)
>

Version on my TiBook:
pmud-0.7-2

I also get this line when starting up:
pwrctl: no function for PMU 12

Are there specifics for the TiBook or should I alter the script for
pwrctl_G3?

More information:

I just did a series of sleep/wakeups.  No problem...  pmud is reporting
the AC connection/disconnection properly as well.  I have noticed that
snooze in console does not work, even with a USB mouse attached.  I
don't know if that helps at all.  Oh and the sleep/wakeups where with
the USB mouse both _detached_ and _atached_ all seems fine.  But, the
trackpad will not wake the machine only a keypress on the keyboard.

I suppose this does not help much though.  Is there any specific
information which I could give you to help you out Ben?  The messages
file seems to be standard stuff.

Sorry,
Ira


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 13:13                 ` Benjamin Herrenschmidt
  2001-05-13 18:55                   ` Ira Weiny
@ 2001-05-13 19:18                   ` Jörn Nettingsmeier
  2001-05-13 20:57                     ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 16+ messages in thread
From: Jörn Nettingsmeier @ 2001-05-13 19:18 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, linuxppc-dev


Benjamin Herrenschmidt wrote:
>
> >
> >ok, to recap this:
> >sleeping works for you on  a ti powerbook with the same kernel i
> >use, you are also using pmud
> >version @(#)$Id: pmud.c,v 1.10 2000/11/21 20:58:32 stephan Exp $,
> >and you suspect it's pmud that's causing me grief ?
>
> Not exactly. I use pmud 0.7-2 on a Pismo PowerBook (which is approx
> the same motherboard as the TiBook).

well, that's just what i'm using.
but i have a suse distro (7.1).
it works for you ?  no falling asleep, no lockups ?

are there subtle hardware differences on some pismos ?
or could it be due to the distro.... pretty unlikely IMHO, given the
fact that i ditched the SuSE kernel and used yours.
all i could think of are the card manager and the userland usb
stuff.

---

btw, i put the book asleep with snooze -f (circumventing pmud), and
it came back without going back to sleep. so yes, the problem seems
to be pmud.


--
Jörn Nettingsmeier
home://Kurfürstenstr.49.45138.Essen.Germany
phone://+49.201.491621
http://icem-www.folkwang-hochschule.de/~nettings/
http://www.linuxdj.com/audio/lad/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 19:18                   ` Jörn Nettingsmeier
@ 2001-05-13 20:57                     ` Benjamin Herrenschmidt
  2001-05-14  7:45                       ` Jörn Nettingsmeier
  0 siblings, 1 reply; 16+ messages in thread
From: Benjamin Herrenschmidt @ 2001-05-13 20:57 UTC (permalink / raw)
  To: Jörn Nettingsmeier, linuxppc-dev


>well, that's just what i'm using.
>but i have a suse distro (7.1).
>it works for you ?  no falling asleep, no lockups ?

I never had the falling asleep problem. For some reason, your
pmud either receives a sleep message from somebody, or incorrectly
thinks it got one...

I had a few lockups, most related to problems with the kernel
console code (when sleeping from console). I never had a lockup
in X but I know that some part of the kernel are quite fragile
regarding power management (USB for example).

Do you have any other device attached ? (like a PCMCIA card ?)

>are there subtle hardware differences on some pismos ?
>or could it be due to the distro.... pretty unlikely IMHO, given the
>fact that i ditched the SuSE kernel and used yours.
>all i could think of are the card manager and the userland usb
>stuff.
>
>---
>
>btw, i put the book asleep with snooze -f (circumventing pmud), and
>it came back without going back to sleep. so yes, the problem seems
>to be pmud.

You probably need to alter your /etc/pwrctl script, yes. I don't
have mine at hand right now, I'll send it tomorrow.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: pismo sleep behaviour w/ 2.4.4-benh
  2001-05-13 20:57                     ` Benjamin Herrenschmidt
@ 2001-05-14  7:45                       ` Jörn Nettingsmeier
  0 siblings, 0 replies; 16+ messages in thread
From: Jörn Nettingsmeier @ 2001-05-14  7:45 UTC (permalink / raw)
  To: Benjamin Herrenschmidt; +Cc: linuxppc-dev


Benjamin Herrenschmidt wrote:
>
> >well, that's just what i'm using.
> >but i have a suse distro (7.1).
> >it works for you ?  no falling asleep, no lockups ?
>
> I never had the falling asleep problem. For some reason, your
> pmud either receives a sleep message from somebody, or incorrectly
> thinks it got one...
>
> I had a few lockups, most related to problems with the kernel
> console code (when sleeping from console). I never had a lockup
> in X but I know that some part of the kernel are quite fragile
> regarding power management (USB for example).
>
> Do you have any other device attached ? (like a PCMCIA card ?)

no.

> >btw, i put the book asleep with snooze -f (circumventing pmud), and
> >it came back without going back to sleep. so yes, the problem seems
> >to be pmud.
>
> You probably need to alter your /etc/pwrctl script, yes. I don't
> have mine at hand right now, I'll send it tomorrow.

thanks a lot for all your help !

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2001-05-14  7:45 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-12 20:09 pismo sleep behaviour w/ 2.4.4-benh Jörn Nettingsmeier
2001-05-12 20:34 ` Benjamin Herrenschmidt
2001-05-12 21:51   ` Ira Weiny
2001-05-13 10:04     ` Benjamin Herrenschmidt
2001-05-13  7:47   ` Jörn Nettingsmeier
2001-05-13 10:06     ` Benjamin Herrenschmidt
2001-05-13 11:31       ` Jörn Nettingsmeier
2001-05-13 11:41         ` Benjamin Herrenschmidt
2001-05-13 12:03           ` Jörn Nettingsmeier
2001-05-13 12:12             ` Benjamin Herrenschmidt
2001-05-13 13:02               ` Jörn Nettingsmeier
2001-05-13 13:13                 ` Benjamin Herrenschmidt
2001-05-13 18:55                   ` Ira Weiny
2001-05-13 19:18                   ` Jörn Nettingsmeier
2001-05-13 20:57                     ` Benjamin Herrenschmidt
2001-05-14  7:45                       ` Jörn Nettingsmeier

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).