KDE Plasma seems to forget the setting for monitor layout at certain event. I lost the setting while I was investigating about how I can avoid my X1E2 to get crashed with an extra monitor when turning on vsync to play a game.
This corrects the monitor layout issue.
My X1E2 has 1920x1080 and the external monitors have 2560x1440.
/usr/share/sddm/scripts/Xsetup
====================
#!/bin/sh
# Xsetup - run as root before the login dialog appears
if [ -e /sbin/prime-offload ]; then
echo running NVIDIA Prime setup /sbin/prime-offload
/sbin/prime-offload
fi
# Important: Put at last because it does not work otherwise
# ===== FROM HERE =====
if [ -e /usr/local/bin/layout-monitors ]; then
echo running layout script /usr/local/bin/layout-monitors
/usr/local/bin/layout-monitors
fi
# ===== TO HERE =====
Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.
Top comments (0)