Output looks good. Should work as desired.
Btw. the “no low level hardware tricks” thing is normal on all modern AMD gpu’s with a DCN display engine - any AMD Ryzen integrated gpu and anything released since the RX 5700 in July 2019. Only the older DCE display engines are compatible with PTB’s low level tricks - Vega, Polaris, …
Background for debugging:
Testing with the Vulkan display backend bypasses any display server and goes directly to the kernel, so it is a good way to narrow down the troublemaker to userspace (Desktop environment (e.g., KDE), X-Server or xorg-video driver) vs. kernel space (low level kms driver). → Vulkan works → Problem in userspace (X-Server / Wayland / xorg-video drivers and other plumbing). The xorg-video-modesetting driver aka modesetting-ddx is a “one size fits all” generic driver that should work with any graphics card from any manufacturer, so it is a backup and a way to test if the vendor specific xorg-video-amdgpu amdgpu-ddx is the culprit, which it seems to be, which is why switching to it solved the problem.
You could also remove the xorg-video-amdgpu package instead of using a custom xorg.conf to force use of modesetting-ddx, as that is the automatic fallback if no vendor specific driver is installed.
General background info:
The modesetting-ddx nowadays is pretty much on par with the vendor specific driver in functionality, quality etc., after myself and a few others spent a lot of time in fall 2020 + early 2021 to spice it up and make it catch up with amdgpu wrt. neuroscience relevant functionality. I also spiced up amdgpu in 2022, so those drivers should be on par wrt. functionality since then.
The area where amdgpu-ddx may have an edge is slightly higher performance, due to AMD specific tuning. Pretty much all known graphics cards from other vendors nowadays just use the modesetting driver, only AMD still puts a bit of work into their own driver, although that has slowed down to more of a trickle recently.
Further diagnosis:
I think the reason for the pageflip failure may be an outdated xorg-video-amdgpu ddx in both the latest Debian 13 and the latest Ubuntu 24.04.4-LTS. Both ship v23.0.0 of the driver from February 2023, and not the recent v25.0.0 from July 2025, so the shipping drivers are over two years older than your graphics card, which was introduced in June 2025. Seems somebody dropped the ball on both the Debian and Ubuntu release team. Not surprising for Debian, but I’d have expected Ubuntu 24.04.4-LTS should have gotten that update in February this year, when it got the hardware enablement stack from Ubuntu 25.10 - which shipped with an outdated driver as well…
Looking at commit logs, I suspect the fix needed for latest generation AMD gpu’s (Gfx Ip 12 family, marketing name for these cards is RDNA4) brought to market in late February 2025, is this driver commit from 14th July 2024, part of amdgpu driver version 25.0.0, but not 23.0.0:
So AMD’s driver was supposedly ready for RDNA4 gpu’s on the X-Server, but Debian and Ubuntu weren’t picking up the new driver in time.
That said, only testing on Ubuntu 26.04-LTS with a RDNA 4 gpu would confirm if that was really the reason for pageflip failure and if the driver works again. Could also be something else. I don’t have any RDNA class gpu, my most modern AMD iGPU is a Raven Ridge Vega gpu class with DCN 1.0 display engine from early 2018 as part of a AMD Ryzen 5 2400-G cheap but good price for value “ALDI Sued special sales action offer” PC from early 2019…
Outlook for AMD gpu buyers:
The “maybe proper” driver v25.0.0 is shipping starting with Ubuntu 26.04.0-LTS and Debian unstable and testing though. A Google AI search suggests that all AMD “Ryzen AI Max”, “Strix Halo” branded bits, and RX 8000M series laptop gpu’s and RX 9000 series desktop gpu’s and later are RDNA4 and would need the v25.0.0 driver.
So I guess it is either use the modesetting ddx with the fix explained in this post, or upgrade to (K)Ubuntu 26.04-LTS for the latest amdgpu v26.0.0 driver to hopefully fix the problem.
That said, Ubuntu 26.04-LTS default desktop GUI “Ubuntu” desktop and also “GNOME” desktop are now Wayland only, and thereby unusable with Psychtoolbox or any other vision science software. The optionally installable KDE 6.6 desktop (or simply what KUbuntu 26.04 would provide) however still supports a native X11 session, and testing so far suggests it is working fine. My notes from testing a Ubuntu 26.04 live system from a USB drive on a laptop with AMD Polaris 11 gpu from the year 2017 on a KDE desktop installed manually say this:
"Ubuntu 26.04.0-LTS:
KDE/KWin/X11:
- All seems fine, both single display, and dual-display (single X-Screen dual-display and dual-X-Screen dual-display tested). Both OpenGL and Vulkan.
- Also Vulkan direct display 8/10/16 bpc unorm and fp16.
- Also 10 bpc DefaultDepth 30 mode under X11/GLX
- Also mirroring modes.
→ Again needs compositor disable on any multi-display setup, just like on Ubuntu 20/22/24.04 LTS.
→ ALT+Tabbing for window switching broken, timezone selection broken!! Manual switch to sddm login manager → Now works, as XDG_SESSION_TYPE is now properly set to “x11”, whereas GDM left it wrongly at “wayland”.
TODO: HDR, VRR testing, other gpu’s, other devices, sound"
Current PTB will not work with Octave 11 from Ubuntu 26.04, and NeuroDebian is not shipping 26.04 packages yet, and Ubuntu ships utterly outdated/unsupported packages from early 2024. So only the up to date Matlab version from us directly would likely work - untested yet.
Ubuntu 26.04-LTS libportaudio, and thereby our PsychPortAudio driver when running on Ubuntu 26.04, has supposedly improved sound support, thanks to the work of an independent contributor, GitHub user illuusio Tuukka Pasanen, with contributions to testing/improvement/bug fixing by myself), which is not yet used/enabled by current PTB, as testing is pending. In principle, once fully enabled by PTB, it should allow PsychPortAudio to play nicely with other sound applications and GStreamer movie playback in parallel, while still having good audio timing precision. Only if one needs absolutely highest precision and lowest latency, would one need to use the mode where PsychPortAudio fully takes over a soundcard, shutting down anything else audio on the system.
Also, thanks to a lot of work by others and myself since mid 2025 and early this year, substantially improved support for HDR, WCG, ultra-deep color precision framebuffers (up to 12 bpc on modern AMD gpu’s with suitable DisplayPort or HDMI displays, likely up to 11 bpc on modern Intel gpu’s - not tested for Intel due to lack of any modern Intel gpu). Thanks to many improvements to the Mesa OSS Vulkan drivers, all HDR/WCG/deep color capable gpu’s should now be supported, not only modern AMD gpu’s, e.g., Intel, likely some Qualcomm Snapdragon Adreno, and even the RaspberryPi 4 and 5.
So Ubuntu 26.04 can be a good upgrade, as long as one avoids any Wayland desktop environment, but extensive testing and fully making use of it will take quite a while longer, only the limited basic testing so far doesn’t point to problems on X11 desktop environments.