Hi guys,
I have tried to connect to rpi and use the command "poweroff" but it do not seem to work either.
What is supposed to do commands like "poweroff" ? be cause here nothing appears on the terminal and i wait for minutes :-)
The ssh command "poweroff" is intended to have the same effect as the GUI command "Shut Down" as found in the top level side menu of PHT/RasPlex. It should cause all ongoing computer processing to cease and then perform the physical poweroff of most of the RPi circuitry, though this will leave one or more LED's shining to indicate that physical power is still applied to the unit. The precise LED usage varíes with different versions.
Note that it is normal for some delay to occur between the manual shutdown command and completion of the shutdown process, as ongoing network transfers and logfile updates must be completed in a valid manner before terminating all operations.
The reliability of this shutdown procedure has also varied with different versions, as some versions of the system software and of PHT can create background threads that don't respond properly to this shutdown method, leading to the total failure of shutdown.
For some cases of such failure it can help to use a combination of two ssh commands in sequence:
First use: "killall plexhometheater"
This will cause the PHT part of RasPlex to terminate, whereafter it is restarted by the OpenELEC part.
You will see this as a recurrence of the "RasPlex now loading" splash screen, but without the rainbow screen and OpenELEC splash that would occur for a full reboot. This restart of PHT often helps terminate stubborn background threads that can impede proper shutdown. You should wait for the PHT menu to appear before proceeding with the second command.
Next use: "poweroff" (or GUI "Shut Down")
This shutdown is more likely to succeed almost instantly, thanks to the cleanup made by the previous command.
Generally the shutdown has become more reliable in later versions, and so far I've seen no failures with the latest RasPlex version 0.5.0, when using the simple "Shut Down" command from the top level side menu.
That said: I do not normally turn my RPi off, except as needed for SD card replacement.
That's something I do more often than the average user, as part of RasPlex beta-testing.
But apart from that my chosen mode of usage is to leave RasPlex running 24/7.
Best regards: dlanor