0%

Pop!_OS 20.04 Display Rotation Bug Fix

Foreword

If you upgraded to the new Pop!_OS 20.04 recently, you might have experienced issues with screen rotations if you have a multi-monitor setup. If you rotate a secondary display from gnome display configuration left or right, it does not rotate.

The issue are being tracked here:
https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/974
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1874217

Solution

Use ARandR to create a script and add it to startup applications.

Create a layout script using ARandR and save it into a place you prefer.

This is what I have in my script:

1
2
#!/bin/sh
xrandr --output DVI-D-0 --off --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off --output DP-5 --mode 1920x1080 --pos 0x0 --rotate right

Important note:
Sometimes xrandr commands can break if they are run too early before the desktop is fully loaded. Therefore you might want to add a break into the command:

1
2
#!/bin/sh
sleep 10&&xrandr --output DVI-D-0 --off --output HDMI-0 --primary --mode 1920x1080 --pos 1080x420 --rotate normal --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --off --output DP-5 --mode 1920x1080 --pos 0x0 --rotate right

Add to startup applications

I named my script “dual_monitor.sh” so I will add the following line to the command:

1
/bin/bash /path/to/dual_monitor.sh