17 ms·
A few HiDPI tricks for Linux
- arendtio 6y agoSetting the DisplaySize in a /etc/X11/xorg.conf.d/90-monitor.conf is the way I like solving the DPI issue. The advantage is, that even the display manager (in my case SDDM) runs with the correct DPI. If you want to find the correct dimensions for you monitor, this page might help you: https://www.displayspecifications.com https://www.displayspecifications.com
- SweetestRug 6y agoI set up Linux on a Dell XPS 13 with the HiDPI screen. With both Ubuntu and Manjaro it was relatively painless, especially using GNOME via Wayland. i3 and sway also worked well too. I had heard a lot of issues with Linux and HiDPI, and was worried I would have to return/swap for a FHD screen, but everything has worked almost flawlessly.
- danieldk 6y agoI have used a 4k screen for several years now without any issues on GNOME with 200% scaling. However, I recently bought a ThinkPad T14 with a 1080p screen. With 100% scaling, the fonts and widgets are too small. The ideal scaling seems to be 125% or 150%. GNOME has experimental support for fractional scaling. This works generally ok for Wayland applications, but windows of X11 applications are incredibly blurry both on the laptop display with 150% scaling and the external screen with 200% screen. I think they are rendered at 100% and then scaled up. There are various workarounds for X11 applications, but it seems that e.g. none of the workaround really works with e.g. JetBrains IDEs (there are some bug reports about it). Windows 10, on the other hand, handles fractional scaling and per-screen scaling just fine. It's frustrating, because I highly prefer GNOME and Linux and if all applications supported Wayland, there wouldn't be any major problems.
- boatsie 6y agoI have a similar problem with a QHD screen that I want 150% scaling. The worst part is that using the experimental scaling is it seems to consume a lot more cpu usage and thus power on my laptop.
- mixmastamyk 6y agoGet rid of the 1080, it's 2021.
- vetinari 6y ago14" WQHD would have the same problem, you would just switch 125% to 150%. The ideal would be 3200x2000, but sadly, nobody sells such laptops anymore. Everyone jumps from WQHD to 4k. With 4k, you have exactly the same problem, except for 125% you need 250%.
- mixmastamyk 6y agoI've had a 15" 4k laptop monitor for five years, and it looks fantastic at 200%. I enabled large fonts. I'd love a squarer monitor however, they are making a comeback. My next purchase hopefully.
- vetinari 6y ago> I enabled large fonts. In Windows, large fonts is basically 125% (120 dpi, vs the base 96 dpi, double for @2X HiDPI), except it enlarges only fonts and pushes dialog controls around, but doesn't touch raster assets. It is something that was part of Windows since '90s, but in many applications, it newer worked right, because the developers never knew about the option and newer tested it (looking at most Delphi developers here). Changing scaling to 125% (since Windows 8 and 10) changes both font sizes, grid calculations in windows controls and bitmaps; the subtle brokenness of some apps disappears, just to be replaced by another set of subtle brokeness. However, the good news is, that the chance of developers testing in this mode is higher than them testing Large fonts. I also have 1080p 14" laptop somewhere; at 100%/dpi the display is too tiny, at 125% it is great. I also used to have 1600x900 14" laptop (T430s) - that one, at 100% was perfect (except it was an TN display, which was different downside). Prior to that, 1440x900 (T400) - that one was a bit too large.
- mixmastamyk 6y agoUbuntu Mate, says 192 dpi currently.
- sammorrowdrums 6y agoMy only issue is that my mid sized 4k screen is a but clunky at 2x UI scaling but otherwise I don't have an issue until I plug into a standard Monitor when 2x scaling is ridiculous. But I find 1x scaling to be too small to enjoy on the QHD screen. Multiple integer scale factors are possible but it is a bit complex and when I did it machine was prone to crash... That said I still love it.
- josephg 6y agoI'm using linux mint with fractional scaling on just one of my displays. (The other display is just 1:1). Everything seems to just work fine. Well, except for an outstanding bug where after I log in, I get a duplicate, stationary mouse cursor appearing somewhere on the screen that just hovers over any open windows. Its annoying and weird.
- paulie_a 6y agoThe xps 13 with 4k is gorgeous. Pair it with an external 4k and everything is seemless. If you go 1080 or whatever for the external monitor it becomes a pain to switch resolutions and scaling. I briefly had to do that and had a script to adjust things but pycharm for instance needed to be restarted Once I upgraded to a 4k it's a great setup. I actually have dual 4k monitors now and that xps can handle it easily. No software issues either. The most I've had to do was adjust the zoo launcher to be hidpi
- canofbars 6y ago>but everything has worked almost flawlessly. Its because everyone having issues is using X and likely 2 monitors with different dpis. On wayland its pretty much flawless unless you use 2 monitors at different scales and load an X application.
- gnull 6y ago> unless you use 2 monitors at different scales and load an X application Agree 100%, this is the only issue I ran into using Wayland (Sway) with different DPI monitors. I only want to stress that the impact of this issue is very limited—at least for me. Most of the apps that I use run natively on Wayland and scale perfectly: Firefox (with some extra setup), Telegram Desktop, Alacritty, all GTK and KDE apps. The apps that do get blurry are the ones that are made by big companies for which Linux experience is not the first priority (thus they don't care about native Wayland support). Zoom, Chromium, Google Earth, Discord, Steam, Skype. I don't use them much, and when I do I try to keep them on my big (non-scaled) monitor, and it works fine.
- vetinari 6y agoThe sad thing is, that Google Earth is a Qt app. If they updated the Qt they ship with, it would be fine. However, Google Earth looks being abandoned.
- alsoc 6y agoI tried ubuntu + i3 on a Lenovo x1 carbon. The fonts, the settings, the software, the differences, incompatibilities everyday just killed me. I went back to Mac + Magnet window manager. I could never know if I was actually seeing the actual setting I included/desired or the font was being displayed correctly. It Was a constant study of web searches and esoteric knowledge such as evident in this blog of what to do to get whatever you wanted that just worked on a Mac or even windows.
- jonwest 6y agoSame opinion here. Whereas with Mac you’re setting things in one place across all of your apps, and it accounts for different scaling factors for different displays, this just seems like a huge pain to have to set things on an almost per-app basis.
- gurkendoktor 6y agoTo provide some counter-anecdata, if you are in the lucky position to have screens that work at exactly 200% (4K at 24", 5K at 27"), then Ubuntu and its derivatives will Just Work out of the box. At least that was my experience around 2017-2019. Fractional scaling factors like 150% are tricky, but macOS does not properly support them either. The only app that didn't pick up my DPI settings on Linux was Spotify, but all web-ish apps support ctrl +/-...which honestly strikes me as a big usability win over native toolkits. I actually found my 5K screen more enjoyable under Linux than macOS, because the performance of JetBrains IDEs on Retina Macs seems to flip-flop between okay and abysmal every year. Mixed-DPI setups are where macOS is truly superior.
- robertoandred 6y agomacOS supports fractional scaling just fine, by rounding up and then downscaling. Sure it's not pixel-perfect to the display, but at such high ppi it's not really noticeable, and certainly much better than trying to get actual fractional resolutions working. Apple tried true resolution independence in the early 2000s and it didn't work out. 2x and 3x scaling proved to be a much better solution.
- sitzkrieg 6y agowhat an incredible waste of time. messing with dpi, crappy apps taking from here and there in 2021. linux desktop userspace is a dumpster fire
- woodruffw 6y agoAuthor here: as they say, Linux is free if your time is worthless. In my case, my time isn’t worthless but I do enjoy configuring my system. The tweaks shown in those blog post took me maybe half a day; I haven’t needed to make any significant changes since.
- sitzkrieg 6y agowell that is good that it holds up. i also have to make this tradeoff but am less enthusiastic about it obviously. switching to a single hidpi display has made it more tolerable with bigger DMs
- danieldk 6y agoThe problem is largely X11. Wayland desktops such as GNOME + Wayland applications generally work very well with HiDPI. Even X11 applications work reasonably well on XWayland on e.g. GNOME, as long as all screens use 100% or 200% scaling. Unfortunately, with fractional scaling things break down with X11 applications.
- gtirloni 6y agoIndeed. I'm running my 4k monitor at 100% and just increase the fonts in the apps themselves. It seems to work fine and there's no scaling involved.
- canofbars 6y agoIf you actually use a modern config like the defaults on Fedora it all just works. 100% of these problems come from people trying to use the proprietary nvidia drivers which is filled with issues.
- leephillips 6y agoI have a 2013 Chrome Pixel, with 240 dpi, and I’ve also found that the Xft.dpi setting takes care of nearly everything, although there are some interface elements in some applications that still display tiny type. The author seems to be suggesting that 163 DPI is high resolution; is it commonly understood to be so? Because that would look a bit fuzzy to me.
- azinman2 6y agoEvery screen’s density of pixels are different.
- leephillips 6y agoNo, I once saw two that were the same.
- woodruffw 6y agoThis is not true. Your pixel density is a function of your resolution and dimensions. “HiDPI” is a nebulous term that refers to high resolution screens that are also relatively small.
- leephillips 6y agoIf DPI means “dots per inch”, then how can the size of the screen come into it? And what is “not true”?
- woodruffw 6y agoAs the phrase "dots per inch" implies, it's a ratio. Specifically, it's the ratio between your resolution (say, 4K) and the size of your screen. What is "not true" is that every screen's pixel density is the same. Different screens have different sizes and resolutions, which means they have different pixel densities.
- 6y ago
- Tepix 6y agoNot related to HiDPI, but looking at the picture of his monitor setup: From an ergonomics standpoint (i.e. the health of your neck), the upper edge of your monitor shouldn't be higher than your eye level. Looking straight or looking down is fine. Thus the monitor on the left is probably not very ergonomic.
- woodruffw 6y agoAuthor here: you’re absolutely right. My previous vertical monitor was a lot shorter; this one has definitely not been great for my neck. I’ll probably switch it back to horizontal at some point.
- Stratoscope 6y agoWhat size monitors are those? I use a pair of 24" 4K monitors in roughly the same configuration as yours. 27" would definitely be too tall. I find having a vertical 24" monitor to be super useful, especially for reading typical PDF files as an entire page fits nicely on the screen. My vertical monitor is a bit closer to the desk, and the horizontal monitor is much higher than yours, about 7.5" above the desk. The bottom edges are not aligned; the vertical monitor bottom edge is about 5" below the bottom of the horizontal monitor, and its top edge is about 3" above the top of the horizontal monitor. The top of horizontal monitor is just below my eye height. So the top of the vertical one is a couple of inches above that, but this is not a problem as I don't spend much time looking at the very top of that monitor. Each monitor is tilted separately. The horizontal one is tilted back only slightly; the vertical one tilted more. So the center of each monitor is perpendicular to my line of sight. At the moment I'm using the two monitors with a Linux desktop, but sometimes I connect them both to a ThinkPad for a three-monitor setup with the ThinkPad's display and keyboard. When I do this, I raise the horizontal monitor up another inch so the ThinkPad display tucks in underneath it. With your horizontal monitor sitting so close to the desk, I have to wonder if your seating position may be too low? Are your forearms horizontal when typing? (Forgive me if I'm being nosy or presumptuous, just curious.) One related tip for anyone reading this, regardless of your monitor arrangement: if you wear glasses, do not use progressive lenses at your computer. Instead, get a pair of single vision lenses with a fairly tall aspect ratio so they let you see the entire screen(s) without tilting your head back. Don't ask your optometrist for a "reading" prescription - that tends to be about a 16" distance, and your monitors are probably farther from your eyes than that. Measure the distance from your eyes to the monitors and get single vision lenses made for that distance.
- xolve 6y agoI am using Retina display on which everything looks tiny. I struggled with setting up QT scaling, GTK3.0 scaling, icon sizes, font DPI and resolutions. The problem is there is no single setting which all UI libraries follow and this makes your life hell. Even worse is when you connect an external monitor which is not HiDPI and now everything is bigger than usual. Instead scale the whole display and this works perfectly. I have explained it here: https://np.reddit.com/r/linuxquestions/comments/4c2o4p/what_does_panning_and_fb_in_xrandr_stand_for/ https://np.reddit.com/r/linuxquestions/comments/4c2o4p/what_... (Except one hiccup, but its way better than tuning inidividual knobs) I have added the command to /etc/X11/xinit/xinitrc so it scales automatically when I login: xrandr --output eDP1 --scale 0.60x0.60
- ironmagma 6y agoThe question is, how do we fix this? Is there a best setting to use, and if not, who will join the working group to define one?
- libcg 6y agoThis article makes it seem like these steps are necessary for most Linux setups, when in reality you can do per monitor fractional scaling from a GUI as long as you're using GNOME on Wayland. No need to fiddle with per app settings, it works transparently.
- azinman2 6y agoExcept the author is using X11 as many people will. And what this shows is how many different environments / toolkits / settings there are out there. It would be nice if distributions would do a better job of handling this for you. I’ve run into the same issues myself, and it’s kind of hard to believe that I even had to figure out these configuration dpi settings in 2021.
- libcg 6y agoHe's using "i3 with a heavily customized userspace" which isn't exactly what most people would use. Gnome on X11 lets you (integer) scale monitors through a GUI at the very least.
- nxc18 6y agoYeah but there’s a very good chance that won’t work with various hardware configurations. I was able to get per-monitor scaling to work only after giving up use of half my GPUs, and still there were problems with several apps. This was on stock Ubuntu; I didn’t get too crazy customizing because I just wanted to find a Linux desktop that worked.
- canofbars 6y ago>I was able to get per-monitor scaling to work X11 is not capable of doing this properly. Wayland is and as you probably know, nvidia refuses to support it which is out of the control of linux developers. You can get everything working if you use the open source nvidia drivers but then they run slow as shit because nvidia blocks them from setting the clock speed on the gpu. Basically every problem falls back on nvidia and the linux desktop people have done everything in their power to make it work.
- azinman2 6y agoThe author brought up mouse acceleration, which reminded me of why I switched back from Linux to a Mac: the mouse curves were terrible IMHO, with seemingly no way to change it. The parameters you can tweak in X11 didn’t let me change the fundamental curve, and to me where so much worse than Apple’s it rendered the system frustrating to use. I don’t know if wayland suffers from the same issue or not, but certainly googling around the many places were people similarly complained weren’t answered by a magic Wayland config. Does anyone know if it’s possible to get an Apple-like mouse curve in Linux?
- sitzkrieg 6y agoi managed (well, to make sensitivity low enough it was usable even at 400dpi .. ) by recompiling libinput. yea really
- edoceo 6y agoSeems like a patch others (ie:me) would like to see
- ironmagma 6y agoShouldn’t that be something that’s pulled into upstream? And if they refuse, fork libinput?
- vetinari 6y agoSince the libinput upstream is one guy and nobody stepped up to help him, good luck with long-term maintenance of your fork.
- ironmagma 6y agoIt's this kind of defeatist, responsibility-shifting attitude that holds Linux back from becoming a widely used desktop platform. What's the worst case with a fork, it stagnates and remains mostly identical to the upstream?
- gorgoiler 6y agoNice. If you, like me, are blind as a bat may I recommend `Xcursor.size` as well. Anyone know how to get mouse cursor comet trails in Linux?
- filereaper 6y agoThanks for this! My mouse cursor is tiny on 4k monitors with i3
- Sjonny 6y agoNo idea how to get a comet trail on your cursor, but I did find oneko. Maybe it can help out if you want a cat chasing your cursor: http://www.daidouji.com/oneko/ http://www.daidouji.com/oneko/
- greggyb 6y agoI have synced dotfiles across my various machines and I run i3 across these. My configs for DPI consist entirely of the following: Xresources: Xft.dpi:120 st.font: monospace:size=14 xsession: # haven't had time to dig into this, some systems need # DPI set twice xSetDpi () { xrandr --dpi "$1"; xrandr --dpi "$1"; } That function is called in a case statement for other machine-specific startup config, but it's just a matter of xSetDpi 144;. emacs.d/init.el: (set-face-attribute 'default nil :height xxx) Again this is per-host, but it's a simple COND expression. qutebrowser/config.py: # even with DPI set, I typically find web text too small c.zoom.default = '175%' I promise you that this does not feel like any significant effort for me. It's ~10 lines across a few config files, each of which I would be maintaining anyway - none of these configs were born for the express purpose of handling DPI or zoom or anything like that. I value having a system that is configured exactly to my preferences. I recognize that having multiple configs is a turnoff for some. I can't debate personal preference. I have spent much more time trying to get something like Gnome to behave in a way I want than I have on all of my current config. XFCE is a pretty good experience for a DE and configuring scaling through system settings. Machines: 1. 11" HD, OpenBSD current 2. 12" FHD, Artix Linux 3. 2x27" WQHD, Artix Linux
- podiki 6y agoSome other resources that may be helpful for anyone looking is (of course) the Arch wiki [0]. I also found it helpful to set somethings like DPI based on the machine (I share my dot files across my computers) which can be done pretty easily using e.g. the hostname [1]. (Note that GitHub doesn't perfectly render the org file, you'd want to see the raw file for details if interested in literal dotfiles.) [0] https://wiki.archlinux.org/index.php/HiDPI https://wiki.archlinux.org/index.php/HiDPI [1] https://github.com/podiki/dot.me/tree/master/x11 https://github.com/podiki/dot.me/tree/master/x11
- vbernat 6y agoAlso, it is possible for most settings to be dynamic, which is useful on a laptop where you can plug screens, with XSETTINGS. That's what Gnome and XFCE are using. With Awesome WM, I am using a script [1] to update XSETTINGS (through xsettingsd configuration file). I explain more on my blog [2]. [1] https://github.com/vincentbernat/awesome-configuration/blob/master/bin/xsettingsd-setup https://github.com/vincentbernat/awesome-configuration/blob/... [2] https://vincent.bernat.ch/en/blog/2018-4k-hidpi-dual-screen-linux https://vincent.bernat.ch/en/blog/2018-4k-hidpi-dual-screen-...
- podiki 6y agoNice, thanks for sharing! At most I've also hooked up a projector to my computer, but never needed to deal with any setting changes really (just for gaming or rarely for a presentation). A little off topic, but I've run into some weird issues with Display Port/Nvidia/Dell monitor where the monitor is not recognized on unplug/replug. In the past I know there were some issues with older Nvidia drivers and this particular monitor (P2715Q), though this seems like a weird problem that I've seen others have with different configurations online. It led to me needing a weird set of steps (I wrote about this in my Valve Index impressions [0]), using xrandr to add the display mode and switching to a virtual console too. I'm guessing this is mostly due to the older Dell monitor which has always been a bit wonky with Display Port. I assume things are better these days more broadly. Relevant part of [0]: xrandr --newmode "4K" 533.250 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync xrandr --addmode DP-0 4K xrandr --output DP-0 --mode 4K # switch to virtual terminal, i.e. Ctrl-Alt-F2 # switch to DisplayPort input on monitor which should display the terminal env DISPLAY=:0 xset dpms force off; sleep 5; env DISPLAY=:0 xset dpms force on # switch back to X, i.e. Ctrl-Alt-F7 The modeline to add can be found ahead of time with xrandr --verbose or using a tool like cvt or gtf (see the Arch wiki). Sometimes, though, I just need to power cycle the monitor or unplug and replug some cables. I hope this is just this older hardware, and probably solved, like everything else here, with a new GPU that has more DisplayPort outputs. [0] https://boilingsteam.com/the-valve-index-on-linux-on-a-min-spec-machine/ https://boilingsteam.com/the-valve-index-on-linux-on-a-min-s...
- matt961 6y agoPlasma wayland has per-screen DPI scaling to any percentage you want. Only thing holding me back from switching is screen recording/sharing woes.
- kevincox 6y agoHave you set up pipewire? It doesn't seem to be the default in any distros yet but it works fine for me. The only real issue is that the permission dialog on Firefox makes you select the window or screen to share twice. Not seamless but gets the job done.
- alwaysanon 6y agoCredit where credit is due this is the one area where Windows is the best OS these days. It not only will do fractional scaling but it will do display independent fractional scaling - whack in the scaling percentage on each screen and in the recent versions of Windows 10 it works well and looks great and remembers your settings when you plug that monitor back in. It is perhaps THE thing along with WSL2 (now giving me a ‘real’ Ubuntu commandline as well as Docker/Kubernetes experience where disks are mounted on both sides and things work seamlessly via VS Code) that made me choose Windows over the Mac and Linux this time around.
- leokennis 6y agoYep. Windows 10 is fantastic in this regard. MacOS on the other hand sucks. Basically the recommendation is to run a lower and blurry resolution if you want bigger buttons and text... At the same time, iOS has great scaling and text sizing options, and macOS’ interface is so abstract that it should be very easy to vectorize it, enabling seamless scaling to any size wanted. Really baffling.
- alwaysanon 6y agoYep - all our screens at work are not 4K but 2K (1/2 being the ultra wide curved ones) and I find that the MacBooks look just awful on them as it doesn't see them as 'retina'. It was really strange at first as I always remembered Macs to have great font rendering when displays were even lower res than that but I can't stand how it looks on them. Having Windows scale to 150% on them just looks soo much better. I have a 4K 15" ThinkPad and a 4K 27" external at home and, even though they are the same resolution, they are such different sizes and I like to scale them differently to make things closer to the same size when I drag them back and forth - but only when docked. At other times I scale at a lower percentage to give me more realestate. With Windows I can do this on the fly these days without even logging off and everything looks great and 'just works'.
- mlindner 6y agoI'm sorry what? I've used Windows 10 scaling and it looks horrible compared to MacOS native 2x HiDPI scaling. The computers are made for HiDPI or not and it looks very natural compared to windows which doesn't scale all elements by the same amount.
- 29athrowaway 6y agoMy settings are: GTK2 apps do not support HiDPI correctly. oomox (and similar) can be used to generate a scaled GTK2 theme, but it won't solve all your problems. GTK3 supports HiDPI well. If you use Gnome, Xfce and others, you can configure this via the preferences UI. Otherwise, add this to your .profile file: export GDK_SCALE=2 export GDK_DPI_SCALE=0.5 Many Java apps can be scaled by adding an argument... java -Dsun.java2d.uiScale=2 For Qt you can add this to your .profile file: export QT_AUTO_SCREEN_SCALE_FACTOR=0 export QT_SCALE_FACTOR=2 # For theming, requires qt5ct export QT_QPA_PLATFORMTHEME=qt5ct For Spotify... I use ncspot for listening, and the web version to manage my playlists (although you can also management with ncspot). ncspot is a keyboard friendly, lightweight terminal client. https://github.com/hrkfdn/ncspot I use FreeOffice as office suite, you can configure HiDPI through the menus and works perfectly. Same with Steam.
- KirillPanov 6y agoIf anybody knows how to forcibly override the "pixels per mm" reported by a monitor, you will be my hero forever. Every solution I've found so far (including the QT/GTK environment variables for overriding DPI) ends up instead causing scaling during compositing, rather than getting the apps to rasterize their fonts at the correct size in the first place. The worst offenders are anything derived from Chromium (i.e. qutebrowser, who say the problem is a QtWebEngine bug that they can't fix). I'm using sway, but almost all the Wayland compositors lack this override-the-monitor-reported-DPI functionality, because (for good reason) their philosophy is to securely multiplex the hardware, not abstract it away. They just pass through whatever values the monitor reports, to the client. IMHO this does not make sense for physical pixel size, because it disregards the physical distance between the user's face and the pixels. What you really want to size your fonts based on is the number of arc-radians (or arc-degrees) per pixel, measured at the user's eyeball. In order to compute that you need to know both the physical pixel size (which can be queried from the device) and the physical eyeball-screen distance (which will need to be user-configurable).
- cycloptic 6y agoI don't know of any Wayland implementations that let you do that, it wouldn't be hard to hack in, but Wayland applications should not be using that information to decide scaling. They should be using the wl_output.scale. In X11, you can do it with xrandr --fbmm. Technically you can also set this information per-monitor but I don't think a command line option was ever added for it.
- KirillPanov 6y ago> In X11, you can do it with xrandr --fbmm Yeah, that's basically what I want, but for sway. > Wayland applications should not be using that information to decide scaling. They should be using the wl_output.scale. Maybe so, but the physical size is definitely exposed to the clients via the wayland protocol (see below). I'm pretty sure that the QT toolkit and Chromium both use the reported values. <event name="geometry"> <description summary="properties of the output"> The geometry event describes geometric properties of the output. The event is sent when binding to the output object and whenever any of the properties change. The physical size can be set to zero if it doesn't make sense for this output (e.g. for projectors or virtual outputs). </description> <arg name="x" type="int" /> <arg name="y" type="int" /> <arg name="physical_width" type="int" /> <arg name="physical_height" type="int" /> <arg name="subpixel" type="int" enum="subpixel" /> <arg name="make" type="string" /> <arg name="model" type="string" /> <arg name="transform" type="int" enum="transform" /> </event> I will probably end up hacking it into sway, like I've done with other things. It's just that the swaywm/libwlroots codebase is so utterly illegible. "wlroots is largely documented through comments in the headers. Read 'em." Yeah, those headers with no comments anywhere, egregious amounts of boilerplate code (because C), and naming conventions that take weeks to learn. Argh. I've spent entire days trying to figure out "how to I get a sway_foo pointer from a wlr_foo pointer". It's madness. There's so much typecasting going (with totally undocumented rules for when said typecasts are safe) on that you can't even use the compiler-visible types as a guide for these kinds of questions.
- vzaliva 6y agoHPDI support on Linux is terrible. After stuggling to make it work consistently accross various applications on my Dell XPS 13 with HDPI screen, I conciously choose my next laptop to have just HD screen. I am so happy as everything is finally working normally.
- mixmastamyk 6y agoNope, I've had two 4k screens under Ubuntu Mate for five years. It's literally one checkbox in the control panel.
- FunnyLookinHat 6y agoMy experience with 4k has essentially been that it's too small for the display sizes I want to have on my desk - and the fractional scaling support is always quite a bit of work to get right (as evidenced by this post). I've found that 2k (2560x) displays at 27" give me great real estate without any need to scale.
- jdashg 6y ago1440p at 27" with no scaling is perfect for my desktop. I wish it were more popular, because it's a great compromise between quality and performance for gaming. The relatively common use of "2k" to mean 2560x1440 has always struck me as confusing though, since it's not half as wide as 4k. Words mean whatever people agree they mean, but I feel like "2k" is too ambiguous.
- fomine3 6y agoI argue that 2K for 2560px is completely wrong term. Even 3K is better term.
- shmerl 6y agoI think Wayland compositors is a better option for it. That's where all the modern Linux desktop development happens these days.
- WhyNotHugo 6y agoWayland has proper scaling support as a first-class thing, so you just configure it once and forget about it. This includes per-output scaling. I was actually surprised when using a 2020 Mac that macOS doesn't actually support scaling on external displays. It seems that Linux/Wayland is on the lead here.
- ChrisMLane 6y agoYes! Scaling was a nightmare for me on X11 since I have a high resolution laptop screen and then a lower resolution external monitor. I switched to Sway and scaling, switching monitors etc. was so much simpler and just worked.
- helge9210 6y agoIs there any desktop environment, where you can set font, interface elements sizes in points (1/72 inch) and let the system handle all the scaling?