pocster
Posts: 78
Joined: Mon Jan 14, 2013 12:11 pm

Openelec shutdown

Thu Feb 07, 2013 11:57 am

Hi all,

I am trying to run my rasp headless - and whilst I can leave it powered I will need to shut it down at some point :P
On ssh in there appears to be no shutdown. halt works but I am a little worried that hasn't flushed caches etc i.e. may corrupt sd card.
I want to 'power off' effectively so pi can safely be unplugged.
Searched the forum's can't see anything (why is shutdown not in openelec?).

thanks in advance

User avatar
yakko TDI
Posts: 19
Joined: Sun Sep 30, 2012 2:26 pm
Location: The Bay Area, Florida
Contact: Website

Re: Openelec shutdown

Fri Feb 08, 2013 2:03 am

poweroff

From this page. http://wiki.openelec.tv/index.php?title=Ssh_commands

Tested it on my OpenELEC Pi and it works fine.

pocster
Posts: 78
Joined: Mon Jan 14, 2013 12:11 pm

Re: Openelec shutdown

Fri Feb 08, 2013 9:29 am

Hi,

Fantastic!. I googled openelec looking for shutdown,power off, halt etc. etc. etc.
Of course I need a 'clean' non potentially sd card corrupting method.

So to confirm what is the exact method to turn off my pi running openelec?
i.e. a shutdown method for xbmc/openelec so I can remove power from the pi.



thanks again much appreciated!

Cheers

User avatar
yakko TDI
Posts: 19
Joined: Sun Sep 30, 2012 2:26 pm
Location: The Bay Area, Florida
Contact: Website

Re: Openelec shutdown

Fri Feb 08, 2013 5:30 pm

pocster wrote:So to confirm what is the exact method to turn off my pi running openelec?
i.e. a shutdown method for xbmc/openelec so I can remove power from the pi.
This is what I did to test. On my desk I have my main computer which is running Windows 7 and Putty. Next to it I have my OpenELEC Pi with a monitor attached.

01) Open Putty
02) Log in to the Pi
03) Type in poweroff
04) Hit enter
05) Look at monitor attached to Pi
06) Watch it shut down as if I clicked shutdown in OpenELEC

If you are ever in my area I will expect you to purchase me a beer.

pocster
Posts: 78
Joined: Mon Jan 14, 2013 12:11 pm

Re: Openelec shutdown

Fri Feb 08, 2013 7:33 pm

Lol !
Power off isn't recognised on the pi ......

User avatar
yakko TDI
Posts: 19
Joined: Sun Sep 30, 2012 2:26 pm
Location: The Bay Area, Florida
Contact: Website

Re: Openelec shutdown

Sat Feb 09, 2013 1:22 am

pocster wrote:Lol !
Power off isn't recognised on the pi ......
What OS are you running on your Pi? I am running OpenELEC which from the title of this thread I believed you were also. If you are running OpenELEC are you trying to enter 'power off' or 'poweroff' as the command?

pocster
Posts: 78
Joined: Mon Jan 14, 2013 12:11 pm

Re: Openelec shutdown

Sat Feb 09, 2013 11:44 am

Hi,

Yeah openelec.
Funnily enough if I log in as openelec user and even doing 'sudo poweroff' it says not permitted. But if I login as root it's ok.
Does this flush cache's etc? i.e. SD card safe???

thanks

User avatar
yakko TDI
Posts: 19
Joined: Sun Sep 30, 2012 2:26 pm
Location: The Bay Area, Florida
Contact: Website

Re: Openelec shutdown

Sat Feb 09, 2013 9:18 pm

I was logged in as root when I tested as I have been too lazy to create a second user on this Pi.

From what I can tell it is doing a proper, normal shutdown as if you had clicked shutdown on the main screen of OpenELEC.

Return to “Media centres”