From owner-freebsd-mobile@FreeBSD.ORG Tue Jan 13 15:57:34 2015 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2ED69689 for ; Tue, 13 Jan 2015 15:57:34 +0000 (UTC) Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF93E1AB for ; Tue, 13 Jan 2015 15:57:33 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id n12so3784737wgh.6 for ; Tue, 13 Jan 2015 07:57:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=qnBtabZ84c0vROslMU+r48blUK3MxiDPMpcM9y8zHLM=; b=Y/050aRLWOuce1NDhFMKxNZWKtsUKW2INuQyVPfIa+eKfxmEuSLfIe+JZYulyjRviz +dG0XDqL0GiE6oCTXHLvsui7vaKMYOYzXCYBLSpoHbPP7DM9h5kKj7xHFKwfrJcD3FTr vnZLT9UQ5Y+F0SBEBqY2Sr1fY3Cc4hICXgN5xC0lYCLPWRSq8h0diD3YfUaC1w2md8Pd vWVeGJT6Hb0RdLhDQp9iqGiqxMB9yZe2OSHch/ZYec8Nl40HyuMVgijT1OX3Tcl6xa/+ 4ksn+7URaTvhBFn7h425fepE0NHaEVB5IPQxtBBf2F3dq/9gFJwnjpAAf7VYNQXULPoB 1RGw== MIME-Version: 1.0 X-Received: by 10.194.24.103 with SMTP id t7mr70976370wjf.15.1421164651938; Tue, 13 Jan 2015 07:57:31 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.41.136 with HTTP; Tue, 13 Jan 2015 07:57:31 -0800 (PST) In-Reply-To: <20150113091337.GL67556@e-new.0x20.net> References: <20150111080530.GA2035@c720-r276659> <54B3FC5F.3070306@FreeBSD.org> <87A73FD4-485B-4F38-B9D2-3F804BED4905@bsdimp.com> <20150113091337.GL67556@e-new.0x20.net> Date: Tue, 13 Jan 2015 07:57:31 -0800 X-Google-Sender-Auth: d9Tco2hlfNtzAh3lCyhk5ZY1mF4 Message-ID: Subject: Re: power off ath0: From: Adrian Chadd To: Lars Engels Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Matthias Apitz , "freebsd-mobile@freebsd.org" X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2015 15:57:34 -0000 All atheros PCI/PCIe devices. -a On 13 January 2015 at 01:13, Lars Engels wrote: > On Mon, Jan 12, 2015 at 11:20:07AM -0800, Adrian Chadd wrote: >> On 12 January 2015 at 08:56, Warner Losh wrote: >> > >> >> On Jan 12, 2015, at 9:54 AM, John Baldwin wrote: >> >> >> >> On 1/11/15 3:05 AM, Matthias Apitz wrote: >> >>> >> >>> Hello, >> >>> >> >>> Is there a way to completely power-off the Wifi chip in my Acer C720= ? >> >>> I tried 'ifconfig ath0 down' which saves around 20 mA. But the LED s= tays >> >>> on, which let me think it is still someow on-air. >> >> >> >> Not yet. You could try setting the tunable to disable power for PCI >> >> devices without a driver and not include 'ath' in your kernel config.= I >> >> will (soon) commit a new 'devctl' tool to HEAD that would let you do >> >> 'devctl suspend ath0' to do this. >> > >> > I=E2=80=99d love to see this tied into the forthcoming work on PCIe ho= t plug as well, >> > which is one way to power off the slot. But that work seems to be stal= led=E2=80=A6 >> >> Right. So, the driver in -HEAD should be powering off almost all of >> the chip when no vap (ie, wlanX) is active. The only parts of the chip >> that stay on is the PCIe PHY and the GPIO/RTC block. AFAIK we don't >> support PCIe power save state management at the moment, so we can't >> keep the PCIe PHY off. >> >> But yeah, most of the chip is off. The chip doesn't take all that much >> power unless it's actively transmitting/receiving. The LEDs are on >> because the GPIO block is on and it's likely holding the LED up. > > Is that only true for this chip, all ath ones or even all wireless > devices?