Hi everyone!
I'm quite new to Linux in general and especially Debian so please be gentle!
I currently have Debian 10 installed (4.19.0-14-amd64) on a dual-boot with Windows 10 on my laptop.
I am having an issue with Debian randomly "powering off" roughly 5-10 minutes after the first bootup of the day, after which the system boots up again. I wouldn't describe it as a proper 'reboot' as the system literally powers off in an instant, as if the power had suddenly been cut off.
After this has happened once, it then runs fine - until the next day, when it happens again. This is the only pattern I am able to ascertain, as it doesn't seem to matter if I boot into Windows, or shut the computer down for a while - it invariably runs fine until the first boot into Debian of the day, and it happens again.
So far I have checked the logs using journalctl, as well as every entry in /var/log, and there is no obvious cause: no error messages (at least not within 5 minutes of the shutdown) or even shutdown related messages. Every time it has happened I have checked these logs and there doesn't appear to be anything happening related to the shut down, for example in the most recent case there was a 'connection blocked' message from UFW around 30 seconds before it happened, with previous records occuring several minutes before the shutdown.
Similarly, when rebooting there is nothing in the logs which appears out of the ordinary when compared to any other session.
After googling about I read somewhere that there could be interference in the power button circuit causing the system to power off, which I didn't think was the case as a) it's a pretty new laptop (1yr) and has run Windows 10 with no issues and b) surely if this were the case there would still be a record of it somewhere in the logs?
Nevertheless I read that I should try editing /etc/systemd/logind.conf to include the line HandlePowerKey=ignore (which was previously commented out), however this has not had any effect.
So does anybody know what else I could check to try to find the cause?
Thanks in advance and sorry for the long-winded post!