mmkw43
Posts: 554
Joined: Tue Dec 24, 2013 6:18 pm

Safe shutdown

Fri Jan 22, 2016 7:52 pm

I am currently in a program on the PI and can't access terminal or see my button in my gui to safely exit the program. I treid evrythin in task manager, which does nothing.

For some reason I didn't get full resolution on my display so the full Gui isn't there.

I've learned the hard way not to power down and here I am stuck with the same damn problem. Is there maybe some fancy keyboard combination I can use or something? -- don't know why task manager isn't helping.

mmkw43
Posts: 554
Joined: Tue Dec 24, 2013 6:18 pm

Re: Safe shutdown

Fri Jan 22, 2016 7:53 pm

I suppose (possibly) I could take out the SD card (while the pi is on) and then power off?

mmkw43
Posts: 554
Joined: Tue Dec 24, 2013 6:18 pm

Re: Safe shutdown

Fri Jan 22, 2016 7:58 pm

I did that, removed the card -- tried to delete this post -- can't do it ??

User avatar
Douglas6
Posts: 4874
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Safe shutdown

Fri Jan 22, 2016 9:13 pm

I'm not sure that pulling the card from a running Pi is any smarter than powering down.

W. H. Heydt
Posts: 12785
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Safe shutdown

Fri Jan 22, 2016 10:43 pm

If you can get to the system with a command prompt, you can stop a program by killing it's process ID. One way to find the PID is to use the command "ps -C <progname>", followed by "kill <PID>". if your program ignores interrupts and refuses to die, you can use "kill -9 <PID>" (aka "sure kill").

IF all you want to do is shut the system down without access to it (either GUI or ssh), wait until there is no activity for several seconds (to allow any wear leveling to complete), then pull the power. I definitely would not recommend removing a working SD card.

To get rid of a Forum post or thread, report your own post and request that a Moderator take the desired action.

Return to “General discussion”