[Bug 880240] Re: system doesn't turn off if sudo halt is given
*** This bug is a duplicate of bug 991997 *** https://bugs.launchpad.net/bugs/991997 Hi, I think the current behavior is correctly, but the comment in /etc/default/halt sould be updated. So, I proposed a patch in https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/991997/comments/6 (a related bug). ** This bug has been marked a duplicate of bug 991997 Wrong comment in /etc/default/halt: Default behavior of halt changed to halt only instead of powering off -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
OK, how about if shutting down a 12.04 system with the shutdown menu, then clicking the 'shutdown' button causes the system to hang at the 'Ubuntu' screen? Is this the same bug or different? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
That's a different bug. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Ok, I'll do it. Thank you. Mauro -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Yes, sure, but halt -p make a reboot instead a shutdown on my server... I don't know why, but i've noticed that /sbin/halt it's a symbolic link to reboot. This is the reason I use /etc/acpi/powerbtn.sh. Bye, Mauro -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
If halt -p reboots instead of shutting down, that's a bug but it's not this bug. Please open a separate bug report against the Linux package for your issue. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Hello to everyone. Please excuse my poor english... I found a trick, it's not a solution, but it's useful. You can use the script /etc/acpi/powerbtn.sh for your scheduling, to do the dirty job :) It's the response of the system after pressing the power button and it works for me. HTH. Bye, Mauro -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
... or you could read the explanation for why this is not a bug that will be fixed in Ubuntu, and use 'halt -p' as indicated. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
You could try the workaround found in this article: http://linux.koolsolutions.com/2009/08/04/howto-fix-linux-hangfreeze- during-reboots-and-restarts/ reboot=bios fixed the shutdown and reboot hangs for me. Run in terminal sudo nano /etc/default/grub Edit this line and save GRUB_CMDLINE_LINUX=reboot=bios Run in terminal sudo update-grub Restart your PC -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Modification in /etc/default/grub takes effect next time OS starts. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Note that this is the result of a deliberate upstream behavior change as described in bug #532366. I think it's appropriate to extend upstart's halt implementation to respect /etc/default/halt, but possibly only as a distro patch rather than in upstart upstream. ** Changed in: upstart (Ubuntu) Status: Confirmed = Triaged ** Changed in: upstart (Ubuntu) Importance: High = Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Correction: in sysvinit, /etc/default/halt is a config file for the /etc/init.d/halt script only, which uses it to decide whether to pass '-p' to halt. So this is already supposed to have the intended effect; and if I invoke 'halt -d -f -i -p -h' directly, it does power off the system. Likewise if I invoke 'sh -x /etc/init.d/halt stop', I see the correct command being run and the system powers off. So something is going awry here specifically wrt /etc/rc0.d/S99halt when called via the 'halt' command. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Ok, I've worked my way all the way through this bug now, and I have to conclude this is behavior we can't/shouldn't change. - The 'shutdown' command has three options: '-h' (halt or power off), '-H' (halt), and '-P' (power off). - The 'halt' command maps to -H, by design. - The 'poweroff' command maps to -P, by design. - The /etc/default/halt configuration *only* affects the behavior when neither -H nor -P has been specified. - There is no way to make 'halt' by itself map to 'poweroff', without making it impossible to do a real 'halt'. - These are all standard options that shouldn't be changed. So I'm closing this bug report as 'wontfix'. The current behavior is inconsistent with previous upstart behavior, but that behavior was buggy. The current behavior is correct, and I'm afraid people will just have to learn that 'halt' doesn't mean what you were led to believe it means. If you want the system to poweroff, you need to run either 'shutdown -h now', 'halt -p', or 'poweroff'. All three commands work. 'halt -p' is the shortest and probably the most compatible with existing muscle memory. ** Changed in: upstart (Ubuntu) Status: Triaged = Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
bumping up the priority of this, given the number of people affected, and amount of time its been lingering. ** Tags added: quantal rls-q-incoming ** Changed in: upstart (Ubuntu) Importance: Medium = High -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Had to change all my scripts to sudo poweroff. This is kinda embarrassing. What's the use of a halt-command that doesn't actually turn off the machine? Who needs a computer that's ready for poweroff but still running? I believe that the halt-command made more sence before than it does now. I recommend changing it back. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
halt -p also works here. Nevertheless I think this should be fixed! halt always used to power off the computer. Now, if one forgets the -p when shutting down a remote computer ends up with a remote frozen machine. This is a bad thing. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
On all the machines I have tested so far with Precise, running halt by itself only halts the machine but doesn't power it off. However, running halt -p powers it off just fine. Was this change documented somewhere or is it a true bug? /etc/defaults/halt has the same POWEROFF entry on 10.04 as 12.04 yet 10.04 halts and powers off just fine if issued the halt command. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Running: sudo shutdown -h now From a terminal worked for me when running sudo halt didn't. I don't know why, cuz they do the same thing. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
# shutdown -h -P now executed as root from serial console as described on Bug #958838 (which may or may not be same bug - has been merged with this one in any case) results in system hung / locked up (imperfectly halted?), but not powered down, whereas same/equivalent works fine with 10.04 LTS, I retested this on both the released production 12.04 LTS and 11.10: Ubuntu 11.10 Oneiric Ocelot - Release i386 (20111012) Ubuntu 12.04 LTS Precise Pangolin - Release i386 (20120423) from the CD ISOs, and the results on both of those are nearly identical, about the only noteworthy difference seen, is in the case of Ubuntu 12.04 LTS Precise Pangolin - Release i386 (20120423), some additional output/diagnostics are seen on the console just after the output of: umount: /run/lock: not mounted but before the system freezes (kernel panic?) which are seen on 12.04 LTS but not seen with 11.10: [ 576.022406] ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 [ 576.022943] ata2.00: cmd a0/00:00:00:08:00/00:00:00:00:00/a0 tag 0 pio 16392 in [ 576.022944] res 01/60:00:00:08:00/00:00:00:00:00/a0 Emask 0x3 (HSM violation) [ 576.024203] ata2.00: status: { ERR } In either case, both are quite stuck at that point, and system requires physical reset or power off to continue, and that issue does not exist in 10.04 LTS. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
I have the same problem. Is there a solution for it? I keep shutting down my computer from the power off button. Does it have a negative effect for my computer? What can I do? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
This bug has been reported on the Ubuntu ISO testing tracker. A list of all reports related to this bug can be found here: http://iso.qa.ubuntu.com/qatracker/reports/bugs/880240 ** Tags added: iso-testing -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
same for me, upgrading from 11.04 to 11.10 and this bug shoed up sudo halt freezes regurarly the GUI shut down works fine -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
** Tags added: oneiric precise -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
** Summary changed: - ubuntu 11.10 : the system doesn't turn off if sudo halt is given + system doesn't turn off if sudo halt is given ** Changed in: upstart (Ubuntu) Importance: Undecided = Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 880240] Re: system doesn't turn off if sudo halt is given
Ubuntu 12.04 (precise) is affected by this bug, too. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/880240 Title: system doesn't turn off if sudo halt is given To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/880240/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs