Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiDPI scaling #20

Closed
pkhamutou opened this issue Nov 13, 2017 · 6 comments
Closed

HiDPI scaling #20

pkhamutou opened this issue Nov 13, 2017 · 6 comments

Comments

@pkhamutou
Copy link

pkhamutou commented Nov 13, 2017

Hello, thanks for the awesome project!

I have a Dell XPS with i3wm and a screen resolution as:

Screen 0: minimum 8 x 8, current 3200 x 1800, maximum 32767 x 32767
eDP1 connected primary 3200x1800+0+0 (normal left inverted right x axis y axis) 290mm x 170mm
   3200x1800     59.98*+  47.99  

When I connect a second monitor

DP1 connected (normal left inverted right x axis y axis)
   1920x1080     60.00 +  50.00    59.94  

and I run mons -s to enable only second (FHD) monitor I have a very huge scaling which makes it almost unusable.
I have a custom xrandr script for scaling:

$ xrandr --fb 3200x1800 --output DP1 --primary --mode 1920x1080 \
         --scale-from 3200x1800 \
         --pos 0x0 --panning 3200x1800+0+0 --rotate normal \
         --output eDP1 --off

but is there a possibility to make the same with mons?

@Ventto
Copy link
Owner

Ventto commented Nov 13, 2017

Hello @pkhamutou. Thanks for the feedback.

Please, do you confirm the xrandr command line above is meant to display the second monitor only ?
If I understand this correctly, you use that command line because of your configuration on startup ?

I suspect the xrandr --auto (in mons) before performing the -s option.
I am investigating.

@pkhamutou
Copy link
Author

Hello @Ventto !

  1. Yes, this xrandr command is only to display the second (FHD) monitor. I disable the laptop's display with --output eDP1 --off.
  2. No, I run it manually just to connect an external monitor (there is no any other purpose).

Thank you!

@Ventto
Copy link
Owner

Ventto commented Nov 19, 2017

Regarding your configuration, mons -s runs the following commands:

$ xrandr --output eDP1 --off
$ xrandr --output DP1 --auto --dpi 96

I tried to reproduce your configuration.
But I do not understand why you need to rescale your DP1 monitor to fit the eDP1 resolution:

--fb 3200x1800 [...] --scale-from 3200x1800 --pos 0x0 --panning 3200x1800+0+0

Turning off eDP1 and displaying DP1 with its own 1920x1080 resolution, is it what you want ?

@Ventto
Copy link
Owner

Ventto commented Nov 23, 2017

up.

@pkhamutou
Copy link
Author

pkhamutou commented Nov 30, 2017

Hey @Ventto !
Check out Multiple displays section from https://wiki.archlinux.org/index.php/HiDPI

And yes, I want to turn eDP1 off and use only external display.

@Ventto
Copy link
Owner

Ventto commented Jan 25, 2018

but is there a possibility to make the same with mons ?

I am trying to keep mons as simple as possible (#21)
After some search, it can not make it without becoming partial copy of xrandr using xrandr itself.

So I recommend to keep using your custom command.

@Ventto Ventto closed this as completed Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants