You are not logged in.

#1 2021-04-04 11:08:17

b177y
Member
Registered: 2021-02-02
Posts: 5

External monitor is too zoomed in (different dpi to internal display)

I am using qtile as a window manager and the proprietary nvidia drivers with prime offloading -rendering is done by the iGPU but the nvidia outputs are accessible.

My external monitor shows what seems to be the top left quarter of what it should be showing, but scaled to fit the whole screen.

I had my external monitor working before, but using optimus-manager. However using this was a pain as I had to switch to nvidia mode when I wanted to have access to my hdmi / thunderbolt display outputs.

The xrandr script I'm using is the same as what I used before, but with the new output names:

#!/bin/bash

xrandr --dpi 276
xrandr --output DP-1-0.1 --mode 1920x1080 --pos 0x0 --rotate normal --scale 2x2
xrandr --output eDP1 --primary --mode 3840x2160 --pos 1327x2160 --rotate normal

https://imgur.com/a/edA2crE

Last edited by b177y (2021-04-04 15:01:53)

Offline

#2 2021-04-04 20:03:23

seth
Member
Registered: 2012-09-03
Posts: 19,805

Re: External monitor is too zoomed in (different dpi to internal display)

https://gitlab.freedesktop.org/xorg/xse … quests/534
Perhaps fixed w/ xorg-server 1.21 and at least the modesetting driver.
Until then, just run eDP1 at a lower resolution.

Offline

#3 2021-04-04 20:29:16

b177y
Member
Registered: 2021-02-02
Posts: 5

Re: External monitor is too zoomed in (different dpi to internal display)

seth wrote:

https://gitlab.freedesktop.org/xorg/xse … quests/534
Perhaps fixed w/ xorg-server 1.21 and at least the modesetting driver.
Until then, just run eDP1 at a lower resolution.

How would I use the modesetting driver? Currently I have mesa installed (and xf86-video-intel is not installed)

Is there any easy way to use xorg-server 1.21 or would I have to compile it myself? I couldn't find it in the arch repos / AUR

I tried setting the laptop display and external monitor both to 1080p but the problem seems to be the same on both displays. Changing the dpi with xrandr --dpi has no effect.

Offline

#4 2021-04-04 20:37:54

seth
Member
Registered: 2012-09-03
Posts: 19,805

Re: External monitor is too zoomed in (different dpi to internal display)

modesetting is the default driver (so w/o xf86-video-intel, you're using it. check your xorg log)

xorg-server 1.21 doesn't exist so far. You'll have to wait.
https://gitlab.freedesktop.org/xorg/xse … lestones/1
https://www.phoronix.com/scan.php?page= … ease-Means

I tried setting the laptop display and external monitor both to 1080p but the problem seems to be the same on both displays.

Please post what you actually did and also the resulting output of "xrandr -q".

Offline

#5 2021-04-05 09:52:43

b177y
Member
Registered: 2021-02-02
Posts: 5

Re: External monitor is too zoomed in (different dpi to internal display)

seth wrote:

Please post what you actually did and also the resulting output of "xrandr -q".

So for the full res attempt:

$ xrandr --dpi 276
$ xrandr --output eDP-1 --primary --mode 3840x2160 --rotate normal
$ xrandr --output DP-1-0.1 --mode 1920x1080 --right-of eDP-1 --rotate normal --scale 2x2

$ xrand -q

Screen 0: minimum 320 x 200, current 7680 x 2160, maximum 16384 x 16384
eDP-1 connected primary 3840x2160+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   3840x2160     60.00*+  59.98    40.00    59.97  
   3200x1800     59.96    59.94  
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96    59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
DP-1-0.1 connected 3840x2160+3840+0 (normal left inverted right x axis y axis) 476mm x 268mm
   1920x1080     60.00*+  59.94    50.00  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
  1680x1050 (0x63) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1280x1024 (0x6a) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1280x800 (0x74) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1024x768 (0x7b) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x8a) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  640x480 (0x97) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz

And for the low res attempt:

$ xrandr --dpi 75
$ xrandr --output eDP-1 --primary --mode 1920x1080 --rotate normal
$ xrandr --output DP-1-0.1 --mode 1920x1080 --right-of eDP-1 --rotate normal
$ xrandr -q

Screen 0: minimum 320 x 200, current 5760 x 2160, maximum 16384 x 16384
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   3840x2160     60.00 +  59.98    40.00    59.97  
   3200x1800     59.96    59.94  
   2880x1620     59.96    59.97  
   2560x1600     59.99    59.97  
   2560x1440     59.99    59.99    59.96    59.95  
   2048x1536     60.00  
   1920x1440     60.00  
   1856x1392     60.01  
   1792x1344     60.01  
   2048x1152     59.99    59.98    59.90    59.91  
   1920x1200     59.88    59.95  
   1920x1080     60.01    59.97    59.96*   59.93  
   1600x1200     60.00  
   1680x1050     59.95    59.88  
   1400x1050     59.98  
   1600x900      59.99    59.94    59.95    59.82  
   1280x1024     60.02  
   1400x900      59.96    59.88  
   1280x960      60.00  
   1440x810      60.00    59.97  
   1368x768      59.88    59.85  
   1280x800      59.99    59.97    59.81    59.91  
   1280x720      60.00    59.99    59.86    59.74  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   1024x576      59.95    59.96    59.90    59.82  
   960x600       59.93    60.00  
   960x540       59.96    59.99    59.63    59.82  
   800x600       60.00    60.32    56.25  
   840x525       60.01    59.88  
   864x486       59.92    59.57  
   700x525       59.98  
   800x450       59.95    59.82  
   640x512       60.02  
   700x450       59.96    59.88  
   640x480       60.00    59.94  
   720x405       59.51    58.99  
   684x384       59.88    59.85  
   640x400       59.88    59.98  
   640x360       59.86    59.83    59.84    59.32  
   512x384       60.00  
   512x288       60.00    59.92  
   480x270       59.63    59.82  
   400x300       60.32    56.34  
   432x243       59.92    59.57  
   320x240       60.05  
   360x202       59.51    59.13  
   320x180       59.84    59.32  
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-2 disconnected (normal left inverted right x axis y axis)
DP-1-3 disconnected (normal left inverted right x axis y axis)
DP-1-0.1 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 476mm x 268mm
   1920x1080     60.00*+  59.94    50.00  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
  1680x1050 (0x63) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1280x1024 (0x6a) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1280x800 (0x74) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1024x768 (0x7b) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x8a) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  640x480 (0x97) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz

Offline

#6 2021-04-05 12:21:55

seth
Member
Registered: 2012-09-03
Posts: 19,805

Re: External monitor is too zoomed in (different dpi to internal display)

And for the low res attempt:

Screen 0: minimum 320 x 200, current 5760 x 2160, maximum 16384 x 16384

I assume you didn't un-scale the output at any stage?

Edit,

xrandr --output DP-1-0.1 --scale 1x1 --mode 1920x1080 --right-of eDP-1 --rotate normal

Last edited by seth (2021-04-05 12:22:42)

Offline

Board footer

Powered by FluxBB