From owner-freebsd-mobile Tue Nov 18 07:38:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA29643 for mobile-outgoing; Tue, 18 Nov 1997 07:38:26 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from kn6-045.ktvlpr.inet.fi (ari@kn6-045.ktvlpr.inet.fi [194.197.169.45]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA29630 for ; Tue, 18 Nov 1997 07:38:07 -0800 (PST) (envelope-from ari@kn6-045.ktvlpr.inet.fi) Received: from localhost (ari@localhost) by kn6-045.ktvlpr.inet.fi (8.8.5/8.8.5) with SMTP id RAA29351 for ; Tue, 18 Nov 1997 17:37:46 +0200 (EET) Date: Tue, 18 Nov 1997 17:37:45 +0200 (EET) From: Ari Suutari To: freebsd-mobile@freebsd.org Subject: APM and Compaq Contura 400CX Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I've been using FreeBSD-current on my Compaq Contura 400CX for some time now. Things are almost perfect, there is just one problem with suspend/resume. When I suspend the machine by pressing suspend button, apm driver seems to get PMEV_SUSPENDREQ as expected. However, in apm_suspend (in i386/apm.c), when system calls apm_processevent after calling apm_suspend_system, it receives many extraneous PMEV_SUSPENDREQ events. I guess that this is caused by bios not clearing the event correctly in this situation, since adding a small delay before calling apm_processevent makes everything to work OK. Otherwise, the system goes into infinite loop trying to process another suspend request and another and another... Eventually it crashes. I have upgraded my bios to newest version available from Compaq - no change in behaviour. Could it be possible to alter apm driver somehow (I don't know what would be the correct way to do it) to make it more tolerable for this kind of bios behaviour ? Ari Lappeenranta, Finland