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
Member
Posts: 87
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
Member
Posts: 87
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,142
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
Member
Posts: 87
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: 11,047
Joined: Aug 2007
Reputation: 103
Location: Eastleigh, UK
Post: #7
DVI to HDMI adapter here and "put display to sleep when idle" doesn't work.
find quote
CASHMON3Y Offline
Donor
Posts: 395
Joined: Sep 2008
Reputation: 15
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: 299
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
Member
Posts: 87
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
spazlon Offline
Junior Member
Posts: 26
Joined: Jun 2011
Reputation: 0
Post: #11
I don't see the screensaver attribute in the JSON API. Am I missing something? I'm looking in the following locations:

http://wiki.xbmc.org/index.php?title=JSON-RPC_API
http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v2
http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v3

I would really like to be able to get the status of the screensaver.

Thanks.
find quote
k0rny Offline
Junior Member
Posts: 1
Joined: Apr 2012
Reputation: 0
Post: #12
Any progress on this one? I'd like to power off my TV too when XBMC enters the screensaver-mode.
find quote
spazlon Offline
Junior Member
Posts: 26
Joined: Jun 2011
Reputation: 0
Post: #13
(2012-04-23 15:40)k0rny Wrote:  Any progress on this one? I'd like to power off my TV too when XBMC enters the screensaver-mode.

I finally got something working, although it is an ugly hack.

Basically you need to go into XMBC settings and tell it to close after x minutes (I set it to 5).

Then you can use EventGhost to monitor XBMC. Create an EventGhost macro so when XBMC closes, it launches the screensaver (C:\Windows\system32\Mystify.scr or something like that). There is also an EventGhost event to start the screensaver.

Then create another macro where it monitors the Mystify.scr application. When Mystify starts, blast the IR for TV power. When Mystify stops, blast the IR for TV power and launch XBMC.

Using this method is a complete hack, but it works for me. If you are confused by any of it just let me know and I will give you the exact instructions.
find quote