From owner-freebsd-acpi@FreeBSD.ORG Wed Jan 11 18:58:15 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 2622B1065678 for ; Wed, 11 Jan 2012 18:58:15 +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 A7EEA8FC15 for ; Wed, 11 Jan 2012 18:58:14 +0000 (UTC) Received: by wibhm4 with SMTP id hm4so969145wib.13 for ; Wed, 11 Jan 2012 10:58:13 -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=i3FIw9pZSL1QyttxSWUNzGkmF6r5R4qhXpscCGg4iOw=; b=Uhwu3+9y7G+/gRTwXE7wpGtGHaoWXYZEIBpgfDyCLtjHP6fYl9qBt/ylxeVpsjabCe ZEA5yjLrK0S/g+eltUyMJqHIxCJkex2Ytg5/51pzWjqBPRYkLvX+LnKCNYQSM5ppnHFX YCTXE7cjBI0n0laTbo84LjzdnvQsaTMAOpDXE= Received: by 10.180.105.129 with SMTP id gm1mr15238902wib.1.1326308293620; Wed, 11 Jan 2012 10:58:13 -0800 (PST) Received: from Groseille.malikania.fr (197.21.102.84.rev.sfr.net. [84.102.21.197]) by mx.google.com with ESMTPS id g26sm2785801wbo.16.2012.01.11.10.58.11 (version=SSLv3 cipher=OTHER); Wed, 11 Jan 2012 10:58:12 -0800 (PST) Message-ID: <4F0DDBC3.9030704@gmail.com> Date: Wed, 11 Jan 2012 19:58:11 +0100 From: David Demelier User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111109 Thunderbird/8.0 MIME-Version: 1.0 To: Hans Petter Selasky References: <4F0C64E3.8020500@gmail.com> <201201102208.47838.hselasky@c2i.net> <4F0CABB0.80707@gmail.com> <201201111912.28632.hselasky@c2i.net> In-Reply-To: <201201111912.28632.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: Wed, 11 Jan 2012 18:58:15 -0000 On 11/01/2012 19:12, Hans Petter Selasky wrote: > On Tuesday 10 January 2012 22:20:48 David Demelier wrote: >> 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); >> } >> > > Hi, > >> So I guess yes :)) > > What does usbconfig say? > > Try to set the configuration to 255 or 0 on the Root-Hubs. What? Can you tell me more, I can't understand > > --HPS Cheers, -- David Demelier