Skip to content
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.

Scaling issue with nvidia gpu and gdm3? #16

Description

@cjchristopher
  • xrandr-extend version: 0.3.0
  • Python version: 3.10.6
  • Operating System: Ubuntu 22.04.1 gdm3

Description

External HDMI has 4x zoomed (i.e. I can only see the top left corner of a theoretical secondary 3840x2160)

What I Did

pip install xrandr-extend
python3 -m xrandr_extend.cfg

Edited ~/.config/xrandr-extend.cfg as follows:
set primary = 3840, 2160 in [resolutions]
added: [nvidia-g0] as a provider after being instructed by xrandr-extend hdmi with primary = eDP-1 and hdmi = HDMI-1-0

> xrandr-extend hdmi
xrandr --auto
xrandr --listmonitors
xrandr --output eDP-1 --auto --output HDMI-1-0 --auto --scale 2.0x2.0 --right-of eDP-1
Monitors: 2
 0: +*eDP-1 3840/344x2160/194+0+0  eDP-1
 1: +HDMI-1-0 3840/531x2160/299+3840+0  HDMI-1-0

Running with -x 1 hdmi gives me a properly fixed window 1920x1080, but UI elements are all scaled to twice the size (i.e. enormous). A note that UI elements seem to be 2x scaled on the primary 4k laptop display, which is what I want, as without 2x UI scaling there, everything is impossibly small.
Essentially I want: primary to be at 4k with 2x UI scaling, secondary to be at 1080p with 1x UI scaling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions