Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Feb 2016 15:36:22 +0900
From:      Dee Zay <julianpark90611@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: Regarding Wake On USB input from S3 Sleep
Message-ID:  <CACMcRdcVnCshhPpc9qAyGeg62DgYxFxRbkiNMVsCeMF7SOmmrA@mail.gmail.com>
In-Reply-To: <56BC289F.2070208@selasky.org>
References:  <CACMcRdfLERKud5_0GMKK1m7RF1DS8hxrhSxpZFEUyqpMWNS7EQ@mail.gmail.com> <56BC289F.2070208@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <hps@selasky.org>
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
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACMcRdcVnCshhPpc9qAyGeg62DgYxFxRbkiNMVsCeMF7SOmmrA>