Skip to content

HiDPI not working with 27" 4k display (change dpi threshold) #236

@jolonf

Description

@jolonf

HiDPI is not enabled on 27" 4k display.

HiDPI logic is here:

if [ "${dpi}" -gt 200 ] && [ ! -z "${vertical_cm}" ] && [ ! -z "${vertical_pixels}" ] ; then

HiDPI is only set if dpi > 200. My display has a dpi of 161 and therefore HiDPI is not turned on.

Without HiDPI everything is too small to read. Note that macOS automatically turns on HiDPI for any 4k display.

It's worth noting that traditionally displays were 72 dpi, so 2x would be 144 dpi. I changed the value from 200 to 140 and HiDPI becomes enabled for my display.

For comparison a 27" 2560x1440 QHD display has a dpi of 109. This would be the next smaller resolution for a 27" display (below 4k).

A threshold dpi of 160 could be fine although it may depend on what size various monitors report. My LG reports 34cm vertical size, however it seems to measure 33.5cm. So a value of around 140 - 150 may be safer.

Just another thought on the dpi issue, not only should HiDPI depend on pixel density but it should also depend on the distance from the screen. For example a 55" 4k TV has very low pixel density, but you might be sitting 10 times farther away from the screen, in which case the pixel density increases. Ideally there should be a user setting for HiDPI. But I think the setting should err towards HiDPI as that is the trend of displays.

Additional issue: cursor is not enlarged 2x nor are the coloured buttons in the window title bars.

ISO version r0.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions