• Scaling dual monitors


    I have a 4k monitor and a 1080p monitor. If I turn on HiDPI scaling for the 4k, it also is applied to the 1080p monitor, which of course doubles the size of both monitors.

    How can I apply normal scaling to the 1080p monitor while keeping HiDPI for the 4k monitor ?

    Note: I have an RX560 4gb with the amdgpu driver.

    I do not game/etc so I am not worried about frame rates etc.

    [[email protected] ~]$ inxi -Fzxxx
    System:    Host: enki-workstation Kernel: 4.13.12-1-ARCH x86_64
               bits: 64 gcc: 7.2.0
               Desktop: Cinnamon 3.6.6 (Gtk 3.22.26) info: gnome-shell dm: gdm,lightdm
               Distro: Antergos Linux
    Machine:   Device: desktop System: Gigabyte product: Z170X-Gaming GT serial: N/A
               Mobo: Gigabyte model: Z170X-Gaming GT v: x.x serial: N/A
               UEFI [Legacy]: American Megatrends v: F21 date: 03/06/2017
    Battery    hidpp__0: charge: N/A condition: NA/NA Wh volts: NA
               model: Logitech MK700 serial: <filter>status: Discharging
               hidpp__1: charge: N/A condition: NA/NA Wh volts: NA
               model: Logitech Wireless Mouse MX Master serial: <filter>status: Discharging
    CPU:       Quad core Intel Core i7-6700K (-HT-MCP-) 
               arch: Skylake-S rev.3 cache: 8192 KB
               flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 32076
               clock speeds: min/max: 800/4200 MHz 1: 800 MHz 2: 800 MHz
               3: 800 MHz 4: 800 MHz 5: 800 MHz 6: 800 MHz 7: 800 MHz 8: 800 MHz
    Graphics:  Card: Advanced Micro Devices [AMD/ATI] Baffin [Radeon RX 560]
               bus-ID: 02:00.0 chip-ID: 1002:67ff
               Display Server: x11 (X.Org 1.19.5 )
               drivers: ati,vesa,radeon (unloaded: modesetting,fbdev)
               Resolution: [email protected], [email protected]
               OpenGL: renderer: AMD POLARIS11 (DRM 3.18.0 / 4.13.12-1-ARCH, LLVM 5.0.0)
               version: 4.5 Mesa 17.2.5 (compat-v: 3.0) Direct Render: Yes
    Audio:     Card-1 Advanced Micro Devices [AMD/ATI] Device aae0
               driver: snd_hda_intel bus-ID: 02:00.1 chip-ID: 1002:aae0
               Card-2 Intel Sunrise Point-H HD Audio
               driver: snd_hda_intel bus-ID: 00:1f.3 chip-ID: 8086:a170
               Card-3 Microsoft LifeCam Cinema
               driver: USB Audio usb-ID: 001-004 chip-ID: 045e:075d
               Sound: Advanced Linux Sound Architecture v: k4.13.12-1-ARCH
    Network:   Card-1: Intel Ethernet Connection (2) I219-V
               driver: e1000e v: 3.2.6-k bus-ID: 00:1f.6 chip-ID: 8086:15b8
               IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
               Card-2: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller
               driver: alx port: c000 bus-ID: 08:00.0 chip-ID: 1969:e0a1
               IF: enp8s0 state: down mac: <filter>
    Drives:    HDD Total Size: 1076.2GB (5.1% used)
               ID-1: /dev/nvme0n1 model: Samsung_SSD_950_PRO_256GB size: 256.1GB
               serial: <filter> firmware: 1B0QBXX7
               ID-2: /dev/sda model: WDC_WD3200JS size: 320.1GB serial: <filter>
               ID-3: /dev/sdb model: ST3500418AS size: 500.1GB serial: <filter>
    Partition: ID-1: / size: 219G used: 37G (18%) fs: ext4 dev: /dev/nvme0n1p2
               ID-2: /boot size: 243M used: 52M (23%)
               fs: ext4 dev: /dev/nvme0n1p1
               ID-3: swap-1 size: 16.85GB used: 0.00GB (0%)
               fs: swap dev: /dev/nvme0n1p5
    Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 40.0
               Fan Speeds (in rpm): cpu: N/A
    Info:      Processes: 265 Uptime: 1 day Memory: 5323.6/32136.5MB
               Init: systemd v: 235 Gcc sys: 7.2.0
               Client: Shell (bash 4.4.121 running in gnome-terminal-) inxi: 2.3.43 
    [[email protected] ~]$ 
    
    
  • use xrandr and create an autostarter under
    ~/.config/autostart
    nano ~/.config/autostart/xrandr.desktop

    [Desktop Entry]
    Type=Application
    Name=Displaysettings
    Comment=Displays size and arrangement
    Exec=xrandr --output HDMI1 --auto --output VGA1 --left-of LVDS1 --mode 1024x768
    

    //xrandr --output HDMI1 --auto --output VGA1 --left-of LVDS1 --mode 1024x768//
    is an example command you need to change to fit your needs… https://wiki.archlinux.org/index.php/Xrandr

    make it executable:

    chmod +x ~/.config/autostart/xrandr.desktop
    

    [updates once a week] = [90% less problems]
    http://gofccyourself.com
    my-blog#k
    how to add system logs
    i3 GNOME

  • Unfortunately in testing I am unable to get the screens correct using xrandr. I was able to get the scaling right, but one monitor or the other I could never get centered. There was always some type of over lap, off center, etc.

  • This site has been super helpful for me with regard to xrandr and scaling: https://blog.summercat.com/configuring-mixed-dpi-monitors-with-xrandr.html

Posts 4Views 129
Log in to reply