From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 29 16:09:08 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 2B8801065682 for ; Sun, 29 Jun 2008 16:09:08 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.freebsd.org (Postfix) with ESMTP id 704B78FC20 for ; Sun, 29 Jun 2008 16:09:07 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id RAA01966; Sun, 29 Jun 2008 17:57:56 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) Received: from ppp-88-217-76-84.dynamic.mnet-online.de(88.217.76.84) by hunter.Sisis.de via smap (V2.1) id xma001888; Sun, 29 Jun 08 17:57:42 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m5TG5S5L017319; Sun, 29 Jun 2008 18:05:28 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Sun, 29 Jun 2008 18:05:27 +0200 From: Matthias Apitz To: Rui Paulo Message-ID: <20080629160527.GA17075@rebelion.Sisis.de> References: <20080626075545.GA2964@rebelion.Sisis.de> <20080626231603.GC6875@phi.local> <20080627080203.GA19602@rebelion.Sisis.de> <20080627194447.GA34524@phi.local> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080627194447.GA34524@phi.local> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) Cc: freebsd-hackers@freebsd.org, james@nighthack.org, Manolis Kiagias Subject: Re: eeePC 900 && turning off wireless (ath0) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2008 16:09:08 -0000 El día Friday, June 27, 2008 a las 08:44:47PM +0100, Rui Paulo escribió: > On Fri, Jun 27, 2008 at 10:02:03AM +0200, Matthias Apitz wrote: > > Hello Rui, > > > > I recompiled the kernel to have if_ath out of the kernel, but as a > > loaded module at boot: > > > > $ kldstat > > Id Refs Address Size Name > > 1 14 0xc0400000 8c7098 kernel > > 2 1 0xc0cc8000 1242c if_ath.ko > > 3 3 0xc0cdb000 46324 ath_hal.ko > > 4 2 0xc0d22000 4218 ath_rate.ko > > 5 1 0xc0d27000 14324 snd_hda.ko > > 6 2 0xc0d3c000 4a5ac sound.ko > > 7 1 0xc0d87000 6a32c acpi.ko > > 8 1 0xc4394000 22000 linux.ko > > > > I can unload if_ath, ath_hal and ath_rate which drops the interface > > ath0, but even in this case Fn+F2 has no affect at all; any idea? > > Oh, then I guess the 900 is different. > > > I've had a look into the Xandros Linux and they do it with ACPI events, > > dropping the modules and others; I could provide their script > > /etc/acpi/wlan.sh if someone wants to have a look into; > > If turning off WLAN is now done via ACPI events, then the patch I > committed to HEAD will probably help. I'll MFC it in a week, but if you > can give it a try, that would be great. Please contact me off-list if > you need assistance. Hola Rui, I've found your very usefull pages in http://wiki.freebsd.org/AsusEee I CVS'uped the kernel to RELENG_7, built it and moved it to the eeePC; now Fn+F2 works as it should and I can even kldunload if_ath, power-off and power-on the wireless card, and after kldload if_ath the interface comes up fine again and my devd(8) hook assigns IP again; now it works as it should; will have a look into the events seen by devd(8) to make the kldunload and kldload perhaps there; thanks for your work and help; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa