Qubes OS freezing randomly

My Qubes OS (4.2) is freezing randomly, it can happen from a few times a day to once per few weeks, most often it happens when moving windows to task bar and opening them again, but it is not clear how to reproduce it as it is very random, it may happen without doing that too.

When freeze happens, I can still hear audio if I am watching a video, screen is frozen except the cursor can be moved for some seconds, after that even cursor does not move anymore. Keyboard is not responsive, I can’t pause the video by keyboard buttons.

The only solution I found is to power off the computer and power it on again, which is very uncomfortable and has resulted in loss of work for me. (dispVMs)

Please let me know any debugging steps I can do, I am using integrated intel graphics (10th gen) on a desktop.

1 Like

I noticed these entries when doing journalctl -e --boot=-1

dom0 kernel: i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
dom0 kernel: i915 0000:00:02.0: [drm] Xorg[8043] context reset due to GPU hang
dom0 kernel: i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:85dffffb, in Xorg [8043]
10s later
dom0 kernel: i915 0000:00:02.0: [drm] *ERROR* [CRTC:53:pipe A] flip_done timed out

I found in search this fix:
echo 10000 | sudo tee /sys/class/drm/card0/engine/rcs0/preempt_timeout_ms

I will test if works, if you dont hear back from me, it probably works.

might be related? Rare i915-related GPU hangs during seemingly random times · Issue #9413 · QubesOS/qubes-issues · GitHub

Also had a lot of crashed in the past but never had any crashes at all since I upgraded my BIOS, Qubes to 4.2 and deactivated fTPM.

Maybe your Hardware is too new (did you try to use the latest kernel?).

Can you give more information about your hardware?

Freeze with previous “solution”
this on boot fixes it:
echo 0 | sudo tee /sys/class/drm/card0/engine/rcs0/preempt_timeout_ms

Latest kernel didnt help, but I posted solution.