elementary / switchboard-plug-display

Switchboard Displays Plug
https://elementary.io
GNU General Public License v3.0
14 stars 18 forks source link

Resolution reported incorrectly #338

Closed guythomson closed 1 year ago

guythomson commented 1 year ago

What Happened?

[I think the LG UltraGear 32GP850-B has a quirk in its EDID - it reports its max supported resolution as 3840 2160 resolution despite it actually being a 2560 1440 panel]

On other OSes, they normally come up in 4k with this monitor doing a shoddy job of downscaling. Elementary OS 7 seems to get it right, coming up in 2560 1440, however the Display Settings screen reports it as 3840 2160 at 60Hz.

If I switch to the 2k resolution, nothing happens to the screen but I get the is it ok prompt. Then I can switch to 4k at 60 Hz properly this time, the screen goes black and comes back in all its tiny downscaled glory. Once I'm there, I can successfully switch back to 2560 * 1440 at 144Hz (screen shot of settings attached).

Screenshot from 2023-02-01 16 47 40

However, when I close and reopen display settings, the screen is showing that my monitor is running at 3840 * 2160 at 60Hz again.

Screenshot from 2023-02-01 16 48 41

Steps to Reproduce

Open display settings

Expected Behavior

The resolution and refresh rate should be correct

OS Version

Elementary OS 7.0 (Horus)

Software Version

Latest release with all current updates

Log Output

No response

Hardware Info:

Monitor: LG UltraGear 32GP850-B CPU: i5-10210U iGPU: UHD 620

vjr commented 1 year ago

@guythomson Are you able to try this potential fix here? https://github.com/elementary/switchboard-plug-display/pull/337

guythomson commented 1 year ago

I've checked it out and installed it - it's better but it doesn't fix the underlying problem.

Screenshot from 2023-02-01 16 47 40

vjr commented 1 year ago

OK let me see if I can update the PR over the weekend to better handle resolution changes.

guythomson commented 1 year ago

OK let me see if I can update the PR over the weekend to better handle resolution changes.

Thanks!

vjr commented 1 year ago

@guythomson could you try the latest code from https://github.com/elementary/switchboard-plug-display/pull/337 and let us know how it works for you now?

I have a 4k TV which reports an additional larger resolution 4096x2160 and I believe I have been able to reproduce the issues you described and my latest commit (which works better for me) should improve things for you too.

guythomson commented 1 year ago

That's perfect - using current head of origin/prefer-native-aspect worked like a charm. Great job, thank you @vjr!

vjr commented 1 year ago

Thanks @guythomson for re testing and reporting back, appreciated.