Re: API to turn off the display

From: Melvyn Sopacua <freebsd-current_at_webteckies.org>
Date: Fri, 30 Jan 2004 01:13:44 +0100
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
=======================================================

Received on Thu Jan 29 2004 - 15:13:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:40 UTC