From owner-freebsd-mobile@FreeBSD.ORG Mon Jan 12 19:20:15 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 536F1A5C; Mon, 12 Jan 2015 19:20:15 +0000 (UTC) Received: from mail-we0-x22b.google.com (mail-we0-x22b.google.com [IPv6:2a00:1450:400c:c03::22b]) (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 DAB28DDB; Mon, 12 Jan 2015 19:20:14 +0000 (UTC) Received: by mail-we0-f171.google.com with SMTP id u56so20879922wes.2; Mon, 12 Jan 2015 11:20:13 -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=55IyhAIidKM7Gd2gNXV7BiiuRslBYmHDS0mbYMVtuSY=; b=RpRlF98aphokT2Fb7K26siF/VwOpWmGh1mUAd1PBtmMND3x0INxWHOgJRTqohMWeOm SBT+UBRrqRiO7cMwCovfWlZT6IQ5EwNxr28z0GPOLwJl5mND0PW+mVI2+PhIdlImVWEo yTOcqI/SCP5eJJPFFm/KKrU+pqb7i997gfiUnfcYh84Eg4VQiV+SLqTQuZ0daceo9oWx bblvwwaITUG64/QXbiUREKwK2pcEQjnskYWQpySaEy6dVqNylONZ9FHyyZjEiQO3UmqT x2oAUaUS8m76ZhI0PCe6LDjFeobJ1cdbS/ZBt0Npc+GML5UTuA4MdjMTP4/1R8qXUw1O GXfQ== MIME-Version: 1.0 X-Received: by 10.180.91.193 with SMTP id cg1mr33471853wib.26.1421090407235; Mon, 12 Jan 2015 11:20:07 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.41.136 with HTTP; Mon, 12 Jan 2015 11:20:07 -0800 (PST) In-Reply-To: <87A73FD4-485B-4F38-B9D2-3F804BED4905@bsdimp.com> References: <20150111080530.GA2035@c720-r276659> <54B3FC5F.3070306@FreeBSD.org> <87A73FD4-485B-4F38-B9D2-3F804BED4905@bsdimp.com> Date: Mon, 12 Jan 2015 11:20:07 -0800 X-Google-Sender-Auth: c0rFGAaZ36pBDNXNRvesYoXwuBA Message-ID: Subject: Re: power off ath0: From: Adrian Chadd To: Warner Losh 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: Mon, 12 Jan 2015 19:20:15 -0000 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 stay= s >>> 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 p= lug as well, > which is one way to power off the slot. But that work seems to be stalled= =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. -adrian