openSUSE / linuxrc

Installation Setup
GNU General Public License v3.0
17 stars 33 forks source link

add EDID boot option to specify arbitrary display sizes (bsc#1199020) #297

Closed wfeldt closed 2 years ago

wfeldt commented 2 years ago

Task

When dealing with HiDPI setups it's hard to reproduce issues as you normally don't have exactly the same monitor as the reporter.

Solution

This patch adds the edid boot option allowing you to define the display size. This works by constructing an EDID firmware record that is subsequently read by the drm kernel module.

Examples

# pretend you have a 4k display (default to 96 dpi)
edid=3840x2160

# pretend you have a 4k display with 150 dpi
edid=3840x2160,150

# pretend you have a 4k display with a size of 697 mm x 392 mm
edid=3840x2160,697x392

Notes

  1. This is mainly intended as debug option to be used in virtual environments. Your real monitor may or may not like the EDID data created here.
  2. The display width and height must be below 4096 - so no 8k display specs possible.
  3. Obviously, this does not work if you don't use the kernel drm interface to access your video hardware.