Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After two days of installation, strangely my Ubuntu machine is restarting instead of shutdown from both desktop GUI and command line.

sudo shutdown -h now
sudo halt (doesn't shutdown, instead freezes on boot screen Plymouth)

I had force shutdown by powering off the machine.

This is not happening all the times.

I have been using Ubuntu for 6 months and never experienced this kind of problem.

share|improve this question
Please update your question and tell us what command line shutdown options you have tried and also in what way the shutdown does "not work". How do you "force shutdown"? Are you able to shutdown using the desktop GUI menu? Please do not replay in a comment. Update your question as is recommended in the faq. – irrational John May 6 '12 at 22:51
Please see this post.askubuntu.com/questions/26601/… – beeju May 7 '12 at 0:56

3 Answers

up vote 2 down vote accepted

I faced the same issue after I installed Ubuntu 12.04 on a newly built machine. This answer on another post helped me resolve it: http://askubuntu.com/a/135568/40056

Hope that helps.

share|improve this answer

I had the same issue with new acer aspre v5 notebook. It has been solved by enabling laptop-mode as running

sudo apt-get install laptop-mode-tools.

Hope it will help you.

share|improve this answer

I have had exactly the same problem on my Acer V5-571G: the laptop shuts down, turns off its power LED, and then starts again after a few seconds. It occurs more often when working on battery.

The problem seems to arise from incorrect work of pm-utils. But if you write on into /sys/bus/*/devices/*/power/control, the kernel takes control over power management at the specified devices - and somehow this makes the hardware to shut down correctly.

So I have written a script:

#!/bin/bash

case "$1" in
  stop) for i in /sys/bus/*/devices/*/power/control ; do echo on > $i ; done 
  ;;
esac

exit 0

and to make it being executed every time before shutdown I've placed it under name K32power-control-on into /etc/rc0.d directory (don't forget to make the script executable, sudo chmod +x K32power-control-on). After that the laptop shuts down ok.

I think that there are only a few buses/devices which need to have 'on' value written to their power/control, so the list of devices in the script can be restricted, but I just didn't investigate further.

UPD: Here is a more refined solution of the same problem: http://www.pbehnke.com/main/node/11

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.