I am using Ubuntu 18.10.
I am trying to create two aliases in my .bashrc for commands to "resdown" and "resup" (i.e. decrease and increase my screen resolution respectively).
The resdown command is as follows, and works just fine:
xrandr --output DP-2 --mode 3840x2160
The issue I have is with resup. When I run the following:
xrandr --output DP-2 --mode 3840x2160
The UI scaling is set back to 100%. I need to change the scaling to 200%, or everything on my 4K display is incredibly small.
I have been experimenting with the "--scale" option for xrandr, but it entirely screws up my display. As such, I am not sure that it is doing what I think it is doing:
xrandr --output DP-2 --mode 3840x2160 --scale 2x2
If I used my second monitor to go back into gnome-control-center, I can set the screen resolution and scaling just fine, and everything goes back to normal. I want, however, to do this from the command line.
Basically - I want to know how to set the "Scale" setting that you see in gnome-control-center (see below) from the command line. How can I do this?:
In my case, I cannot use xrandr at all, any attempt to SET anything kills both monitors! I have since switched that machine to a different desktop (gear icon at login) and that seems to have worked around my problem. Doing some digging, it seemed for the setup we have, Xrandr might be the wrong method. It seems PGM3 is in charge.
– Richard Cooke Nov 12 '18 at 15:17