News for hackers. Stuff that matters.
Re:Framework Laptop with Ubuntu Review by teekert on Wednesday January 05, 2022 @04:42AM (#29807018)
The author does not address the screen resolution (and just says the screen is nice) but I'm hearing that the screen res is a bit to high to work with without scaling and a tad to low to do 2x scaling. And people don't like fractional scaling, at least in Gnome (it seems to look weird). Is this still an issue?

I tend to prefer 1080p for this reason on 12-14" screens. My Thinkpad X13 gen 2 has a 13.3", 1920x1200 screen, windows sets it to 150%, which seems ok, although Ubuntu works well for me without scaling still. The Frame work laptop has an even higher res (2256x1504). I do hear people scaling the fonts and that seems to be a nice solution... I remember from back in the old days that I never really liked the look of this.

What do people think of this? I'm hoping that in the future you can choose the screen (and easily get replacements as well, I hear they are working on that).

Edit: I hope these issues are being addressed by established DE's, I'm assuming they won't be an issue on Canonical's (hypothetical ;)) Flutter based DE that's (obviously ;)) coming and on System76's Rust based new DE for Pop OS [0].

[0]: https://www.theregister.com/2021/11/08/system76_developing_n...

Re:Framework Laptop with Ubuntu Review by gdwatson on Wednesday January 05, 2022 @05:07AM (#29807209)
I run Mint with 2x scaling on mine and I like it a lot. The screen's not quite as sharp as the one on the old XPS it replaced, but it's still quite nice.

I run a middling-width monospace font, and I can't quite fit two 80-column windows side by side at 2x without reducing the font size, but if you want that then you want smaller text anyway. (If you run a narrow font it shouldn't be an issue.) Other UI elements are not unreasonably large in my opinion, but YMMV.

