Skip to content

BUG: No GUI display on 60 Hz monitors #12

@feeRnt

Description

@feeRnt

-- System Information: CUH-1216 Belize B0(0x20200)
-- Firmware: 9.00
-- Exploit: PSFree + Lapse -> Goldhen -> Ps3itaTeam Linux Loader

-- OS: Arch Linux
-- Desktop Environment: xfce4
-- Display Manager: lightdm

-- Affected branch: ps4-linux-6.15.y

Currently due to the 1080p - 120 Hz commit, after loading into a display manager from the kernel / initramfs stage, it leads to a grey or blackscreen on my 60Hz Samsung monitor.
An HDMI unplug+replug is not enough to fix the problem, as the display then outputs:

Not Optimum Mode
Recommended Mode 1920x1080 60Hz

Output on a TTY works however, and the other fix option is to have a xorg.conf file in /usr/share/X11/xorg.conf.d/ with an appropriate monitor section specifying the refresh rate and other display configurations.

Reverting the aforementioned commit fixes the issue:
feeRnt@ed87e39

A potential fix is to have a "DRM_MODE_TYPE_PREFERRED" flag type in the 1080p mode, which might be chosen by the display manager at runtime..
Higher or non-standard modes then maybe selected from userspace using xrandr or other means.

--- a/drivers/gpu/drm/amd/amdgpu/ps4_bridge.c
+++ b/drivers/gpu/drm/amd/amdgpu/ps4_bridge.c
@@ -688,7 +688,7 @@
 };
 /* 16 - 1920x1080@60Hz */
 static const struct drm_display_mode mode_1080p = {
-	DRM_MODE("1920x1080", DRM_MODE_TYPE_DRIVER, 148500, 1920, 2008,
+	DRM_MODE("1920x1080", DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, 148500, 1920, 2008,
 		 2052, 2200, 0, 1080, 1084, 1089, 1125, 0,
 		 DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC),
 	.picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9

But I have not tested this yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions