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