1

Recently my PC cannot shutdown (Ubuntu 16.04). Each time I have to turn it off manually using the on/off button on the computer. Restart works fine.

When I try shutting down the usual way, the screen remains blocked as it will shut down in a few seconds. A violet screen with a little Central "ubuntu" word with 5 dots below it, four lit red, one lit white. Running sudo init 0 and sudo shutdown now have the same result.

However, I can restart and open the PC with Windows 7 and then shutdown regularly. What should I do?

kouty
  • 157
  • 13
  • 1
    Please describe what you mean by 'Everytime I need to make this manually'. -- I am thinking of the 'SysRq R E I S U B' manual method, Restart Ubuntu via keyboard and 'SysRq R E I S U O' to shut down. – sudodus Mar 13 '18 at 07:49
  • @sudodus fixed. – kouty Mar 13 '18 at 07:51
  • 1
    The on/off button of the computer makes a hard shutdown, which might cause corruption of the file system. It is much better to use the 'SysRq R E I S U O' method and get a graceful shutdown. (After using it a few times, you learn it by heart.) – sudodus Mar 13 '18 at 08:00
  • @David Foerster fixed. For sudo etc I can open a terminal but the keyboard is in Hebrew or upercases in English and I cannot switch language because the switch language icons disappeared from the desktop. – kouty Mar 13 '18 at 17:37
  • @David Foerster sudo shutdown now has the same result – kouty Mar 14 '18 at 21:17
  • 1
    Alright, thanks so far. There are a host of possible causes. I recommend that you go through Shutdown does not power off computer and try what appears to apply to your situation; you can also take a look at similar linked questions on the right side of it. Please report back with any result that appears to lead to noticeable change during shutdown. Thanks. – David Foerster Mar 15 '18 at 00:06
  • The problem might be a race condition, and in that case it might help with the 'SysRq R E I S U B' and 'SysRq R E I S U O' method. It works with uppercase letters too, and it needs no terminal window or text screen. Did you try it? – sudodus Mar 15 '18 at 05:16
  • @sudodus Yes, I have tried but maybe due to a lack of understanding concerning this manipulation, this didn't result in nothing – kouty Mar 15 '18 at 08:58
  • I had hoped that it would work. It often does, but not always. It seems your computer is too busy/locked by something to listen to the SysRq (system requests). If you boot from a USB boot drive and 'Try Ubuntu', are you able to shut down gracefully? (either the normal way or with 'SysRq R E I S U O' ? – sudodus Mar 15 '18 at 09:07
  • @sudodus I am sorry but I don't understand you. I tried to upgrade with sudo apt update and sudo apt upgrade but there is no effect – kouty Mar 16 '18 at 05:45
  • @sudodus for PrScrn REISUB or REISUO this words are printed in a little window at the right down of the screen and after enter pushing both nothing appened – kouty Mar 16 '18 at 05:52
  • Did you press both the alt and PrintScreen keys all the time and one of the R E I S U B one after another slowly? If it is a laptop you might also need to press the Fn key like so: Press the three keys Fn and alt and PrintScreen keys all the time and one of the R E I S U B one after another slowly. (You need to coordinate a lot of fingers :-P ). – sudodus Mar 16 '18 at 07:24
  • @sudodus REISUO made the job! Thanks a lot. If you write it I will accept the answer. Thanks again. – kouty Mar 16 '18 at 07:48
  • I'm glad that you made it work in your computer :-) – sudodus Mar 16 '18 at 09:49

3 Answers3

1

Try using this in terminal

init 0
Swapnil Goyal
  • 81
  • 1
  • 9
1

Emergency shutdown in a graceful way

  • Press both the alt and PrintScreen keys all the time and one of the R E I S U O keys one after another slowly.

  • If it is a laptop you might also need to press the Fn key like so:

    Press the three keys Fn and alt and PrintScreen keys all the time

    and one of the R E I S U O keys one after another slowly.

Emergency reboot in a graceful way

The corresponding system request sequence for reboot is similar.

O 'Off' is replaced by B 'Boot'.

  • Press both the alt and PrintScreen keys or
  • in a laptop maybe the three keys Fn and alt and PrintScreen keys all the time

  • The letter key sequence should be R E I S U B


See the following links for more details,

Restart Ubuntu via keyboard

en.wikipedia.org/wiki/Magic_SysRq_key

sudodus
  • 46,324
  • 5
  • 88
  • 152
0

Try this is in Terminal :

poweroff
Kurdev
  • 1
  • 1