Help troubleshooting OS freezes

Hi everyone! ~2 years EOS user here.

Context

I started using hyprland 3/4 months ago. It worked fine until recently.
A while ago, like 4 weeks ago, I started experiencing some OS freezes.
I couldn’t find any patterns or programs to blame for this behavior. I’m not sure if it’s a resource issue, a specific software or maybe hardware.

I’m suspicious of vscode or chromium => Electron?

What I tried

  • I switched to KDE (Wayland) thinking it was a hyprland issue, but I still got freezes.
  • I switched to KDE (X11) and it’s still happening.
  • I increased the swap memory from 8 to 16 GB, but according to btop the swap memory is hardly used

Logs

I read https://discovery.endeavouros.com/forum-log-tool-options/how-to-include-systemlogs-in-your-post/2021/03/ and I leave the logs below.

Can you help me troubleshoot?

Thanks

There is a critical bios update for this laptop. Maybe start with that.

version 7WCN38WW 07 Jan 2020

Okay.
First, I ran pacman -Syu to get the latest software updates.

After searching about Lenovo BIOS update, I found this page https://support.lenovo.com/us/en/solutions/HT510810-HOW-TO-DO-SOFTWARE-UPDATES-LINUX

This led me to run fwupdmgr get-updates. Logs here

Posting before I update.
Update: that was fast.

I don’t have much experience or exposure to fwupdate. Lots of people do use it but I can’t say much about it. Hope it goes okay without issue.

Edit: I see the log shows the version it has but i don’t see that it shows the updated version but then again maybe that command doesn’t.

Me neither. First time I use it.

Do you see any visible error on journalctl logs? I don’t have much experience reading them, not sure about what to look for.


On the other side, I found some issues between AMD Ryzen 2500u and freezes

So I’m trying with this option. I’ll report back.

Do you have Windows on the Lenovo?

No, just Linux.

With the Ryzen 2500 you may need to try some kernel parameters such as

idle=nomwait

Not sure if you are using grub or systemd-boot because it’s different to add them. This is just one that I’m guessing at trying. There are others but need to think which ones would be likely candidates.

Edit: Another one to try is

processor.max_cstate=5
1 Like

Great. Just made a little search a found about that param EndevourOS randomly freezing - #5 by buffy

Going to update it now.

Are you using systemd-boot or grub? Do you know how to add them correctly and run the appropriate commands?

Followed the instructions in that post.


I think I’m using grub.
UPDATE
Amazing, it seems I’m using systemd

> [[ -d /run/systemd/system ]] && echo "using systemd" 
using systemd

> ps 1                                                 
    PID TTY      STAT   TIME COMMAND
      1 ?        Ss     0:02 /usr/lib/systemd/systemd --switched-root --system --deserialize=47

I’ll try to change to grub.

No don’t do that!

Edit: Just add the kernel parameter to /etc/kernel/cmdline and then run sudo reinstall-kernels

2 Likes

Thanks for the advice. I’ll add the kernel parameters.

I thought grub and systemd-boot were interchangeable, but it seems I have some misunderstandings.

You can switch to grub but it’s not necessary and if you don’t do it correctly it’s just going to be another headache you don’t want or need.

1 Like

Hopefully it works for you. If you still have issues try adding the other one along with it with the same procedure over again. These are the only two that i can think of that may help.

processor.max_cstate=5

@mrichetta
Well did you get the kernel parameter added? Has it made any difference?

Yes, I added the parameters to /etc/kernel/cmdline as you suggested.

After booting, I can see the current boot cmdline

❯ cat /proc/cmdline
initrd=\6b566fe848454b72b9a0579ca00a3a98\6.12.4-arch1-1\initrd nvme_load=YES nowatchdog rw root=UUID=4a19720e-042f-48d9-80ef-3b5c83d35842 rw root=UUID=4a19720e-042f-48d9-80ef-3b5c83d35842 iommu=pt idle=nomwait processor.max_cstate=5 systemd.machine_id=6b566fe848454b72b9a0579ca00a3a98

So far, so good.

I’ll have to use it for work today. If tomorrow is still working fine, I’ll close this post as solved.

I have the same problem with the same laptop, but with another processor, which is the Ryzen 3 2200u.
The problem appeared only a few days ago, after updating to Mesa 24.3.1 or kernel 6.12.4.
By the way, I am on pure Arch with KDE Plasma

You mean you have an Arch installed system. :wink:

I hope it solves the issue for you.

1 Like