Hi everyone,
All of a sudden I have started to receive a weird momentary console message from systemd about something related to watchdogs? (I have no idea what this is). The message says:
#systemd-shutdown[1]: Failed to set watchdog hardware timeout to 1.
Omin: Invalid argument#
See the screenshot attached as well.
This message appears just for a fraction of a second and does not impede the use of the laptop in any way, but it’s visually unappealing and annoying, since I don’t understand why it appears and how to disable it.
I tried browsing through the web, but found nothing similar, or at least any possible solutions to it, so perhaps you people could help me figure it out?
Not sure which info you might need from me, but my boot loader is rEFInd, I don’t have either systemd or grub.
Thanks for your help in advance.
If it ain’t broke don’t fix it? Not all error messages need to be fixed. If it bothers you that much you can probably try this. I can’t make any promises though.
I mean, you are right, but first and foremost:
- Why does this message even appear?
- It’s ugly and unneeded, hence I want it to be removed
The linked article, from my understanding, instructs how to enable this watchdog thing, but I don’t need it at all. Can I just delete this watchdog? Or somehow silence it completely?
Do you have nowatchdog
in your kernel command line?
First time hearing of watching do, it seems to be there to recover your system when it detects malfunctions. It seems to have to do something with watchdog hardware, it was fixed from an issue I can find.
But for some reason it’s appearing for you. That’s why I thought it might be worth a try for you to set it to what’s recommended in the wiki to see if doesn’t appear then, if the time limit was lower. Error messages aren’t meant to win a beauty pageant.
To turn the hardlockup detector off, use:
/etc/sysctl.d/disable_watchdog.conf
kernel.nmi_watchdog = 0
or add
nmi_watchdog=0
to the kernel line.Alternatively add
nowatchdog
to the kernel line to disable both hard and soft lockup detectors. See [3]
Hey,
Thanks for getting back.
I have the “nowatchdog” parameter specified in my kernel parameters. I have also added the “nmi_watchdog=0” parameter in there, just in case, as the issue was still persistent with just the"nowatchdog" parameter.
So I’m kind of stuck here, as these basic kernel parameters don’t work, unfortunately.
lsmod | grep iTCO_wdt
Do you get any output?
Hey,
Sorry for a slightly delayed reply, was a bit busy.
This command does not give any output.
Also, I have confirmed through the “journalctl -b | grep watchdog” command that the only watchdog references I get are from my kernel parameters. But nevertheless, I keep getting this “failed to set watchdog hardware timer” error.
Maybe I really need to try and set it in the first place, I don’t know.
But why does this error still keep appearing if I have allegedly turned off everything watchdog related?
Thanks a lot in advance
Funnily enough, I was able to fix this issue with the help of ChatGBT.
Having described the issue to it, ChatGBP suggested the following kernel parameter: systemd.watchdog_device=none
Why it is funny is because nowhere have I found at least any vague mention towards this parameter in my hours of searching the web for any clues on how to tackle this error. Literally 0 references, only something generic like “nowatchdog” or “nmi_watchdog=0”, but ChatGBP managed to solve this issue that I’d been trying to solve for days with literally the 1st reply…
If anyone’s interested why this has worked, here’s a reply from ChatGBP:
Parameter | What it Affects | Why it Fails Here |
---|---|---|
nowatchdog |
Kernel’s internal soft lockup watchdog | Not related to systemd watchdog |
nmi_watchdog=0 |
Disables NMI watchdog used for kernel debugging | Not systemd-related |
watchdog_timer=0 |
Some driver-specific watchdog settings | Doesn’t affect systemd or userland |
Only systemd cares about systemd.watchdog_device |
![]() |
![]() |
So if your error message is from systemd — like Failed to set hardware watchdog timer — then none of the above will touch it, because that’s happening after the kernel has booted and systemd is taking over. |
||
God praise ChatGBP ![]() |
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.