From owner-freebsd-current@FreeBSD.ORG Sat May 22 16:21:59 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 9413B16A4CE; Sat, 22 May 2004 16:21:59 -0700 (PDT) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27B8F43D48; Sat, 22 May 2004 16:21:59 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.12.9p2/8.12.9) with ESMTP id i4MNLj7E034996; Sat, 22 May 2004 16:21:48 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200405222321.i4MNLj7E034996@gw.catspoiler.org> Date: Sat, 22 May 2004 16:21:44 -0700 (PDT) From: Don Lewis To: jhb@FreeBSD.org In-Reply-To: <200404301619.35517.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii 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, 22 May 2004 23:21:59 -0000 On 30 Apr, 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 It doesn't seem to do anything on my Thinkpad R40. If I run xset +dpms; xset force dpms off; xset q xset tells me that the monitor is in the off state, but there are no visible changes to the backlight or display. This was also true without the patch. The backlight shuts off in the S3 state, but happens even without acpi_video loaded. Also, the backlight intensity buttons do not appear to require any OS support. They have just always worked. My laptop does have a _DOD method.