Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After I installed Ubuntu 13.10, for some reason my video card does not have output, I just wonder if this is the case, are there any way to shut down Ubuntu using keyboard safely without harm the system?

Your information and help is great appreciated.

share|improve this question
    
Assuming you have sshd installed, you can ssh to the system from another on the network. If you don't have sshd installed, your in for an adventure! It's probably quasi-safe to power off because I assume you aren't logged in, and nothing is really running. –  Elliott Frisch Apr 20 at 3:51
    
@ElliottFrisch The default ext4 filesystem has journals; so only the recent data would be lost and no filesystem corruption should occur. –  Ramchandra Apte Apr 20 at 9:43

2 Answers 2

up vote 5 down vote accepted

If you can access a terminal use sudo poweroff. You can access a TTY by pressing Ctrl+Alt+F1; TTY is just a terminal. You can return to the graphical desktop by pressing Ctrl+Alt+F7.

Otherwise you can use kernel interupts to safely shutdown the computer:

Ctrl+Alt+Print Screen+R,E,I,S,U,B (Hold down Ctrl, Alt, and Prnt Scrn then press REISUB in that order with about a second pause between each letter)

The keyboard has to be plugged into the computer you want to shut down. The command above will restart the computer. Unfortunately, it's not so easy to just power-off this way. Hit the power button after the computer restarts to keep it from rebooting all the way.

share|improve this answer
    
To shut down, you can use REISUO instead of REISUB. –  evilsoup Apr 20 at 11:16
1  
Unfortunately the O sys req command doesn't actually shut down the computer. I've had this discussion before on Askubuntu here: askubuntu.com/questions/389793/… –  Paul-92711864 Apr 20 at 18:48

Alternative terminal command which will shutdown computer

sudo shutdown -p now

now can be replaced with +m, where m is the number of minutes to wait until shutting down and hh:mm which specifies the time on the 24hr clock when your computer will shutdown.

Replace -p with -r to reboot instead of shutting your computer down.

Ctrl+Alt+t might open you an terminal if you are unable to access one.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.