LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Any way to make HD and UHD monitors have good picture at the same time? i3wm (https://www.linuxquestions.org/questions/linux-newbie-8/any-way-to-make-hd-and-uhd-monitors-have-good-picture-at-the-same-time-i3wm-4175646055/)

keikari 01-12-2019 07:06 AM

Any way to make HD and UHD monitors have good picture at the same time? i3wm
 
Hi

I have 2 monitors. One HD 1080p monitor and other UHD 4K monitor.
I have set dpi of screens to 144 in "~/.Xresources" file and this makes 4K screen look nice and readable. And 1080p screen goes with everything zoomed to too large of course.So I scale it to "intended" size with this command
Code:

xrandr --fb 6720x2160 --output HDMI-1 --primary --scale 1.5x1.5 --pos 0x0 --output DP-1 --mode 3840x2160 --pos 2880x0
This makes everything in 1080p screen look well in size, but everything is very blurry.
So is there anyway to have both screens look good? I tried to google something about having different dpi for both monitors, but I mainly just ran into "xrandr --scale" threads.

I'm using i3 window manager(on Xorg).

Any ideas are appreciated.

ondoho 01-13-2019 03:11 AM

don't use --scale, it's ugly.

what you really need is separate dpi values for each monitor.
try these results:
https://www.startpage.com/do/dsearch...erent+monitors

keikari 01-13-2019 03:26 AM

Quote:

Originally Posted by ondoho (Post 5948415)
don't use --scale, it's ugly.

what you really need is separate dpi values for each monitor.
try these results:
https://www.startpage.com/do/dsearch...erent+monitors

That's the problem. I have re-checked sites from your search but they only talk about --scale.
Do you know if it is possible to have different dpi for both monitors?
Xrandr --dpi does nothing for me or I don't know when it should be run. Though I've understood that no matter how you use it, it will only affect both monitors.

EDIT:
Well this time I got the work around method from reddit post to work. Thanks.
Code:

xrdb -merge <(echo "Xft.dpi: 96")
This only changes dpi by per program and not per monitor.

ondoho 01-13-2019 10:21 AM

Quote:

Originally Posted by keikari (Post 5948419)
That's the problem. I have re-checked sites from your search but they only talk about --scale.

i'm sorry, it appears people talk about DPI options a lot but Xorg does not offer it per monitor.
it seems you're stuck with either waiting for wayland or using --scale; i suggest you use only exactly --scale 2x2 or --scale 0.5x0.5, everything else will look horrible.
apparently --dpi is NOT a per-monitor setting, i.e. it always applies globally.
this article goes through the whole process, explaining it well.
a nice hack on this reddit article.

there is also the option to run 2 separate Xorg sessions (probably not what you want), or the magic word "Xinerama" (personally i never quite understood what that is, but afaiu it's useful for multi-monitor users).

keikari 01-13-2019 10:47 AM

Quote:

Originally Posted by ondoho (Post 5948517)
i'm sorry, it appears people talk about DPI options a lot but Xorg does not offer it per monitor.
it seems you're stuck with either waiting for wayland or using --scale; i suggest you use only exactly --scale 2x2 or --scale 0.5x0.5, everything else will look horrible.
apparently --dpi is NOT a per-monitor setting, i.e. it always applies globally.
this article goes through the whole process, explaining it well.
a nice hack on this reddit article.

there is also the option to run 2 separate Xorg sessions (probably not what you want), or the magic word "Xinerama" (personally i never quite understood what that is, but afaiu it's useful for multi-monitor users).

Never heard about xinerama, thanks. I checked about it and if I understood correctly, I just need to do things like they were done before xrandr and I probably don't even need to figure out how to use xinerama. (I'm using tiling window manager, so loosing ability to move windows between monitors isn't high price for good quality picture)
Well I guess I will spent few days figuring this out.

EDIT:
Forgot to add.
I need to use 1.5x scaling because good dpi for HD monitor is 96 and the dpi which I need for 4k monitor is 144. If I wanted to use 2x2 scaling I would need to change dpi to 192 and scale both screens, which would make both screens blurry.


All times are GMT -5. The time now is 05:43 AM.