Compaq Evo N600C, apm, battery <10%, hangs

Jesse Guardiani jesse at wingnet.net
Mon Jun 30 06:45:04 PDT 2003


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
> To unsubscribe, send any mail to "freebsd-mobile-unsubscribe at 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




More information about the freebsd-mobile mailing list