From owner-freebsd-acpi@FreeBSD.ORG Tue Jan 10 21:20:53 2012 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02648106564A for ; Tue, 10 Jan 2012 21:20:53 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8A7558FC1C for ; Tue, 10 Jan 2012 21:20:52 +0000 (UTC) Received: by wibhr1 with SMTP id hr1so24035wib.13 for ; Tue, 10 Jan 2012 13:20:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=fisXh7bPc5XnYTWIFqY2B9wUbAupchb/jgZrV5fpWiM=; b=R5a5KyRBSO941b/svkRYYvhK38ZEM5L2djnEXK+KdpVC/X4J1HaOZ5f47vU8PlvEvH ZjUGPV9Narf74SJGvYnspX4lg5lrosrbCjjKBcoOkjl2huh085q4GGOMZtLsfbaWOQ9w pMjxtjBkUiYQFiKS4VmfKI/LOsldbafqzGl6s= Received: by 10.180.93.132 with SMTP id cu4mr6340461wib.9.1326230451375; Tue, 10 Jan 2012 13:20:51 -0800 (PST) Received: from Melon.malikania.fr (197.21.102.84.rev.sfr.net. [84.102.21.197]) by mx.google.com with ESMTPS id eu3sm65248108wib.6.2012.01.10.13.20.49 (version=SSLv3 cipher=OTHER); Tue, 10 Jan 2012 13:20:50 -0800 (PST) Message-ID: <4F0CABB0.80707@gmail.com> Date: Tue, 10 Jan 2012 22:20:48 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120105 Thunderbird/9.0 MIME-Version: 1.0 To: Hans Petter Selasky References: <4F0C64E3.8020500@gmail.com> <201201102006.40527.bschmidt@techwires.net> <4F0C89BD.1010501@gmail.com> <201201102208.47838.hselasky@c2i.net> In-Reply-To: <201201102208.47838.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: Suspend to ram almost work on desktop computer X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2012 21:20:53 -0000 On 10/01/2012 22:08, Hans Petter Selasky wrote: > On Tuesday 10 January 2012 19:55:57 David Demelier wrote: >> On 10/01/2012 20:06, Bernhard Schmidt wrote: >>> On Tuesday 10 January 2012 17:18:43 David Demelier wrote: >>>> Hello, >>>> >>>> I have a desktop computer on a Intel DH55HC mainboard. Suspend to ram >>>> almost works on 9.0-RELEASE. >>>> >>>> The resume works, I can get back to X and it works, started applications >>>> still run but all my USB stuff is dead. I can't use my mouse neither my >>>> keyboard so I can't do anything. >>>> >>>> This is the last messages : >>>> >>>> Jan 10 17:08:45 Groseille acpi: suspend at 20120110 17:08:45 >>>> Jan 10 17:08:49 Groseille kernel: ugen0.2: at usbus0 >>>> (disconnected) Jan 10 17:08:49 Groseille kernel: ukbd0: at uhub0, port >>>> 1, addr 2 (disconnected) >>>> Jan 10 17:08:49 Groseille kernel: uhid0: at uhub0, port 1, addr 2 >>>> (disconnected) >>>> Jan 10 17:09:14 Groseille kernel: pcm1: chn_write(): >>>> pcm1:virtual:dsp1.vp0: play interrupt timeout, channel dead >>>> Jan 10 17:09:14 Groseille kernel: ugen1.2: at usbus1 >>>> (disconnected) >>>> Jan 10 17:09:14 Groseille kernel: ubt0: at uhub1, port 2, addr 2 >>>> (disconnected) >>>> Jan 10 17:09:14 Groseille kernel: ugen1.2: at usbus1 >>>> Jan 10 17:09:14 Groseille kernel: ubt0:>>> class 224/1, rev 2.00/19.58, addr 2> on usbus1 >>>> Jan 10 17:09:15 Groseille acpi: resumed at 20120110 17:09:15 >>> >>> Applying the diff of >>> http://docs.freebsd.org/cgi/getmsg.cgi?fetch=199056+0+archive/2012/svn-s >>> rc-head/20120108.svn-src-head should fix that I guess. >> >> Someone gave me that diff on IRC, I updated all the kernel to -STABLE >> and verified that this diff were present, it is. Unfortunately it didn't >> fixed :(. > > Are you running 9-stable? > > --HPS FreeBSD Groseille.malikania.fr 9.0-STABLE FreeBSD 9.0-STABLE #0: Tue Jan 10 17:50:05 CET 2012 root@Groseille.malikania.fr:/usr/obj/usr/src/sys/Groseille amd64 markand@Groseille ~ $ head -n 490 /usr/src/sys/dev/usb/controller/usb_controller.c | tail -n 59 /*------------------------------------------------------------------------* * usb_bus_resume * * This function is used to resume the USB contoller. *------------------------------------------------------------------------*/ static void usb_bus_resume(struct usb_proc_msg *pm) { struct usb_bus *bus; struct usb_device *udev; usb_error_t err; bus = ((struct usb_bus_msg *)pm)->bus; udev = bus->devices[USB_ROOT_HUB_ADDR]; if (udev == NULL || bus->bdev == NULL) return; USB_BUS_UNLOCK(bus); usbd_enum_lock(udev); #if 0 DEVMETHOD(usb_take_controller, NULL); /* dummy */ #endif USB_TAKE_CONTROLLER(device_get_parent(bus->bdev)); USB_BUS_LOCK(bus); bus->hw_power_state = USB_HW_POWER_CONTROL | USB_HW_POWER_BULK | USB_HW_POWER_INTERRUPT | USB_HW_POWER_ISOC | USB_HW_POWER_NON_ROOT_HUB; bus->no_explore = 0; USB_BUS_UNLOCK(bus); if (bus->methods->set_hw_power_sleep != NULL) (bus->methods->set_hw_power_sleep) (bus, USB_HW_POWER_RESUME); if (bus->methods->set_hw_power != NULL) (bus->methods->set_hw_power) (bus); /* restore USB configuration to index 0 */ err = usbd_set_config_index(udev, 0); if (err) device_printf(bus->bdev, "Could not configure root HUB\n"); /* probe and attach */ err = usb_probe_and_attach(udev, USB_IFACE_INDEX_ANY); if (err) { device_printf(bus->bdev, "Could not probe and " "attach root HUB\n"); } usbd_enum_unlock(udev); USB_BUS_LOCK(bus); } So I guess yes :)) -- David Demelier