This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Reboot loses monitor settings

Tags: None
(comma "," separated)
User avatar
Legion
Registered Member
Posts
31
Karma
0
OS

Reboot loses monitor settings

Mon Jul 02, 2018 5:31 am
A Long time Linux / KDE user and new user of KDE Neon, using 5.13, and so far am very happy with it.
Except:
I have a desktop with dual monitors, identical monitors except one has HDMI and the other doesn't

I set the monitors the way I want them, left and right and nominate the DVI connected monitor as Primary as it is on the left.

Every single time I boot the monitor settings have swapped the two monitors over, so the main monitor is the HDMI monitor on the right.

Also the ( I presume) first run monitor set up app pops up on the screen every time. Which I ignore and close (I did try it once and it turned my screen into gibberish) and return to display and monitor in settings to change them back to the way I want them. These settings simply do not retain the settings I set when I reboot.

Any ideas how I can make the setting a little more permanent. Recently came from Mint 18.3 (bailed with no KDE in 19) and previously a long time user of openSUSE and have never had this issue before, with the same desktop and monitors.


People who give up freedoms for security deserve neither
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Reboot loses monitor settings

Thu Jul 05, 2018 8:56 am
I have the same problem and the solution is to edit the xsetup file on / usr / share / sddm / scripts.
After each update sddm, the xsetup file must be manually edited, save the copy of the file to / Document

Code: Select all
#!/bin/sh
# Xsetup - run as root before the login dialog appears

mode="$(xrandr -q|/bin/grep -A1 "DVI-1 connected"| tail -1 |awk '{ print $1 }')"
if [ -n "$mode" ]; then
  xrandr --output HDMI-0 --off
  xrandr --output DVI-1 --primary --mode 1920x1080
fi

if [ -e /sbin/prime-offload ]; then
    echo running NVIDIA Prime setup /sbin/prime-offload
    /sbin/prime-offload
fi
User avatar
Legion
Registered Member
Posts
31
Karma
0
OS

Re: Reboot loses monitor settings

Thu Jul 05, 2018 8:34 pm
Thanks for the reply.
I note the line
'echo running NVIDIA Prime setup /sbin/prime-offload

I have an AMD card and do not use NvIDIA drivers.


People who give up freedoms for security deserve neither
User avatar
alideda
Registered Member
Posts
251
Karma
0
OS

Re: Reboot loses monitor settings  Topic is solved

Thu Jul 05, 2018 10:44 pm
This is the script for the AMD GPU, it can be like this. I use a free radeon driver and this script.

Code: Select all
#!/bin/sh
# Xsetup - run as root before the login dialog appears

mode="$(xrandr -q|/bin/grep -A1 "DVI-1 connected"| tail -1 |awk '{ print $1 }')"
if [ -n "$mode" ]; then
  xrandr --output HDMI-0 --off
  xrandr --output DVI-1 --primary --mode 1920x1080
fi
User avatar
Legion
Registered Member
Posts
31
Karma
0
OS

Re: Reboot loses monitor settings

Fri Jul 06, 2018 12:05 am
Thanks, I'll give it a go.


People who give up freedoms for security deserve neither


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]