helloSystem / hello

Desktop system for creators with a focus on simplicity, elegance, and usability. Based on FreeBSD. Less, but better!
2.31k stars 57 forks source link

Improve HiDPI support #78

Open probonopd opened 3 years ago

probonopd commented 3 years ago

Added very basic HiDPI support in https://github.com/helloSystem/ISO/commit/0505c527dce2588979874053ad968ab8c6e909a0.

Issues:

image

probonopd commented 3 years ago

Possibly we can make use of https://github.com/linuxhw/EDID

probonopd commented 3 years ago

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

so it's garbage.

probonopd commented 3 years ago

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.

probonopd commented 3 years ago

For now, consider everything with 1440 and more vertical resolution "HiDPI" https://github.com/helloSystem/ISO/commit/dea7f532becadd40c8d965f08084f4ddf85634c6