From owner-freebsd-acpi@freebsd.org Sun Feb 14 08:49:09 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 196C2AA61BA for ; Sun, 14 Feb 2016 08:49:09 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8106A1D07 for ; Sun, 14 Feb 2016 08:49:08 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id u1E8mpBu094378; Sun, 14 Feb 2016 19:48:52 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 14 Feb 2016 19:48:51 +1100 (EST) From: Ian Smith To: Luke cc: freebsd-acpi@freebsd.org Subject: Re: Regarding Wake On USB input from S3 Sleep In-Reply-To: <1455391051.1524783.520367578.79304ABE@webmail.messagingengine.com> Message-ID: <20160214192829.C51785@sola.nimnet.asn.au> References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> <56BC751A.4030707@selasky.org> <56BC7BB0.7030407@selasky.org> <20160212011350.O51785@sola.nimnet.asn.au> <56BCA40A.2090107@selasky.org> <1455204470.3280673.518464754.6AB4FA63@webmail.messagingengine.com> <20160213033009.T51785@sola.nimnet.asn.au> <1455295786.2745839.519574962.53409F27@webmail.messagingengine.com> <20160214015131.Q51785@sola.nimnet.asn.au> <1455391051.1524783.520367578.79304ABE@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 08:49:09 -0000 On Sat, 13 Feb 2016 11:17:31 -0800, Luke wrote: > > I searched the wiki on 'USB power' but noticed only sections 4 and 10 of > > https://wiki.freebsd.org/TuningPowerConsumption seemed to relate at all. > > If that's it or not, I'd appreciate some more guidance .. > That's correct, section 10 from that wiki page. > Here's all I did: > > $ sudo usbconfig > (it then lists all USB related devices) > $ sudo usbconfig -d 1.3 power_save > (then put a device into powersave mode. I put this in a script) > > and that was it for me. The zenbook almost imediately reports an extra > hour of battery and I can confirm it does indeed extend it's life to > close to an hour. Ah, right. Mine (6 uhci and 2 ehci root hubs) are all already in pwr=SAVE mode, except for the so far unused webcam: ugen3.2: at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) Setting that to power_save saved about 150mW, or 30mA at 5V. Only a few extra minutes (~2%) of battery life, but every little bit helps, thanks. Not that that's really anything to do with the $subject .. cheers, Ian From owner-freebsd-acpi@freebsd.org Sun Feb 14 09:14:50 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 211FAAA715B for ; Sun, 14 Feb 2016 09:14:50 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 D90161B1D for ; Sun, 14 Feb 2016 09:14:49 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id EE0F61FE023; Sun, 14 Feb 2016 10:14:40 +0100 (CET) Subject: Re: Regarding Wake On USB input from S3 Sleep To: Ian Smith , Luke References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> <56BC751A.4030707@selasky.org> <56BC7BB0.7030407@selasky.org> <20160212011350.O51785@sola.nimnet.asn.au> <56BCA40A.2090107@selasky.org> <1455204470.3280673.518464754.6AB4FA63@webmail.messagingengine.com> <20160213033009.T51785@sola.nimnet.asn.au> <1455295786.2745839.519574962.53409F27@webmail.messagingengine.com> <20160214015131.Q51785@sola.nimnet.asn.au> <1455391051.1524783.520367578.79304ABE@webmail.messagingengine.com> <20160214192829.C51785@sola.nimnet.asn.au> Cc: freebsd-acpi@freebsd.org From: Hans Petter Selasky Message-ID: <56C04610.1090102@selasky.org> Date: Sun, 14 Feb 2016 10:17:04 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160214192829.C51785@sola.nimnet.asn.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Feb 2016 09:14:50 -0000 On 02/14/16 09:48, Ian Smith wrote: > On Sat, 13 Feb 2016 11:17:31 -0800, Luke wrote: > > > I searched the wiki on 'USB power' but noticed only sections 4 and 10 of > > > https://wiki.freebsd.org/TuningPowerConsumption seemed to relate at all. > > > If that's it or not, I'd appreciate some more guidance .. > > > That's correct, section 10 from that wiki page. > > Here's all I did: > > > > $ sudo usbconfig > > (it then lists all USB related devices) > > $ sudo usbconfig -d 1.3 power_save > > (then put a device into powersave mode. I put this in a script) > > > > and that was it for me. The zenbook almost imediately reports an extra > > hour of battery and I can confirm it does indeed extend it's life to > > close to an hour. > > Ah, right. Mine (6 uhci and 2 ehci root hubs) are all already in > pwr=SAVE mode, except for the so far unused webcam: > > ugen3.2: at usbus3, cfg=0 > md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) > > Setting that to power_save saved about 150mW, or 30mA at 5V. Only a few > extra minutes (~2%) of battery life, but every little bit helps, thanks. > > Not that that's really anything to do with the $subject .. > Hi, By default our USB stack only enables power save for USB HUBs, because it assumes that non-USB HUB device, might be broken with regard to suspend. Your findings make sense. --HPS From owner-freebsd-acpi@freebsd.org Sat Feb 20 00:05:41 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 35DABAAE63C for ; Sat, 20 Feb 2016 00:05:41 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm49-vm6.bullet.mail.bf1.yahoo.com (nm49-vm6.bullet.mail.bf1.yahoo.com [216.109.115.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2FCA311 for ; Sat, 20 Feb 2016 00:05:40 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1455926599; bh=pS8ZhV12wRvES64IMXaQek42ccMHBlBWBXK4N9t6DPw=; h=To:From:Subject:Date:From:Subject; b=hW7SazNVcDx1znb6PkQDNAnzgtzBh/9kfxQY9X4wwdFUvyHvIplB4Fh+5pln33j+mwQ+89BINjQ9qHQ8SUfKlr5AwqcYiWYz8QUYUlLLshH8eytOTcUczXFu2fA4f579kGq8d5rFWX5aKTJQc3YeqfWmMD/nkXSg3/u8x3JhClhrSOwS+HFstXxM5qTgnGuSUVMwv32lWrweqZ9vEYREgh5TH3ekesfvto7XIw8V7uF3vL/VW5EOgyJx3lMAERTsKj2ytfsL0Uxg5Diw8ax9Nrj51XaJ2c57kt7L17K5GZRjNVa8uT+U4td1GN0IwlPYWC0sVRN0pXq8w05nJdpCBg== Received: from [98.139.170.179] by nm49.bullet.mail.bf1.yahoo.com with NNFMP; 20 Feb 2016 00:03:19 -0000 Received: from [98.139.211.207] by tm22.bullet.mail.bf1.yahoo.com with NNFMP; 20 Feb 2016 00:03:19 -0000 Received: from [127.0.0.1] by smtp216.mail.bf1.yahoo.com with NNFMP; 20 Feb 2016 00:03:19 -0000 X-Yahoo-Newman-Id: 437625.54191.bm@smtp216.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: h5R3vQgVM1lN8iCRtI_umqbJtp156a9V6IS4soIFD40DZLl ttXQvwWJNwC19yIXDyKgZPQtzslM8hmvPZYcDwiV7T9zVYV5w6AXA2jf1Slj vaMT.jDYr2fxyP4SZnsX3m_FihO.Y4xDHTP2O5DFmHq5QN.pWDR8sCxUuMtI nBstGhmB54cyxyfrhFl2tzTqKgfnFRNfDrrsCmUDcJwH4LwlmL6W0nvtt2S6 CBHnkTRYqULEPxoPOUGuXzB3DC2qvYxstj6iTRoI0m_KViTY0k7hQ_fYCT4n cM1RgQC3irFdpXj8pw3ieV18wsVZE.CZPCGKh74J.U8dPqQs0B5zqF0vqJlb G0HLxHf_2B9pJedkRnQ1Erfmq723RDZ73pYmDL1u7aMqufhen4pDreDKWpnU nHPVP.L48DmUZLOwBdq2rZM9W3EREgueprAg8OGVXmVS9pWFsf9tlS5xHzaE 0slyRgD1UXaDi23KejDZr3JQX0Wkxo87DvgoBy3xHitiM3vDxOKRG19pU_ty 1tGnKfcZOeESRzw0BaKKQBuXIu.kbvB0X X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- To: freebsd-acpi@freebsd.org From: Anthony Jenkins Subject: ACPI CMOS and HP laptops Message-ID: <56C7AD45.3070408@yahoo.com> Date: Fri, 19 Feb 2016 19:03:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 00:05:41 -0000 Just got another HP laptop and it also needs support for the ACPI CMOS device to suspend/resume, power down, etc. Simple enough to plop my patch into my -CURRENT tree and get it working. So what again do I need to do to get this committed to -CURRENT? Thanks, Anthony Jenkins From owner-freebsd-acpi@freebsd.org Sat Feb 20 12:38:34 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8456FAADE34 for ; Sat, 20 Feb 2016 12:38:34 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EBD8A64E for ; Sat, 20 Feb 2016 12:38:33 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id u1KCcMEB097168; Sat, 20 Feb 2016 23:38:23 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 20 Feb 2016 23:38:22 +1100 (EST) From: Ian Smith To: Anthony Jenkins cc: freebsd-acpi@freebsd.org Subject: Re: ACPI CMOS and HP laptops In-Reply-To: <56C7AD45.3070408@yahoo.com> Message-ID: <20160220233336.U51785@sola.nimnet.asn.au> References: <56C7AD45.3070408@yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 12:38:34 -0000 On Fri, 19 Feb 2016 19:03:17 -0500, Anthony Jenkins via freebsd-acpi wrote: Hi Anthony, It's been nearly 11 months, I see. > Just got another HP laptop and it also needs support for the ACPI CMOS device > to suspend/resume, power down, etc. Simple enough to plop my patch into my > -CURRENT tree and get it working. So what again do I need to do to get this > committed to -CURRENT? Is there a PR with your latest patch? Does it apply also to stable/10? cheers, Ian From owner-freebsd-acpi@freebsd.org Sat Feb 20 13:51:18 2016 Return-Path: Delivered-To: freebsd-acpi@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C180BAAFB2D for ; Sat, 20 Feb 2016 13:51:18 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from nm29-vm1.bullet.mail.bf1.yahoo.com (nm29-vm1.bullet.mail.bf1.yahoo.com [98.139.213.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 738A0AF2 for ; Sat, 20 Feb 2016 13:51:17 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1455976271; bh=PrGWdkgWekn+IgSi1lo92gQToTKOqRf7d9Uqh/obmKc=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=dGQB/ZFkR652MnMVPxe9XSExEzEY5E62CFAaVxB1Ezi6f/svnl5+kMBSSgbAmJGTwf64LBRWAGPwGofBU+Lpm4fEfOtMZdeKjt1Uz8b7VVU9yQWkSsqatNAdP90b4TstfcK8LuilB+sDpilM5EgvKzT5QVVjVjXK2x+BP8SNK+MyEcwshb+fesgNawUaUCFRJPftvLLB2bxTtpbLUBBqUT8lTwvp39vPiFnBP6OjEZ9mdcp12Af5aq/Tp9Z09Jjs2iU1n6Usa5bsENfM1aH7wQhXSup1kTva/sDXhZusNw4eobU4uBOaItzWT+hUsnBISTO7VY+r7RGEQeqibbo0oQ== Received: from [66.196.81.173] by nm29.bullet.mail.bf1.yahoo.com with NNFMP; 20 Feb 2016 13:51:11 -0000 Received: from [68.142.230.73] by tm19.bullet.mail.bf1.yahoo.com with NNFMP; 20 Feb 2016 13:51:11 -0000 Received: from [127.0.0.1] by smtp230.mail.bf1.yahoo.com with NNFMP; 20 Feb 2016 13:51:11 -0000 X-Yahoo-Newman-Id: 492150.4211.bm@smtp230.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: a6.rh6cVM1msl6hYkaylUtf_hi7GPvAvocRzTsRWeKiqIg5 GntRsn94NyEbglLggmpwkIATY5eFl3dmyqBVHEMj39wwuawH2y19cohQvuRg iKgm5rOUwmYuYcK3oAt62CbyJUgCGPdLGJdo61y_vUKb2W4KoNk.pQEYF_.j fTd.XVlOu.Yz2B1VKUnxJHEKRMnwPfKdUqXIdWFKek3UoEsVp1EJpn1FT1jB VaXyWHHC9XI7M0fNID6KQiEucf.VcAWYTTj61fYIAjN851jj8PIvGBAItiZU OGaqlKRMh3OH1_4G9A4FxUJCeEbko8tlyV2f5R7yxmvDxdINoh64GDeKJlw1 aOBvnXY8wcjUZUtebrdMhsuKSe1TH1FvGMHqDcuykZcGpGXxQ7m_gYIVjDiq FxSVTDUHFU3SKplH6GnO7bDMFM.Msgb6fT1hf6c1SeNdlPVTAFtNUsevGtwz 8ZdvROhVo4yyqtwscBMvF91X97VdHQZRXivAVLNkpIDlYiTiGt.muNv7HMIJ 5Vm2FMSDluQE1HcntURLPeYqTdQxlH9I- X-Yahoo-SMTP: 9sPoSQ2swBBlERuQ.0vs8XLc_MeClW0- Subject: Re: ACPI CMOS and HP laptops To: Ian Smith References: <56C7AD45.3070408@yahoo.com> <20160220233336.U51785@sola.nimnet.asn.au> Cc: freebsd-acpi@freebsd.org From: Anthony Jenkins Message-ID: <56C86F4D.6000700@yahoo.com> Date: Sat, 20 Feb 2016 08:51:09 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160220233336.U51785@sola.nimnet.asn.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Feb 2016 13:51:18 -0000 On 02/20/2016 07:38 AM, Ian Smith wrote: > On Fri, 19 Feb 2016 19:03:17 -0500, Anthony Jenkins via freebsd-acpi wrote: > > Hi Anthony, It's been nearly 11 months, I see. > > > Just got another HP laptop and it also needs support for the ACPI CMOS device > > to suspend/resume, power down, etc. Simple enough to plop my patch into my > > -CURRENT tree and get it working. So what again do I need to do to get this > > committed to -CURRENT? > > Is there a PR with your latest patch? Does it apply also to stable/10? > > cheers, Ian It should... I don't think the CMOS/RTC code has changed in ages. Good point, I'll file a PR and stick both versions of my patch in it. Thanks, Anthony