From owner-freebsd-current@FreeBSD.ORG Wed Jan 28 17:15:45 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 40A8016A4CE for ; Wed, 28 Jan 2004 17:15:45 -0800 (PST) Received: from mail.vineyard.net (k1.vineyard.net [204.17.195.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30A3343D3F for ; Wed, 28 Jan 2004 17:15:43 -0800 (PST) (envelope-from joshe@jade.elsasser.org) Received: from localhost (loopback [127.0.0.1]) by mail.vineyard.net (Postfix) with ESMTP id 60CB897E21 for ; Wed, 28 Jan 2004 20:14:46 -0500 (EST) Received: from mail.vineyard.net ([127.0.0.1]) by localhost (king1.vineyard.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09384-05 for ; Wed, 28 Jan 2004 20:14:46 -0500 (EST) Received: from jade.elsasser.org (loopback [127.0.0.1]) by mail.vineyard.net (Postfix) with ESMTP id B933697DFB for ; Wed, 28 Jan 2004 20:14:45 -0500 (EST) Received: by jade.elsasser.org (Postfix, from userid 1000) id 30BDC94; Wed, 28 Jan 2004 20:14:44 -0500 (EST) Date: Wed, 28 Jan 2004 20:14:44 -0500 From: Josh Elsasser To: Taku YAMAMOTO Message-ID: <20040129011443.GA55901@jade.elsasser.org> References: <200401272247.59306.freebsd-current@webteckies.org> <20040128.083215.114732225.imp@bsdimp.com> <20040128181110.GC775@laptop.lambertfam.org> <200401281319.02208.jhb@FreeBSD.org> <20040129060727.619f3866.taku@cent.saitama-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040129060727.619f3866.taku@cent.saitama-u.ac.jp> User-Agent: Mutt/1.4.1i X-PGP-Key-URL: http://www.elsasser.org/pubkey.asc X-PGP-Key-Fingerprint: 8F39 9F2B 3738 54D9 3E40 4604 CFD5 EA3F B833 FD50 X-Virus-Scanned: by AMaViS at Vineyard.NET cc: freebsd-current@freebsd.org 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: Thu, 29 Jan 2004 01:15:45 -0000 On Thu, Jan 29, 2004 at 06:07:27AM +0900, Taku YAMAMOTO 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. > > Sincerely, > taku > -- > -|-__ YAMAMOTO, Taku > | __ < I get this output when I load the driver: acpi_vid0: port 0x530-0x537 on acpi0 found TV(200), detectable by BIOS, head #0 The only sysctl I get is hw.acpi.video.tv0.active, which was set to 1. When I set it to 0, the display powers off. I can't seem to set the sysctl back to 1, so cannot turn the display back on. Note that on resume from S3 sleep, my display will also not power on, and I have to set hw.acpi.reset_video=0 in /boot/loader.conf or I will hang on resume. This machine is a Sony Vaio FX200 running -CURRENT from a few weeks ago, and has VGA and a tv-out ports. I suspect my BIOS is quite broken, as I have had endless issues with IRQ routing, USB, PCMCIA, and ACPI. I have made my ASL and DSDT available here: http://www.elsasser.org/vaio.asl http://www.elsasser.org/vaio.dsdt I am primarily interested in a way to power on my display after resume, but it would be nice to be able to use the VGA and tv-out ports as well. Thanks for any help you may be able to provide. -jre