fastfetch: [BUG] Wrong display resolution and size when using an external monitor
General description of bug:
- What happened:
While using an external monitor in duplication mode, the display resolutions and sizes reported by Fastfetch do not match the actual resolutions and sizes of the displays (both for the built-in and the external displays).
In my example, Fastfetch should report: Built-in: 3456x2234 (16") External: 1920x1080 (32")
When the built-in screen is the target, Fastfetch incorrectly reports the external display as:
Resolution: 3456x2234 (incorrect, its max resolution is 1080p)
Size: 57" (incorrect, its max size is 32")
When the external display is the target, Fastfetch reports the built-in screen as:
Scaled Resolution: 1920x1080 (incorrect, this is the scaled resolution, not the actual resolution)
Size: 8" (incorrect)
The issue doesn’t occur when the external display is set as “extended display”
- What should happen: In my opinion, Fastfetch should report the actual resolutions and sizes. Then, separately, the scaled resolutions
- Fastfetch version used: 2.30.1
- Did it work in an older version: No
- Where did you get the binary: from the GitHub release page
- Does this issue still occur in the latest dev build? Yes
Often helpful information:
Output of fastfetch -c ci.jsonc --format json: I didn’t include the output for the three different scenarios to avoid creating a wall of text, but I can provide it if necessary.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 29 (17 by maintainers)
Commits related to this issue
- Display: print preferred resolution & refresh rate in custom format Fix #1406 — committed to Mu-L/fastfetch by CarterLi 2 years ago
- Display: don't report screen size when display is mirrored Fix #1406 — committed to fastfetch-cli/fastfetch by CarterLi 2 years ago
- Display: change physical size detection to use basic display parameters Some monitor report invalid data in DTD. Ref: #1406 — committed to fastfetch-cli/fastfetch by CarterLi 2 years ago
{preferred-width}and{preferred-height}was added to partially resolve your requirement. Preferred resolution is the display mode that OS chooses by default ( usually the maximum resolution supported by your setup ). You should check it ( and--format jsonof course ).