Date: Fri, 30 Jan 2004 01:13:44 +0100 From: Melvyn Sopacua <freebsd-current@webteckies.org> To: current@FreeBSD.org Subject: Re: API to turn off the display Message-ID: <200401300113.49178.freebsd-current@webteckies.org> In-Reply-To: <1075418369.2662.170.camel@mobius.int.thebadger.org> References: <1075401074.2660.106.camel@mobius.int.thebadger.org> <bvbnk1$56h$1@sea.gmane.org> <1075418369.2662.170.camel@mobius.int.thebadger.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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@sarevok.lan.webteckies.org:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG i386 ======================================================= [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAGaG9Ov9JNmfFN5URAjyLAJ98rBud+pTDlxVXUvEQyoU7vMo/NgCfeT6v 2p7FEIC3/BxvVU/V+7t/g8g= =LMgX -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401300113.49178.freebsd-current>
