From owner-freebsd-questions Sun Dec 22 7:15:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D84C137B401 for ; Sun, 22 Dec 2002 07:15:52 -0800 (PST) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D72043EDE for ; Sun, 22 Dec 2002 07:15:52 -0800 (PST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by rwcrmhc53.attbi.com (rwcrmhc53) with ESMTP id <2002122215155105300k5srme>; Sun, 22 Dec 2002 15:15:51 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.6/8.12.6) with ESMTP id gBMFFpQc019239; Sun, 22 Dec 2002 10:15:51 -0500 (EST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id gBMFFo9o019236; Sun, 22 Dec 2002 10:15:50 -0500 (EST) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: "J. Seth Henry" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: blank saver question References: <20021220135235.K57534-100000@whitetower.gambrl01.md.comcast.net> From: Lowell Gilbert Date: 22 Dec 2002 10:15:50 -0500 In-Reply-To: <20021220135235.K57534-100000@whitetower.gambrl01.md.comcast.net> Message-ID: <44fzsq9ja1.fsf@be-well.ilk.org> Lines: 24 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "J. Seth Henry" writes: > Hello, > I am working on adapting FreeBSD to a Compaq IA-1. The display on this > system is not DPMS compliant, so shutting off the backlight requires > writing to a PCI register. > > I currently have a small C program which I can use to manipulate this > register from the command line, and I would like to either integrate, or > call, this code from the blanksaver module. Unfortunately, I don't know > enough about how it works to change it. > > Could someone give me some tips on how to do this? Is it as simple as > simply adding the code to the blank_saver() function, and adding the > appropriate header and include files? I'm a bit nervous mucking in > modules, as I understand they can cause "problems" that are hard to > recover from. Offhand, that looks like a good approach. Try it and see; if you have problems, just change things back. > If it is, this would be a good place to initialize all of the front panel > LED's as well :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message