Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2004 14:39:22 +0400
From:      Vladimir Grebenschikov <vova@fbsd.ru>
To:        current@freebsd.org
Subject:   Re: acpi_video on SONY VAIO PCG-Z1 [was: acpi_video users needed]
Message-ID:  <1093948763.29903.16.camel@localhost>
In-Reply-To: <200408310502.OAA20287@axe-inc.co.jp>
References:  <200408310502.OAA20287@axe-inc.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
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
-- 
Vladimir B. Grebenchikov
vova@fbsd.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1093948763.29903.16.camel>