SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-20-2006, 08:52 AM
riversma riversma is offline
Sage User
 
Join Date: Jan 2006
Posts: 13
Reboot

How do you safely powerdown the server? I am corupting the filesystem by just hitting the power button.
Reply With Quote
  #2  
Old 02-20-2006, 12:01 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
In Linux, you normally use a GUI tool to shutdown, or use a terminal window to issue the "shutdown" command.

But on today's PCs, just tapping the power button should signal Linux to do a graceful shutdown after signaling all processes to exit - and SageTV should do so. Of course, the BIOS has to be setup for this.
Reply With Quote
  #3  
Old 02-20-2006, 12:58 PM
dbfresh23's Avatar
dbfresh23 dbfresh23 is offline
Sage Fanatic
 
Join Date: Oct 2004
Location: New York
Posts: 894
Quote:
Originally Posted by stevech
In Linux, you normally use a GUI tool to shutdown
ummm... no - well I guess it depends what you call normal - being that there are so many different x desktops, I'd hardly consider any gui normal.

"shutdown -h now" will bring the machine down when typed into a terminal window.

"shutdown -r now" will reboot

oh don't include the quotes...

Last edited by dbfresh23; 02-20-2006 at 01:07 PM.
Reply With Quote
  #4  
Old 02-20-2006, 02:24 PM
HairBear HairBear is offline
Sage User
 
Join Date: Oct 2005
Posts: 47
How do you get to the promt from SageTV? I have been using ssh to do it but what if one has no way to ssh to the machine?
Reply With Quote
  #5  
Old 02-20-2006, 05:35 PM
riversma riversma is offline
Sage User
 
Join Date: Jan 2006
Posts: 13
ctrl c

Im not using a monitor. ill just log on to the network and do it thanks for your help.


after the system fires up the lan connection then press Ctrl + c will get you to the prompt.

i figured out just holding on to the power button for 3 seconds will get you to the prompt also when your in the sage gui.

Last edited by riversma; 02-20-2006 at 06:09 PM.
Reply With Quote
  #6  
Old 02-20-2006, 06:57 PM
AboveUnrefined's Avatar
AboveUnrefined AboveUnrefined is offline
Sage Advanced User
 
Join Date: Jan 2006
Location: Lords Valley, PA
Posts: 124
Send a message via AIM to AboveUnrefined Send a message via MSN to AboveUnrefined
reboot and poweroff are other commands that'll work... but I don't get why a system would immediately turn off on a power button tap but act as a tap after holding down the power button for 3 seconds -- it sounds (and I think it is) backwards -- if I tap the power button and x cuts out and if I hold the system will do a dirty power off.
Reply With Quote
  #7  
Old 02-21-2006, 06:42 PM
_Demo_ _Demo_ is offline
Moderator
 
Join Date: Mar 2003
Posts: 863
Send a message via ICQ to _Demo_
There is currently a bug that prevents shutdown from happening, a simple workaround is to edit the file /root/.xinit and add "shutdown -h now" on the last line. After doing that, simply press power for a fraction of a second and the computer will shutdown cleanly.

_Demo_
Reply With Quote
  #8  
Old 02-21-2006, 09:28 PM
stevech stevech is offline
Sage Icon
 
Join Date: Dec 2005
Posts: 1,643
Doesn't SageTV honor the Kernel's ATX power supply standard for a BIOS interrupt when you tap the power button - and signal all processes to stop and then it shuts down like Windows XP does? The Linuxes I've had do this. Not related to X windows.
Reply With Quote
  #9  
Old 02-23-2006, 08:04 AM
kevk kevk is offline
Sage User
 
Join Date: Feb 2006
Location: South Africa
Posts: 17
Quote:
Originally Posted by _Demo_
There is currently a bug that prevents shutdown from happening, a simple workaround is to edit the file /root/.xinit and add "shutdown -h now" on the last line. After doing that, simply press power for a fraction of a second and the computer will shutdown cleanly.

_Demo_

Can someone Please tell me where I find this File? on Sage tv OEM dist???

Thanks
Reply With Quote
  #10  
Old 02-23-2006, 08:48 AM
dbfresh23's Avatar
dbfresh23 dbfresh23 is offline
Sage Fanatic
 
Join Date: Oct 2004
Location: New York
Posts: 894
do ls -a to see hidden files - files that start with a .
Reply With Quote
  #11  
Old 02-24-2006, 12:57 AM
kevk kevk is offline
Sage User
 
Join Date: Feb 2006
Location: South Africa
Posts: 17
Quote:
Originally Posted by dbfresh23
do ls -a to see hidden files - files that start with a .
I have this shutdown problem (when pressing power button computer exits sagetv and ends at the command prompt, I want the pc to complete shutdown)
I was thinking if i add the line "shutdown -h now" to the file /root/.xinit as mentioned above.then possibly the pc would shutdown correctly when pressing the power switch)

When I try edit the file xinit I get a blank file..In root dir I typed the following "Nano .xinit" ... I have looked further and found in /etc/xinit.d/ shutdown.sh file... Which I thought maybe would solve the problem...
Reply With Quote
  #12  
Old 02-24-2006, 10:12 AM
_Demo_ _Demo_ is offline
Moderator
 
Join Date: Mar 2003
Posts: 863
Send a message via ICQ to _Demo_
Sorry about that, it should be nano /root/.xinitrc
Reply With Quote
  #13  
Old 02-24-2006, 02:02 PM
kevk kevk is offline
Sage User
 
Join Date: Feb 2006
Location: South Africa
Posts: 17
Smile

Quote:
Originally Posted by _Demo_
Sorry about that, it should be nano /root/.xinitrc
Thanks works 100%
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 04:58 PM.


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