Open probonopd opened 3 years ago
Possibly we can make use of https://github.com/linuxhw/EDID
How can we find out reliably whether we are running on a HiDPI screen?
grep -r "DPI set to" /var/log/Xorg.0.log | tail -n 1
gives
DPI set to (96, 96)
for Apple Retina DisplayDPI set to (101, 101)
for FullHD screenso it's garbage.
https://unix.stackexchange.com/questions/75344/how-does-x-server-calculate-dpi
Xorg defaults to 96x96 regardless of monitor resolution. I think this is because programs supply images meant for this standard dpi. It's better to be a little off than to create artifacts by scaling images all the time. My primary monitor's actual DPI is 93.8. However, setting custom DPI is useful for large displays such as large HDTVs whose DPI are much lower than 96.
For now, consider everything with 1440 and more vertical resolution "HiDPI" https://github.com/helloSystem/ISO/commit/dea7f532becadd40c8d965f08084f4ddf85634c6
Added very basic HiDPI support in https://github.com/helloSystem/ISO/commit/0505c527dce2588979874053ad968ab8c6e909a0.
Issues: