2012-04-02, 20:15
Hola!
I have been having trouble getting my box to suspend consistently without waking up immediately. I've modified my /etc/default/grub file to include this line:
...as per this article: http://wiki.xbmc.org/index.php?title=HOW...for_Ubuntu
I've also modded /etc/rc.local and it's correctly adding my USB devices to wakeup. When it suspends properly, it wakes up properly when I hit a button on my remote (shows up as a keypress in XBMC via Flirc). I can't figure out why sometimes it will suspend but most of the time it won't, and I've noticed some very strange patterns. For example, if I ssh into it and run 'sudo pm-suspend' it always suspends nicely and doesn't wake up until I hit a remote key, but if I make a bash script that contains only:
...it suspends and then wakes up immediately. And if I use Adv. Launcher to launch that script, it doesn't suspend at all. I've modified sudoers so that pm-suspend doesn't require a passwd from user xbmc. Does anyone know how the suspend command works in XBMC? Is it using pm-utils? And if so, does anyone know why running the script above gives different results than just 'sudo pm-suspend' over ssh? I'm pretty baffled.
I have been having trouble getting my box to suspend consistently without waking up immediately. I've modified my /etc/default/grub file to include this line:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1 acpi_enforce_resources=lax"
...as per this article: http://wiki.xbmc.org/index.php?title=HOW...for_Ubuntu
I've also modded /etc/rc.local and it's correctly adding my USB devices to wakeup. When it suspends properly, it wakes up properly when I hit a button on my remote (shows up as a keypress in XBMC via Flirc). I can't figure out why sometimes it will suspend but most of the time it won't, and I've noticed some very strange patterns. For example, if I ssh into it and run 'sudo pm-suspend' it always suspends nicely and doesn't wake up until I hit a remote key, but if I make a bash script that contains only:
Code:
#! /bin/bash
sudo pm-suspend
...it suspends and then wakes up immediately. And if I use Adv. Launcher to launch that script, it doesn't suspend at all. I've modified sudoers so that pm-suspend doesn't require a passwd from user xbmc. Does anyone know how the suspend command works in XBMC? Is it using pm-utils? And if so, does anyone know why running the script above gives different results than just 'sudo pm-suspend' over ssh? I'm pretty baffled.