Ubuntu – Display on second monitor misbehaves in portrait mode with Nvidia GTX GPU on Ubuntu 20.04

20.04displaydisplay-rotationgnome-panelmultiple-monitors

After upgrading to Ubuntu 20.04 today I found that my monitor configuration is not working properly any more. I have a 4k primary display in landscape and a 1080p secondary display in portrait (right) mode next to it on the right. I have an ATO GTX 950 videocard to power them both.

After upgrading from 19.10 to 20.04 I fond that panel (that I use on top using 'dash to panel' extension was partially on second monitor. Also windows are weirldy displayed partially across both screens in some circumstances. After more investigation I found that when I go to the second screen and move mouse cursor to right there seems to be more desktop there and the whole desktop shifts. ItÅ› almost like the desktop is too wide for the screens.

If I change second monitor to "normal" landscape orientation the panel shifts back fully to my primary monitor (instead of being partially on primary and partially on secondary) and all works normally (except that I cant use portait mode which I want to do and always could do before. When I "move" second monitor to left or above secondary primary monitor in display settings everything also looks and behaves normal (also in portrait) only the my mouse movements become illogical (I have to move cursor left off primary screen to get to monitor on the right.

Anybody have a clue what to do about this (except for possible bugfix in Ubuntu or display driver)?

Best Answer

I can't enable portrait mode at all for any of my monitors in the display settings. (arandr kind of works, but limits me to 60 Hz.)

However, turns out I can do it in the Nvidia Control Panel or with xrandr. Maybe, as a workaround, you could put something like this in a startup script:

xrandr --output DP-0 --rotate left

You would have to replace DP-0 with whatever output your secondary monitor is connected to, of course.

Specs for reference:

  • OS: Ubuntu 20.04 Beta
  • GPU: RTX 2060 Super
  • Driver: Nvidia 440.64
  • Monitor 1: Acer XV273K
  • Monitor 2: Asus PG278Q