From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 4 17:46:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34925106568D for ; Fri, 4 Jul 2008 17:46:18 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id A492B8FC0C for ; Fri, 4 Jul 2008 17:46:17 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so467374nfh.33 for ; Fri, 04 Jul 2008 10:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent:sender; bh=riZpLqEYbRvcyig8clAj9pg39PPGmjWnsddMJFp7O6w=; b=YA3jqqXaujKQ+FBfIsOKi01oZ14cVhn6c7Mz3aMBinVNu00xzb/zbIgOSG7Rh/Y5R2 6bidFf8W6uCSQuUsRFQNNGwItsILBvhLgyQ3gvrH6t9PfSuAuZae6Sd0NKCZ3cnE2mez 2Qrq5XQkim2Dj7sSEeYnTjM+JIePGy/ZAv3sA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent:sender; b=h3TmTwBgCqQedXyLGLj069Yf03t1hNLrRpO3HZAT3w+DhCJ9clxqDZvPCTXcWnMcFE vcrSQxjGJNwu+yhxndBtZppZz4AjTw2Y53HUQzJywFUDkB85bCkOEbFJm+A069hIdbEE UTeHAEQ5wiWiTUdnPod/qYDkULYAHxdxhPC5s= Received: by 10.210.22.16 with SMTP id 16mr540181ebv.86.1215193576476; Fri, 04 Jul 2008 10:46:16 -0700 (PDT) Received: from phi.local ( [89.214.206.15]) by mx.google.com with ESMTPS id f13sm757444gvd.2.2008.07.04.10.46.13 (version=SSLv3 cipher=RC4-MD5); Fri, 04 Jul 2008 10:46:15 -0700 (PDT) Date: Fri, 4 Jul 2008 18:44:44 +0100 From: Rui Paulo To: Matthias Apitz Message-ID: <20080704174444.GC3560@phi.local> References: <20080626075545.GA2964@rebelion.Sisis.de> <20080626231603.GC6875@phi.local> <20080627080203.GA19602@rebelion.Sisis.de> <20080627194447.GA34524@phi.local> <20080629160527.GA17075@rebelion.Sisis.de> <20080629162234.GB1261@phi.local> <20080701090220.GA4431@rebelion.Sisis.de> <20080701111426.GA1152@phi.local> <20080704144002.GA3661@rebelion.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080704144002.GA3661@rebelion.Sisis.de> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: Rui Paulo Cc: freebsd-hackers@FreeBSD.org, james@nighthack.org, Rui Paulo , Manolis Kiagias Subject: Re: eeePC 900 && turning off wireless (ath0) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2008 17:46:18 -0000 On Fri, Jul 04, 2008 at 04:40:02PM +0200, Matthias Apitz wrote: > El día Tuesday, July 01, 2008 a las 12:14:26PM +0100, Rui Paulo escribió: > > > On Tue, Jul 01, 2008 at 11:02:20AM +0200, Matthias Apitz wrote: > > > Rui, > > > Have you commited your changes to RELENG_7 too or only to HEAD? I'm > > > asking because Fn+F2 does toggle the power of the wireless NIC but > > > devd(8) does not see any ACPI event in this case; it sees it for example > > > if the battery comes full; > > > > > > thx for clarifying this > > > > > > could you please send me the /etc/devd.conf file you mention in the page > > > http://wiki.freebsd.org/AsusEee ? in the one which came out of CVS with > > > RELENG_7 I could not see anything about hotkeys; thx in advance > > > > Only to HEAD. I'm going to MFC it today. > > Hello Rui, > > With your changes of acpi_asus.c in RELENG_7 the devd(8) and my > hook-script in /usr/local/etc/devd/ath.conf sees the Fn+F2 now as the > event "ACPI ASUS-Eee _SB_.ATKD", but it is anyway if Fn+F2 switches off > or on the wireless NIC, the event for devd(8) is always the same; > from the above event it is clear where > the strings for system ACPI and subsystem ASUS-Eee come from, but I > don't see where the string "_SB_.ATKD" is made; it must be derived > from the 'notify' argument of the call > > /* Notify devd(8) */ > acpi_UserNotify("ASUS-Eee", h, notify); > > and I was hoping to distinguish it into two different events, one when > Fn+F2 is switching off the NIC, and one of the case of switch on; any > idea? thx If you get the same string from the event, there's not much we can do. _SB_.ATKD is the ACPI namespace for the keyboard. Regards, -- Rui Paulo