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