2013-01-23

solution: ubuntu/mint linux doesn't shut down, cpu stuck

i have linux mint installed on my dell studio 1569 laptop.  linux mint would never shut down on its own.  i go to shut off and it just pukes all over the screen.

Linux Mint 13 Maya ajtNbMint tty1
ajtNbMint login: modem manager[2701]: <info> Caught signal 15, shutting down...

rpcbind: rpcbind terminating on signal.  Restart with "rpcbind -w"
nm-dispatcher.action: Caught signal 15, shutting down...
[  766.704047] BUG: soft lockup - CPU#3 stuck for 23s! [reboot:9642]
[  766.704341] Stack:
[  766.704304] Call Trace:
[  766.704410]  <IRQ>
[  766.704404]  <EOI>
...

----------
important edit 2014-06-09:

if you are running ubuntu 12.04, i recommend updating to ubuntu 14.04.  this has fixed many hardware related issues for me.

-----------
important edit 2013-11-11:

i don't think the below solution actually does anything, despite people say it working.  this is because the bug only happens when you shut down the computer after it has been on for a while, but when you test a new boot parameter, you restart so it can take effect and then shut down immediately after restarting to test it.  because you shut down right after starting up, it seems to have worked, and then post "thank you" and realize later that day that it didn't work.

this bug has already been reported to linux and is already fixed in the "mainline kernel" which means that it just hasn't been rolled out to normal users yet because it's not completely tested.  here is the bug report where the reporter says the bug has been fixed upstream:  https://bugs.launchpad.net/ubuntu/+source/linux/+bug/254326

no need to wait -- you can begin using the mainline kernel now.  all i did was install an image*.deb file and now when i boot up, i can choose "ubuntu with advanced options" and boot using the updated kernel.
https://wiki.ubuntu.com/Kernel/MainlineBuilds?action=show&redirect=KernelMainlineBuilds

after using the new kernel, my computer turns off normally even after several hours of use, and it also doesn't crash every 2 hours or after resuming from sleep anymore.

below are the old suggestions, which i believe DO NOT work!
let me know what actually works for you in the comments.  remember, to test if your change worked, you should use your computer for a couple hours before shutting down.

-----------


for some people, adding the kernel boot parameters "noapic" fixes the problem:
  • http://muffinresearch.co.uk/archives/2008/08/20/ubuntu-bug-soft-lockup-cpu0-stuck-for-11s/
  • https://bugs.launchpad.net/ubuntu/+source/linux/+bug/206316

once i did this, my computer still didn't shut down, but it gave me this helpful message:  "irq 19: nobody cared (try booting with the "irqpoll" option)".  so i also added the "irqpoll" kernel boot parameter, and ever since it has shut down beautifully.  this has to do with intel and linux not playing well together.

if you are using grub2, simply run 
gksudo gedit /etc/default/grub


and add "noapic" to the line starting with "GRUB_CMDLINE_LINUX_DEFAULT":

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash blah blah blah noapic irqpoll"

17 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. Thanks! Fixed my problem.

    ReplyDelete
  3. Adding noapic to the grub2 file immediately solved the problem. Thanks!

    ReplyDelete
  4. added "noapic irqpoll" did not solve my problem. thanks for the tip nevertheless! ;)

    ReplyDelete
    Replies
    1. yeah i'm still having problems too actually. let me know if you find a solution.

      Delete
    2. hi, im new to Linux. My Acer Aspire 5253 doesnt shut down either. and I don't know how to boot with the "irqpoll" option, also, since I'm a beginner, I don't know how to add the kernel boot parameters "noapic". any help would be much appreciated!

      Delete
  5. Just wanted to say thanks, this worked for me. For the use of anyone else: I was trying to install Ubuntu 64bit 12.04 into a VirtualBox vm on Windows 8 64bit.

    ReplyDelete
  6. Thanks, it worked for me Alex.

    I was so annoyed, I tried MATE and Cinnamon, both have the same problem. MATE now works fine.

    Thanks

    ReplyDelete
  7. Try this:
    "In the Grub menu highlight the Linux Mint option (with the arrows keys) and press 'e' to edit the boot parameters. On the line that starts with "linux", insert acpi_osi=linux at the end (before any final double-dash --). Then continue the boot and see if you can shutdown now."

    Found here: http://forums.linuxmint.com/viewtopic.php?f=47&t=96386

    ReplyDelete
  8. For me, it worked (Mint 15) with the original instructions. Just remember to type sudo update-grub after editing the file.

    ReplyDelete
    Replies
    1. Thank you for your comment. Without "sudo update-grub" this solution will not help!

      P.S. I had this problem with shutdown, using Linux Mint 15 on notebook Lenovo V570

      Delete
  9. This worked a treat for me, with Linux mint Cinnamon.
    Thanks alot

    ReplyDelete
  10. Hello,

    I also had very similliar problem. When I tried to install Linux Mint on my laptop then the bug appeared:
    BUG: soft lockup - CPU#3 stuck for 23s!

    I found somewhere that adding the boot paramaters:
    "acpi=off nomodeset"
    would solve my problem. Indeed, it solved the problem with the installation, but then appeared the problem with the shutting down...

    So I have removed those 2 parameters:
    "acpi=off nomodeset"
    and now everything seems tot work fine :).

    Robert

    ReplyDelete
    Replies
    1. This one worked for me, I'm on Xubuntu 14.04. nomodeset makes my graphics bad, but I have problems with the shutdown too.

      Thank you sir

      Delete
  11. hi..
    I have problem with shutdown on XFCE15 which is really weird. It goes shutdown then it restarted itself. I get this error message when I shutdown : "Rather than invoking init scripts through /etc/init.d, use utility: e.g. service K01mdm stop (this part is unclear as it very fast disappear).
    initcl: unknown job: K01mdm stop
    Since the script you are attempting to invoke has been converted to an Upstart Job, you may also use the stop (?) utility. e.g. stop K01mdm."

    Do you know anything about this problem? thank you.

    ~Polka~

    ReplyDelete
  12. Escribo en español.
    Tengo un Acer Aspire V5 y la solución inicial
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash blah blah blah noapic irqpoll"

    Funciono en el mismo con Linux Mint 15 64 bits

    ReplyDelete
  13. I give up. Ran 10.04 for years with no problems. Both Ubuntu 14.04 and Mint 17 won't shut down properly or see the wireless card. I know it's an older laptop (Dell Precision M70) but my other identical laptop runs Win7 great. Looks like I need to buy another copy of Win7. I really like Mint but have spent way too much time trying to get this stuff to work. It does see the wireless card on the initial install but after changing the driver to the proper one it does not "take" because the machine does not shut down/reboot properly. Is it safe to continue to use 10.04?

    ReplyDelete