From owner-freebsd-acpi@freebsd.org Thu Feb 11 03:54:52 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 788A4AA31E8 for ; Thu, 11 Feb 2016 03:54:52 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 460C7183C for ; Thu, 11 Feb 2016 03:54:52 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: by mail-io0-x231.google.com with SMTP id 9so43195798iom.1 for ; Wed, 10 Feb 2016 19:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=DYkYKiYBzsO115/FT0sPAK5VR57lo34kDX7ttDlQHWw=; b=RnQpD7gxOnY/LMh3daE+f4gv74NW2ZXeTeSyAowlukZfaLFUyNYfYxIJIIsR6JRAy0 ds5wIxSHVhiLhYLEXu6rug/z9JLI5PwKaTiCcWk0FsudUthaRy+HPfpisTWuo9QfHoEF Ladp8nRyz7qVlSv3yk3e4vnFCdNjW7hDSSnOaPLeNi+9Js4U5EIVSlSYt6rhOlLktoCz 1f/wThDDkyhXjp4jeDqYTNJSdLf1BaO30+iMtV0WPIcSb9S0RtRM+lEXn9nnAR2Z+Lx+ AV7VA/2zPP0XtHRemJ7/9MonCOd032F6nTvDkBEg+vplT2nsVTR96xuXoebIgqesD1oZ jZQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=DYkYKiYBzsO115/FT0sPAK5VR57lo34kDX7ttDlQHWw=; b=LG4P0Mye2ostwD1l8nfWaX4KT/eeEaCpOi2ydhUACgPIG0sidvOc/TUKpXWnvaJ6JJ jwGecg8gmGzMY9ArmfT8OAZnj7NMZsXuJ3c5H0X5eg/M7/6ioDt00lA67cJG9KZXlDsK PnrUQOdqKoTn000n3GxXGKGlIV5rwvTy0jM8iv5TLa0/OhXVI4cmPFwY30Dx2VdPLQCN 2Lk655QzP3PQTvOb0z/HLMGIb6TvD2mQZE9i056J4ss+tTUSrEByjH0koyQjIIjUZe1g vHClBOoTf6FTzUJtizfJm2LAIrs/u5wSgxCEtIfLmTktdoqch+IIFeP4zJi1NtoiUXmr g+Mw== X-Gm-Message-State: AG10YORKrdsoCxNlnJ2K+TcI7zIBzWPJjO7z1TgxxXtGHgYGKhJXnyDc4u7NVyI1w1OfH9c0a2pFWeoWLyYTUQ== MIME-Version: 1.0 X-Received: by 10.107.186.195 with SMTP id k186mr43324715iof.90.1455162891626; Wed, 10 Feb 2016 19:54:51 -0800 (PST) Received: by 10.36.155.137 with HTTP; Wed, 10 Feb 2016 19:54:51 -0800 (PST) Date: Thu, 11 Feb 2016 12:54:51 +0900 Message-ID: Subject: Regarding Wake On USB input from S3 Sleep From: Dee Zay To: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Thu, 11 Feb 2016 03:54:52 -0000 Dear FreeBSD ACPI Community, I am trying to implement WakeOnUSB (e.g. USB keyboard input) from S3 Sleep state, but have no clue where to start from. I noticed the PS2 keyboard is capable of waking up a system and also found there is a PS2 handler portion in asl from acpidump: Method (PS2K._PRW, 0, NotSerialized) // _PRW: Power Resources for Wake { Return (GPRW (0x6B, 0x03)) } However, there is no such handle for individual usb ports other than its parent's class (\_SB_.PCI0.XHC_). Also, I found there are FreeBSD-specific ACPICA C codes under /sys/dev including acpi_button.c and acpi_lid.c, which are only for the fixed acpi components. So my question is, Is it possible to implement WakeOnUSB input for individual USB ports by somehow fixing the ACPICA C codes (without fixing the asl as it is system-dependent)? If so, how? I would really appreciate it if you could help me out here. Best regards, Julian From owner-freebsd-acpi@freebsd.org Thu Feb 11 06:20:05 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 64D96AA4B8C for ; Thu, 11 Feb 2016 06:20:05 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (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 00FF1FDA for ; Thu, 11 Feb 2016 06:20:04 +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 808F61FE023; Thu, 11 Feb 2016 07:20:02 +0100 (CET) Subject: Re: Regarding Wake On USB input from S3 Sleep To: Dee Zay , freebsd-acpi@freebsd.org References: From: Hans Petter Selasky Message-ID: <56BC289F.2070208@selasky.org> Date: Thu, 11 Feb 2016 07:22:23 +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: 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: Thu, 11 Feb 2016 06:20:05 -0000 On 02/11/16 04:54, Dee Zay wrote: > Dear FreeBSD ACPI Community, > > I am trying to implement WakeOnUSB (e.g. USB keyboard input) from S3 Sleep > state, but have no clue where to start from. > I noticed the PS2 keyboard is capable of waking up a system and also found > there is a PS2 handler portion in asl from acpidump: > > Method (PS2K._PRW, 0, NotSerialized) // _PRW: Power Resources > for Wake > { > Return (GPRW (0x6B, 0x03)) > } > However, there is no such handle for individual usb ports other than its > parent's class (\_SB_.PCI0.XHC_). > Also, I found there are FreeBSD-specific ACPICA C codes under /sys/dev > including acpi_button.c and acpi_lid.c, which are only for the fixed acpi > components. > > So my question is, > Is it possible to implement WakeOnUSB input for individual USB ports by > somehow fixing the ACPICA C codes (without fixing the asl as it is > system-dependent)? If so, how? > > I would really appreciate it if you could help me out here. > > Best regards, > Julian Hi, The USB controller drivers shutdown the HC at suspend and reset at resume. That has proven to work the best. At the moment I think wakeup by USB resume is not supported. --HPS From owner-freebsd-acpi@freebsd.org Thu Feb 11 06:36:23 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 B24EBAA538C for ; Thu, 11 Feb 2016 06:36:23 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8DE761AC1 for ; Thu, 11 Feb 2016 06:36:23 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: by mail-ig0-x22a.google.com with SMTP id xg9so29411192igb.1 for ; Wed, 10 Feb 2016 22:36:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=wQAwK4c0/6ltZAB3bD4zq1xUfoOMMYyIkA7pia1iQUY=; b=MyRl8/ZldLwba1JypuBeZb907gNWwPY9Vkrz/SCWVZMWPHfNkAylD64jBsxN6ut7VI etIeMa0kNXrQGhcKqgWMfy6FDgmIRriZZ/BGVKu2jDecsOHbnKq6l3CNO1NfMBH17Ctt sR76FTTrxQtEqy6F57mEGx83sqUVOCmC1J0Qieclmr6MuBjpMCR9yvz71+QzD/au4jVo wj3ZfKRrWHTEILRoyIm4QGAD+Mf8GqJFqStinsDKleeJ9jFigOQSQEG+rClje/dFZcoC njdNnErKmYD7TlR7Tbr4QYuTajij181KuS7jN/H2QmR9YiYPSaUZr+9Lmq9Yoa8RjOPu RoBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=wQAwK4c0/6ltZAB3bD4zq1xUfoOMMYyIkA7pia1iQUY=; b=hgQzPdDh8Bu3XLWyviwpNZt72ctov7T4G5ROcBz2zWVzyw4hyuVdEi8xWothG7U7uc L14/W4AOcBdZw7fd2ZcVtKUISqJ4xzcz34R7OlDkKqRbTK5YmABOaJmo1HeloEltplkn op5/5yol5f1nJzmhlZ4m2Axk8U8Q6Sx9X++bcT3vjWoRCdkBiF6DXLVB98Wzd+jxf5Ax EhThNbZWdNg9sPogNLNqJA0E/kEAGL/5SDu2rj28aFCZKVZ7OWdlgw7qPrAGPeq8ZSt1 G5EAnEVzR+FsQkE6c9nEAD41uojZgyQuqfM81m6tUWdmd9pXnxm+wIZi/wS4sz7Zooqu +0Vg== X-Gm-Message-State: AG10YOQAcHZ6mFVg6G2BRrzxSOdQfx4NUFLNXKN6WzvjgQHX+U/jnmZb3p1H6++V9kgRO2EPrZNjJg9kxcdkXw== MIME-Version: 1.0 X-Received: by 10.50.111.169 with SMTP id ij9mr14991544igb.92.1455172582779; Wed, 10 Feb 2016 22:36:22 -0800 (PST) Received: by 10.36.155.137 with HTTP; Wed, 10 Feb 2016 22:36:22 -0800 (PST) In-Reply-To: <56BC289F.2070208@selasky.org> References: <56BC289F.2070208@selasky.org> Date: Thu, 11 Feb 2016 15:36:22 +0900 Message-ID: Subject: Re: Regarding Wake On USB input from S3 Sleep From: Dee Zay To: Hans Petter Selasky Cc: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Thu, 11 Feb 2016 06:36:23 -0000 Hello, Thank you very much for the prompt reply. What are the issues if the HC remains powered on during suspend/resume? Is this something not to be resolved in the near future? Many Thanks, Julian On Thu, Feb 11, 2016 at 3:22 PM, Hans Petter Selasky wrote: > On 02/11/16 04:54, Dee Zay wrote: > >> Dear FreeBSD ACPI Community, >> >> I am trying to implement WakeOnUSB (e.g. USB keyboard input) from S3 Sleep >> state, but have no clue where to start from. >> I noticed the PS2 keyboard is capable of waking up a system and also found >> there is a PS2 handler portion in asl from acpidump: >> >> Method (PS2K._PRW, 0, NotSerialized) // _PRW: Power >> Resources >> for Wake >> { >> Return (GPRW (0x6B, 0x03)) >> } >> However, there is no such handle for individual usb ports other than its >> parent's class (\_SB_.PCI0.XHC_). >> Also, I found there are FreeBSD-specific ACPICA C codes under /sys/dev >> including acpi_button.c and acpi_lid.c, which are only for the fixed acpi >> components. >> >> So my question is, >> Is it possible to implement WakeOnUSB input for individual USB ports by >> somehow fixing the ACPICA C codes (without fixing the asl as it is >> system-dependent)? If so, how? >> >> I would really appreciate it if you could help me out here. >> >> Best regards, >> Julian >> > > Hi, > > The USB controller drivers shutdown the HC at suspend and reset at resume. > That has proven to work the best. At the moment I think wakeup by USB > resume is not supported. > > --HPS > > From owner-freebsd-acpi@freebsd.org Thu Feb 11 06:59:17 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 38275AA5E78 for ; Thu, 11 Feb 2016 06:59:17 +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 035396D1 for ; Thu, 11 Feb 2016 06:59:16 +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 965901FE023; Thu, 11 Feb 2016 07:59:12 +0100 (CET) Subject: Re: Regarding Wake On USB input from S3 Sleep To: Dee Zay References: <56BC289F.2070208@selasky.org> Cc: freebsd-acpi@freebsd.org From: Hans Petter Selasky Message-ID: <56BC31CD.2000509@selasky.org> Date: Thu, 11 Feb 2016 08:01:33 +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: 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: Thu, 11 Feb 2016 06:59:17 -0000 On 02/11/16 07:36, Dee Zay wrote: > Hello, > > Thank you very much for the prompt reply. > What are the issues if the HC remains powered on during suspend/resume? > Is this something not to be resolved in the near future? > Hi, There is no issue with suspend as I'm aware. The problem is resume, that we would like to completely reset the HC and re-start enumeration and not use the handover from the BIOS. You should also check what the BIOS is doing when it sees a HC which is different modes when entering suspend. USB code is here: sys/dev/usb/controller/{ehci.c,uhci.c,ohci.c,xhci.c} --HPS From owner-freebsd-acpi@freebsd.org Thu Feb 11 10:09:07 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 04B59A9F697 for ; Thu, 11 Feb 2016 10:09:07 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C28061E36 for ; Thu, 11 Feb 2016 10:09:06 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: by mail-ig0-x236.google.com with SMTP id hb3so31975686igb.0 for ; Thu, 11 Feb 2016 02:09:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KhqERyCjk78t2ytPAs+sUNR3hk8EZyOfa9HDLDr/d7g=; b=HwoHrkk88KBWqz3kt3S/1SLCUgH+bxWSFSremtSIiY2Gpl/x/2a7MpqWUOSlw9SY2c ZNjC1p0OzTKvQWk/DeGK2ngr9itFCHnybSTpKamBceclBHUK3sem590ljxJIk/tqR65G IDzW3vm/WIxi1CXAsmrJOJOSRIPgEG2BIbhWTfZcPIZidU0TLZAwFsoR+thXQCVGf5n8 sWIE8pY/valRXSOjuOIoXOR0l6bfvKGXeuCO+iIwvN/SykyyT3jW6VYIIIrnGj8IxU1a 9m0od/RpZZoj894zzRrrMBslcbvVVke43mCaao2GgRfGgrPb/t3Xj8cr38IHRLblFPcx 12kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=KhqERyCjk78t2ytPAs+sUNR3hk8EZyOfa9HDLDr/d7g=; b=Yi7thgbJRXcy237o91ok+PC6IrNOQFmjcwhhyNyiGeVm6b0vCMnIOaKO2y2bOkmZiu /vpMyJ0N2Q/Gd+APHZAsYSrGkrD3XJFWE5Kr0ndTECqDCirYaOU/ujcEwaP2No9YZ9gK bmm8754h6AJMEPKKLcFUIwuY2l314MdCvZjUzlKu7LkM/LpCIaeOFzehkgZTCwkYpKdc nCsm8ZWXXucOY0bGJ+/YlHsirV1sQzJbL0awEbfpKQ1prnuyRj578D5R5Mw9eKAt+nbq TVjucasMtcvfINd6290dACeAzCWlh9eWeFUlD4ctzunHBqBn2/q5p1R0UDyPa7qFiFMi H9/A== X-Gm-Message-State: AG10YORdwJC/zaHC74OGcVt/xyeLbb93j+ozodVZUhbuQ0rPPZPV0ABJe4WOm100TBxlxXNYx3PWYbjYy3u6vA== MIME-Version: 1.0 X-Received: by 10.50.134.129 with SMTP id pk1mr15761565igb.11.1455185346184; Thu, 11 Feb 2016 02:09:06 -0800 (PST) Received: by 10.36.155.137 with HTTP; Thu, 11 Feb 2016 02:09:06 -0800 (PST) In-Reply-To: <56BC31CD.2000509@selasky.org> References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> Date: Thu, 11 Feb 2016 19:09:06 +0900 Message-ID: Subject: Re: Regarding Wake On USB input from S3 Sleep From: Dee Zay To: Hans Petter Selasky Cc: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Thu, 11 Feb 2016 10:09:07 -0000 Hello, How do I NOT put XHCI into sleep and keep standby for USB keyboard interrupts? I cannot find system tunables for this option.. As for the debugging, how do I see the interactions between the BIOS and HC? Thanks, Julian On Thu, Feb 11, 2016 at 4:01 PM, Hans Petter Selasky wrote: > On 02/11/16 07:36, Dee Zay wrote: > >> Hello, >> >> Thank you very much for the prompt reply. >> What are the issues if the HC remains powered on during suspend/resume? >> Is this something not to be resolved in the near future? >> >> > Hi, > > There is no issue with suspend as I'm aware. > > The problem is resume, that we would like to completely reset the HC and > re-start enumeration and not use the handover from the BIOS. > > You should also check what the BIOS is doing when it sees a HC which is > different modes when entering suspend. > > USB code is here: sys/dev/usb/controller/{ehci.c,uhci.c,ohci.c,xhci.c} > > --HPS > > From owner-freebsd-acpi@freebsd.org Thu Feb 11 10:14:35 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 2E859A9FB0C for ; Thu, 11 Feb 2016 10:14:35 +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 EAFBA232 for ; Thu, 11 Feb 2016 10:14:34 +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 180411FE023; Thu, 11 Feb 2016 11:14:23 +0100 (CET) Subject: Re: Regarding Wake On USB input from S3 Sleep To: Dee Zay References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> Cc: freebsd-acpi@freebsd.org From: Hans Petter Selasky Message-ID: <56BC5F8D.9000907@selasky.org> Date: Thu, 11 Feb 2016 11:16:45 +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: 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: Thu, 11 Feb 2016 10:14:35 -0000 On 02/11/16 11:09, Dee Zay wrote: > Hello, > > How do I NOT put XHCI into sleep and keep standby for USB keyboard > interrupts? > I cannot find system tunables for this option.. > As for the debugging, how do I see the interactions between the BIOS and HC? > Hi, You need to edit the code in xhci.c then. Further you need to read the XHCI programmers guide how to do this. It is usually a PCI register where you need to set some bits before suspend. Also look at the existing device_suspend routines. --HPS From owner-freebsd-acpi@freebsd.org Thu Feb 11 11:30:20 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 D2198AA4491 for ; Thu, 11 Feb 2016 11:30:20 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: from mail-io0-x22d.google.com (mail-io0-x22d.google.com [IPv6:2607:f8b0:4001:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B902F69 for ; Thu, 11 Feb 2016 11:30:20 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: by mail-io0-x22d.google.com with SMTP id f81so50815311iof.0 for ; Thu, 11 Feb 2016 03:30:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xHKGJw1QraDslsIiJz7X16RoDsju89mBhHonIRzaJ3g=; b=TNKR5H8HkNgU0Xn7uZxSPeALEX0QHppEYYBBEpsSdmJCd5DoYWDu88+EAUSVUgCmSW CZvkN+NYLUbQsRTDoOslTZqhduhOfGyQLk/KkoNDmTJQRAE6D0nr1oSoPv9VfcKV1cmc p17ZEmxLFqMmwyl9Q8wBY9TkJkEn4IG0xfL0ucoPLVncbpXqVSCV8cyFrl1nKJ16gqOx 76ydyh1WHX1mS7Kp0wOwWYcbVxVsuADo1qEAA/ffanGOuPVcCP8wRapiuDdU8hT5vjKr GcBTdAC0bL9rbnZF8YC8+JUq1hPZpkfSNXcldHsPo9daa7C3XfC8a6CudqTXw091aBul taFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=xHKGJw1QraDslsIiJz7X16RoDsju89mBhHonIRzaJ3g=; b=eyx/PjgYBcswRHN66VFVbdUNotroVwhucvqfxoavu5G1xZ5RGNd801WHpjQ3Fktrv2 0be9DsN1hUrXtkvALyEHLo6+2zXO77qFRsQLTfDkvBPseSW8fE2iKMhSKCZ1CIfJ1p2r 7gEZEnK2s6YCRF70uxuFYfgz/EPgWvBoDOFujwlzcVDPl4yZyG482GmeZaom4/g+Z1AY UCeNa1g1Ybj/qzO5zJxi8GKZHaqqerne5lhGAmzO/XSfwKrzwS8kg6KoInkg9H1UQ+Mw PferS0I3zHmmkwVgyTBzlCW86sOo8qL5Ly6r3IJDa0H6joKbPPIzN5WZ09jmB8CqKfjA ipPA== X-Gm-Message-State: AG10YOR2MkD5x+PaMvaJkssdaOJcRIxau6bQcsc4jnRn0jDscMsab7l1jkMOwB7cUqGUsPXX9nnJ8L1uPhR1KQ== MIME-Version: 1.0 X-Received: by 10.107.2.198 with SMTP id 189mr38008022ioc.118.1455190220058; Thu, 11 Feb 2016 03:30:20 -0800 (PST) Received: by 10.36.93.83 with HTTP; Thu, 11 Feb 2016 03:30:20 -0800 (PST) In-Reply-To: <56BC31CD.2000509@selasky.org> References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> Date: Thu, 11 Feb 2016 20:30:20 +0900 Message-ID: Subject: Re: Regarding Wake On USB input from S3 Sleep From: Dee Zay To: Hans Petter Selasky Cc: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Thu, 11 Feb 2016 11:30:20 -0000 Hello, I am a bit confused about the resume problem and its procedures. Could you explain briefly about the difference between resuming from standby(powered) and completely off HC? Thank you, Julian On Thu, Feb 11, 2016 at 4:01 PM, Hans Petter Selasky wrote: > On 02/11/16 07:36, Dee Zay wrote: > >> Hello, >> >> Thank you very much for the prompt reply. >> What are the issues if the HC remains powered on during suspend/resume? >> Is this something not to be resolved in the near future? >> >> > Hi, > > There is no issue with suspend as I'm aware. > > The problem is resume, that we would like to completely reset the HC and > re-start enumeration and not use the handover from the BIOS. > > You should also check what the BIOS is doing when it sees a HC which is > different modes when entering suspend. > > USB code is here: sys/dev/usb/controller/{ehci.c,uhci.c,ohci.c,xhci.c} > > --HPS > > From owner-freebsd-acpi@freebsd.org Thu Feb 11 11:46:26 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 72214AA4BB5 for ; Thu, 11 Feb 2016 11:46:26 +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 3A356172A for ; Thu, 11 Feb 2016 11:46:25 +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 CAF591FE023; Thu, 11 Feb 2016 12:46:21 +0100 (CET) Subject: Re: Regarding Wake On USB input from S3 Sleep To: Dee Zay References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> Cc: freebsd-acpi@freebsd.org From: Hans Petter Selasky Message-ID: <56BC751A.4030707@selasky.org> Date: Thu, 11 Feb 2016 12:48:42 +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: 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: Thu, 11 Feb 2016 11:46:26 -0000 On 02/11/16 12:30, Dee Zay wrote: > Hello, > > I am a bit confused about the resume problem and its procedures. > Could you explain briefly about the difference between resuming from > standby(powered) and completely off HC? > > Thank you, > Julian Hi, Only the XHCI can resume completely off HC. It knows about which devices are enumerated and so on. The other HC's don't. You need to ensure that filesystem reloads everything when you resume. No assumptions can be made about which disk is connected. A USB keyboard is simpler, of course. There is also something called a BIOS, which sometimes enable and enumerate the USB devices before the OS is resuming. I think there is a standard somewhere how the BIOS can handover enumerated devices to the USB stack, but I'm not sure if it is public. In any case FreeBSD will reset the HC and start from scratch when resuming. That always works. --HPS From owner-freebsd-acpi@freebsd.org Thu Feb 11 12:08: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 7A97CAA5E2F for ; Thu, 11 Feb 2016 12:08:18 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 41931138A for ; Thu, 11 Feb 2016 12:08:18 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: by mail-ig0-x232.google.com with SMTP id y8so4020879igp.1 for ; Thu, 11 Feb 2016 04:08:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=isJzNVE9UIfK0kWeUmbh/udOGHcxV8U1rYNifPoVi7I=; b=l7j+3tQG1iFf397IXWpRKJIJfRdWW4wzO3x+2O0IhW9AB/VzsWVpcKrephsM8JJ7pa 4HC81txJ4DFZKc1ArSKLouXV03iyGz+lYLsjbJGl9PrKFYGmoVg6NnFa9rNQ5EYMvk6x 6XXENveBb7t6nk9pmA4M8LCKt0DRVBXfCxmK/aTKa4piKIiwpvcksOib0h8MmYoyO8OP piv6qVh+F24UvhB/kU150bmPu8UoA6TDKKTeg40G9sTOUrAwHqv/l7yvoWKb5ii8SZMD GbZZIZB4NdvMohGgy7YaVyEoLQgqHFkCZ/v8OEIJxyHrKEM9txzJ8+MNbHRStc7Jg5ah RkLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=isJzNVE9UIfK0kWeUmbh/udOGHcxV8U1rYNifPoVi7I=; b=MzVsLBVpRLj38+yzlqXnxRXxzSwfUDqcKg1zLkW5luC2PqVWX9c/k3AqCuvNLL114a Zxd9uvro9jw3jh4JO4eTuYojTSNHY1nCV9F/1PgHfP/5hUjG75UbsZSxJ1IVzSCD4NC5 A0C2tJs8yRaPMs8nkeWJ7U1e8vIfSexyqWlS3J/97XJ3Q+B4XEcJ/Xd8kvhDN+FY0H4H qdyiRfJhVHPOw9+Ce6vd3Jwn66LO4ZsbRviyYiPIwAb7PNtgkstVWfisz2JBGot68Xtp fOD4xNUBl2cIMlVkVZRtl7zBb+hRHac9RiysS5HncbkAk0TjoQ8b8NPeybW/Zy3CvtoA 2dFA== X-Gm-Message-State: AG10YOQ+C37bnr7RQIx8rcUojcVY0vHutGcSqPr1eBQWoibhYlBQY1rjoyl7SwJo91YLw0jETj70SSQNCxO2Ow== MIME-Version: 1.0 X-Received: by 10.50.134.129 with SMTP id pk1mr16265169igb.11.1455192497732; Thu, 11 Feb 2016 04:08:17 -0800 (PST) Received: by 10.36.155.137 with HTTP; Thu, 11 Feb 2016 04:08:17 -0800 (PST) In-Reply-To: <56BC751A.4030707@selasky.org> References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> <56BC751A.4030707@selasky.org> Date: Thu, 11 Feb 2016 21:08:17 +0900 Message-ID: Subject: Re: Regarding Wake On USB input from S3 Sleep From: Dee Zay To: Hans Petter Selasky Cc: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Thu, 11 Feb 2016 12:08:18 -0000 Hello, So, is the BIOS handover to the USB stack a prerequisite when resuming from standby mode HC (not completely off HC)? In other words, do we need to implement BIOS handover before we can use wake on usb keyboard input? Or is there a workaround for this specific functionality? Many Thanks again, Julian On Thu, Feb 11, 2016 at 8:48 PM, Hans Petter Selasky wrote: > On 02/11/16 12:30, Dee Zay wrote: > >> Hello, >> >> I am a bit confused about the resume problem and its procedures. >> Could you explain briefly about the difference between resuming from >> standby(powered) and completely off HC? >> >> Thank you, >> Julian >> > > Hi, > > Only the XHCI can resume completely off HC. It knows about which devices > are enumerated and so on. The other HC's don't. > > You need to ensure that filesystem reloads everything when you resume. No > assumptions can be made about which disk is connected. A USB keyboard is > simpler, of course. > > There is also something called a BIOS, which sometimes enable and > enumerate the USB devices before the OS is resuming. I think there is a > standard somewhere how the BIOS can handover enumerated devices to the USB > stack, but I'm not sure if it is public. In any case FreeBSD will reset the > HC and start from scratch when resuming. That always works. > > --HPS > From owner-freebsd-acpi@freebsd.org Thu Feb 11 12:14:30 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 20714AA40F6 for ; Thu, 11 Feb 2016 12:14:30 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (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 DED0B17A0 for ; Thu, 11 Feb 2016 12:14:29 +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 4494E1FE023; Thu, 11 Feb 2016 13:14:27 +0100 (CET) Subject: Re: Regarding Wake On USB input from S3 Sleep To: Dee Zay References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> <56BC751A.4030707@selasky.org> Cc: freebsd-acpi@freebsd.org From: Hans Petter Selasky Message-ID: <56BC7BB0.7030407@selasky.org> Date: Thu, 11 Feb 2016 13:16:48 +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: 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: Thu, 11 Feb 2016 12:14:30 -0000 On 02/11/16 13:08, Dee Zay wrote: > Hello, > > So, is the BIOS handover to the USB stack a prerequisite when resuming from > standby mode HC (not completely off HC)? Hi, I'm not sure. You'll have to find out. It is what happens when you suspend which decides if you get the resume event or not. Once resumed the system will manage somehow, either full reset or handover. > In other words, do we need to implement BIOS handover before we can use > wake on usb keyboard input? Might depend on the BIOS make. I've never tested this on FreeBSD before so I don't know. > Or is there a workaround for this specific functionality? Maybe check what Linux is doing. --HPS From owner-freebsd-acpi@freebsd.org Thu Feb 11 14:39:32 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 7E741AA4669 for ; Thu, 11 Feb 2016 14:39:32 +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 F402A74A for ; Thu, 11 Feb 2016 14:39:30 +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 u1BEdKHu058801; Fri, 12 Feb 2016 01:39:20 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Fri, 12 Feb 2016 01:39:20 +1100 (EST) From: Ian Smith To: Hans Petter Selasky cc: Dee Zay , freebsd-acpi@freebsd.org Subject: Re: Regarding Wake On USB input from S3 Sleep In-Reply-To: <56BC7BB0.7030407@selasky.org> Message-ID: <20160212011350.O51785@sola.nimnet.asn.au> References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> <56BC751A.4030707@selasky.org> <56BC7BB0.7030407@selasky.org> 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: Thu, 11 Feb 2016 14:39:32 -0000 On Thu, 11 Feb 2016 13:16:48 +0100, Hans Petter Selasky wrote: > On 02/11/16 13:08, Dee Zay wrote: > > Hello, > > > > So, is the BIOS handover to the USB stack a prerequisite when resuming from > > standby mode HC (not completely off HC)? > > Hi, > > I'm not sure. You'll have to find out. It is what happens when you suspend > which decides if you get the resume event or not. Once resumed the system > will manage somehow, either full reset or handover. > > > In other words, do we need to implement BIOS handover before we can use > > wake on usb keyboard input? > > Might depend on the BIOS make. I've never tested this on FreeBSD before so I > don't know. > > > Or is there a workaround for this specific functionality? > > Maybe check what Linux is doing. Do you have any rough idea of the difference in battery power used in S3 with HC(s?) running, or in standby, or off? Depending on hardware of course, but I'm just wondering how relatively significant it might be? cheers, Ian From owner-freebsd-acpi@freebsd.org Thu Feb 11 15:06:43 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 57D6DAA5715 for ; Thu, 11 Feb 2016 15:06:43 +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 20BA81B0C for ; Thu, 11 Feb 2016 15:06:41 +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 027FB1FE023; Thu, 11 Feb 2016 16:06:37 +0100 (CET) Subject: Re: Regarding Wake On USB input from S3 Sleep To: Ian Smith References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> <56BC751A.4030707@selasky.org> <56BC7BB0.7030407@selasky.org> <20160212011350.O51785@sola.nimnet.asn.au> Cc: Dee Zay , freebsd-acpi@freebsd.org From: Hans Petter Selasky Message-ID: <56BCA40A.2090107@selasky.org> Date: Thu, 11 Feb 2016 16:08:58 +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: <20160212011350.O51785@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: Thu, 11 Feb 2016 15:06:43 -0000 On 02/11/16 15:39, Ian Smith wrote: > Do you have any rough idea of the difference in battery power used in S3 > with HC(s?) running, or in standby, or off? No, I don't have any numbers. I know that USB.org has defined some rules how many mA that each individual USB device can draw in suspended mode. Basically, not shutting down the HC means that you keep the USB device powered on aswell, during suspend. --HPS From owner-freebsd-acpi@freebsd.org Thu Feb 11 15:27:58 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 32B19AA5F9E for ; Thu, 11 Feb 2016 15:27:58 +0000 (UTC) (envelope-from lukek@fastmail.fm) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 034806F1 for ; Thu, 11 Feb 2016 15:27:57 +0000 (UTC) (envelope-from lukek@fastmail.fm) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 89FCC2098F for ; Thu, 11 Feb 2016 10:27:50 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute3.internal (MEProxy); Thu, 11 Feb 2016 10:27:50 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=l0eQmsmPKCR2/65l2KTh0gr6wy4=; b=WUP7iT m+R1+qh2OYM8cN+J7TgZrDZ9K15SrKbjaYYNMdwUEyTdgvoZDAXmk64ekJxZw2Oo JX22p4NpixzolEhqoQu6MZjsg7GD/ijxQhNQEs083CJMAIkVK3K0VaTL5nRTRZca bRWgqDPFTC0ocsAqREYR3jBu6tZ3ZEtxUbCMw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=l0eQmsmPKCR2/65 l2KTh0gr6wy4=; b=dyi4duiv1A+dXnSrzGZFrdInPYFYX1gPz/GTKKzSwwjDKEt PU2YcelFjfOEertJOEdoSAYPZ0BfQJ6zu/GMZot30i+zt9yF9l8bC4UVJKAJhySt 1YIRdZQ+9W/diwAVwW/GTuADqELnDA2B95g5YyTxo9MCaCHHrskzTH0OkteY= Received: by web4.nyi.internal (Postfix, from userid 99) id 4B2BD11086A; Thu, 11 Feb 2016 10:27:50 -0500 (EST) Message-Id: <1455204470.3280673.518464754.6AB4FA63@webmail.messagingengine.com> X-Sasl-Enc: HEK/Exa+4xJnzIFle589SBpEPiq52qYG6n9K1D9wdibD 1455204470 From: Luke To: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-e69f0414 In-Reply-To: <56BCA40A.2090107@selasky.org> 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> Subject: Re: Regarding Wake On USB input from S3 Sleep Date: Thu, 11 Feb 2016 07:27:50 -0800 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: Thu, 11 Feb 2016 15:27:58 -0000 I am VERY new to this but was just doing some hacking on my laptop (zenbook) and found if I poweroff my USBs (while the rest of the machine is still being used) I gain an hour of battery life. Luke On Thu, Feb 11, 2016, at 07:08 AM, Hans Petter Selasky wrote: > On 02/11/16 15:39, Ian Smith wrote: > > Do you have any rough idea of the difference in battery power used in S3 > > with HC(s?) running, or in standby, or off? > > No, I don't have any numbers. I know that USB.org has defined some rules > how many mA that each individual USB device can draw in suspended mode. > Basically, not shutting down the HC means that you keep the USB device > powered on aswell, during suspend. > > --HPS > _______________________________________________ > freebsd-acpi@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-acpi > To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" From owner-freebsd-acpi@freebsd.org Fri Feb 12 07:15:37 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 01F25AA5AEF for ; Fri, 12 Feb 2016 07:15:37 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BFC7A1BBD for ; Fri, 12 Feb 2016 07:15:36 +0000 (UTC) (envelope-from julianpark90611@gmail.com) Received: by mail-ig0-x232.google.com with SMTP id y8so4680942igp.1 for ; Thu, 11 Feb 2016 23:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=03ybvmV+K5pnAbHEvw9vfTWZqGIjM59l7yiGjUtmX0c=; b=mJZ+6d3xLBd42Ee2uIRf7fk/yy0Ur2DKRnXuVC/AJtZzgz8YUJWP9qew32+idVGjit xgBF4LN02ACpMIBjFW9eI352aGDJEKhnWi0kl/IUEvppIpU1nK+g2Gpk7HgCO32tNlpJ G1s2QW7tSXm9oFaGx9whFGWlJG70TLcrb2Bmx5+yOSE6ZXMhpVPkr8anf7lrcM9iLvea q3Tx+eElDfNw0zKeTzRu23JrpeZzBuMrOT8InVCr9ML8KWcbgwUe4dzKZwfJW356YiZq eYWZtgCwcpSs/CdXpIr3XhrxOMji/KOiidbRib3XRWa6S2oK0I9n5s4Tp4bmna/RKmbA DHSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=03ybvmV+K5pnAbHEvw9vfTWZqGIjM59l7yiGjUtmX0c=; b=LJAuF4KB4eQz7lOodGF+69l80ns4JX12LnCYMbhO+j0N2L/+CxEdf4FjHIXCFilhsL 5gVcYmZfzjIpF9m2lmhfmjHZQRnTHlEqb5QNfRwN87IOcV4QxXC2UFYTRR7UpAy4dBZ6 ity6J6ZH/n9hmAezIA+xcN1k8tXCHhATSYmlGhqKhuWOTpa6BGNQ0H8n8g31T2gvE8GF yk4lSqVFUB7V5XEcKLv9Tmih1Cf/cA2qVv7UuoXNV2Qn0Q9+Mp3bl6nSfSIl2bh3RblV hOKK++wrMKXFr7scZSy/HOBgYAFoon/9dhXfjAKyDk2BmotRNuCanADf8eoHvzsSjozH /74Q== X-Gm-Message-State: AG10YOT7+xxaxeVUboXtJ5XMRFAkcJkWmSeg1bRCUx4ehbvyZScYuWzXGAiT776qNDPP069A0cuXg051NW3Udw== MIME-Version: 1.0 X-Received: by 10.50.134.129 with SMTP id pk1mr2466708igb.11.1455261336206; Thu, 11 Feb 2016 23:15:36 -0800 (PST) Received: by 10.36.155.137 with HTTP; Thu, 11 Feb 2016 23:15:36 -0800 (PST) In-Reply-To: <56BC7BB0.7030407@selasky.org> References: <56BC289F.2070208@selasky.org> <56BC31CD.2000509@selasky.org> <56BC751A.4030707@selasky.org> <56BC7BB0.7030407@selasky.org> Date: Fri, 12 Feb 2016 16:15:36 +0900 Message-ID: Subject: Re: Regarding Wake On USB input from S3 Sleep From: Dee Zay To: Hans Petter Selasky Cc: freebsd-acpi@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Fri, 12 Feb 2016 07:15:37 -0000 Hello, I've looked into *usb/controller/usb_controller.c* and modified usb_bus_suspend(): ============================================================== *Line480* // * We use the shutdown event here because the suspend and // * resume events are reserved for the USB port suspend and // * resume. The USB system suspend is implemented like full // * resume events are reserved for the USB port suspend and // * resume. The USB system suspend is implemented like full // * shutdown and all connected USB devices will be disconnected // * subsequently. At resume all USB devices will be // * re-connected again. bus_generic_suspend(bus->bdev); //*suspend instead of shutdown* do_unlock = usbd_enum_lock(udev); err = usbd_set_config_index(udev, USB_UNCONFIG_INDEX); if (err) device_printf(bus->bdev, "Could not unconfigure root HUB\n"); USB_BUS_LOCK(bus); bus->hw_power_state = //*added power options instead of 0* USB_HW_POWER_CONTROL | USB_HW_POWER_BULK | USB_HW_POWER_INTERRUPT | USB_HW_POWER_ISOC | USB_HW_POWER_NON_ROOT_HUB; bus->no_explore = 0; ============================================================== but the system does not respond to any USB interrupts? Also, I do not understand why the suspend/resume events are reserved only for USB ports, whereas the USB system has to be shutdown. Thanks, Julian On Thu, Feb 11, 2016 at 9:16 PM, Hans Petter Selasky wrote: > On 02/11/16 13:08, Dee Zay wrote: > >> Hello, >> >> So, is the BIOS handover to the USB stack a prerequisite when resuming >> from >> standby mode HC (not completely off HC)? >> > > Hi, > > I'm not sure. You'll have to find out. It is what happens when you suspend > which decides if you get the resume event or not. Once resumed the system > will manage somehow, either full reset or handover. > > In other words, do we need to implement BIOS handover before we can use >> wake on usb keyboard input? >> > > Might depend on the BIOS make. I've never tested this on FreeBSD before so > I don't know. > > Or is there a workaround for this specific functionality? >> > > Maybe check what Linux is doing. > > --HPS > > From owner-freebsd-acpi@freebsd.org Fri Feb 12 16:34:22 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 57B27AA6458 for ; Fri, 12 Feb 2016 16:34:22 +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 D5F9E1974 for ; Fri, 12 Feb 2016 16:34:20 +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 u1CGY6IX011737; Sat, 13 Feb 2016 03:34:06 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sat, 13 Feb 2016 03:34:05 +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: <1455204470.3280673.518464754.6AB4FA63@webmail.messagingengine.com> Message-ID: <20160213033009.T51785@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> 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: Fri, 12 Feb 2016 16:34:22 -0000 On Thu, 11 Feb 2016 07:27:50 -0800, Luke wrote: > I am VERY new to this but was just doing some hacking on my laptop > (zenbook) and found if I poweroff my USBs (while the rest of the machine > is still being used) I gain an hour of battery life. What exactly do you do to accomplish that? cheers, Ian From owner-freebsd-acpi@freebsd.org Fri Feb 12 16:49:53 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 67703AA6AE7 for ; Fri, 12 Feb 2016 16:49:53 +0000 (UTC) (envelope-from lukek@fastmail.fm) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 381081056 for ; Fri, 12 Feb 2016 16:49:53 +0000 (UTC) (envelope-from lukek@fastmail.fm) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 568502091C for ; Fri, 12 Feb 2016 11:49:46 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute3.internal (MEProxy); Fri, 12 Feb 2016 11:49:46 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=+2O2XLtDhmtYmOj1hEN0/5xMYGk=; b=Ysikai PgZes5xEZ4/ZgG+Do7rgoF8jwPAW+AgQ89VNn6ZQJg+YjZnM8uB27CesqZLuCy2z 4Fpp4osPwlbyn3WF8A9EQq2yFi2BoaqL7V7tIaoDJ75WhWQzw+f4bUOU6v+UNqlY qXmj4+9bmkwOGBpRvy4nIBfmUh3E7nRrjUYZk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=+2O2XLtDhmtYmOj 1hEN0/5xMYGk=; b=V8VNemHQ2G39JzZpdy7w5RUNJeZEWwUaBgU3NqBeyNk41rR iA7uCBzV7aAQRWRSqkB1NgMAa6lOOGm6VE3nozn+IE8/qqbfTi1vnfWgnwlksyNY Wy8uD9Q2EnHd2aDzh0ztD1JKSRNAu0I/IBBUYYtnfv47/FVGJqmB1hY3NcH0= Received: by web4.nyi.internal (Postfix, from userid 99) id 29C38113D00; Fri, 12 Feb 2016 11:49:46 -0500 (EST) Message-Id: <1455295786.2745839.519574962.53409F27@webmail.messagingengine.com> X-Sasl-Enc: Y6lMYUnuOIxpa/JMhDGdk5ybr7r8ZZ/Ukpx6FL0CIbSe 1455295786 From: Luke To: Ian Smith Cc: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-e69f0414 Subject: Re: Regarding Wake On USB input from S3 Sleep Date: Fri, 12 Feb 2016 08:49:46 -0800 In-Reply-To: <20160213033009.T51785@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> 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: Fri, 12 Feb 2016 16:49:53 -0000 I think it was just a few sysctl calls I found on the FreeBSD wiki to poweroff USBs. I can look once I get home if needed. Luke -- l k lukek@fastmail.fm On Fri, Feb 12, 2016, at 08:34 AM, Ian Smith wrote: > On Thu, 11 Feb 2016 07:27:50 -0800, Luke wrote: > > > I am VERY new to this but was just doing some hacking on my laptop > > (zenbook) and found if I poweroff my USBs (while the rest of the machine > > is still being used) I gain an hour of battery life. > > What exactly do you do to accomplish that? > > cheers, Ian From owner-freebsd-acpi@freebsd.org Sat Feb 13 15:12:37 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 DEFF9AA7875 for ; Sat, 13 Feb 2016 15:12:37 +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 60863110C for ; Sat, 13 Feb 2016 15:12:36 +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 u1DFCSdX058835; Sun, 14 Feb 2016 02:12:28 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Sun, 14 Feb 2016 02:12:28 +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: <1455295786.2745839.519574962.53409F27@webmail.messagingengine.com> Message-ID: <20160214015131.Q51785@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> 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, 13 Feb 2016 15:12:38 -0000 On Fri, 12 Feb 2016 08:49:46 -0800, Luke wrote: > I think it was just a few sysctl calls I found on the FreeBSD wiki to > poweroff USBs. I can look once I get home if needed. > > Luke > > -- > l k > lukek@fastmail.fm > > On Fri, Feb 12, 2016, at 08:34 AM, Ian Smith wrote: > > On Thu, 11 Feb 2016 07:27:50 -0800, Luke wrote: > > > > > I am VERY new to this but was just doing some hacking on my laptop > > > (zenbook) and found if I poweroff my USBs (while the rest of the machine > > > is still being used) I gain an hour of battery life. > > > > What exactly do you do to accomplish that? 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 .. thanks, Ian From owner-freebsd-acpi@freebsd.org Sat Feb 13 19:17:33 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 8A02FAA78FF for ; Sat, 13 Feb 2016 19:17:33 +0000 (UTC) (envelope-from lukek@fastmail.fm) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 594491119 for ; Sat, 13 Feb 2016 19:17:32 +0000 (UTC) (envelope-from lukek@fastmail.fm) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E84CB20421 for ; Sat, 13 Feb 2016 14:17:31 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute4.internal (MEProxy); Sat, 13 Feb 2016 14:17:31 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=As7EzhYTtihrBSpOL8x78/azsTg=; b=VR2vuX sX0UYG1gwBu36XnJKAgrOWbGI1rZz0mHph3PBd9UnZ63UGSO7pcEFJFnczAroEpm x3394q1IPNvLX490hKYNLXI+BTLQ+6ZUHoVWTjwEhV4G8G+SYsuqt5uftSw+oKYm ILLedfxlSc/yjX/Cx9Fd4NIAnQRiABqOu/BEM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=As7EzhYTtihrBSp OL8x78/azsTg=; b=cu5bLMwm//ImKq2qjl62oH4+GNAf5VSaw9l7h1mq53qbs3i 05+eDvFzZWhJwr3rtJMBAkaxD17SSQ2/iWpDedk5uk4bIJ+cXMBMPc0ZuCqZIT/8 gcPQBhiy8FpOTmk2BsRsYRoWFkMB5M3MkaQ07Ig/g1AbPc+sirVhdV4xGgrI= Received: by web4.nyi.internal (Postfix, from userid 99) id B7526114A10; Sat, 13 Feb 2016 14:17:31 -0500 (EST) Message-Id: <1455391051.1524783.520367578.79304ABE@webmail.messagingengine.com> X-Sasl-Enc: w4gU7eJPZyO/J3doEPFv5eKASB2kdmxjKH5FwFOlT9EH 1455391051 From: Luke To: Ian Smith Cc: freebsd-acpi@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-e69f0414 In-Reply-To: <20160214015131.Q51785@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> Subject: Re: Regarding Wake On USB input from S3 Sleep Date: Sat, 13 Feb 2016 11:17:31 -0800 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, 13 Feb 2016 19:17:33 -0000 > 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 .. > > thanks, Ian 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.