I've installed Xubuntu 15.04 on a Lenovo IdeaCentre A740 QHD with a Haswell CPU (BIOS revision 00KT19AUS) and NVIDIA GeForce GTX 850A 2GB. It's mostly working, except when I do a shutdown or reboot, it doesn't actually turn off the power after quitting everything:
So I have to click the power button to actually turn it off.
I've kept the Windows 8.1 installation in case there's any future firmware. Before installing Xubuntu, I turned off Fastboot from Windows, then installed Xubuntu. Unfortunately, the UEFI BIOS didn't let me change boot order so that Ubuntu actually started as default. I tried bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi
, tried turning off "quickboot" (whatever that is) in BIOS, tried the Boot-Repair program from a Live Session, and tried turning off SecureBoot, but still it would just boot Windows. I ended up, with the help of EricC^^ of #ubuntu on freenode, just switching around the .efi files to trick the boot manager into thinking Ubuntu was Windows:
cp /boot/efi/efi/boot/bootx64.efi{,.backup}
cp /boot/efi/efi/microsoft/boot/bootmgfw.efi{,.backup}
cp /boot/efi/efi/ubuntu/grubx64.efi /boot/efi/efi/boot/bootx64.efi
cp /boot/efi/efi/ubuntu/grubx64.efi /boot/efi/efi/microsoft/boot/bootmgfw.efi
cp /boot/efi/efi/ubuntu/grubx64.efi /boot/efi/efi/microsoft/boot/grubx64.efi
sudo vim /usr/lib/os-probes/mounted/efi/20microsoft
# and changed bootmgfw.efi to bootmgfw.efi.backup
update-grub
I don't know if any of this has a bearing on the shutdown trouble.
EDIT: Come to think of it, the reboot from the Xubuntu installation (when I was booted through a USB drive) didn't work either.
What I've tried so far to get it to shut down:
- acpi=off → no difference
- acpi=force → no difference
- install proprietary Nvidia drivers → that just made X not start with the message "bbswitch: No discrete VGA device found"
- various variations on
sudo poweroff
,sudo shutdown now
,sudo shutdown -h now
etc.
Also, if I reboot instead of shutdown, I get this psychedelic lightshow on my monitor and have to long-click the power button to turn it off:
If it's helpful, here's a journalctl --all output right after booting up and perhaps even better: journalctl -b -1 (journal from bootup to shutdown).
Also, perhaps related, I notice now that pressing the power button while logged in to XFCE turns the computer right off, even though I have XFCE power settings to "Ask when power button pressed" and "Do nothing" on any other buttons.
My /etc/systemd/logind.conf
has no uncommented lines apart from the [Login]
header.
There is a /usr/sbin/acpid
process running as root.
EDIT: More revelations: Ctrl+Alt+Delete actually reboot fine from GRUB.
EDIT2: I've filed a bug report since this doesn't seem fixable with the regular tricks.
EDIT3: Solved with acpi=noirq and kernel 4.4 and newer.
Try adding
to the kernel boot parameters. This lets it poweroff on shutdown/restart (tested with kernels 4.4 and 4.7rc5).
It seems to suspend too, but unfortunately does not resume from suspend on pressing the power button.
This has worked fine for over three months now on the A740, so I'm calling this solved.
My best guess based on the info provided is a buggy UEFI BIOS. digging through the kernel bugs for Haswell I found a possible workaround. Try using
xhci_hcd.quirks=262144
as a boot option or Disabling xhci in the UEFI.The only other options I can think of are as follows:
A) Wait and hope that either the kernel development team or Lenovo comes up with an update that resolves the problem.
B) Contact Lenovo Support and push for a BIOS update that resolves the problem or encourage others with the same problem to subscribe to your bug report. This may or may not be any more effective than A.
C) Modify the BIOS or the kernel yourself until you reach the desired result (Not for the faint of heart). I'm not recommending this course of action, only including it for completeness. Modifying the BIOS can easily leave you with an unbootable system with a voided warranty. You should also read carefully the reasons for and against compiling your own kernel in the aforementioned linked document.
Source: https://bugzilla.kernel.org/show_bug.cgi?id=66171#c118
After ferreting through the system files I saw a few warning about the BIOS. I checked Intel's website and there was an upgrade available that seemed to solve an issue of overlapping memory addresses. Not obviously the same but my logs indicated that various sectors of my BIOS were returning unexpected values, which did not prevent the kernel from starting but obviously was not good. The issue was not apparent until the kernel stopped using
upstart
and started usingsystemd
.I downloaded the updated BIOS and applied it and now my system turns off as expected.
What
cat /etc/default/halt
says? Tryhalt -p
.You can also edit
/etc/init.d/halt
and remove this lines:below
From your Kernel Logs (Screenshot) I have a hunch that unattended-upgrades might be the cause of your issue. There have been several bug reports on this years ago, but they have not been resolved. A temporary fix to this would be to disable automatic updates by updates, but we will keep it as a last resort. But first of all, we will try a manual upgrade:
If this did not solve your issue, and the upgrade went without any errors or warnings, wee will try digging a bit more deep to see if we can find out what is causing the issue. You could get a lead by inspecting the contents of
/var/log/unattended-upgrades
. If you could figure out which update is causing the issue, you could blacklist the update by modifying/etc/apt/apt.conf.d/50unattended-upgrades
.If it still does not solve the issue, you can temporarily remove the package, to confirm if it is the cause:
I recommend that you reinstall it even if it solved your issue. If this is the case bring back the the bug report with more information so that the developers can solve your issue.
Warning: If you choose to disable automatic update and then don't manually update your system, you may be at risk from security and stability view point.
I tried everything and after days a lowly rated fanswer from this forum did the trick: Ubuntu 14.04 stuck on shutdown
Now works perfectly :-)
I can confirm it definitely has something to do with ACPI. My system exhibits this exact behaviour if and only if I pass acpi=off in Linux 4.20-rc3 for kernel development purposes. If your ACPI was enabled at first, then there is a fair chance that the ACPI implementation in the BIOS was buggy. I see you said a kernel upgrade helped. But a BIOS upgrade may have done the trick, also.
I have had the same problem and believe that it is related to the UEFI boot. On an Acer Aspire V 11, originally Windows 8, I have done a fresh install of OpenSUSE Leap 15.0 with EFI boot and secure boot set to "disabled" in the BIOS. Now the shutdown, reboot and suspend work correctly.
Previously, I was using Ubuntu 16.04, 18.04 and most recently 18.10 under legacy boot and they all suffered the same problem. I also tried Fedora 24, OpenSUSE Tumbleweed and OpenSUSE 42.2, all with the same problem.
I also tried Ubuntu 18.10 with EFI boot and secure boot enabled but got a non-bootable device error. I did not try EFI boot with secure boot disabled.
We bought a cheap mini-pc with Intel board for a project. It was shipped with Win7, I reinstalled Debian 10 for deep customization in the project. On every reboot/poweroff, it has a high chance to stuck at the end of poweroff stage with systemd's "Watchdog didn't stop" as the last message.
I checked the BIOS setup screen, there is an option, to specify system type. Win7/Android/Win10. After switched to
Android
, it can reboot/poweroff without problem.PS: I did try
reboot=pci
reboot=bios
parameters, but none of them worked. I wish I've checked BIOS for ACPI related settings ealier.Hope this helps in some case.
Your hardware might not support software shutdown. I've had that happen before, and the way to test is this:
If that does not shutdown the hardware, it's a hardware issue and not software.