Hi Andy,
[EMAIL PROTECTED] writes:
> Oh hey, look at "check_events". You are right.
> It doesn't look like notifiers will be called on
> critical suspend (no call to send_event or
> directly to pm_send_all).
>
> Stephen, this is a bug, right? Or intended?
No, it is not a bug. To quote the APM spec:
"4.3.9 Critical System Suspend Notification
This notifies the APM driver that the APM BIOS has detected a situation
in which the system must be suspended without notification to APM-aware
applications. This notification is intended to be used by the APM Driver
to perform emergency shutdown actions. The APM Drivers must recognize the
power management event and then issue the Set Power State function call
to set the system state to Suspend without delay, and without notifying
its applications or device drivers first."
There is, however an out here as the spec goes on to say:
"However, once the APM Driver receives the Critical Suspend Notification,
the BIOS must wait at least 5 seconds from the time that the APM Driver
recieves the Critical Suspend Notification for it to call the Set Power
State to suspend (BX=0001H, CX=0002H). This must be done because it
may not be possible to properly resume the devices in the system if it
is suspended before the operating system becomes aware of the impending
shutdown."
So, I am open to suggestions ...
> > -----Original Message-----
> > From: Dunlap, Randy
> > Sent: Monday, May 01, 2000 11:41 AM
> > To: Henroid, Andrew D
> > Subject: FW: [linux-usb] APM critical suspend is different from normal
> > suspend?
> >
> > Andy,
> >
> > Do you know the answer to this?
> >
> > tnx,
> > Randy
> >
> > -----Original Message-----
> > From: Pavel Machek [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, April 30, 2000 1:09 PM
> > To: [EMAIL PROTECTED]
> > Cc: [EMAIL PROTECTED]
> > Subject: [linux-usb] APM critical suspend is different from normal
> > suspend?
> >
> >
> > Hi!
> >
> > During normal apm suspend, usb works. When doing critical apm suspend
> > (low bateries) apm stops working. I can recover it when I force normal
> > apm suspend.
> >
> > Are not pm notifiers called on critical suspend?
> > Pavel
Cheers,
Stephen
--
Stephen Rothwell, Open Source Project Engineer, Linuxcare, Inc.
+61-2-62628990 tel, +61-2-62628991 fax
[EMAIL PROTECTED], http://www.linuxcare.com/
Linuxcare. Support for the revolution.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]