Page 1 of 1

[SOLVED] Display settings lost with each reboot

PostPosted: Sep 8th, '13, 22:27
by leon244
I have just installed Mageia 3 and am learning my way around. I have an Nvidia card and two monitors. On boot both monitors come up and are the reverse of what I want. Namely, the right monitor is primary and the mouse needs to be moved from right to leftt to move it accross the screens. However I like to work on the left screen and if needed slide my mouse from the left to the right-sided screen. As the right-sided screen is by default the primary one, then the mouse cannot go right side to left.

I opened the system settings, went to 'Display" and move the screens so they are in the relationship I want and set the primary screen to the appropriate side so that it all works the way I want. I then clicked on the "Save as default" button and recieved the dialog that the setting had been set as the desktop default.

Now the problem: With every reboot, the setting is lost and I have to go through the system settings again. :(
Bug? Something I am missing?
Appreciate any help anyone can offer.
Thanks

Re: Display settings lost with each reboot

PostPosted: Sep 9th, '13, 04:23
by daniewicz
You need to create a script file and then run it automatically during each new reboot. The script file should look like this:

Code: Select all
#!/bin/bash
#
# This is a bash shell script to be run at startup
#
nvidia-settings --load-config-only




Copy this file to:

/home/username/.kde4/Autostart

(if you are using kde) and it will run as needed each time you reboot.

Re: Display settings lost with each reboot

PostPosted: Sep 9th, '13, 15:52
by leon244
Thank you. I did as you suggested and the result was that my desktop stopped working. no apps would open and the desktop was frozen. When I removed the script from Autostart, everything was back the way it was.

So I am still left with adjusting the screens after each boot or logout.
Thanks for trying

Re: Display settings lost with each reboot

PostPosted: Sep 9th, '13, 21:09
by doktor5000
@daniewicz: How do you assume that the nvidia driver is currently in use, and that there is an nvidia-settings profile which can be loaded?

@leon: Did you try to run nvidia-settings as root, and save the configuration after adjusting it as you like it?

Re: Display settings lost with each reboot

PostPosted: Sep 10th, '13, 00:54
by daniewicz
I have a hidden file .nvidia-settings-rc in my home directory leon. Do you not have this after running
Code: Select all
nvidia-settings

Re: Display settings lost with each reboot

PostPosted: Sep 10th, '13, 05:41
by jiml8
I also have that .nvidia-settings-rc file in my home directory.

If you don't have that file, then that probably is your problem. Which suggests that for some reason nvidia-settings can't write it. You probably would learn some things by running the command: strace nvidia-settings. This will tell you what nvidia-settings is opening and closing, and you'll probably get some idea of the problem from that.

Re: Display settings lost with each reboot

PostPosted: Sep 10th, '13, 07:12
by doktor5000
My point was that the OP used KDEs systemsettings, and not mentioned nvidia-settings at all. So nothing would be loaded as no profile exists.

Re: Display settings lost with each reboot

PostPosted: Sep 10th, '13, 12:22
by leon244
doktor5000 wrote:@leon: Did you try to run nvidia-settings as root, and save the configuration after adjusting it as you like it?


No I did not
I did not see these posts before I played some more and fixed my issue. The problem is that I did a number of things but the main one was that I switched DVI cables on the monitors. I then went into MCC and adjusted the settings, and then finally set the relationship in KDE settings. I will follow up on the presence of nvidia-settings.rc

I will for now mark the problem as solved.
Leon