From owner-freebsd-mobile Fri Oct 11 13:37:55 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9359A37B401 for ; Fri, 11 Oct 2002 13:37:54 -0700 (PDT) Received: from macwombat.iadfw.net (fa.57.cf9e.cidr.airmail.net [207.158.87.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22E9943E8A for ; Fri, 11 Oct 2002 13:37:54 -0700 (PDT) (envelope-from gordon@macwombat.iadfw.net) Received: from gordon by macwombat.iadfw.net with local (Exim 4.10) id H3U3Z5-0006NC-00 for freebsd-mobile@freebsd.org; Fri, 11 Oct 2002 15:37:53 -0500 To: freebsd-mobile@freebsd.org From: gordonb.uwu89@sneaky.lerctr.org (Gordon Burditt) Subject: Re: Power X-Newsgroups: mailing.freebsd.mobile In-Reply-To: Organization: Cc: Message-Id: Date: Fri, 11 Oct 2002 15:37:53 -0500 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >On Monday 07 October 2002 09:19 am, Pookie wrote: >| How does FreeBSD handle itself when i disconnect the power plug on my >| laptop? I'm not sure how this works. Can someone please direct me in >| the proper direction? > >Why would FreeBSD have to "do" anything? Maybe it doesn't HAVE to "do" anything, but I have found that on my Sony VAIO PCG-FXA47 laptop it does. It freezes up. I'm running my laptop from AC power, but with a fully charged battery. A windstorm causes a brief (3-second) power outage. FreeBSD has frozen. It's very easy to reproduce this, although there have been some times when a reproduction attempt failed. The same thing does NOT happen with Windows XP. With XP, the icon changes to a battery, but it keeps on running. The 4.6.2-RELEASE kernel has APM compiled in and in use. I've also tried later STABLE versions, no change. Things like "shutdown -p" work. Suspend (zzz) also sort of works but dhclient ends up making tons of log entries, complaining about wi0 going away, when it wakes up. >Your laptop should handle it itself down in the hardware. > >If you have apm enabled, then FreeBSD's apm calls can *discover* that >the power is now coming from the battery rather than the plug, but the >operating system isn't called upon to *do* anything. Are you sure that APM doesn't try to notify the OS that power has gone, and FreeBSD doesn't know what to do with such notificaton? > >The proepr directions are to plug & unplug at will . . . if you want to Not with my laptop. >monitor the status properly, enable apm in your kernel and in your >rc.conf. Gordon L. Burditt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message