Live data from Hacker News

What Is My Screen Resolution

whatismyscreenresolution.org

21–29 of 29 posts

Re: What Is My Screen Resolution

#22
post #19

I’m on an iPhone 14 and it’s telling me my screen resolution is 390 x 844. I very much doubt that.

In a 9" tablet it says the screen diagonal is 6.2". That boy ain't right.

Looking at some of the other comments, I note that my Firefox font scaling is 130% and that's apparently part of the problem.

Re: What Is My Screen Resolution

#24

Unfortunately, a lot of this is hot garbage. ① Its display dimension and screen diagonal figures are just a figment, due to a fundamental error in understanding of CSS units. It works by measuring how many pixels a div that’s been given style `width:1em;height:1em` takes—trouble is, that has always given you and will always give you the answer 96, because CSS units don’t correspond to physical units. (Firefox tried d…

I tried the wayland fractional scaling in firefox and it did not work for me. It just looks blurry along with the misplaced menus.

Re: What Is My Screen Resolution

#26

Motorola Edge 20: gets the device resolution right (1018x2400) but somehow belives the screen resolution is only 432x960. I guess its using an incorrect dpi metric or something, but its not clear how or why.

You might be confusing PPI vs DPI.

All smartphones these days have different PPI than DPI.

https://graphicdesign.stackexchange.com/questions/6080/what-...

Re: What Is My Screen Resolution

#27

Unfortunately, a lot of this is hot garbage. ① Its display dimension and screen diagonal figures are just a figment, due to a fundamental error in understanding of CSS units. It works by measuring how many pixels a div that’s been given style `width:1em;height:1em` takes—trouble is, that has always given you and will always give you the answer 96, because CSS units don’t correspond to physical units. (Firefox tried d…

I tried the wayland fractional scaling in firefox and it did not work for me. It just looks blurry along with the misplaced menus.

I’m trying it now: text rendering is glorious, but there are still size and position issues in things like menus which commonly render them unusable (menus failing to open so you can’t even use them by keyboard). It’s reporting my screen size as 2275×1280, which is 4⁄3 of the expected 1707×960 (given dPR 1.5), which is weird and wonky.

All of a sudden I’m realising how dreadfully fuzzy in places the font rendering in Alacritty is. I knew it wasn’t perfect, but I’m not sure I can bear it any more. Oops.

Re: What Is My Screen Resolution

#28

Motorola Edge 20: gets the device resolution right (1018x2400) but somehow belives the screen resolution is only 432x960. I guess its using an incorrect dpi metric or something, but its not clear how or why.

You might be confusing PPI vs DPI. All smartphones these days have different PPI than DPI. https://graphicdesign.stackexchange.com/questions/6080/what-...

Please don’t use the terms PPI and DPI and try to distinguish between them: it’s subtle at best and highly contested; in general computing, there is no difference, the two terms are used completely interchangeably. Only in a few niches is any distinction meaningfully drawn. (And the question you’re citing was largely talking about a different field, and half of its answers are mostly nonsense too.)

The distinction you have is between what I’ll start by calling logical pixels and physical pixels. “Screen resolution” here is logical pixels, and “device resolution” physical pixels.

Web specs call these CSS pixels (px) and device pixels (calculable in JS by dividing a px quantity by `devicePixelRatio`—which is incidentally subject to change within a page’s lifecycle, due to things like zooming in or out or moving to a different monitor), using a baseline of (simplifying quite a bit, actually) 96 dpi.

Android calls the logical pixels density-independent pixels (dp), using a baseline of 160 dpi. (I think they’re the outlier in the size of their dp unit? Not sure how Apple works.)

Microsoft calls the logical pixels device-independent pixels, using a baseline of 96 dpi.

Post reply on HN