Which release version?
(if rolling release without a release version, skip this question)
24.04
(If rolling release, last date updated?)
Which kernel are you using?
6.18.0 compiled from mainline.
Which BIOS version are you using?
3.05
Which Framework Laptop 16 model are you using? (AMD Ryzen™ 7040 Series)
FW16 7840HS.
Description:
While watching a video use mpv, the display froze and keyboard input did not work, but the audio track continued on normally.
I could CTRL-ALT-F4 to a command line console.
In that console, dmesg did not show any crash or error messages related to the freeze.
I could type reboot in the console and the system rebooted normally.
It does not happen often, but if anyone has any ideas of what to try to track this down, i would appreciate it.
It is using Xorg, and not Wayland. The colours are all wrong for videos in Wayland, but look right in Xorg. That is why I don’t use Wayland when watching videos.
Compositor:
/usr/libexec/mutter-x11-frames
This happens only rarely, so trying to bisect it is a non starter really.
Is there any way to get the system to output a dmesg message when it enacts the panel replay when it shouldn’t. Maybe a message to say it has enacted it?
I have also had the display freezing and the audio going in a short loop, this is the first time the audio continued, and I could CTRL-ALT-F4 to another console which it happened.
A number of users on this forum complain of similar symptoms, but I see little or no solutions here. I also find complaints (via www search) of these type of symptoms across linux distros and hardware manufacturers (dell, hp, amd gpu’s, nvidia gpu’s, etc).
If you have not already done so, find an ubuntu forum and/or bug reporting site that is tracking these type of complaints and follow what users report there.
I suspect some these issues are related to “drm” possible associated with wayland (as opposed to X11).
The suggestions below can be a PITA to do for an unpredictable, infrequent bug. You have to decide how much effort you want to give attempting to troubleshooting this.
Some additional details you might include in this forum thread:
What expansion cards are you using when this happens?
Have you tried removing some or all expansion cards and then see if this bug no longer occurs?
What external peripherals are in use when this happens (e.g. docks, hdmi cables, monitors, etc)?
Are you using x11 or wayland? Since your on ubuntu 24.04, I believe you have the option to use X11 or wayland. Regardless of what you are using, try switching.
Investigate increasing the debug level for your display server (X11 or wayland) as well as your kernel. Likely you will have to do this at boot and then wait until you have an “event.” This can generate a large amount of logging data most of which wont be related to your issue. Make sure you have the storage capacity to handle it and the time to sift through it.
Since you can apparently get to a working console, try killing and restarting your display server from there. You could also try reloading kernel modules related to drm, the gpu, and the display as well. These actions may help you narrow down the cause.
I see others responding as I type this (and your response - your on X11). You could try Wayland just to see if this issue does not happen.
Good luck.
EDIT: your building your own kernel - it’s not difficult to locate the code you suspect (panel replay? - especially if its new in 6.18) and insert your own conditional debugging statements. The kernel mailing lists are good source of information. This will take time and some basic coding skill.
If you’re using Xorg I feel you should turn off panel replay for now. There have been various attempts to fix it, but nothing has worked 100%.
Do you have a bug tracking the color problem you’re observing with Wayland? Are you using the drm color pipeline? How have you configured mpv?
I would expect this is a compositor issue if the colors are wrong. As a general statement Kwin (the plasma compositor) has implemented the drm color pipeline properly.
As building the latest Kwin for Ubuntu LTS might be challenging you might be better off trying a live media from a distro that has a newer kwin build.
I would definitely try upgrading to BIOS 03.07 if you haven’t. Your configuration is a little different from mine, and there seem to maybe be multiple issues with similar symptoms (sn6526 is completely correct that there are many people seeing similar GPU issues to this), but upgrading the BIOS was one thing that definitely seemed to fix a pretty similar problem for me.