Re: API to turn off the display

From: Sebastian Yepes F. [ESN] <esn_at_x123.info>
Date: Sat, 31 Jan 2004 18:35:07 +0100
On Sat, Jan 31, 2004 at 04:59:07PM +0100, Melvyn Sopacua wrote:
> On Saturday 31 January 2004 15:33, Sebastian Yepes F. [ESN] wrote:
> > > I wrote a driver that handles what John told.
> > >
> > > http://access.cent.saitama-u.ac.jp/~taku/freebsd/acpi_vid-20031013.tar.gz
> > > MD5 (acpi_vid-20031013.tar.gz) = adbfa6931e505544fb784e00c7b974e7
> > >
> > > This driver uses ACPI video extension to control display switching and
> > > backlight brightness. So working ACPI is a requisition for this driver.
> > >
> > > Whether it does or does not work depends heavily on how well the BIOS
> > > written, however, I hope it worth trying.
> > >
> > > Suggestions, working/not-working reports etc are very appreciated.
> >
> > Working 100% in my Dell Inspironn 8500 with nvidia0: <GeForce4 4200 Go>
> >
> > Thanx for tis this mod. i really needed it..
> 
> That's the same vid I got. Does X work for you (especially exiting from X to 
> console without distortion) and if so, what's your XF86Config look like?
> -- 
> Melvyn
> 
> =======================================================
> FreeBSD sarevok.webteckies.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Wed Jan 28 
> 18:01:18 CET 2004     
> root_at_sarevok.lan.webteckies.org:/usr/obj/usr/src/sys/SAREVOK_NOAPM_NODEBUG  
> i386
> =======================================================

I have this setup..

/etc/rc.lid <- set mode 751
--
STAT=`sysctl hw.acpi.video.lcd0.active |awk '{print $2}'`

sync && sync && sync

if [ $STAT = 1 ]; then
        logger -t Lid Close at `date +'%Y%m%d %H:%M:%S'`
        sysctl hw.acpi.video.lcd0.active=0
        sysctl hw.acpi.cpu.throttle_state=1
        echo A >/dev/speaker
else
        logger -t Lid Open at `date +'%Y%m%d %H:%M:%S'`
        sysctl hw.acpi.cpu.throttle_state=8
        sysctl hw.acpi.video.lcd0.active=1
        echo C >/dev/speaker
fi
--



/etc/sysctl.conf
--
...
..
hw.acpi.video.lcd0.active=1
hw.acpi.lid_switch_state=NONE
--

/etc/devd.conf
--
...
..
notify 10 {
        match "system"		"ACPI";
        match "subsystem"	"Lid";
        action			"/etc/rc.lid";
};
--


Notes::

Remember to set en the /etc/rc.conf (devd_enable="YES").


I think that the acpi_vid.ko haves i small error the hw.acpi.video.*.active sude start =1 not =0
this is way a put =1 in the sysctl.conf, because i like to start with my TFT ON xD

My XF86Config-4 file http://www.x123.info/docs/i8500/XF86Config-4

Any comments plz email me..

Thax one more time for the creation of acpi_vid.ko xDD

-- 

if (Better You Treat Them) { return "Worst You Get Treated"; }

I have a dream that one day this nation will rise up and live out the true meaning of its creed..
(Martin Luther King)
/*
www:
 http://www.x123.info

Contect:			FingerPrint:
 esn aT x123.info		 0D42 F870 F650 6B86 CA9E
 esn aT freshpkgsrc.org		 E199 A57D 3824 F8AA A934
 sebastian.yepes aT hp.com
*/
Received on Sat Jan 31 2004 - 08:35:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:41 UTC