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

Jesse Guardiani <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Organization WingNET
Message-ID <[email protected]>
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
> _______________________________________________
> [email protected] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
> To unsubscribe, send any mail to "[email protected]"

-- 
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


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.