[SOLVED] Preventing system sleep when using Advanced Launcher

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
deadwolfbones Offline
Senior Member
Posts: 138
Joined: Aug 2007
Reputation: 0
Post: #1
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?
(This post was last modified: 2012-05-14 00:02 by deadwolfbones.)
find quote
wsnipex Offline
Team-XBMC packaging monkey
Posts: 1,792
Joined: Jun 2011
Reputation: 48
Post: #2
maybe xbmcs screensaver/powersaving?
find quote
deadwolfbones Offline
Senior Member
Posts: 138
Joined: Aug 2007
Reputation: 0
Post: #3
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.
find quote
Angelscry Offline
Skilled Python Coder
Posts: 2,684
Joined: Sep 2010
Reputation: 37
Location: MTL, Canada
Post: #4
(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...pid1073943

Advanced Launcher | Manual | WiKi | Forums | Tutorials | Gallery | GitHub | Archives | Donate

find quote
deadwolfbones Offline
Senior Member
Posts: 138
Joined: Aug 2007
Reputation: 0
Post: #5
Thanks, that's potentially quite helpful.
find quote
Plaguester Offline
Senior Member
Posts: 262
Joined: May 2010
Reputation: 7
Post: #6
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.

HTPC - Core 2 Duo | NVidia ION | 2GB Ram | 80GB HDD | XBMCbuntu 11.0 | Aeon MQ 3
HTPC 2 - Zotac ZBOX ID41U | 4GB RAM | 60GB SSD | Openelec | Confluence
Server - unRAID Server | 3 x 2TB WD Green HDD, 1TB WD Black HDD (Cache) | Sabnzbd | CouchPotato | Sickbeard
find quote
deadwolfbones Offline
Senior Member
Posts: 138
Joined: Aug 2007
Reputation: 0
Post: #7
Thanks, I'll give it a try.

Does your solution have exactly the same effect for my purposes (preventing X from going to sleep)?
find quote
Plaguester Offline
Senior Member
Posts: 262
Joined: May 2010
Reputation: 7
Post: #8
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.

HTPC - Core 2 Duo | NVidia ION | 2GB Ram | 80GB HDD | XBMCbuntu 11.0 | Aeon MQ 3
HTPC 2 - Zotac ZBOX ID41U | 4GB RAM | 60GB SSD | Openelec | Confluence
Server - unRAID Server | 3 x 2TB WD Green HDD, 1TB WD Black HDD (Cache) | Sabnzbd | CouchPotato | Sickbeard
find quote
deadwolfbones Offline
Senior Member
Posts: 138
Joined: Aug 2007
Reputation: 0
Post: #9
Yep, this worked great. Thanks so much!
find quote