From owner-freebsd-current@FreeBSD.ORG Mon Mar 15 07:21:54 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 DA92816A4CE for ; Mon, 15 Mar 2004 07:21:54 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB1A843D2F for ; Mon, 15 Mar 2004 07:21:54 -0800 (PST) (envelope-from welchsm@earthlink.net) Received: from c-24-118-219-83.mn.client2.attbi.com ([24.118.219.83] helo=NitroPhys.welchsmnet.net) by heron.mail.pas.earthlink.net with asmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.33 #1) id 1B2tuC-0004Xl-00 for freebsd-current@freebsd.org; Mon, 15 Mar 2004 07:21:34 -0800 Received: from NitroPhys.welchsmnet.net (localhost [127.0.0.1]) i2FFK1BB017830 for ; Mon, 15 Mar 2004 09:20:07 -0600 (CST) (envelope-from welchsm@localhost.welchsmnet.net) Received: (from welchsm@localhost) by NitroPhys.welchsmnet.net (8.12.10/8.12.10/Submit) id i2FFK1mD017829 for freebsd-current@freebsd.org; Mon, 15 Mar 2004 09:20:01 -0600 (CST) (envelope-from welchsm) Date: Mon, 15 Mar 2004 09:20:01 -0600 From: Sean Welch To: freebsd-current@freebsd.org Message-ID: <20040315152001.GA17778@NitroPhys.welchsmnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-ELNK-Trace: 15d86f98c8ef8acad780f4a490ca69564776905774d2ac4bf2b9ce1156be4af3d7da26c9fc728f1c350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Mailman-Approved-At: Tue, 16 Mar 2004 05:02:50 -0800 Subject: 5.2.1-RELEASE and devd.conf notify statement X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 15:21:55 -0000 I seem to be attempting to configure an unsupported feature here. What I am trying to accomplish is a change in powersaving mode of my wireless card (wi0) triggered by a change in AC line status. Reading /etc/devd.conf leads one to believe that the use of a "notify" entry is the correct way to proceed (there is an example at the bottom of the file). The manpage however has no mention at all of a notify statement; only "options", "attach", "detach", and "nomatch" are listed as supported. Which is correct? My entries using the notify statement all appear to be inoperative. I have copied the example and changed only the "action" line. I have tried both action "/etc/rc.wireless_powerstate"; and action "/bin/echo $notify >> /tmp/powerstate"; Neither seems to do anything at all. The first is an executable shell script that works fine when executed from the command line (rather counter productive if that's what I have to do!!). Since I do not know if devd continuously scans its config file (can anyone tell me if it does or does not?) I also tried rebooting after making changes. There was no difference in behavior. Could someone help me out here? Is this a feature that isn't actually implemented in 5.2.1-RELEASE and shouldn't be expected to work? Sean