Date: Mon, 30 Jun 2003 09:43:02 -0400 From: Jesse Guardiani <jesse@wingnet.net> To: freebsd-mobile@freebsd.org Subject: Re: Compaq Evo N600C, apm, battery <10%, hangs Message-ID: <bdpeoc$p8t$1@main.gmane.org> References: <20030629193527.GA39421@kaktusas.org> <20030630104114.GA61925@kaktusas.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Paulius Bulotas wrote: > Hello ;) > > Since I got 0 responses, I've already have better question ;) > it seems, after battery reaches 9% APM debug(sysctl debug.apm_debug=1) > says: > Received APM Event: PMEV_BATTERYLOW > * * * BATTERY IS LOW * * * > > and system goes to sleep (suspends?). From console it suspends/resumes > ok, but if I'm in X, it freezes and I have to reset... > > So, the question would be, how can I tune FreeBSD reaction to > PMEV_BATTERYLOW event? You can use vidcontrol from /etc/rc.suspend to automatically switch to a VTY before suspending. I think this will require running apmd, but it's probably a good idea. Try something like this from rc.suspend: # switch to a VTY vidcontrol -s 1 < /dev/ttyv0 Also, there is a kernel build option that allows some laptops to suspend from X without switching to a VTY. It worked for me on my laptop (IBM A30p) as long as my funky DVD drive wasn't inserted in my Ultrabay: options SC_NO_SUSPEND_VTYSWITCH However, I'm not sure if that's a 5.x only thing, or if it exists in 4.x as well... > > Thanks, > Paulius > _______________________________________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bdpeoc$p8t$1>