API to turn off the display

Melvyn Sopacua freebsd-current at webteckies.org
Thu Jan 29 16:13:56 PST 2004


On Friday 30 January 2004 00:19, James Green wrote:

> Recompiled the kernel with:
> options SC_NO_SUSPEND_VTYSWITCH
>
> and now it all works!
>
> I added to rc.suspend:
>
> xset -display :0 dpms force off
> sleep 3
> sysctl hw.acpi.video.lcd0.active=0
> sleep 1
> sysctl hw.acpi.cpu.throttle_state=1
>
> and to rc.resume:
>
> sysctl hw.acpi.cpu.throttle_state=8
> xset -display :0 dpms force on
> sysctl hw.acpi.video.lcd0.active=1
>
> The order of DPMS and ACPI is important. This works on both the console
> and in X. Next up is to add in ataidle...

Thanx very much for working this out. Does this only work when running xdm or 
variants thereof? I boot into console and 'startx', in a KDE 3.2 Konsole 
running the xset/dpms command doesn't yield any results.

-- 
Melvyn

=======================================================
FreeBSD sarevok.idg.nl 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Jan 28 18:01:18 
CET 2004     
root at sarevok.lan.webteckies.org:/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/20040130/8dcaa859/attachment-0001.bin


More information about the freebsd-current mailing list