Re: Regarding Wake On USB input from S3 Sleep

2016-02-14 Thread Hans Petter Selasky
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 gui

Re: Regarding Wake On USB input from S3 Sleep

2016-02-14 Thread Ian Smith
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 1

Re: Regarding Wake On USB input from S3 Sleep

2016-02-13 Thread Luke
> 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:

Re: Regarding Wake On USB input from S3 Sleep

2016-02-13 Thread Ian Smith
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 > lu...@fastmail.fm > > On Fri, Feb 12, 2016, at 08:34 AM, Ian Smith wrote: > > On

Re: Regarding Wake On USB input from S3 Sleep

2016-02-12 Thread Luke
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 lu...@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 wa

Re: Regarding Wake On USB input from S3 Sleep

2016-02-12 Thread Ian Smith
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? che

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Dee Zay
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

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Luke
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:

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Hans Petter Selasky
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 mo

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Ian Smith
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 ou

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Hans Petter Selasky
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

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Dee Zay
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 aga

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Hans Petter Selasky
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 ab

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Dee Zay
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:

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Hans Petter Selasky
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. F

Re: Regarding Wake On USB input from S3 Sleep

2016-02-11 Thread Dee Zay
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/

Re: Regarding Wake On USB input from S3 Sleep

2016-02-10 Thread Hans Petter Selasky
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

Re: Regarding Wake On USB input from S3 Sleep

2016-02-10 Thread Dee Zay
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:

Re: Regarding Wake On USB input from S3 Sleep

2016-02-10 Thread Hans Petter Selasky
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

Regarding Wake On USB input from S3 Sleep

2016-02-10 Thread Dee Zay
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 (