Re: laptop resume and apmd

1997-09-25 Thread Olaf Weber
Bruce Perens writes:

 My hypothesis is that apmd is swapped out when the user-suspend signal
 comes in (because there is so little RAM). It takes too long to run, and
 thus the laptop doesn't suspend properly. I also notice that it is logging
 resume, but not suspend.

 Is anyone else experiencing this?

No.  Another guess at what may be happening is that the computer shuts
down during a write to the disk.  AFAIK, the APM BIOS will signal to
apmd that it has received a suspend request, and then wait for a
confirmation that it can perform the actual suspend operation.  If no
confirmation arrives within 20 seconds, it will suspend regardless.

apmd, upon receipt of a suspend request, calls sync, sleeps for 2
seconds, and then signals to the APM BIOS that the machine is ready
for the suspend.  Perhaps these 2 seconds aren't long enough and the
suspend happens during the write to disk.  (Not using apmd means that
the disk isn't sync'ed at all.)

A possible solution might then be to get the sources of apmd and make
it sleep longer before suspending.  The relevant sleep call is found
in the apm_suspend function in apmlib.c.

-- 
Olaf Weber


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


laptop resume and apmd

1997-09-24 Thread Bruce Perens
I had a problem with laptop resume. I'm running a Toshiba 440CDT laptop,
with 16M ram and a 800x600 24-bit deep display. I have it set up to suspend
when the cover is closed and resume when it is opened. When I am running
apmd, I am subject to resume failures - you have to cold-boot the OS and
check the filesystems. I removed apmd and the problem cleared up.

My hypothesis is that apmd is swapped out when the user-suspend signal
comes in (because there is so little RAM). It takes too long to run, and
thus the laptop doesn't suspend properly. I also notice that it is logging
resume, but not suspend.

Is anyone else experiencing this?

Thanks

Bruce Perens
-- 
Can you get your operating system fixed when you need it?
Linux - the supportable operating system. http://www.debian.org/support.html
Bruce Perens K6BP   [EMAIL PROTECTED]   NEW PHONE NUMBER: 510-620-3502


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .