Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 25, 2022

Conversation

wfeldt
Copy link
Member

@wfeldt wfeldt commented May 24, 2022

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.

Copy link

@joseivanlopez joseivanlopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Great feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants