SageTV Community  

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

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-08-2006, 03:21 PM
Tomahawk51's Avatar
Tomahawk51 Tomahawk51 is offline
Sage Aficionado
 
Join Date: Oct 2005
Posts: 320
Can I get Sage to Restart my computer?

I couldn't find this addressed anywhere in previous posts.

Is it possible to have a menu selection (or is available elsewhere) that would allow me to restart my machine?

I use an MVP and every once in a while I find that a restart increases snappy performance. I usually check upcoming recordings, then run up to the loft to restart my PC. I need the exercise, but it would be cool if I didn't *Have* to do that.
Reply With Quote
  #2  
Old 02-08-2006, 03:48 PM
jlabrue jlabrue is offline
Sage Aficionado
 
Join Date: Feb 2005
Posts: 320
I created a batch file to do this exaxt thing. I used the "shutdown.exe" resource kit util to perform the shutdown. The batch file looks like this

shutdown.exe -r -t 2

The -r tells it to reboot and the -t is time until reboot. I think the default is 30 or 60 seconds but i don't want to wait that long. If you have apps that cause it to hang on restart you can use the -f option to force apps closed but i have found it can cause problems with Sage. Best to find out what the problem is first.

The next thing I had to do was use the Dynamic Menu import to allow me to create a custom option. for restarting the box. you can do it however you like but I created an "Other Tasks" item and in that screen an "Administrative Tasks" item to bury it down a little so my wife doesn't accidently select it. Nielm said he is going to try an implement the ability to popup a confirmation box but he has had a chance yet.

If you did not want to use a batch file you could copy the shudown.exe utility into a folder somewher and use the Dynamic Menu ability to select and external program and search for the exe and in the additional option put your switches. That would prevent the command prompt from popping up.
Reply With Quote
  #3  
Old 02-08-2006, 04:15 PM
jlabrue jlabrue is offline
Sage Aficionado
 
Join Date: Feb 2005
Posts: 320
Nielm also has a STVI to exit the Sage GUI from the menu. It would be a great feature if he could add a popup window that allowed you to exit the GUI or Restart your box. You would just need to copy the shutdown util into a directory that is in your path such as the Windows or System32 directory and he could execute the command and switches. Just a thought if nielm is listening
Reply With Quote
  #4  
Old 02-08-2006, 05:54 PM
Polypro Polypro is offline
Sage Icon
 
Join Date: Jun 2005
Posts: 1,804
I set a Sheduled Task to restart the computer every night. I used SysInternals free psshutdown.exe. http://www.sysinternals.com/Utilities/PsShutdown.html Extracted it to the C:\Windows\System32 folder. Created a text file in C:\ with the following:

C:\Windows\System32\psshutdown.exe -r -f -c

-r reboots, -f closes all running programs, and -c gives you a cancel button on the 20 second countdown screen.

Renamed SHUTDOWN.TXT to SHUTDOWN.BAT

Windows Task Sheduler will want a password for your currently running account. Since I don't run a password on the HTPC, I made the account SYSTEM and just hit enter in the password box. In the Advanced Options, I enabled the Idle Time settings...in case I'm up and watching TV.

It's a cool tool...a lot of switches available.

P
Reply With Quote
  #5  
Old 02-08-2006, 09:00 PM
Tomahawk51's Avatar
Tomahawk51 Tomahawk51 is offline
Sage Aficionado
 
Join Date: Oct 2005
Posts: 320
Thanks everyone for the input. I think the bat file or the sysinternals route will work fine.

I agree also that having the option available a bit more "elegantly" implemented would be really nice. An STVI import perhaps? I'll keep my eye out, and pursue the great suggestions.
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


All times are GMT -6. The time now is 10:00 PM.


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