Re:Framework Laptop with Ubuntu Review by 3np on Wednesday January 05, 2022 @06:33AM (#29807773)
I like my fonts on the quite small side; ~14" @ 2256x1504 sounds ideal to me.

That aside, I've been playing around with fractional scaling in Wayland on everything from a 6" Pinephone to 32"@4k in various configurations and it's been mostly painless. Mostly terminal, web browsing, Steam games (latter not on the Pinephone obv). I wouldn't be surprised if there can be issues with xwayland that I'm yet to experience.

Re:Framework Laptop with Ubuntu Review by carlob on Wednesday January 05, 2022 @07:42AM (#29808235)
>I've been playing around with fractional scaling in Wayland

Even with Intel graphics? I have stumbled on a number of showstopping bugs and moved back to X, which is also pretty horrible...

Re:Framework Laptop with Ubuntu Review by 3np on Wednesday January 05, 2022 @08:31AM (#29808629)
Oh, actually not yet. That's surprising as in general I think Intel graphics tend to have the best compatibility out there. Currently main workstation on amdgpu on a 5xxxG - I'm still not sure if I've gotten the hardware transcoding etc working properly but that's all unrelated to fractional scaling, I assume.
Re:Framework Laptop with Ubuntu Review by keawade on Wednesday January 05, 2022 @06:23AM (#29807695)
I’ve been using Fedora 35 with Wayland and fractional scaling set to 150% on my Framework laptop and it works great for me.
Re:Framework Laptop with Ubuntu Review by addicted on Wednesday January 05, 2022 @11:15AM (#29810831)
As an aside, I’m increasingly convinced that Fedora is probably the best Linux distro around right now for both enthusiasts and beginners.

Great stability. Close to the edge of progress. And they focus on delivering real unique value on top of what others have created as opposed to reskinning and hacking Gnome.

I’ve never used Fedora but I’m keen on moving over my personal desktop the next time I have a couple of days to mess around with it.

Re:Framework Laptop with Ubuntu Review by nikodunk on Saturday January 08, 2022 @11:55PM (#29860286)
Agreed. FWIW fractional scaling on gnome works great for me for developing with VSCode. I’m also at 150%.
Re:Framework Laptop with Ubuntu Review by 91edec on Wednesday January 05, 2022 @05:36AM (#29807409)
I don't understand why 1440p hasn't become the standard on laptops. Its always 1080p or 4K which is useless on such a small display.
Re:Framework Laptop with Ubuntu Review by kllrnohj on Wednesday January 05, 2022 @10:44AM (#29810351)
1440p is hugely common on gaming laptops. Alienware M15, Razer Blade 14/15, Lenovo Legion 5, etc... all offer displays in the QHD or WQXGA range.

The reason you typically see 1080p or 4k on ultrabooks is because 1080p is how you get the low entry price, and 4k is what sounds better on marketing and looks the best for text-related things (4k is not at all useless - the sharpness it provides to text is noticeable). The balance that QHD provides isn't very desirable in that market usually, although there are exceptions like the Framework laptop or the Surface Laptop 4. Usually those exceptions then also come with more unique aspect ratio displays like 3:2, though, so they aren't exactly 1440p/QHD. But they are in that density.

Re:Framework Laptop with Ubuntu Review by Kletiomdm on Wednesday January 05, 2022 @05:58AM (#29807540)
It's not useless.

Resolution is independent of size. Just because it doesn't work perfectly on Linux high DPI is much nicer and easier to read.

The decapsulate on of resolution and size is btw already quite old. Games have this as well were they dynamically change the internal resolution but not the screen resolution.

And you might not care about it but: - text is much smoother - images from DSLR have higher resolution than 4k for ages and you can see the difference

The only arguments against 4k on smaller screens should be power consumption and not scaling issues. But for this we should focus on dynamic refrehsrates and similar power saving mechanism and again NOT complaining about 4k.

MacOS is doing this flawless for years. Windows can do it and under Linux it starts to be usable based on comments of this article.

Re:Framework Laptop with Ubuntu Review by altcognito on Wednesday January 05, 2022 @07:54AM (#29808319)
MacOS doesn't scale. You can change font sizes, you can change resolution, but scaling via DPI isn't present.

https://apple.stackexchange.com/questions/193723/scaling-all...

If somebody understands the situation better on MacOS I'd be interested, but based on my experience, Windows is the only OS that gets this as close as possible to right. It's a single setting that affects all applications and I can set monitors independently and it will scale on the fly (even if it does look a little weird as you drag an app across and it dynamically shifts)

Every now and then I'll come across a app that doesn't quite deal with high DPI scaling correctly, but it is the exception to the rule.

Linux also works pretty well, but as with everything Linux, it's almost always "it depends and well, not quite" (not usually multi-monitor aware, lots of per app settings)

Re:Framework Laptop with Ubuntu Review by chrisseaton on Wednesday January 05, 2022 @08:39AM (#29808712)
I'm not really sure what you think 'scaling' means or what you think this Stack Exchange answer means, but macOS (not 'MacOS') does allow scaling the UI of both integral and external monitors, and independently.

It renders a high-resolution image to a buffer, and then scales that when rendering to the actual screen buffer. The buffer image is at least as large as the actual screen buffer.

You can see for yourself that it isn't changing the hardware resolution of external monitors when scaling by taking a look at the actual resolution on your monitors OSD if it has done. It'll always be the native resolution.

Re:Framework Laptop with Ubuntu Review by lostmsu on Wednesday January 05, 2022 @02:49PM (#29813964)
It does not do 1.5 or 1.33 or 1.25 scaling, or does it blurred. Windows can handle any ratio.
Re:Framework Laptop with Ubuntu Review by chrisseaton on Wednesday January 05, 2022 @03:24PM (#29814444)
Again I don't really know what you think you mean by 'blurred'? How do you think this is working?

If I tried all the possible scalings for my external monitor, the grey line around each window, to give a specific example of, is always a crisp physical one-pixel wide.

macOS creates a buffer to render to that is the same size as the physical output you're choosing to use, and is able to render with pixel precision in that buffer.

Re:Framework Laptop with Ubuntu Review by lostmsu on Wednesday January 05, 2022 @03:52PM (#29814785)
Would be easier if you said what scalings have you tried and what is your external monitor native resolution.
Re:Framework Laptop with Ubuntu Review by chrisseaton on Wednesday January 05, 2022 @03:57PM (#29814842)
4k external monitor - here's HN at all the scalings https://imgur.com/a/QTrI6uJ. For example, look at the white box around the Y, that's always rendered precisely on hard physical pixel boundaries. It's one pixel for some scalings, then moves to two pixels for larger scalings. It's never a blur from a larger or smaller image that is then interpolated. It renders at the native resolution, knowing physical pixel boundaries, by the scaling of the render commands (the x and y to render at, before the render command runs) not an intermediate rendered image. (Remember to download the images so you aren't using browser interpolation to scale them.)
Re:Framework Laptop with Ubuntu Review by lostmsu on Wednesday January 05, 2022 @04:27PM (#29815181)
This looks pretty good. Though scaling in browsers has been mostly independent of corresponding OS features for quite a while. E.g. the issues mentioned above with Linux and fractional scaling do not affect browsers as much. The problem is usually with native UI elements, such as the settings app itself.

However, it is unclear to me what are the scaling ratios relative to the native resolution in your examples. In this article for Sierra you seem to be only able to pick integer factors: https://www.eizoglobal.com/support/compatibility/dpi_scaling...

Re:Framework Laptop with Ubuntu Review by chrisseaton on Wednesday January 05, 2022 @04:36PM (#29815308)
> In this article for Sierra you seem to be only able to pick integer factors

Maybe? But that's ancient history.

I don't know what the ratios are - the UI doesn't expose them.

Re:Framework Laptop with Ubuntu Review by lostmsu on Wednesday January 05, 2022 @05:35PM (#29816096)
What does it expose? In Sierra as you can see from the screenshot it simply shows scaled resolutions. So you can just divide native resolution by the scaled to get the factor.
Re:Framework Laptop with Ubuntu Review by chrisseaton on Wednesday January 05, 2022 @06:43PM (#29816923)
It looks like it treats them as 0.5 / 0.67 / 0.78 / 0.87 / 1.0 scaling (1080 / 1440 / 1692 / 1890 / 2160 for physical resolution of 2160).

But this is all a bit arbitrary - I think the macOS API deals with an abstract 'points' unit.

Re:Framework Laptop with Ubuntu Review by lostmsu on Thursday January 06, 2022 @12:31AM (#29819858)
Great to know. Might make me reconsider that M1 Mac Mini option.
Re:Framework Laptop with Ubuntu Review by dragonwriter on Wednesday January 05, 2022 @02:53PM (#29814023)
> It does not do 1.5 or 1.33 or 1.25 scaling, or does it blurred. Windows can handle any ratio.

Non-integer scaling (of a pixel source, vectors are different but not relevant here) either requires blending or crisp unequal-sizing artifacts.

Re:Framework Laptop with Ubuntu Review by lostmsu on Wednesday January 05, 2022 @03:30PM (#29814509)
In Mac OS, because that's how its scaling is designed. Windows does not have this problem, because it tells programs to render themselves at 1.33 or whatever and provides facilities to do it without pain in the ass. As the result scaling in Windows is painless with any displays at any resolutions. In fact, my main setup has two 1.25x DPI displays and an old 1x DPI display with zero blending or sizing artifacts excluding brief moments when you move a window from 1.25x display to 1x one until it lands.
Re:Framework Laptop with Ubuntu Review by vehemenz on Wednesday January 05, 2022 @11:30AM (#29811077)
What? MacOS does scale. MacOS was doing this correctly years before Windows!

First of all, DPI is not the metric we're interested in. That is a unit for print quality, and it has no relevance for an OS, for Photoshop, or anything we do on a screen. The operating system does not know how big your screen is. Inches nor dots are relevant; only pixels are. It would be more accurate to talk about the ratio of monitor pixels to apparent pixels. I guess Microsoft finally got the memo in Windows 11 (or was it 10?) and changed to percentages.

In MacOS, a 4K monitor set to 1920x1080 will still be 3840x2160, but it displays 4 pixels for every 1 apparent pixel. Everything scales correctly, except for legacy applications. The UI elements, text, etc. appear to be a sharper version of 1080p. In Windows land, this is the same thing as "200%." As far as I can tell, Windows does the same thing but uses scaling percentages instead of apparent resolution.

Re:Framework Laptop with Ubuntu Review by lostmsu on Wednesday January 05, 2022 @02:46PM (#29813926)
Your only problem with Windows appears to be that it named the scaling setting "DPI" until Windows 7 or so to handle scaling. But as the parent mentioned, Windows is definitely superior to MacOS, as it provides arbitrary scaling ratios, and renders text perfectly at any ratio.

To go deeper into nitpicking, DPI is not even that misleading, if you take "inch" in DPI to be equal to 72 points as used in font sizes. Then a 72pt font on the screen with DPI X will be rendered with height of X pixels.

Re:Framework Laptop with Ubuntu Review by int_19h on Wednesday January 05, 2022 @02:47PM (#29813942)
DPI is a valid metric for anything that the human eye sees. There's no difference in that regard between text printed on paper, and text displayed on the screen. The smaller the dots, the better it looks.

And yes, the OS does in fact know how big your screen is: https://en.wikipedia.org/wiki/Extended_Display_Identificatio...

Re:Framework Laptop with Ubuntu Review by Kletiomdm on Wednesday January 05, 2022 @07:56AM (#29808328)
Huh?

I'm not sure what you mean. My MacOS does the scaling and it looks good.

How is MacOS scaling different?

Re:Framework Laptop with Ubuntu Review by Joeri on Wednesday January 05, 2022 @08:09AM (#29808415)
The problem of 4k is efficiency. 1440p is already 2x at 14 inches, which at normal viewing distances is about as sharp as people can see. Going up to 4k does not really improve visual quality, but it dramatically increases the pixel count that must be rendered, which burns through a lot more power. 4k laptops have worse battery life and worse display performance than 1440p laptops, but they offer no upside for those downsides.

There is a reason macbooks, still the gold standard for hi dpi rendering, have never had 4k panels.

Re:Framework Laptop with Ubuntu Review by sneak on Wednesday January 05, 2022 @08:14AM (#29808469)
> Going up to 4k does not really improve visual quality

Speak for yourself. The 4k display in my XPS is my favorite output device I have ever owned. I wish my rMBP had that kind of pixel density.

Re:Framework Laptop with Ubuntu Review by Kletiomdm on Friday January 07, 2022 @07:59AM (#29838582)
Just be because apple does something doesn't mean they are right.

There have been plenty of counter examples.

Anyway, my smartphone has 1000x2000 resolution on a 6" display. The text looks perfect.

They can make very high resolution displays with very efficient energy consumption.

Feel free not to need it but my DSLR and my smartphone both take 4k and higher resolution pictures for years.

Yes I want such a display on my 14" laptop.

I do like the MacBook pro screen and it's much better than 1080p. True.

Re:Framework Laptop with Ubuntu Review by chrisseaton on Wednesday January 05, 2022 @08:36AM (#29808676)
> I don't understand why 1440p hasn't become the standard on laptops.

Because that's really low.

My 14 inch laptop is 1964 rows and I wouldn't really want anything lower than that.

Re:Framework Laptop with Ubuntu Review by 42jd on Wednesday January 05, 2022 @05:09AM (#29807228)
I’m not on Ubuntu but using Wayland on nixos. Fractional scaling does not look or work well at all in my experience. I decided on 1.0 scaling and pushed it all over to font sizing (around 1.5). This works pretty well for most apps but it is a little small sometimes. The biggest issue is having to manually scale up some apps that don’t keep my preferences.
Re:Framework Laptop with Ubuntu Review by monopoledance on Wednesday January 05, 2022 @06:31AM (#29807753)
Gnome's accessibility feature "larger text" works a bit better than font scaling IMEx. With font scaling often some alignment and spacing seems odd. And you can toggle "larger text" with one click, if you make the accessibility menu permanent.
Re:Framework Laptop with Ubuntu Review by NCFZ on Wednesday January 05, 2022 @03:30PM (#29814499)
This is what I do as well. I find it works better than fractional scaling.
Re:Framework Laptop with Ubuntu Review by flurdy on Wednesday January 05, 2022 @05:08AM (#29807219)
I've run Gnome+Wayland at 125% on a 32" 4k screen for over a year and noticed no issues. But that is just a sample size of 1.

But a 1080p screen would be a no for me. At 2256x1504 on 13.5" screen I think Framework laptop would probably be fine at 100% ie no scaling

Re:Framework Laptop with Ubuntu Review by oever on Wednesday January 05, 2022 @07:36AM (#29808201)
Isn't scaling from 3072x1728 to 3840x2160 (so 125%) very blurry? A one-pixel line at 3072x1728 would be spread over slight more than line pixel wide on 4k.

To get nice integer scaling one could render at 15360x8640 (16k) which is 5x3072x1728 and 4x3840x2160 but I doubt that's what Wayland is doing. No common graphics card could handle that.

The font hinting relies on the resolution too. By scaling the rendered pixmap 125% the fonts would look bad too. Rendering the fonts in a larger size at the native screen resolution should look better.

Re:Framework Laptop with Ubuntu Review by Karliss on Wednesday January 05, 2022 @09:41AM (#29809506)
Who said anything about scaling rendered pixmaps? Proper UI scaling is handled at the desktop and UI toolkit level, instead of brute force changing desktop resolution or scaling rendered windows. That's why it's not a simple problem and support varies not only based on operating system, but also UI libraries used by applications, their combination, application developers updating their UI libraries and using the new APIs. Whether the UI toolkit exposes it to application developer by having the graphic api operate at pixel independent units or having the developer manually calculate sizes based on the scaling factor or relative to something like default font size varies. Basic geometric shapes and text (assuming vector instead of bitmap fonts) can be rendered at any size and resolution. As for more photo like images downscaling them by fractional amount typically works quite well, so if they are big enough for integer 2x scaling they also work with 1.25 scale.
Re:Framework Laptop with Ubuntu Review by oever on Wednesday January 05, 2022 @11:28AM (#29811035)
Here is an explanation of fractional scaling of GNOME in Wayland which is what the parent is using at 125%:

https://discourse.gnome.org/t/how-fractional-scaling-works-i...

For scaling 125%, the client windows are rendered at 2x their size and sampled down. On the parent's system, a full-screen window would be rendered at 6144x3456 and scaled down to 3840x2160 (0.625%).

This gives a blurry result and is taxing on the graphics chip.

Qt apps and Firefox support scaling themselves which gives a much crisper result for fonts and line-art.

Re:Framework Laptop with Ubuntu Review by Karliss on Friday January 07, 2022 @05:50AM (#29837604)
Isn't macOS using the same approach? I remember it even having a warning at certain scale that it will be more computationally intensive. And blurriness from downscaling nearest bigger integer size is nowhere near as bad as blurriness from software which use xwayland and gets rendered at 1x scale and then upscaled.
Re:Framework Laptop with Ubuntu Review by int_19h on Wednesday January 05, 2022 @02:49PM (#29813967)
Is it really all that taxing? I mean, we're not talking about a 3D game here.
Re:Framework Laptop with Ubuntu Review by Gigachad on Wednesday January 05, 2022 @06:18AM (#29807665)
As soon as you open up a legacy X application it looks blurry. The main offender was Chrome/Electron but I think this has been fixed last year.
Re:Framework Laptop with Ubuntu Review by LawnGnome on Wednesday January 05, 2022 @01:47PM (#29813177)
The screen resolution is my least favourite aspect of the Framework, for sure. Not a deal breaker, but every now and then my eye catches a poorly aliased bit of text and gets sad.

I've basically resigned myself to running Sway in 1.5x scale mode, which means that things get rendered at 2x and scaled down. Sway does about as well as I think any desktop environment could be expected to, but it's never going to be the same as rendering at true screen resolution. Alas, running in 1x or 2x and using font settings to handle it breaks down the moment you connect to an external display that really is 1x or 2x.

That said, I love the rest of the laptop (well, maybe except the battery life), so my hope is that at some point we can buy a replacement screen at a more useful resolution, at which point I'll be first in line to buy and install it.

Re:Framework Laptop with Ubuntu Review by fsh on Wednesday January 05, 2022 @05:46AM (#29807468)
In my experience, fractional scaling in Gnome Wayland works at least as well as on Windows. I use 150% on my 4K 27" monitor and have experienced basically zero problems in the last few months.
Re:Framework Laptop with Ubuntu Review by vladvasiliu on Wednesday January 05, 2022 @05:20AM (#29807320)
> I do hear people scaling the fonts and that seems to be a nice solution... I remember from back in the old days that I never really liked the look of this.

I'm doing this, in particular on a 24" 4k screen. It's true that it may look a bit "weird", in that fonts are huge compared to other UI elements.

However, for me that's a win. I don't care to have huge buttons or what have you, I mostly use shortcuts. So I get nice, sharp fonts and also get to have smaller UI elements which leave more screen space for the text.

Re:Framework Laptop with Ubuntu Review by pja on Wednesday January 05, 2022 @06:23AM (#29807698)
Personally, I've found fractional scaling on Gnome makes the window furniture too large for my taste. I've settled on boosting the default font size in gnome-tweaks to 125% instead, which makes font rendering match the DPI of my monitor but leaves window bars / tool bars etc at a more sensible size.
Re:Framework Laptop with Ubuntu Review by Karliss on Wednesday January 05, 2022 @06:25AM (#29807708)
I am on gnome 41+wayland and quite satisfied with fractional scaling. That is with [email protected]+2560x1440@1X. Fractional scaling related issues don't seem to be more often than programs not supporting wayland and scaling at all (in which case those programs are slightly blurry but reasonable size). There are certain settings which need to be enabled, they might be enabled by default on some distros. I might not notice some of the issues due to bad scaling at 4k still being comparable to lower resolution screen, unless things break badly. Issues might be more obvious with ~2K at 1.25-1.5 scale. Things may be slightly simpler in single monitor setups without mixed scaling. How much of effort configuring stuff is acceptable depends on person and what kind of software they commonly use.

* Gnome the desktop -> org.gnome.mutter/experimental-features "scale-monitor-framebuffer". Only integer scales available without this. Following assume that this is enabled.

* gnome apps: work great out of the box

* QT apps: Qt5 requires QT_QPA_PLATFORM=wayland environment variable to force wayland backend. Enabled by default in Qt6. Used to be quite bad ~1-2 years ago, but is now usable.

* Firefox: MOZ_ENABLE_WAYLAND=1

* chromium and electron: --ozone-platform=wayland seems fine for chrome, but some electron apps went crazy when moving between windows with different scale. Maybe the electron app bundled an older chrome version. No issues (except less sharp text) when not enabling the experimental wayland backend.

Re:Framework Laptop with Ubuntu Review by cycomanic on Wednesday January 05, 2022 @07:43AM (#29808247)
I've been wondering about this for a while. Why do we need scale numbers and can't use dpi? Essentially if wayland (or desktops shells) would specify sizes in a "real world unit" changing the size of windows, text etc would just mean changing the dpi. In particular it would be trivial to have different size/resolution monitors display the elements at the same size. Considering if elemtents are vector graphics we don't even need fractional scaling for desktop elements.

Now we still would need to scale images etc, but that is much less an issue than fractional scaling text or lines etc.

Re:Framework Laptop with Ubuntu Review by mananaysiempre on Wednesday January 05, 2022 @08:21AM (#29808541)
The only program I’ve seen do it “properly” is Darktable, which has a dots-per-inch setting for things which have to be compatible with real-world linear measurements (WYSIWYG stuff for the most part), a dots-per-degree setting for things which depend on how far away you are sitting from your screen (UI element size), and a font size. I suspect the reason people don’t regularly do this is the same as the reason CSS no longer has pixels: it’s difficult to design (in the declarative CSS model) with more than one independent length unit.

(I just went to check my several-years-old impressions against Darktable’s almost-undocumented config file, and... it no longer seems to have these settings? I’m not sure.)

Unfortunately, the “UI scale” thing seems to be baked into Wayland nowadays; I have no idea how to get Evince to realize that an A4 sheet at 100% should be 210 cm wide whatever my screen resolution and “UI scale”.

Re:Framework Laptop with Ubuntu Review by zozbot234 on Wednesday January 05, 2022 @08:38AM (#29808700)
> it’s difficult to design (in the declarative CSS model) with more than one independent length unit.

Modern CSS is quite close to Turing complete, so an entirely constraint-driven design (which is what's needed when more than one unit is being chosen by the user) ought to be feasible. You need at least "real world units" for stuff like the minimum size of touch targets, and "angular units" (like CSS pixels) for the general scaling of widgets. Plus it would be nice to add a separate scaling factor for text, since users differ widely in what they find most readable. So that makes for three independent settings, in the general case.

Re:Framework Laptop with Ubuntu Review by mananaysiempre on Wednesday January 05, 2022 @09:12AM (#29809125)
> You need at least "real world units" for stuff like the minimum size of touch targets [...].

That touch targets need absolute lengths is a good point.

> So that makes for three independent settings, in the general case.

Yes, and you’ll notice that’s what Darktable does (or did) :) I’m not unsympathetic, just have never seen it done in a moderately complex situation.

> Modern CSS is quite close to Turing complete, so an entirely constraint-driven design (which is what's needed when more than one unit is being chosen by the user) ought to be feasible.

I suspect it’s not a question of theoretical expressive power so much as ergonomics: allowing easy description of (what people think about as) simple things. It probably doesn’t have to be precisely; if a full constraint-based / linear programming approach[1] is the way to go, I expect designers will adapt, it’s just that last I checked those could be quite tricky to use: small changes could lead to drastic rearrangements of the layout, and as soon as you try to add a couple of breakpoints the whole thing becomes NP-complete.

It’s like, say, LR(k) parsers. LR(k) parsers are nice, fast, and good at expressing our intuitions about ambiguity (unlike ordered choice). They are expressive enough for almost anything you might want to say. But nobody really wants to work with them, the failures are tricky and hard to predict, and they lack many things you want for modularity (say, closure under unions).

It seems to me that the situation with truly resolution-independent layouts is similar in this respect: we can technically do them, to some extent, but they are a pain, so nobody does. And it’s not so much a problem of finding the perfect language as a problem of figuring out what it is that we want to say that seems so simple in our heads.

[1] https://gss.github.io/guides/ccss

Re:Framework Laptop with Ubuntu Review by zozbot234 on Wednesday January 05, 2022 @09:17AM (#29809178)
> and as soon as you try to add a couple of breakpoints the whole thing becomes NP-complete.

Sure, that's a given with the constraint satisfaction approach but NP-complete problems work just fine when N is small enough.

Re:Framework Laptop with Ubuntu Review by kllrnohj on Wednesday January 05, 2022 @10:53AM (#29810479)
It's incredibly hard to change course if the UI toolkits weren't designed for it in the first place.

Android is still about the only OS with reliable density independence. It's also the only one where things like DPI were an initial part of the UI system, and not something bolted on later.

Windows has been trying to retrofit density independence for nearly a decade now, and it's still pretty hit or miss. Apple didn't bother trying at all, and has been more successful at pretending it works (so scale rendering by whole numbers only, then fractionally scale the resulting image to the actual display size). Web browsers mostly went the Apple route, but we all also regularly expect pinch/zoom scaling to fix any glaring issues anyway and just accept it's kinda janky. Linux... well, Linux is still struggling with the basics of putting stuff on screen (Wayland vs. X11). I wouldn't hold my breath for that ecosystem to get this UX refinement working well anytime soon. Especially not across the many UI widget systems, window managers with differing border decorations, DEs, etc...

Re:Framework Laptop with Ubuntu Review by int_19h on Wednesday January 05, 2022 @02:50PM (#29813981)
Windows has had the necessary bits for DPI independence since the 90s - it's why stuff like "dialog units" is a thing.

The problem, as usual, is getting the apps to actually use it.

Re:Framework Laptop with Ubuntu Review by kllrnohj on Wednesday January 05, 2022 @03:24PM (#29814446)
"dialog units" seems to be about the size of the system font, not about DPI independence. Things like WM_DPICHANGED seem to only really show up in Windows 8+, with some stuff like LOGPIXELSX showing up as "early" as Windows 2000 but doesn't look very complete.
Re:Framework Laptop with Ubuntu Review by int_19h on Wednesday January 05, 2022 @07:29PM (#29817397)
The size of the system font was basically a proxy for DPI. If you set scale to higher than 100% in, say, Win2K, it would also increase that size.

(This doesn't handle multi-monitor setups well, since font size would be the same for them all. But multiple monitors were not exactly common back then.)

WM_DPICHANGED is a late addition, yes, but it's only necessary for the apps to dynamically reflow if the user changes that setting. Before it showed up, you'd have to restart the app for it to register the new value - but that does not preclude DPI independence as such.

The real problem was that almost everything in Win32 outside of CreateDialog uses device pixels to position. You were supposed to use GetDialogBaseUnits and/or MapDialogRect manually to get the correct values, and very few apps did.

For another early example, Visual Basic (VB6, pre-.NET, so we're talking 1998) measured everything in twips.

Re:Framework Laptop with Ubuntu Review by kllrnohj on Thursday January 06, 2022 @10:08AM (#29824417)
> The size of the system font was basically a proxy for DPI.

Not entirely. The font size can still be changed independently of the DPI, and not everything should be scaled as a result. Things like dividing lines and padding probably shouldn't be scaled when the font size is increased.

You still need a distinct DIP value independent of scaled font size. So the value of 'dp' vs. 'sp' in Android terms, which it looks like Windows' now also has that distinction.

And yeah this is ignoring that things like the visual winforms tool in Visual Studio really just wanted to operate in fixed positions, and just getting things to work when the window was resized wasn't always intuitive or obvious. So even if the APIs were there, the ecosystem definitely didn't care about it and Microsoft's own tools definitely didn't help.

Re:Framework Laptop with Ubuntu Review by int_19h on Thursday January 06, 2022 @09:46PM (#29834138)
If I remember correctly, the system font size couldn't be changed independently of the DPI, at least not in a supported way. You could change it yourself on a per-window basis, but a well-behaved app is not supposed to do that.

Fixed layouts is orthogonal to all that - so long as those fixed layouts are defined in DPI-independent units, they will scale just fine. FWIW in WinForms (and also Delphi VCL, where this originated) you'd normally use anchors to design layouts that scale when the window is resized. Granted, it's nowhere near as flexible as proper layout containers - which WinForms (2.0+) also has, and which the visual form designer also supports, although it can be a pain to work with them.

Re:Framework Laptop with Ubuntu Review by int_19h on Wednesday January 05, 2022 @07:34PM (#29817438)
Oh, and LOGPIXELSX/Y showed up much earlier than Win2K. If you're getting that from MSDN, keep in mind that 2K is basically as early as the docs go, even if the actual API is much older. For example, it says the same for CreateWindow, even though that one goes all the way back to Windows 1.0.
Re:Framework Laptop with Ubuntu Review by loganwedwards on Wednesday January 05, 2022 @06:59AM (#29807926)
I use Pop_OS on my Framework and loved 1.5x scaling except for screen tearing I get (YouTube for example). I reverted to 1x and increased icon and font sizes to semi compensate.
Re:Framework Laptop with Ubuntu Review by teekert on Wednesday January 05, 2022 @07:10AM (#29807996)
Do you still get the tearing when you use Wayland?
Re:Framework Laptop with Ubuntu Review by michaelt on Wednesday January 05, 2022 @06:04AM (#29807583)
Even if you're on 1x scaling, you always have the option to adjust the zoom in your browser, and the text size in your terminal/IDE/text editor.
Re:Framework Laptop with Ubuntu Review by eptcyka on Wednesday January 05, 2022 @07:09AM (#29807990)
Instead of scaling the whole of the UI, I find that scaling via fonts works well enough when integer based scaling is not an option.
Re:Framework Laptop with Ubuntu Review by nvarsj on Wednesday January 05, 2022 @06:35PM (#29816822)
I love high res smaller screens. I have the X13 with 2560x1600. I leave the screen at 100% (perfect size for window widgets, etc.) and scale fonts by 1.5. Works great and everything is super sharp. I can also scale down the fonts if I want and don't lose the sharpness due to the increased dpi.
Re:Framework Laptop with Ubuntu Review by colordrops on Wednesday January 05, 2022 @06:31AM (#29807757)
I've got a Thinkpad with a 14" screen at 2256x1504. Running Wayland and SwayWM, I could never get integer or fractional scaling to work just right. In the end, turning off system-wide scaling and configuring apps that don't scale automatically was what did the trick.
Re:Framework Laptop with Ubuntu Review by 3np on Wednesday January 05, 2022 @06:36AM (#29807783)
How long ago did you try last? I recently started using Sway and haven't hit any issues yet.
Re:Framework Laptop with Ubuntu Review by colordrops on Wednesday January 05, 2022 @01:49PM (#29813205)
Sorry, I wasn't clear - just mentioning that I'm using Sway, but it's not the problem. The problem was with apps running in XWayland, e.g. Gimp, Firefox, Spotify, Slack, gnome apps, etc
Re:Framework Laptop with Ubuntu Review by 3np on Thursday January 06, 2022 @04:53AM (#29821464)
Ah, gotcha. The Wayland situation in Firefox has been changing for every major release BTW. Been running it in native Wayland since recently and so far it’s mostly been good and stable. Still the occasional crash or popup glitch but since ~v94 it already feels worth it.
Re:Framework Laptop with Ubuntu Review by ximeng on Wednesday January 05, 2022 @06:07AM (#29807602)
I used to have issues with two different screens that needed different scaling but as of 20.04 it's mostly fine to use fractional scaling on one monitor and not the other.

I've still had some issues with some applications not scaling their widgets properly, but it's mostly ok.

Re:Framework Laptop with Ubuntu Review by k1rcher on Wednesday January 05, 2022 @06:06AM (#29807597)
Anecdotal personal experience:

I’m on PopOS running Wayland with fractional scaling to 200%. It looks fantastic imo and have only had some issues with Guake terminal when plugged in to an external monitor, which I believe may be a Guake-Wayland-specific bug.

Re:Framework Laptop with Ubuntu Review by morsch on Wednesday January 05, 2022 @06:16AM (#29807653)
200% is not fractional scaling, though?
Re:Framework Laptop with Ubuntu Review by k1rcher on Wednesday January 05, 2022 @08:17AM (#29808497)
Oops, you’re right. 150% is what I have set, typo on my end!