From owner-freebsd-current@FreeBSD.ORG Fri Apr 30 17:10:56 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 D84E116A4CE for ; Fri, 30 Apr 2004 17:10:56 -0700 (PDT) Received: from dundee.dcs.gla.ac.uk (dundee.dcs.gla.ac.uk [130.209.242.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86AF243D49 for ; Fri, 30 Apr 2004 17:10:56 -0700 (PDT) (envelope-from csp@csperkins.org) Received: from csperkins-dsl.demon.co.uk ([80.176.225.173]:60665 helo=[192.168.0.5]) by dundee.dcs.gla.ac.uk with asmtp (TLSv1:RC4-SHA:128) (Exim 4.04) id 1BJi5m-0004Sq-00; Sat, 01 May 2004 01:10:55 +0100 In-Reply-To: <200404301702.54522.mistry.7@osu.edu> References: <40909090.3050108@cs.unisa.edu.au> <200404301619.35517.jhb@FreeBSD.org> <200404301702.54522.mistry.7@osu.edu> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <016D38ED-9B04-11D8-A262-000A957FC5F2@csperkins.org> Content-Transfer-Encoding: 7bit From: Colin Perkins Date: Sat, 1 May 2004 01:10:51 +0100 To: Anish Mistry X-Mailer: Apple Mail (2.613) cc: freebsd-current@freebsd.org 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: Sat, 01 May 2004 00:10:57 -0000 On 30 Apr 2004, at 22:02, Anish Mistry wrote: > On Friday 30 April 2004 04:19 pm, John Baldwin wrote: >> 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 > Just tested this, and it seems to work. :) Also appears to work on my ThinkPad X22... very useful! -- Colin Perkins http://csperkins.org/