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
--Boundary-02=_9GaGAOILYs4yeSA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=3D0 > sleep 1 > sysctl hw.acpi.cpu.throttle_state=3D1 > > and to rc.resume: > > sysctl hw.acpi.cpu.throttle_state=3D8 > xset -display :0 dpms force on > sysctl hw.acpi.video.lcd0.active=3D1 > > 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=20 variants thereof? I boot into console and 'startx', in a KDE 3.2 Konsole=20 running the xset/dpms command doesn't yield any results. =2D-=20 Melvyn =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D =46reeBSD sarevok.idg.nl 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Jan 28 18:= 01:18=20 CET 2004 =20 root@sarevok.lan.webteckies.org:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG = =20 i386 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D --Boundary-02=_9GaGAOILYs4yeSA Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQBAGaG9Ov9JNmfFN5URAjyLAJ98rBud+pTDlxVXUvEQyoU7vMo/NgCfeT6v 2p7FEIC3/BxvVU/V+7t/g8g= =LMgX -----END PGP SIGNATURE----- --Boundary-02=_9GaGAOILYs4yeSA--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401300113.49178.freebsd-current>