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 > >