experiencing and odd issue with the resolution displayed on my system when I initially boot into Kubuntu - it's occurring with both 20.04 AND 21.04. On initial boot prior to login, I get a mirror of the laptop screen on the secondary monitor that covers the secondary monitor partially - it results in it looking like this: https://photos.app.goo.gl/ZxojAMDv3BvSG83D8
From what I've been able to discern, this laptop uses an AMD Ryzen Graphics chip for the laptop and an nVidia 2060M for the external display port. nVidia is using the . xrandr configuration is as follows:
DP-2 connected primary 3840x1600+0+0 (normal left inverted right x axis y axis) 879mm x 366mm
eDP-1-0 connected 1920x1080+3975+857 (normal left inverted right x axis y axis) 382mm x 215mm
Once I login, the desktop works as expected and the lock screen respects the monitor configuration if I lock it post-login. I've looked for a conf file for SDDM that I can use to modify the screen resolutions and layout to match what xrandr sees, but no success. Tried autorandr and a fresh install of 21.04 with no change.
I also tried the solution provided here: Kubuntu sddm rotated login screen (20.04)
I added the text to a new .conf file named login-screen.conf inside /etc/sddm.conf.d/ and added the following text:
[X11]
DisplayCommand=/usr/share/sddm/scripts/Xsetup
and in the Xsetup file I placed the following:
#!/bin/sh
# Xsetup - run as root before the login dialog appears
xrandr --output DP-1 --off
xrandr --output DP-2 --mode 3840x1600 --pos 0x0 --rotate normal --output eDP-1-0 --mode 1920x1080 --pos 3975x857 --rotate normal
if [ -e /sbin/prime-offload ]; then
echo running NVIDIA Prime setup /sbin/prime-offload
/sbin/prime-offload
fi
Unfortunately, a reboot exhibited the same behavior.
Steps I've already taken:
- Display Setup in System synced
- NVidia driver update - currently 460 but 465 exhibited same behavior under 20.04
- https://blog.victormendonca.com/2018/06/29/how-to-fix-sddm-on-multiple-screens/
I'm wondering if I've missed something or if perhaps I'm adding the configuraton to the wrong configuration file. If that's the case, I'd appreciate a pointer as I'm still relatively new.
TIA,
Mike