Option to Turn TV OFF when screensaver is activated and Turn TV ON when deactivated?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ndeshmukh Offline
Senior Member
Posts: 258
Joined: Aug 2010
Reputation: 1
Question  Option to Turn TV OFF when screensaver is activated and Turn TV ON when deactivated? Post: #1
Motivation: I want the tv turned off when screen saver turns on, and the tv turned on when the screen saver turns off.

Possible Solution #1
-------------------
Now I have two actions setup in Eventghost which can turn the tv on and off. I want two events to pair with them. I want some way to receive screensaver turned on and screen saver turned off.

Now I have no clue if XBMC broadcasts those events in anyway and if there is a way to receive them in eventghost via an eventghost plugin.

Possible Solution #2
-------------------
I though now with the addon system, screensaver code must be an addon, especially for the slideshow screensaver, but the corresponding folder does not have python file. Only an xml. So where is the screen saver code? I was hoping I could add python commands to that script to turn on and off my tv using pyserial and sending commands over rs232.

I don't want to make changes in xbmc code and compile.


Is there some way to do this? Can somebody shed some light? Especially on event broadcasts from XBMC and how to maybe capture them in Eventghost.

Thanks
find quote
ndeshmukh Offline
Senior Member
Posts: 258
Joined: Aug 2010
Reputation: 1
Post: #2
Already made a trac ticket requesting for adding two more announcements in JSON for screen saver activation & deactivation.

Once that is done I should be able to listen for them and do the needful.
find quote
Myth Offline
Member
Posts: 53
Joined: Nov 2010
Reputation: 2
Post: #3
Really good id! Might look into this myself too.
find quote
timdog82001 Offline
Posting Freak
Posts: 1,132
Joined: Mar 2006
Reputation: 0
Post: #4
I thought this was essentially the purpose of the "put display to sleep when idle" option under system > Power saving
find quote
ndeshmukh Offline
Senior Member
Posts: 258
Joined: Aug 2010
Reputation: 1
Post: #5
Well it does not really turn it off... nor does it remove the vsync, so that there is no signal and the tv can detect that and switch off.
find quote
imnotknow Offline
Junior Member
Posts: 6
Joined: Jun 2010
Reputation: 0
Post: #6
It works on my TV. The TV says "Input signal not detected" and switches into low power mode (Screen and backlight off). It comes back on in under 1 second when I press any button on the XBMC remote or send it an http command.

I am using a VGA connection if that tells you anything.
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,931
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #7
DVI to HDMI adapter here and "put display to sleep when idle" doesn't work.

[Image: sig_zps3af3b48e.jpg]
find quote
CASHMON3Y Offline
Member+
Posts: 396
Joined: Sep 2008
Reputation: 14
Location: Detroit, MI
Post: #8
Doesnt work for me over HDMI either. However my Panasonic turns itself off it the screen is black for like 5 minutes, so no big deal

Server - Debain Squeeze Server + 6TB RAID5 + Sabnzbd + CP & SB
HTPC - Zotac MAG + 60GB Vertex 2 SSD + OpenELEC Frodo 12.1 + Aeon Nox
HTPC 2 - AppleTV 2
find quote
jitterjames Offline
VoxCommando Founder
Posts: 290
Joined: Aug 2008
Reputation: 0
Location: canada
Post: #9
I have a brand new samsung connected via hdmi. When my computer puts the display into sleep mode, the samsung displays a message saying "no input signal". There is a setting for this to set how long it will wait before turning off, but the lowest setting is 15 minutes, which I find way too long. To add insult to injury, when it displays the "no input signal" it actually switches the tv into a higher energy state (higher backlight to display a mostly black screen - duh'OH!) I realize it's really not a big deal for 15 minutes but it still really bothers me. You spend $1000 on a tv and there are still always several stupid problems you have to deal with, usually just caused by bad design.

I would love to be able to detect when windows puts the display to sleep, so that I can turn my TV off using an ir blaster.

Can someone explain to me how the system.idle event works?
find quote
ndeshmukh Offline
Senior Member
Posts: 258
Joined: Aug 2010
Reputation: 1
Post: #10
I believe the json evetns to notifiy when screensaver is activated and deactivated have been added. I guess you can use those?
find quote
Post Reply