You are not logged in.
I installed Arch Linux on an HP Envy X360 15-ds1010wm laptop with Ryzen 5 4500U. However, it keeps freezing, usually when I am using Libreoffice, compiling a package from the AUR, opening/loading a program, or doing some task that starts a process of some sort. First, the desktop environment and windows completely lock up, but loading icons and the mouse still move. Eventually, those freeze up too, and the entire computer is unresponsive. I cannot even Ctrl+Alt+F2 into another TTY. I am forced to hard reset the laptop, annoyingly causing me to lose what I was working on. This problem tends to happen less when the laptop is plugged in.
I am using a Kingston A2000 500 GB SSD. It gives me a SMART warning when I run a BIOS diagnostics test, but this laptop had issues with two other brand new SSD's. I used Kingston's Toolbox software on Windows to verify that the drive has no issues, so it is probably a false positive.
The system is LUKS encrypted. The desktop environment is KDE on Xorg. I have 8 GB RAM, 16 GB swap, 100 GB storage for root, 512 MB for boot, and the rest for home. I am using the "mesa" GPU driver. I also have TLP installed but tried disabling it. Secure Boot is disabled.
Looking in Task Manager, I don't see anything abnormal involving CPU, RAM, or SWAP.
I have updated everything multiple times. The GPU driver, BIOS, and SSD firmware is up to date. I installed the disable-c6 (https://aur.archlinux.org/packages/disable-c6-systemd/) package. I have run "fsck" previously during boot (I probably need to do it again due to constant hard-resetting). There is no option in the BIOS to disable C-states. My boot parameters are:
options cryptdevice=UUID=8aa56bf2-1e42-4002-884c-f817f91a3150:cryptlvm root=/dev/ArchLinux/root rw resume=/dev/ArchLinux/swap idle=nomwait splash acpi_backlight=vendor
None of these solutions are working. How can I make my laptop stop freezing?
(Also in case this is related I get a five-second freeze on the systemd-boot OS selection screen before I can select anything. If I have my mouse plugged in, the boot screen is frozen indefinitely, and I have to unplug my mouse and restart. I get a few warnings when running mkinitcpio. I also get similar warnings on the boot console.)
EDIT: The more I think about it I am becoming more convinced it is an issue with the SSD, probably yet another compatibility issue. I will run more tests this weekend.
EDIT2: The 5.10.15-arch1-1 kernel update seemed to fix it.
Last edited by ethanreece (2021-02-15 23:33:19)
Offline
Now, I am certain this problem involves the SSD. An fsck scan temporarily stopped the freezing, but it froze again a couple days later when I downloaded a program using "yay".
Today, I updated the kernel and it froze shortly after. I rebooted (It got stuck on some fsck operations so I had to run fsck using my install drive). When I launched KDE, it froze immediately after it loaded. I shut the laptop. When I opened it later, a bunch of command line output flooded the screen saying "msr: Write to unrecognized MSR 0xc0010292 by zenstates (pid: 3###). Please report to x86@kernel.org." I was able to type commands, but each one would fail with an IO error, and the file system appeared to be mounted read-only.
This narrows it down to three possibilities: The SSD is incompatible with the laptop (seems likely based on other issues), the SSD is faulty (least likely), the Arch Linux kernel is buggy and I need to wait until they update/fix it or downgrade to an older version.
EDIT: Ever since I updated the kernel to 5.10.14-arch1-1 the freezing got significantly worse. Now it often freezes as soon as KDE loads, and I can't even run "yay -Syu" without the system freezing anymore. I tried adding "libata.force=noncq" to my parameters and it didn't do a thing.
Last edited by ethanreece (2021-02-09 01:26:51)
Offline
I just verified that this is a problem with Arch Linux, not the SSD itself.
I have another HP Envy X360 15-ds1010wm laptop and another Kingston A2000 NVMe SSD. The SSD was installed on the laptop, this time with Windows. Unlike Linux, Windows is not having any freezing issues.
I may try downgrading the kernel and seeing if that works.
Offline
As a side note, I am experiencing the same with an Fujitsu/core i5 notebook. Started a couple of weeks ago. But I cannot give any reason as to why, as nothing gets written to the journal. May try an lts kernel. Just to be sure.
Offline
Is the CPU µcode installed?
Jin, Jîyan, Azadî
Offline
In my case: yes. Haven't tried to remove this from the kernel boot options yet. Maybe I should give this a try.
Offline
This time I updated my linux-firmware and rebooted and used my laptop like normal. A while later, I opened it and this time I got a kernel panic saying "Unable to access opcode bytes at RIP 0x563b0a72d6b6" and "Shutting down cpus with NMI". Before that was a bunch of Xorg crash output, and I noticed it had an IO error.
After that kernel update in an earlier post, my laptop is locking up all the time. I can hardly use it without it freezing up at least once.
EDIT: Yet another interesting observation. Right before it crashed, I duplicated a file and tried to open it with LibreOffice. After I rebooted it (after running fsck), the file exists but it is empty.
Last edited by ethanreece (2021-02-10 23:58:53)
Offline
Ryzen/AMD related issue ? You possibly can try kernel parameter iommu=off or iommu=soft. There are also mentions about non-generic amd_iommu=off parameter around web.
Here's what it means and here documentation.
Last edited by euromatlox (2021-02-14 15:20:34)
Offline
You might try tweaking the low power states with something like this kernel parameter:
nvme_core.default_ps_max_latency_us=5500I've had to do that with two SSDs to avoid lags in I/O.
Offline
Thanks for the replies.
A 5.10.15-arch1-1 kernel update came out. I installed the update and for some reason it deleted my initramfs and its configuration files. I rewrote the configurations and regenerated the initramfs after installing the update, and now it's not freezing anymore! After using it for multiple days, I have occasionally encountered lag spikes, but at least it hasn't completely locked up anymore.
Last edited by ethanreece (2021-02-15 23:29:00)
Offline