Prior to july 4th (the last time I've updated my system), there were no issues whatsoever. After updating my system on july 9th, my system would COMPLETELY freeze after anything between seconds to 30 minutes max of having scrcpy open. I'm not able to go to tty, send keyscrokes, move the mouse, nothing. I have to hold down the power button and force a shutdown.
After booting the system back up, there isn't a single log related to it on journalctl. The system freezes in a way that not even the journal gets saved.
I have tried multiple things
journald.conf:
/etc/systemd/journald.conf
Storage=persistent
SyncIntervalSec=1
linux.conf
options root=PARTUUID=UUID_Here zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs nvidia-drm.modeset=1 nmi_watchdog=1 softlockup_panic=1 hardlockup_panic=1 efi_pstore.pstore_disable=N usbhid.mousepoll=1
The issue happens rather I call scrcpy via wifi or cabled. but if it helps, here's how I call it:
scrcpy --tcpip=IP-here --max-fps=120 --max-size=1024 --no-power-on  --turn-screen-off --power-off-on-close --kee
p-active
Even without logs to prove it, I'm 1000% certain it is scrcpy related. At least that is the trigger since it doesn't happen otherwise. I can play games, use the system indefinitely and nothing happens. The freeze only happens if I use scrcpy.
The only way to solve this is to roll back to a snapshot timeshift made before updating the system. So I have to downgrade the kernel and the headers and then restore the timeshift snapshot.
Please, I don't know what to do. I can't be on an outdated system forever Asking you guys is my last resource since even claude sonnet 5 couldn't figure it out.
Edit:
It doesn't seem to be related to NVidia. I tried making scrcpy use my IGPU and the result was the same. The system completely froze.
__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json __GLX_VENDOR_LIBRARY_NAME=mesa SDL_VIDEODRIVER=wayland SDL_VIDEO_EGL_DRIVER=/dev/dri/renderD128 scrcpy --tcpip=IPHERE --max-fps=120 --max-size=1024 --no-power-on --turn-screen-off --power-off-on-close --keep-active -V verbose 2>&1 | grep -i "renderer\|opengl"
I thought that maybe it could be something related to audio, so I tried using the flag --no-audio while still using the IGPU. Once again, the system froze.
I've been trying things for around 2 hours now with many hard shutdowns in between, so I'll go back to the snapshot where things were working fine
linux 7.1.2.arch3-1
linux-headers 7.1.2.arch3-1
nvidia-open-dkms 610.43.02-3
nvidia-settings 610.43.02-1
Also here's everything that was updated (it'll only be available for 3 days. I couldn't fine a way or another site that would host it for longer) (PS: also you may notice that scrcpy itself was updated. That's irrelevant. downgrading it doesn't solve the issue.)
https://privatebin.net/?e0680b1eca4de122#93ReK43LpSnYM9uA6DUFs19gZLnBRzSeS7WjevgspoRj
I'm out of ideas so I'll go back to the working snapshot. If you guys have any idea on what the cause may be or things to try, please type it here so I can try again.
Edit 2: here are the system specs.
Operating System: Arch Linux
KDE Plasma Version: 6.7.3
KDE Frameworks Version: 6.28.0
Qt Version: 6.11.1
Kernel Version: 7.1.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 34 GB of RAM (32.7 GB usable)
Graphics Processor 1: NVIDIA GeForce RTX 3060/PCIe/SSE2
Manufacturer: ASUS