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

Wrong screen resolution reported when display scaling is not at 100% #76

Open
dejvizelo opened this issue Apr 14, 2021 · 9 comments · May be fixed by #131 or #156
Open

Wrong screen resolution reported when display scaling is not at 100% #76

dejvizelo opened this issue Apr 14, 2021 · 9 comments · May be fixed by #131 or #156

Comments

@dejvizelo
Copy link

My laptop has a 1920x1080 display and it uses 125% display scaling. Winfetch shows the resolution as 1535x864. However it reports the correct resolution when scaling is set to 100%.

image

image

@rashil2000
Copy link
Member

We are reporting the actual workable screen area, with scaling adjusted. We can shift to reporting the actual resolution, but it's slightly more difficult if you have multiple screens (because of multiple WMI queries), and that would also make it quite slower. You'll lose out on any information about scaling too.

@dejvizelo
Copy link
Author

I see. Thanks for the answer. As a suggestion, maybe in the future it can be implemented in a way that gives the user the freedom of choice between the two approaches (let this comment serve as a feature request I guess).

@ferdinandk55
Copy link

I fixed it by using

"$($(Get-CimInstance -ClassName Win32_VideoController).CurrentHorizontalResolution) x$($(Get-CimInstance -ClassName Win32_VideoController).CurrentVerticalResolution)"

instead of Monitor.Bounds.Size

image

Top is with normal, bottom with change.

@HO-COOH
Copy link
Contributor

HO-COOH commented Nov 10, 2021

@ferdinandk55 This does not work for mulitiple monitor.

@baraa272
Copy link

i still have this issue too

@TheNewJavaman
Copy link

I also have this issue (side note: GitHub needs issue voting). Screenshot in case it helps:
image
The first screen is 2560x1440 at 150% scaling.

@Carterpersall Carterpersall linked a pull request Sep 20, 2022 that will close this issue
@BobbyWibowo
Copy link

Hi there, is there no plan to merge the relevant PRs yet?

@jomaskm
Copy link

jomaskm commented Oct 12, 2023

Came here to post about this. Would be nice to have the option to choose if winfetch should show actual set resolution or "effective" resolution when using scaling. Have it set to 125% myself.

@rashil2000
Copy link
Member

Came here to post about this. Would be nice to have the option to choose if winfetch should show actual set resolution or "effective" resolution when using scaling. Have it set to 125% myself.

Given how regressive (performance-wise) #131 is, this might actually be a better idea. Would you like to work on this?

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