From owner-freebsd-mobile@FreeBSD.ORG Tue Jan 13 09:13:41 2015 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8F0C7176; Tue, 13 Jan 2015 09:13:41 +0000 (UTC) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4A91DE82; Tue, 13 Jan 2015 09:13:41 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 4941E6A6004; Tue, 13 Jan 2015 10:13:39 +0100 (CET) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.7/8.14.7) with ESMTP id t0D9DdAc098813; Tue, 13 Jan 2015 10:13:39 +0100 (CET) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.7/8.14.7/Submit) id t0D9DbFC097923; Tue, 13 Jan 2015 10:13:37 +0100 (CET) (envelope-from lars) Date: Tue, 13 Jan 2015 10:13:37 +0100 From: Lars Engels To: Adrian Chadd Subject: Re: power off ath0: Message-ID: <20150113091337.GL67556@e-new.0x20.net> References: <20150111080530.GA2035@c720-r276659> <54B3FC5F.3070306@FreeBSD.org> <87A73FD4-485B-4F38-B9D2-3F804BED4905@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VnOTrGv5LmZxna7m" Content-Disposition: inline In-Reply-To: X-Editor: VIM - Vi IMproved 7.4 X-Operation-System: FreeBSD 8.4-RELEASE-p16 User-Agent: Mutt/1.5.23 (2014-03-12) 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 09:13:41 -0000 --VnOTrGv5LmZxna7m Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 st= ays > >>> 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 hot= plug as well, > > which is one way to power off the slot. But that work seems to be stall= ed=E2=80=A6 >=20 > 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. >=20 > 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? --VnOTrGv5LmZxna7m Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJUtOHBXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RjQwMDE3RTRERjUzMTI1N0FGRTUxNDlF NTRDQjM3RDNBMDg5RDZEAAoJEOVMs306CJ1t61EH/RI48mqgx6Ju7p1EmfXq1bB5 B1buZLDWvIwGJ5VUt874K8F9o3QphC8Yt69QlQAFqx0lkuRrGwAZMgTMlodmjruM PEf227BEC4tOM9LpKJmiFmFofKUWjO7y85sj3V6yfuFzfiPO/P+r+FiVYPfZUv+Y vzKdzTSY5ggmiukiy7Gx1TylbPOg/IirjX4CbSuTTFhlHXm8CHl6FbwFt9cMBVL0 E1aGUfoTp7gvdToPP5vp6FttFiyFuIJtVzI2DA6m+R2DaLEDcVpAfcczouNYBqW5 OecKvnxk0drGBGCMvg+7LL2Boh+1Aj3Cpxra/OlsMucDJa+OHKOS+WGbJRqcE/8= =N0cS -----END PGP SIGNATURE----- --VnOTrGv5LmZxna7m--