From owner-freebsd-acpi@FreeBSD.ORG Wed Sep 1 06:17:38 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7467116A4CE for ; Wed, 1 Sep 2004 06:17:38 +0000 (GMT) Received: from root.org (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 4AAA043D41 for ; Wed, 1 Sep 2004 06:17:38 +0000 (GMT) (envelope-from nate@root.org) Received: (qmail 2349 invoked by uid 1000); 1 Sep 2004 06:17:40 -0000 Date: Tue, 31 Aug 2004 23:17:40 -0700 (PDT) From: Nate Lawson To: takawata@jp.freebsd.org In-Reply-To: <200409010238.i812cv4K054209@sana.init-main.com> Message-ID: <20040831231101.N2314@root.org> References: <200409010238.i812cv4K054209@sana.init-main.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-acpi@freebsd.org cc: freebsd-current@freebsd.org cc: Toxa Subject: Re: acpi_video on SONY VAIO PCG-Z1 [was: acpi_video users needed] X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2004 06:17:38 -0000 On Wed, 1 Sep 2004 takawata@jp.freebsd.org wrote: > In message <20040831131628.GA2156@laptoxa.toxa.lan>, Toxa =A4=B5=A4=F3=A4= =A4=A4=EF=A4=AF: > >On Tue, Aug 31, 2004 at 07:41:11PM +0900, takawata@jp.freebsd.org wrote: > >> >dev.acpi_sny.0.brightness=3D10 > >> >sysctl: oid 'dev.acpi_sny.0.brightness' is read only > >> > > >> >nothing happens... > > > >> Sorry, please refetch it from > > > >> http://www.init-main.com/acpi_snc.tar.gz > > > >acpi_sny0: detached > >acpi_snc0: on acpi0 > >[(17:12)(49.34%)(p6):~/tmp/acpi_snc ] sysctl -a|grep snc > >dev.acpi_snc.0.%desc: Sony system controller > >dev.acpi_snc.0.%driver: acpi_snc > >dev.acpi_snc.0.%location: handle=3D\_SB_.PCI0.LPC0.SNC_ > >dev.acpi_snc.0.%pnpinfo: _HID=3DSNY5001 _UID=3D0 > >dev.acpi_snc.0.%parent: acpi0 > >dev.acpi_snc.0.brightness: 94 > >[(17:12)(49.34%)(p6):~/tmp/acpi_snc ] sudo sysctl > >dev.acpi_snc.0.brightness=3D10 > >dev.acpi_snc.0.brightness: 94 -> 10 > >[(17:13)(49.51%)(p6):~/tmp/acpi_snc ] sudo sysctl > >dev.acpi_snc.0.brightness=3D100 > >dev.acpi_snc.0.brightness: 10 -> 100 > >[(17:13)(49.51%)(p6):~/tmp/acpi_snc ] > > > >Yes, it works, thanks a lot! Now I'm wondering how to resume lid from > >suspending. Machine resumes well and I can log in remotely but monitor > >looks "dead" > > I don't imagine why. But any other method in SNC may do something. > I modified the driver so that it exports more methods. > http://www.init-main.com/acpi_snc2.tar.gz > > Testers wanted. The PWAK method looks like you should call it on resume and the PWRN method looks like it should be called by a power button handler. However, there already are control method power and sleep buttons in the AML. It looks like CDPW turns on or off power to the CD drive (1 means on, 0 off). GCDP returns the power state of the CD drive. However, most of these functions are hidden in SMI mode so the only way to find out is to try. -Nate