Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.os.linux.misc > #81494
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | John-Paul Stewart <jpstewart@personalprojects.net> |
| Newsgroups | comp.os.linux.misc |
| Subject | Re: [On-Topic] any favorite tutorials or other helps for high-DPI monitors? |
| Date | Thu, 22 Jan 2026 09:34:46 -0500 |
| Lines | 62 |
| Message-ID | <mteqs7Fdlg4U1@mid.individual.net> (permalink) |
| References | <slrn10kpej8.uhr.spamtrap42@one.localnet> <mr6appFevsgU1@mid.individual.net> <slrn10n2m8h.smo.spamtrap42@one.localnet> <10kst11$2su5b$2@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net 5t4nnQJDjhvCu2okSaPzww3hYRdxlhj2bp8hE4VnOKmqEomHM7 |
| Cancel-Lock | sha1:yiPfUViD4zlMNTypbg4CrB8f1+c= sha256:kwMYNFD1ZCBUiQgsUNCX5ox+FMLMzSvt9c+4n97hHI4= |
| User-Agent | Mozilla Thunderbird |
| Content-Language | en-CA |
| In-Reply-To | <10kst11$2su5b$2@dont-email.me> |
| Xref | csiph.com comp.os.linux.misc:81494 |
Show key headers only | View raw
On 2026-01-22 5:09 a.m., Nuno Silva wrote: > On 2026-01-21, Robert Riches wrote: > >> On 2025-12-26, John-Paul Stewart <jpstewart@personalprojects.net> wrote: >>> On 2025-12-24 11:15 p.m., Robert Riches wrote: >>>> >>>> Does anyone have favorite tutorials or other helps for dealing >>>> with a high-DPI transition? >>>> >>>> I'm Running Devuan (currently Daedalus, hopefully soon Excalibur) >>>> using plain X and fvwm2, no DE as such with 1920x1200 monitors. >>>> Just purchased a round of 4k monitors, so I'll be needing to >>>> adjust xterm fonts, web browser issues, other GUI application >>>> issues, etc. >>> >>> It's been a couple years since made a similar switch. But as far as I >>> recall, there's not much to do other than configuring X. I had to >>> manually specify the monitors' physical size (in millimetres) in my >>> xorg.conf so that X could calculate the correct DPI. Then everything >>> that's measured in points just kind of fell into place. (E.g., there >>> was nothing to be done for LibreOffice, etc.) >>> >>> You'll need to switch your window manager to a high-DPI theme (easy with >>> my choice, xfwm4) since that's all laid out in pixels and you'll have >>> tiny icons and title bars if you don't change. >>> >>> There were very few apps that required any tweaking once X and the >>> window manager were correctly configured. The venerable 'gv' is the >>> only one I can think of that required its own DPI setting (in >>> ~/.Xresources) rather than using X's own. >>> >>>> For web browser issues, I anticipate a lot of fun with websites >>>> and web apps that use (n)px directives for some of their margins >>>> and spacing. If the browser interprets those at face value, >>>> mixed with other directives in units of text elements and such, >>>> things could end up looking somewhat different from how the >>>> developers intended. >>> That's actually not an issue. HTML/CSS "px" are NOT device pixels but >>> units of 1/96 inches.[1] In other words, HTML/CSS "px" are standardized >>> at 96 DPI regardless of actual screen resolution. So if something >>> specifies 24px it actually means 1/4 inch. On my 4K displays that ends >>> up being more like 40 device pixels. So websites will still work more >>> or less as expected. >>> >>> [1] https://www.w3schools.com/css/css_units.asp >> >> For anyone finding this thread in the future, there's another >> trick for Firefox. In about:config, set >> >> layout.css.devPixelsPerPx >> >> to a value greater than 1. For a 27" 4K monitor, the monitor's >> device DPI is 163, and a value of 1.6 makes the Firefox UI >> elements (menu bar, dialogs, etc.) a reasonable size. YMMV on >> the value for your situation. > > IIRC there was a value that would make it get the resolution from the > platform. Yes. On my system layout.css.devPixelsPerPx is set to -1.0 which means Firefox will get the value from the system and everything works as expected. (I'm also using a 27" 4K monitor at 163 DPI like the previous poster.)
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar
Re: [On-Topic] any favorite tutorials or other helps for high-DPI monitors? Robert Riches <spamtrap42@jacob21819.net> - 2026-01-21 22:54 +0000
Re: [On-Topic] any favorite tutorials or other helps for high-DPI monitors? Nuno Silva <nunojsilva@invalid.invalid> - 2026-01-22 10:09 +0000
Re: [On-Topic] any favorite tutorials or other helps for high-DPI monitors? John-Paul Stewart <jpstewart@personalprojects.net> - 2026-01-22 09:34 -0500
Re: [On-Topic] any favorite tutorials or other helps for high-DPI monitors? Robert Riches <spamtrap42@jacob21819.net> - 2026-01-23 04:23 +0000
csiph-web