From owner-freebsd-current@FreeBSD.ORG Fri Apr 30 13:19:25 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 1A78616A4CE for ; Fri, 30 Apr 2004 13:19:25 -0700 (PDT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id E59F343D5C for ; Fri, 30 Apr 2004 13:19:24 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 16773 invoked from network); 30 Apr 2004 20:19:24 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 30 Apr 2004 20:19:24 -0000 Received: from 10.50.40.205 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id i3UKJKCY037568; Fri, 30 Apr 2004 16:19:21 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@FreeBSD.org Date: Fri, 30 Apr 2004 16:19:35 -0400 User-Agent: KMail/1.6 References: <40909090.3050108@cs.unisa.edu.au> In-Reply-To: <40909090.3050108@cs.unisa.edu.au> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200404301619.35517.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx Subject: Re: VESA DPMS Driver 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: Fri, 30 Apr 2004 20:19:25 -0000 On Thursday 29 April 2004 01:20 am, Benjamin Close wrote: > Hi All, > I like many have suffered the battery drain of the laptop screen > remaining on while the system is suspended. I've created a driver that > allows the screen to be shutdown by DPMS provided acpi supports video > mode changes. Beware, this is my first kernel driver so it's nothing > great. Hopefully it will help someone with enough knowledge build a > better driver. > > It's a loadable kernel module and the only tweak required to get it > compiling should be in the Makefile. > > You can grab it from: > http://www.clearchain.com/people/benjsc/download/vesa_dpms.tar.gz > A URL as the list strips attachments. I merged this into the acpi_video(4) driver (which already takes over ACPI devices with a DOD, etc. handle) so that the two drivers aren't mutually exclusive. Unfortunately, my laptop doesn't have any _DOD, etc. methods for its video device so I can't test it. It's somewhat hackish as only i386 has VM86 support, but the patch is at: http://www.FreeBSD.org/~jhb/patches/acpi_video_dpms.patch -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org