Kodi Community Forum
[SOLVED] Preventing system sleep when using Advanced Launcher - 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: [SOLVED] Preventing system sleep when using Advanced Launcher (/showthread.php?tid=131392)



[SOLVED] Preventing system sleep when using Advanced Launcher - deadwolfbones - 2012-05-12

Hey guys,

Kind of a weird one...

I have no problems with video playback when watching things inside of XBMCbuntu.

However, I set up Advanced Launcher (per this guide) to launch a full-screen Chromium browser window so I can watch flash-based streaming sites (ESPN3, SPEED2, etc) that don't have great plugin support in XBMC. Everything works fluidly, except that after about 10 minutes my receiver loses its HDMI connection with the HTPC. At first, I only noticed this happening while watching full-screen video, and I found that if I hit ESC to exit the full-screen video mode, the HDMI connection was immediately re-established.

Then, I left the Chromium window open on a random website, with no video playing, and walked away. About 10 minutes later, it lost its HDMI connection again. So, I'm assuming this has nothing to do with video playback and is instead some general setting somewhere in LXDE.

Anyone have any ideas as to what might be causing it?


RE: Losing HDMI connection when using Chromium launched from within XBMCbuntu - wsnipex - 2012-05-12

maybe xbmcs screensaver/powersaving?


RE: Losing HDMI connection when using Chromium launched from within XBMCbuntu - deadwolfbones - 2012-05-12

I have XBMC set to turn off the display after 60 minutes idle, but this is definitely happening much, much sooner. Could be the screensaver, I'll look into that.


RE: Losing HDMI connection when using Chromium launched from within XBMCbuntu - Angelscry - 2012-05-12

(2012-05-12, 20:27)deadwolfbones Wrote: I have XBMC set to turn off the display after 60 minutes idle, but this is definitely happening much, much sooner. Could be the screensaver, I'll look into that.
You will found here a way to disable system sleep : http://forum.xbmc.org/showthread.php?tid=128329&pid=1073943#pid1073943




RE: Losing HDMI connection when using Chromium launched from within XBMCbuntu - deadwolfbones - 2012-05-12

Thanks, that's potentially quite helpful.


RE: Losing HDMI connection when using Chromium launched from within XBMCbuntu - Plaguester - 2012-05-13

It's actually better to just turn it off in your script that launches your application: See this post. That way the screensaver or screenblank and other DPMS functions will behave normally when your script finishes.


RE: Losing HDMI connection when using Chromium launched from within XBMCbuntu - deadwolfbones - 2012-05-13

Thanks, I'll give it a try.

Does your solution have exactly the same effect for my purposes (preventing X from going to sleep)?


RE: Losing HDMI connection when using Chromium launched from within XBMCbuntu - Plaguester - 2012-05-13

Yup. "xset s off" turns the screensaver off and "xset -dpms" prevents X from going into any of the power saving modes (standby, suspend, hibernate, etc). I use it for SNES emulation because X doesn't count gamepad input as input. Just put the rest of your launch script in place of the zsnes line in the example.


RE: Losing HDMI connection when using Chromium launched from within XBMCbuntu - deadwolfbones - 2012-05-13

Yep, this worked great. Thanks so much!


RE: [SOLVED] Preventing system sleep when using Advanced Launcher - Aperkins - 2014-04-03

Would it be possible for anyone to explain this in a little more detail? I have a similar issue I am running xbmcubuntu from a pc out hdmi to my av receiver, and when the pc goes to sleep I lose my hdmi handshake and have to reboot the pc to get xbmc picture back. I need to disable the system from going to sleep but I have no idea how to edit scripts or even where to begin that process. Any help would be greatly appreciated. Thanks.