From owner-freebsd-current@FreeBSD.ORG Sat Jan 31 09:35: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 D6D6E16A4CE for ; Sat, 31 Jan 2004 09:35:31 -0800 (PST) Received: from mx.x123.info (165.Red-80-37-224.pooles.rima-tde.net [80.37.224.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE73643D2D for ; Sat, 31 Jan 2004 09:35:20 -0800 (PST) (envelope-from esn@x123.info) Received: by mx.x123.info (Postfix, from userid 1000) id 679E41742F; Sat, 31 Jan 2004 18:35:07 +0100 (CET) Date: Sat, 31 Jan 2004 18:35:07 +0100 From: "Sebastian Yepes F. [ESN]" To: freebsd-current@freebsd.org Message-ID: <20040131173507.GA22680@x123.info> References: <20040131153340.se80400wwc0sosss@agosto> <200401311659.11006.freebsd-current@webteckies.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401311659.11006.freebsd-current@webteckies.org> User-Agent: Mutt/1.5.5.1i 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: Sat, 31 Jan 2004 17:35:32 -0000 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: > > > > 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@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 */