iansimons
Posts: 5
Joined: Tue Dec 25, 2012 8:42 am

Shutting down

Tue Dec 25, 2012 8:50 am

Got into the Raspbian GUI then found that my mouse doesn't work and being an absolute beginner to this I have a question, can I just unplug the PSU ?

User avatar
stevepdp
Posts: 285
Joined: Fri Oct 28, 2011 7:41 am

Re: Shutting down

Tue Dec 25, 2012 9:00 am

It's highly advised not to pull the plug when running Raspbian, as the filesystem may break.

What you can do however, is switch out to another TTY like so:

Code: Select all

CTRL + ALT + F6
Note that you can use F1-F7.

Then, log in on the new TTY and issue the command:

Code: Select all

sudo telinit 0
This will gracefully shut down the Raspberry Pi, or you can reboot it like so:

Code: Select all

sudo reboot
Hope this helps!

iansimons
Posts: 5
Joined: Tue Dec 25, 2012 8:42 am

Re: Shutting down

Tue Dec 25, 2012 9:06 am

OK thanks but although the keyboard seems to be working OK how do I move the mouse pointer F! - F7 doesn't seem to do anything?

iansimons
Posts: 5
Joined: Tue Dec 25, 2012 8:42 am

Re: Shutting down

Tue Dec 25, 2012 9:17 am

Thanks Steve I've got there now.

User avatar
Super-Nathan
Posts: 67
Joined: Sun Jun 17, 2012 6:56 am
Location: South Korea
Contact: Website

Re: Shutting down

Tue Dec 25, 2012 12:47 pm

stevepdp wrote:It's highly advised not to pull the plug when running Raspbian, as the filesystem may break.

What you can do however, is switch out to another TTY like so:

Code: Select all

CTRL + ALT + F6
Note that you can use F1-F7.

Then, log in on the new TTY and issue the command:

Code: Select all

sudo telinit 0
This will gracefully shut down the Raspberry Pi, or you can reboot it like so:

Code: Select all

sudo reboot
Hope this helps!
I may be wrong, but generally the virtual console under "f7" is reserved for an X-windows session. It would be better to only switch from f1-f6
echo "Something Useful" > /dev/null

Return to “Beginners”