Random Freezes and Application/System Crashes When Disconnecting Charger on ASUS ROG Zephyrus Duo 16 with Kernel 6.10.x

From: Ярослав Струкевич
Date: Wed Aug 28 2024 - 15:43:36 EST


Hardware Information:
Hardware Model: ASUSTeK COMPUTER INC. ROG Zephyrus Duo 16 GX650RX_GX650RX
Memory: 64,0 GiB
Processor: AMD Ryzen™ 9 6900HX with Radeon™ Graphics × 16
Graphics: NVIDIA GeForce RTX 3080 Ti Laptop GPU
Disk Capacity: 2,0 TB

Software Information:
Firmware Version: GX650RX.319
OS Name: openSUSE Tumbleweed
OS Type: 64-bit
GNOME Version: 46
Windowing System: X11
Kernel Version: Linux 6.10.5-1-default


After updating to linux kernel 6.10.X (all versions from 0 to 5 issue
persists, on both, Ubuntu and SUSE) (btw on Windows everything okay,
so it's not hardware or bios/firmware issue), when disconnecting
charger my laptop starts randomly to freeze output (video/sound
output), making screen blank (black) or reporting SIGV from unknown
service.

This issue could be related to ASUS WMI (MUX chip) or layer for GPU
drivers (btw, issue persists on different version of drivers,
including NOUVEAU/NVIDIA drivers, currently using latest NVIDIA)

Also, it's highly depends on current performance mode of the system
(performance/balanced/power saver)
Power saver -> immediately
Performance -> immediately
Balanced -> from 1 second to ~5 minutes

Also, in balanced mode while charger disconnected, but during this
period when everything works applications randomly crashing (firefox
like example), the same issue observed when using power saver mode
with charger on Also, without charger GDM starts just 50% of the time
when rebooting