Linux/X Connecting 4070 to Apple Mac Studio 5k display: black screen

Hi, im trying to run fedora 39 linux and use 4070 gpu to connect to Apple studio display, over display port. Same hardware works for windows, for linux I have a bit of trouble.

Turned on debug on the xorg.conf and the 5k resolution is available from the validated modepool:


Feb 18 00:15:29 nugget-local /usr/libexec/gdm-x-session[3366]: (II) NVIDIA(GPU-0): --- Modes in ModePool for Apple StudioDisplay (DFP-1) ---
Feb 18 00:15:29 nugget-local /usr/libexec/gdm-x-session[3366]: (II) NVIDIA(GPU-0): "nvidia-auto-select" : 5120 x 2880 @  60.0 Hz  (from: EDID)
Feb 18 00:15:29 nugget-local /usr/libexec/gdm-x-session[3366]: (II) NVIDIA(GPU-0): "5120x2880"          : 5120 x 2880 @  60.0 Hz  (from: EDID)
Feb 18 00:15:29 nugget-local /usr/libexec/gdm-x-session[3366]: (II) NVIDIA(GPU-0): "5120x2880_60"       : 5120 x 2880 @  60.0 Hz  (from: EDID)

**(==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"**

Feb 18 00:15:29 nugget-local /usr/libexec/gdm-x-session[3366]: **(==) NVIDIA(0): will be used as the requested mode.**

So this looks fine, however further down the logging it seems to have trouble selecting the default mode:


Feb 18 00:15:30 nugget-local /usr/libexec/gdm-x-session[3366]: **(II) NVIDIA(0): Setting mode "NULL"**

Feb 18 00:15:30 nugget-local kernel: **nvidia-modeset: WARNING: GPU:0: Apple StudioDisplay (DP-0): G-SYNC Compatible: EDID min refresh rate invalid, disabling G-SYNC Compatible.**


Feb 18 00:15:30 nugget-local /usr/libexec/gdm-x-session[3366]: **(II) NVIDIA(0): Setting mode "DP-0: 2560x2880 @2560x2880 +0+0 {ViewPortIn=2560x2880, ViewPortOut=2560x2880+0+0}"**



root@nugget-local:/etc/X11# nvidia-smi
Sun Feb 18 00:49:54 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.29.06              Driver Version: 545.29.06    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+

I know that the display port needs to be driven with DSC compression to do 5k@60Hz over DP 1.4 is this something that needs to be forced ?

Thanks for any pointers to solve this.

Arjen
nvidia-bug-report.log.gz (592.7 KB)

Update: I have added a bug report

This might as well be a gnome-shell bug. Please try switching to a different DM like lightdm.

@arjenb Did you solve this issue? I am trying a similar setup, with Ryzen 7800x3d, 4090 and the Apple Studio Display (connected via DP and USB2.0 → USB-C DP-Alt) and i can’t get it to work with gnome.

Most of the time xrandr showed a connected one or two 2560x2880 screens and the option of full 5k, but when trying to set 5k manual, it fails and gives a BadMatch Error. Same configuring 2x2560x2880 tiled screens in xrandr.

After distrohopping only Nobara Linux “Nobara-39-Official-Nvidia-2024-01-24.iso” with KDE Plasma 6 showed in the live version full 5k on the ASD, but after installing it on the system and rebooting the ASD goes only black again. The Gnome Nvidia Version boots only into black screen.

the worst is that information to this combination of hardware is really sparse and i have no clue which setting or driver may be the culprit, so i’m blind firing all “solutions” of the internet to similar problems at my install, before reinstalling and starting new :P