[LIVE] Suspend/hibernate not working, please help - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: [LIVE] Suspend/hibernate not working, please help (/showthread.php?tid=102483) |
[Solved] Suspend/hibernate not working, please help - Killerzmurf - 2011-05-30 I see there has been alot of problems with this in the past, but in every case the situation is a bit different from mine and I'm sitting back with more questions than answeres while reading other similar posts. So I'll just give it a go despereate as i am... Summary of my situation: When choosing "shutdown" -> "suspend" I get a black screen for a couple of seconds, then some text in 3 lines popup on the black screen faster than I'm able to read before I'm thrown back into the XBMC menu. All this in a few seconds. I've managed to record this from my phone and pause the picture so I could read the text, here is what it says; [17476.022166] pm_op(): usb-dev-suspend+0x0/0x20 returns -Z [17476.022172] PM: Device usb6 failed to suspend: error -Z [17476.022176] PM: Some devices failed to suspend For the hibernate function the same thing happens, but with some difference in the text lines; [17455.599013] pm-op(): usb_dev-freeze+0x0/0x20 returns -Z [17455.599919] PM: Device usb6 failed to freeze: error -Z The power off function works as it is supposed to. My setup is XBMC live 10.1 Dharma, fresh install on an USB stick with a Asus AT5IONT-I motherboard. http://www.asus.com/Motherboards/Intel_CPU_on_Board/AT5IONTI/#specifications Bios settings: Suspend mode: S3 only ACPI 2.0 support: enable ACPI APIC support: disable APM configuration: Restore on AC power loss: power off Resume on RTC alarm: disable Power on by PME: enable Power on by PS/2 keyboard: power key Power on by PS/2 mouse: enable I have a wireless keyboard and a mce remote connected to the XBMC computer (usb), both working out of the box without altering any options or anything. I am missing the suspend function sooo much! and would greatly apreciate if someone could help me out with this as Im not a linux man. - Killerzmurf - 2011-05-30 Here is my debug log; The log was so big that I couldnt add all of it, so I hope this will do? DEBUG: ------ Window Init (Settings.xml) ------ 02:28:54 T:3077519232 M:2961637376 INFO: Loading skin file: Settings.xml 02:28:55 T:3077519232 M:2953981952 DEBUG: ExecuteXBMCAction : Translating SetFocus(1) 02:28:55 T:3077519232 M:2953981952 DEBUG: ExecuteXBMCAction : To SetFocus(1) 02:28:55 T:3077519232 M:2953981952 DEBUG: Loading: /usr/lib/xbmc/system/ImageLib-i486-linux.so 02:28:57 T:3077519232 M:2950275072 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:28:57 T:3077519232 M:2950275072 DEBUG: OnKey: 61480 pressed, action is Down 02:28:57 T:3077519232 M:2946473984 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:28:57 T:3077519232 M:2946473984 DEBUG: OnKey: 61480 pressed, action is Down 02:28:57 T:3077519232 M:2950193152 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:28:57 T:3077519232 M:2950193152 DEBUG: OnKey: 61480 pressed, action is Down 02:28:57 T:3077519232 M:2950193152 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:28:57 T:3077519232 M:2950193152 DEBUG: OnKey: 61480 pressed, action is Down 02:28:58 T:3077519232 M:2950250496 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:28:58 T:3077519232 M:2950250496 DEBUG: OnKey: 61480 pressed, action is Down 02:28:59 T:3077519232 M:2950209536 DEBUG: SDLKeyboard: scancode: 36, sym: 13, unicode: 13, modifier: 0 02:28:59 T:3077519232 M:2950209536 DEBUG: OnKey: 61453 pressed, action is Select 02:28:59 T:3077519232 M:2950209536 DEBUG: ExecuteXBMCAction : Translating ActivateWindow(SystemSettings) 02:28:59 T:3077519232 M:2950209536 DEBUG: ExecuteXBMCAction : To ActivateWindow(SystemSettings) 02:28:59 T:3077519232 M:2950209536 DEBUG: Activating window ID: 10016 02:28:59 T:3077519232 M:2950209536 DEBUG: Checking if window ID 10016 is locked. 02:28:59 T:3077519232 M:2950209536 DEBUG: ------ Window Deinit (Settings.xml) ------ 02:28:59 T:3077519232 M:2950209536 DEBUG: ------ Window Init (SettingsCategory.xml) ------ 02:28:59 T:3077519232 M:2950209536 INFO: Loading skin file: SettingsCategory.xml 02:29:00 T:3077519232 M:2962796544 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:29:00 T:3077519232 M:2962796544 DEBUG: OnKey: 61480 pressed, action is Down 02:29:00 T:3077519232 M:2962862080 DEBUG: PulseAudio: Context failed 02:29:00 T:3077519232 M:2962862080 ERROR: PulseAudio: Waited for the Context but it failed 02:29:00 T:3077519232 M:2962862080 ERROR: PulseAudio: Failed to create context 02:29:01 T:3077519232 M:2962862080 WARNING: Failed to find previously selected audio sink 02:29:01 T:3077519232 M:2962862080 DEBUG: PulseAudio: Context failed 02:29:01 T:3077519232 M:2962862080 ERROR: PulseAudio: Waited for the Context but it failed 02:29:01 T:3077519232 M:2962862080 ERROR: PulseAudio: Failed to create context 02:29:01 T:3077519232 M:2962862080 WARNING: Failed to find previously selected audio sink 02:29:01 T:3077519232 M:2962862080 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:29:01 T:3077519232 M:2962862080 DEBUG: OnKey: 61480 pressed, action is Down 02:29:01 T:3077519232 M:2962862080 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:29:01 T:3077519232 M:2962862080 DEBUG: OnKey: 61480 pressed, action is Down 02:29:02 T:3077519232 M:2962849792 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:29:02 T:3077519232 M:2962849792 DEBUG: OnKey: 61480 pressed, action is Down 02:29:03 T:3077519232 M:2962849792 DEBUG: SDLKeyboard: scancode: 36, sym: 13, unicode: 13, modifier: 0 02:29:03 T:3077519232 M:2962849792 DEBUG: OnKey: 61453 pressed, action is Select 02:29:03 T:3077519232 M:2962849792 DEBUG: ExecuteXBMCAction : Translating SetFocus(800) 02:29:03 T:3077519232 M:2962849792 DEBUG: ExecuteXBMCAction : To SetFocus(800) 02:29:03 T:3077519232 M:2962849792 DEBUG: SDLKeyboard: scancode: 114, sym: 275, unicode: 0, modifier: 0 02:29:03 T:3077519232 M:2962849792 DEBUG: OnKey: 61479 pressed, action is Right 02:29:05 T:3077519232 M:2962968576 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:29:05 T:3077519232 M:2962968576 DEBUG: OnKey: 61480 pressed, action is Down 02:29:05 T:3077519232 M:2962968576 DEBUG: PulseAudio: Context failed 02:29:05 T:3077519232 M:2962968576 ERROR: PulseAudio: Waited for the Context but it failed 02:29:05 T:3077519232 M:2962968576 ERROR: PulseAudio: Failed to create context 02:29:05 T:3077519232 M:2962968576 WARNING: Failed to find previously selected audio sink 02:29:05 T:3077519232 M:2962976768 DEBUG: PulseAudio: Context failed 02:29:05 T:3077519232 M:2962976768 ERROR: PulseAudio: Waited for the Context but it failed 02:29:05 T:3077519232 M:2962976768 ERROR: PulseAudio: Failed to create context 02:29:06 T:3077519232 M:2962976768 WARNING: Failed to find previously selected audio sink 02:29:06 T:3077519232 M:2962976768 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:29:06 T:3077519232 M:2962976768 DEBUG: OnKey: 61480 pressed, action is Down 02:29:06 T:3077519232 M:2962976768 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:29:06 T:3077519232 M:2962976768 DEBUG: OnKey: 61480 pressed, action is Down 02:29:07 T:3077519232 M:2962968576 DEBUG: SDLKeyboard: scancode: 116, sym: 274, unicode: 0, modifier: 0 02:29:07 T:3077519232 M:2962968576 DEBUG: OnKey: 61480 pressed, action is Down 02:29:07 T:3077519232 M:2962968576 DEBUG: SDLKeyboard: scancode: 114, sym: 275, unicode: 0, modifier: 0 02:29:07 T:3077519232 M:2962968576 DEBUG: OnKey: 61479 pressed, action is Right 02:29:08 T:3077519232 M:2962968576 DEBUG: SDLKeyboard: scancode: 36, sym: 13, unicode: 13, modifier: 0 02:29:08 T:3077519232 M:2962968576 DEBUG: OnKey: 61453 pressed, action is Select 02:29:08 T:3077519232 M:2962968576 NOTICE: Disabled debug logging due to GUI setting. Level 0. - teeedubb - 2011-05-30 From a quick glance at your log files it looks as though as USB device is failing to suspend. You need to create a script is /etc/pm/resume.d (from memory) to unload/reload the driver for the offending USB peripheral device. - Killerzmurf - 2011-05-30 Thanks teeedubb. ok, so I have managed to get abit closer. I went in to BIOS and sat "onboard usb 3.0 controller" to "disable". After this I can now put my XBMC in suspend without it popping back into the XBMC menu. But now I can't wake it from suspend from my remote or keyboard, to wake it I have to press the power button on the computer itself. So I found this guide that should fix the problem, with the chapter "Fixing wake from suspend via USB/IR remote" : http://redherring2.wordpress.com/2009/06/11/xbmc-live-asrock-ion-330-setup-guide/ This guide is actually ment for an asrock system, but I think they are based on an ION system that is pretty similar to my selfbuilt mediacenter so I was hoping it would work for me aswell, but no luck here For information my /etc/rc.local now looks like this; just as the guide says... #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. echo USB0 > /proc/acpi/wakeup exit 0 Any more ideas? - teeedubb - 2011-05-30 Try this http://wiki.xbmc.org/index.php?title=Ubuntu_Suspend_/_Wake - Killerzmurf - 2011-05-30 teeedubb Wrote:Try this http://wiki.xbmc.org/index.php?title=Ubuntu_Suspend_/_WakeNice guide, basically the same thing as the other guide i mentioned earlier, but this one was better. I added the following: to my /etc/rc.local : echo USB0 > /proc/acpi/wakeup echo "rc.local has completed sucessfully." >> /tmp/resume.log exit 0 With this my keyboard would wake up again, I then tried to change the number from echo USB0..... to echo USB1.... and up tp 4 without any respons on my remote. I then changed it back to echo USB0... and switched places between the keyboard and the IR-reciever. And voila, the remote wakeup worked. Thanks for your help... |