From owner-freebsd-current@FreeBSD.ORG Tue Aug 31 08:44:31 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 091A516A4D1 for ; Tue, 31 Aug 2004 08:44:31 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FE7D43D2F for ; Tue, 31 Aug 2004 08:44:30 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1C24Ff-0002xw-Pq; Tue, 31 Aug 2004 12:44:27 +0400 From: Vladimir Grebenschikov To: takawata@jp.freebsd.org In-Reply-To: <200408310502.OAA20287@axe-inc.co.jp> References: <200408310502.OAA20287@axe-inc.co.jp> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: SWsoft Date: Tue, 31 Aug 2004 12:44:27 +0400 Message-Id: <1093941867.29903.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 1.5.93FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov X-Mailman-Approved-At: Tue, 31 Aug 2004 11:58:53 +0000 cc: "current@freebsd.org" Subject: Re: acpi_video on SONY VAIO PCG-Z1 [was: acpi_video users needed] 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: Tue, 31 Aug 2004 08:44:31 -0000 On Tue, 2004-08-31 at 14:02 +0900, takawata@jp.freebsd.org wrote: > In message <1093891970.1195.25.camel@localhost>, Vladimir Grebenschikov wrote: > >On Tue, 2004-08-31 at 03:31 +0900, takawata@jp.freebsd.org wrote: > > > >> >> >Is any chance to make acpi_video work on SONY VAIO PCG-Z1 ? > >> >> >acpi_video.ko loads well, but does not report anything, and does not add > >> >> >hw.acpi.video subtree. > >> >> > > >> >> >Please advise. > >> >> > >> >> Because the ACPI device object has not enough interfaces to get the > >> >> acpi_video driver work. > >> >> Acpi_video driver does not check PCI device class: it checks the > >> >> interfaces instead. > >> >> You don't need to bother attaching acpi_video driver. > >> > > >> >Ok, And what conclusion "no-way" ? > >> > >> You may hack the driver to do so.:-) > > > >Oh ... first i need to hack WinXP driver to find how to control LCD > >brightniness. > > > >> But, in your machine, the driver does not work anything but > >> recognize that the video adaptor has 3 way output. And > >> you can't use acpi_video, if you want to use DRM or nvidia kernel module. > > > >I have ATI RADEON MOBILITY, so no need nvidia module. > > > >Can you provide me a bit of theory ? > > > >Who usual responsible for LCD bacllight control ? > > video-chip(ATI) / chipset(Intel) / special device on bus ? > > It seems to be controlled by Special device on bus called embedded controller. > You can use it with setbrightness in ports/sysutils/sjog or > ports/graphics/picturebook. But these tools are a bit dangerous because > it will conflict with ACPI(These tools are based on disassembled AML before > ACPI support is not populler in free unicies.) > . > I just wrote a driver for it. I hope it will help you. > http://www.init-main.com/acpi_snc.tar.gz Yes, it works, now I can control LCD backlight brightness. $ setbrightness 50 $ setbrightness 255 # sysctl dev.acpi_snc dev.acpi_snc.0.%desc: Sony system controller dev.acpi_snc.0.%driver: acpi_snc dev.acpi_snc.0.%location: handle=\_SB_.PCI0.LPCB.SNC_ dev.acpi_snc.0.%pnpinfo: _HID=SNY5001 _UID=0 dev.acpi_snc.0.%parent: acpi0 dev.acpi_snc.0.brightness: 60 # Now only issue I am warry about "How to awake screen after suspend ?" -- Vladimir B. Grebenschikov SWsoft Inc. vova@sw-soft.com