API to turn off the display

Melvyn Sopacua freebsd-current at webteckies.org
Wed Jan 28 05:49:48 PST 2004


On Wednesday 28 January 2004 11:05, Andre Guibert de Bruet wrote:
> On Wed, 28 Jan 2004, Melvyn Sopacua wrote:
> > On Wednesday 28 January 2004 05:07, Seth Chandler wrote:
> > > >currently closing the lid doesn't properly turn off the display (when
> > > > running X it gets to console mode, but doesn't turn off completely).
> > > >
> > > >I'd like to get tackle this by hooking into devd until this hopefully
> > > > is resolved, but cannot find any information on a userland utility or
> > > > system API for the vga/syscons/screen drivers to accomplish that.
> > > >
> > > >Is there such a thing?
> > >
> > > It really depends on the video card you're using.  If your laptop has a
> > > radeon, i suggest checking out radeontool from
> > >
> > > http://fdd.com/software/radeon/
> >
> > Nope, I have an nvidia GeForce 4200Go. Is there really no generic hook
> > for a videocard/monitor to suspend/poweroff? How did apm handle this?
>
> Through functionality provided by the BIOS. A 30-second search through the
> source would have shown the answer in /usr/src/sys/i386/bios/apm.c:334
> with apm_display().

Hmm. Disabling ACPI and turning APM on doesn't make a difference (tried that 
some time ago).
I'll doublecheck my BIOS settings and otherwise turn on ACPI_DEBUG and 
concentrate on acpi_powerres.c:290.
-- 
Melvyn

=======================================================
FreeBSD sarevok.webteckies.org 5.2-CURRENT FreeBSD 5.2-CURRENT #3: Tue Dec 30 
14:31:47 CET 2003     
root at sarevok.idg.nl:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG  i386
=======================================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040128/72203f6c/attachment-0001.bin


More information about the freebsd-current mailing list