Bug 27261

Summary: Request: CONFIG_DRM_LOAD_EDID_FIRMWARE enabled in kernels, unable to use or set custom edid for laptop screen
Product: Mageia Reporter: Sabungayam 8 <Sabungayam8>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: doktor5000, ouaurelien, pterjan
Version: CauldronKeywords: Triaged
Target Milestone: Mageia 8   
Hardware: All   
OS: Linux   
Whiteboard: MGA7TOO
Source RPM: kernel-desktop-5.7.19-3.mga7.src.rpm CVE:
Status comment:

Description Sabungayam 8 2020-09-08 07:58:37 CEST
Description of problem: CONFIG_DRM_LOAD_EDID_FIRMWARE is not enabled in the kernel. Cannot set/use custom edid. 

I have gotten in the last week new hardware. This unit is: GPD Win Max

http://gpd.hk/gpdwinmax

Mostly an all Intel Computer. It is described as being an Ultraportable. It is 8 inches. The screen size is 800x1280, uncommon. It is apparently a mobile screen.

It defaults to portrait mode like a mobile device. The screen is rotated to the left compared to standard horizontal landscape mode. The problem with fixing this is that "The EDID information identifying the display isn't in ACPI". 

This is a quote taken from the solution I found for this screen online. (The actual screen size is not available to the system. It defaults to 1024x768 which creates a lot of distortion. In addition to having incorrect refresh rates.) I can only select 800x600 as an option in X, Xfce or Gnome. 

Plasma is a lost cause, xorg, Wayland some success. 

xrandr -o right results in black screens you cannot recover. I cannot anyway. 800x600 can be rotated and you get 2 split screens and still a refresh rate issue.

Nothing cane done it seem with frame buffer as well.

https://www.reddit.com/r/gpdwin/comments/ik3dje/gpd_win_max_display_fix_in_linux/

With a senior member's aid in the forum, after I followed the steps to set the custom edid using drm_kms_helper.edid_firmware, it didn't work. Because this is not available in current kernel. I installed Mageia 8/Cauldron. I have Mageia on all my machines, including this one at work. 7.1 & 8 Cauldron. 

Humbly request please in release of Mageia 8 and future releases this be included in the kernel.

according to the link this is the only way to 'deal' with this screen because all other methods don't work because of the lack of edid in acpi.


Sorry if this was the wrong place to post but this isn't a package request and seems like some system administration issue. 


Version-Release number of selected component (if applicable):


How reproducible: 
Consistently reproducible

Both Mageia 7.1 & Mageia 8/Cauldron


Steps to Reproduce:
1. zgrep -i edid /proc/config.gz
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
# CONFIG_FIRMWARE_EDID is not set

2. observe output... :)
3.
Aurelien Oudelet 2020-09-08 15:56:09 CEST

Version: unspecified => 7
Component: Others => RPM Packages
Product: Infrastructure => Mageia
Target Milestone: --- => Mageia 8
Assignee: sysadmin-bugs => bugsquad

Comment 1 Aurelien Oudelet 2020-09-08 16:02:02 CEST
Hi, thanks for reporting this bug.

Assigning correctly.
Since this is a request for enabling a new option in our Kernel flavours, this must be tested and validated by our volunteer packagers.
I can't provide a roadmap to this request.

Assigned to the package maintainer.
(Packagers: Please set the status to 'assigned' if you are working on it)

Version: 7 => Cauldron
Whiteboard: (none) => MGA7TOO
Source RPM: (none) => kernel-desktop-5.7.19-1.mga7.src.rpm
Assignee: bugsquad => kernel
Keywords: (none) => Triaged

Aurelien Oudelet 2020-09-08 16:02:21 CEST

CC: sysadmin-bugs => (none)

Comment 2 Pascal Terjan 2020-09-08 16:06:25 CEST
That seems useful.

It is already enabled on arm and arm64 but not on i386 and x86_64.

$ grep CONFIG_DRM_LOAD_EDID_FIRMWARE SOURCES/defconfig-*
SOURCES/defconfig-arm64-desktop:CONFIG_DRM_LOAD_EDID_FIRMWARE=y
SOURCES/defconfig-arm64-server:CONFIG_DRM_LOAD_EDID_FIRMWARE=y
SOURCES/defconfig-arm-desktop:CONFIG_DRM_LOAD_EDID_FIRMWARE=y
SOURCES/defconfig-i386-desktop:# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
SOURCES/defconfig-i386-desktop586:# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
SOURCES/defconfig-i386-server:# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
SOURCES/defconfig-x86_64-desktop:# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
SOURCES/defconfig-x86_64-server:# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set

CC: (none) => pterjan

Florian Hubold 2020-09-19 20:48:37 CEST

CC: (none) => doktor5000

Comment 3 Aurelien Oudelet 2020-11-22 17:05:41 CET
* sam. 12 sept. 2020 14:00:00 ghibo <ghibo> 5.8.9-1.mga8        
  + Revision: 1625294
  - Update to release 5.8.9
  - Enable CONFIG_DRM_LOAD_EDID_FIRMWARE for x86_64 and i386 (fix for bug #27261)

Fixed in Cauldron.

Not sure when ready for Mageia 7.

CC: (none) => ouaurelien

Aurelien Oudelet 2020-11-22 17:06:08 CET

Source RPM: kernel-desktop-5.7.19-1.mga7.src.rpm => kernel-desktop-5.7.19-3.mga7.src.rpm

Comment 4 Thomas Backlund 2020-11-28 12:10:54 CET
it's also coming to mga7 with

5.9.11-3.mga7 (or newer)
Comment 5 Thomas Backlund 2021-02-14 22:26:12 CET
all done ages ago

Resolution: (none) => FIXED
Status: NEW => RESOLVED