From owner-freebsd-current@FreeBSD.ORG Thu Jan 29 16:13:56 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31CC316A4CE for ; Thu, 29 Jan 2004 16:13:56 -0800 (PST) Received: from sarevok.idg.nl (node123e0.a2000.nl [24.132.35.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E1C343D46 for ; Thu, 29 Jan 2004 16:13:50 -0800 (PST) (envelope-from mdev@sarevok.idg.nl) Received: by sarevok.idg.nl (Postfix, from userid 100) id 8CBEFB82A; Fri, 30 Jan 2004 01:13:49 +0100 (CET) From: Melvyn Sopacua Organization: WebTeckies.org To: current@FreeBSD.org Date: Fri, 30 Jan 2004 01:13:44 +0100 User-Agent: KMail/1.5.94 References: <1075401074.2660.106.camel@mobius.int.thebadger.org> <1075418369.2662.170.camel@mobius.int.thebadger.org> In-Reply-To: <1075418369.2662.170.camel@mobius.int.thebadger.org> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Boundary-02=_9GaGAOILYs4yeSA"; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200401300113.49178.freebsd-current@webteckies.org> Subject: Re: API to turn off the display X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 00:13:56 -0000 --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--