SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-09-2011, 10:21 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
[PLUGIN] UIMOD - AutoSleep by Fuzzy (originally by flachbar)

This is a port of flachbar's AutoSleep for v6. It will put put the UI to sleep after 2 hours of inactivity (great for stopping abandoned livetv sessions). Currently, it defaults to 120 minutes, and this can be changed in sageclient.properties:

plugins/df/auto_sleep_time=120

Thanks to flachbar for the great original work. This took practically nothing to bring it into v7. I do intend on adding some in-UI configuration option for the sleep time.. when I get a chance to spend some more time on it. I figure to start, 2 hours should be good for just about everyone.

Revision History:
1.1 - Flachbar's last v6 release.
1.2 - Initial release for v7.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #2  
Old 01-12-2011, 01:10 PM
jlmdxtv jlmdxtv is offline
Sage Advanced User
 
Join Date: Oct 2005
Location: PA
Posts: 182
Hi Fuzzy,

Is the sleep function automatic once the plugin is installed, or do I need to tell it somewhere to start the 2 hour countdown each time I expect I'll need it?

If it's automatic, and I'm watching a 2 1/2 hour movie should I be pressing something on the remote somewhere into it to reset the countdown or does it know about long programs?

thank you, john
Reply With Quote
  #3  
Old 01-12-2011, 01:18 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
If you touch nothing for 2 hours, it will then pop up a message giving you 60 seconds to abort the sleep. If you think you'll be in a situation where the 2 hours isn't long enough, it can be changed in the properties file.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #4  
Old 01-12-2011, 01:20 PM
Brent94Z Brent94Z is offline
Sage Fanatic
 
Join Date: Aug 2004
Posts: 863
Quote:
Originally Posted by jlmdxtv View Post
If it's automatic, and I'm watching a 2 1/2 hour movie should I be pressing something on the remote somewhere into it to reset the countdown or does it know about long programs?
I was wondering the same thing. LOL

Or, you watch a couple shows on the same channel to where you take no action for a couple hours?

I suppose if leaving live TV on for long durations is a problem for you (not sure why it would be though because they get auto deleted right away?) and you only typically watch maybe 3 shows in a row, you could change it to 4 hours and be good.

This one isn't for me because I typically leave the news on in the background all day while working around the house, etc.
Reply With Quote
  #5  
Old 01-12-2011, 02:49 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
That's why it's a plugin, and not a built in neeed feature. I only, for instance, have it on my bedroom tv's, not my main living room set.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #6  
Old 01-12-2011, 03:05 PM
jlmdxtv jlmdxtv is offline
Sage Advanced User
 
Join Date: Oct 2005
Location: PA
Posts: 182
Fuzzy,

Thanks for the conversion to V7! I'm putting it on all my systems because I fall asleep in front of them all.

john
Reply With Quote
  #7  
Old 01-12-2011, 04:02 PM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
Any chance this or a similar plugin, could put an extender to rest after a period of timeout?
Reply With Quote
  #8  
Old 01-12-2011, 04:13 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I don't actually have an extender, but I was thinking that's basically what this did. What it does is issue the "Power" sage command. (Could probably change it to "Power off", but that's just how flachbar was implementing it). I was under the impression that this command on the extenders causes it to sleep. If it's a different call the extenders need, I'm more than willing to change the UIMod to call that instead. i know there is an 'Exit()' API call as well, that said it 'Causes the SageTV application to terminate'... not sure if that's desired, or if that even does anything on the extenders.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #9  
Old 01-12-2011, 10:46 PM
Gustovier Gustovier is offline
Sage Aficionado
 
Join Date: Nov 2010
Location: Chicago
Posts: 460
Well I do know that on my hd300 if I select exit on the main menu. It will then turn off the hd300. Now I'm not exactly what API call is the same as choosing "exit" from the main menu.
Reply With Quote
  #10  
Old 01-12-2011, 11:29 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Yeah, Exit on the menu fires off the Exit() command. Standby on the menu fires off Command("Power off"). I'll have to make it an option, because Exit is unacceptable for PC clients.

That said, is there much power usage difference between Off and sleeping on the HD100/200/300? just curious if it's worth shutting the thing completely down, as I would think it would slow wake/connect time.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #11  
Old 01-13-2011, 08:24 AM
wrems's Avatar
wrems wrems is offline
Sage Icon
 
Join Date: Feb 2007
Location: Marietta, GA
Posts: 1,332
You're correct about the power usage. There's really no gain. The gain is having the TV go to sleep due to absence of a signal. My TV as I suspect most TV is equipped with a sleep after inactivity feature. So, if the extender goes to sleep the TV will follow. This would be great when one falls a sleep watching TV and waking up at 4:00 in the morning and having just the photo slideshow going.
Reply With Quote
  #12  
Old 01-13-2011, 09:36 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by wrems View Post
Any chance this or a similar plugin, could put an extender to rest after a period of timeout?
It would be more useful if you could shut off the rest of your AV equipment like your TV and AVR(if you have one) as the power draw of the Sage extender is nothing compared to them.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #13  
Old 01-13-2011, 09:42 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by wayner View Post
It would be more useful if you could shut off the rest of your AV equipment like your TV and AVR(if you have one) as the power draw of the Sage extender is nothing compared to them.
Yeah, that's yet another advantage of PC Clients. I've got it set up to turn off my TV and receiver when sage goes to sleep (it's triggered by the starting of the sage logo screen saver), and turn them on when sage wakes up. TV's controlled by serial, and the one receiver is controlled by the USBUIRT that I use for sage control.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #14  
Old 01-14-2011, 01:45 AM
nissse nissse is offline
Sage User
 
Join Date: Feb 2006
Posts: 36
Quote:
Originally Posted by Fuzzy View Post
Yeah, that's yet another advantage of PC Clients. I've got it set up to turn off my TV and receiver when sage goes to sleep (it's triggered by the starting of the sage logo screen saver), and turn them on when sage wakes up. TV's controlled by serial, and the one receiver is controlled by the USBUIRT that I use for sage control.

How do you trigger the blasters to run when the logo screen saver starts ?
In SageMC you coud change the screen saver, but now i cant do that anymore.
Reply With Quote
  #15  
Old 01-14-2011, 08:56 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
I did it in studio. I haven't made it public yet, because there are some things I need to fix. It is done by firing off a batch file that sends the code to the serial port, and then triggers girder to transmit the AVR power off/on commands.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #16  
Old 01-15-2011, 02:07 AM
nissse nissse is offline
Sage User
 
Join Date: Feb 2006
Posts: 36
That sounds really good, I will be waiting for a release =)
I'm using eventghost with MCE remote blasters, I only need away to trigger when sage screensaver starts.

Thank you for all your help with sagetv.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thanks Fuzzy for the shortcut "Recording Schedule" plugin! Brent94Z SageTV v7 Customizations 7 10-16-2018 07:22 PM
[PLUGIN] UIMOD:Bluray/DVD External Playback Fuzzy SageTV v7 Customizations 97 11-03-2014 04:40 PM
[PLUGIN] UIMOD - Recording Schedule Shortcut by Fuzzy Fuzzy SageTV v7 Customizations 7 01-09-2011 09:15 PM
Plugin: Comskip Playback for Default STV (with Scale Correction) v.1.5.6(Fuzzy) Fuzzy SageTV Customizations 10 07-01-2010 03:50 PM
Thanks MeInMaui and flachbar for the hard work Hornet SageMC Custom Interface 5 07-17-2009 01:08 PM


All times are GMT -6. The time now is 06:58 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.