How to start xbmc after resume from suspend? - 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: How to start xbmc after resume from suspend? (/showthread.php?tid=49946) |
How to start xbmc after resume from suspend? - yellowman - 2009-04-29 I would like to kill xbmc when I suspend and start it when I resume from suspend. What is the best way of doing that? I have tried to add a file like: /etc/pm/sleep.d/06xbmc Code: #!/bin/bash But that didnĀ“t work, it seems to fail when resuming, something about no display if I remember correctly. Thanks in advance! - yellowman - 2009-04-29 Ok, looking a little closer at the suspend log: http://pastebin.com/ma5b2506 And it seems like it has something to do with FEH.py. So I found a thread where it said I could try to run xbmc with --no-test And then the supend log ends with: Code: /etc/pm/sleep.d/0000xbmc resume suspend: success. The script looks like: Code: #!/bin/bash Any ideas? EDIT: Just answering myself, if someone else runs into this. It appears that after upgrading ubuntu to 9.04 I now need to run suspend with --quirk-vbe-post To get it to resume correctly, so the videocard is available. EDIT2: Strike that last edit. It seems that when running "sudo pm-suspend" from the console, the script works fine and xbmc starts. But when running suspend from the gui or from within xbmc it fails. Wierd. |