News for hackers. Stuff that matters.
Re:Apple of 2019 is the Linux of 2000 by kn100 on Monday October 14, 2019 @09:27AM (#21247967)
W.r.t your hidpi/non-hidpi issue - a 'proper' solution is slowly making its way out of the woodwork. Wayland apparently will allow us to solve this problem, but in the meantime here's my solution if it'll help you.

I have a 4k dell xps 13 and a 2k monitor. I have this script set up to run on boot.

https://gist.github.com/kn100/7193667d393fcf34d4d5c6c359a695...

What this does is it forces your internal display to run at exactly quarter resolution (ie 1600x900), and adds your second display at its native resolution to the setup. Since the panel is running at a multiple of its native resolution, it still looks fine, if not quite as pixel perfect. This has the nice side effect of making the laptop feel a bit faster since it's driving a quarter of the pixels it usually has to drive. This makes the monitor panel do the scaling too, which is nice. With this setup, both displays will be running at a roughly similar DPI which will make scaling issues... a non issue!

I hope this helps.

Re:Apple of 2019 is the Linux of 2000 by posedge on Monday October 14, 2019 @10:04AM (#21248391)
A couple of thoughts: * That's exactly the point. I don't want to give up on my 4k resolution, I specifically bought a laptop with high resolution. * I'm running Ubuntu on my Dell XPS 15. I solved the problem by scaling the external display (--scale 2x2 in xrandr), which also solves the problem but allows me to keep the 4k resolution on the built-in display. The only issue is, that select programs with nonstandard UI components (telegram client) break, everything else works like a charm * Thanks for the gist.
Re:Apple of 2019 is the Linux of 2000 by posedge on Monday October 14, 2019 @10:25AM (#21248600)
BTW, this is the command I'm using:

sudo xrandr --output DP-3 --scale 2x2 --mode 1920x1080 --fb 7680x2160 --pos 3840x0 --output eDP-1 --mode 3840x2160 --pos 0x0

DP-3 being my external full-HD display, placed to the right.

Re:Apple of 2019 is the Linux of 2000 by sigjuice on Monday October 14, 2019 @01:38PM (#21250759)
What errors do you get if you try without sudo? I have a script that runs xrandr commands, but doesn't need sudo.
Re:Apple of 2019 is the Linux of 2000 by quincunx on Monday October 14, 2019 @09:45AM (#21248163)
You're very kind to offer help like this, but from the article: "... the only way to fix it is to find terminal commands from discussion forums, type them in and hope for the best" quote seems apt.
Re:Apple of 2019 is the Linux of 2000 by fiddlerwoaroof on Monday October 14, 2019 @10:39AM (#21248756)
There's a tool called arandr that'll let you do most of this visually: I use it everytime I rearrange my monitors.
Re:Apple of 2019 is the Linux of 2000 by Pizzaputer on Monday October 14, 2019 @09:56AM (#21248285)
This is insane. I thought issues like these were solved problems ? Is there no distro/display server that just works for a setup such as this?
Re:Apple of 2019 is the Linux of 2000 by boudin on Monday October 14, 2019 @10:09AM (#21248433)
The wayland protocol solve this. I do think that at least gnome 3.34+ and wlroot based window managers support this, but it needs to be confirmed as i don't have this setup and just used ratios on same dpi monitors. Not sure how it works with X based app also that are run through xwayland.
Re:Apple of 2019 is the Linux of 2000 by exabrial on Monday October 14, 2019 @10:03AM (#21248375)
The irony of this comment, given the content of the article.
Re:Apple of 2019 is the Linux of 2000 by kn100 on Thursday October 24, 2019 @10:08AM (#21344812)
I was aware of the irony - I just chose to provide help because some of us don't have an option to use anything other than desktop linux in this configuration and the gist is helpful to others. It's clearly not a just works solution, as I stated in the comment, but it does solve the problem until Wayland comes together and provides us with a proper scaling solution.
Re:Apple of 2019 is the Linux of 2000 by avip on Monday October 14, 2019 @10:28AM (#21248633)
Epic comment :)

If it makes anyone feel better wrt their religion of choice, Mac users have been using scripts in this spirit to force WiFi reconnection on wakeup.

Sent from my iPhone

Re:Apple of 2019 is the Linux of 2000 by jadbox on Monday October 14, 2019 @11:06AM (#21249046)
Do you have any links or feature tracker for the Wayland development?
Re:Apple of 2019 is the Linux of 2000 by bluedino on Monday October 14, 2019 @11:03AM (#21249005)
The gripe is coming from the fact that Apple had this fixed in 2012.