message at shutdown: watchdog did not stop!
Solution 1
The watchdog did not stop!
line is normal behavior. systemd
sets a "hardware watchdog" timer as a failsafe, to ensure that if the normal shutdown process freezes/fails that the computer will still shutdown after the specified period of time. This time period is defined in the variable ShutdownWatchdogSec=
in the file /etc/systemd/system.conf
. Here is the description from the docs:
RuntimeWatchdogSec=, ShutdownWatchdogSec=
Configure the hardware watchdog at runtime and at reboot. Takes a timeout value in seconds (or in other time units if suffixed with "ms", "min", "h", "d", "w"). If RuntimeWatchdogSec= is set to a non-zero value, the watchdog hardware (/dev/watchdog) will be programmed to automatically reboot the system if it is not contacted within the specified timeout interval. The system manager will ensure to contact it at least once in half the specified timeout interval. This feature requires a hardware watchdog device to be present, as it is commonly the case in embedded and server systems. Not all hardware watchdogs allow configuration of the reboot timeout, in which case the closest available timeout is picked. ShutdownWatchdogSec= may be used to configure the hardware watchdog when the system is asked to reboot. It works as a safety net to ensure that the reboot takes place even if a clean reboot attempt times out. By default RuntimeWatchdogSec= defaults to 0 (off), and ShutdownWatchdogSec= to 10min. These settings have no effect if a hardware watchdog is not available.
It sounds likely, as you indicated, that your actual problem is related to changing ACPI settings. The answers on this Debian forum thread suggest the following:
1) Edit the file at
/etc/default/grub
and edit theGRUB_CMDLINE_LINUX
line to look like this:GRUB_CMDLINE_LINUX="reboot=bios"
2) run:
update-grub
If reboot=bios
doesn't work, they suggest retrying with reboot=acpi
Do either of these work for you?
Solution 2
I am on a MIO single board computer with the same problem: sudo reboot
or [CTRL]+[ALT]+[DEL] leads to hanging at
watchdog did not stop
None of the above worked for me, but thankfully a combination of them did the job:
Use
GRUB_CMDLINE_LINUX="reboot=bios"
(reboot=acpi
did not work for me)Use
systemctl reboot -i
, to successfully reboot the system. (link)
Related videos on Youtube
Reyx_0
Updated on September 18, 2022Comments
-
Reyx_0 over 1 year
At shutdown I often get the message
watchdog did not stop!
and then the laptop freezes after few other lines without shutting down.
Any idea on how to fix this? Recently it happened very often, usually when the laptop was powered on for some time.
I am using Debian 8 on an Asus UX32LA
I found this systemd file (it shows a conflict with the shutdown.target), if it may help. My impression is that the problem depends on some issue coming from me trying to fix the backlight (which actually only works with the grub paramenter "acpi_osi=" )
[Unit] Description=Load/Save Screen Backlight Brightness of %i Documentation=man:[email protected](8) DefaultDependencies=no RequiresMountsFor=/var/lib/systemd/backlight Conflicts=shutdown.target After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service Before=sysinit.target shutdown.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=/lib/systemd/systemd-backlight load %i ExecStop=/lib/systemd/systemd-backlight save %i
-
Reyx_0 over 8 yearsI implemented the changes you suggested, and let you know soon. Thanks
-
stiv almost 5 yearsupdate-grub on my Centos7 says that command is not found
-
Junle Li over 4 years@xinthose That tricky command works. The strange thing is, they are pointing to the same binary (
systemctl
), I have no idea why.