35
Laptop randomly freezes. How to debug it?
(feddit.dk)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Since you specifically mention qtile you should undo your customizations and see if that fixes your problem?
If not, you should look at the journal after reboot:
journalctl -bBut you'll need to filter it.
Try
journalctl -b | grep -v rtkit-daemon, which will remove the masses of entries you bemoaned in another comment (AFAICS all syslog entries should also be in the journal anyhow).Very important:
Please make note of when the problem happened, and if your journal entries even go that far in time.
Also, add
-rto show the log in reverse. If you want to look at previous boots other than the last you can specify like sojournalctl -b -2 -rI just got the following freeze that it recovered from by itself (rarely happens). After filtering the log a bit I get the following from around the time it happened.
Nice, that looks pretty obvious.
In addition to the other reply, you should search around your distro* having problems with (certain) AMD gpus; maybe all you need is a backported kernel.
* I don't think you ever mentioned. If it's Ubuntu-based, search for Ubuntu.
I use linux mint debian edition (LMDE)
Could it be a CPU/iGPU too new for the kernel LMDE is running? I haven’t used LMDE in a while, so I imagine that if it’s still based on bookworm the in-kernel drivers could be too old. If it’s trixie-based that probably isn’t the problem though.
Looks like the chipset/graphics driver is crashing. That can be because of the driver or the hardware.
It will be hard to diagnose, but you can search for the most detailed of those log lines together with your laptop model and see if that yields anything. There problem is that it's never possible to know whether you have a software issue or a hardware issue that is exposed by particular software.
You can try installing a completely different os (i.e windows) to see if the same problem occurs - if it does you can be fairly sure it's hardware.