Author Topic: How Do I Invoke My Nvidia X-server Settings At Startup?  (Read 216 times)

Offline jdrichardson

  • New Friend
  • *
  • Posts: 9
How Do I Invoke My Nvidia X-server Settings At Startup?
« on: May 01, 2013, 08:03:24 PM »
I have an Nvidia display driver that I'm using as installed from PCLinuxOS (64-bit). I can set things up with the Nvidia X-Server Settings app but the settings will not be reapplied when I reboot. It would seem that I need to place something in the Autostart file, but I don't know what that is.

Can anyone help? I would appreciate it!

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: How Do I Invoke My Nvidia X-server Settings At Startup?
« Reply #1 on: May 02, 2013, 03:47:42 AM »
There are several Autostart folders but if you are running KDE I suggest you use the KDE one.

Systemsettings ("Configure Your Desktop")->"System Administration"->"Startup and Shutdown" will give you this window:



Click "Add Program" and navigate through "More Applications" and "Configuration" to "NVIDIA Display Settings".

But while it should be quite possible to run the Nvidia settings program at every login you shouldn't have to. If you can't save your settings from within the application it may be because you're running it as your ordinary user. In that case it can't save the necessary changes to /etc/X11/xorg.conf. Try starting it from a terminal as root. The path to the app is /usr/bin/nvidia-settings.
« Last Edit: May 02, 2013, 03:49:24 AM by Bald Brick »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline jdrichardson

  • New Friend
  • *
  • Posts: 9
Re: How Do I Invoke My Nvidia X-server Settings At Startup?
« Reply #2 on: May 02, 2013, 08:58:25 AM »
I agree that I shouldn't have to run Nvidia-Settings app at each log-in but it seems that's the only way to apply the settings. I don't like seeing the open window at each startup.

I removed Nvidia-Settings from startup. I then saved the settings as root per your suggestion, but no settings were applied when I rebooted.

I tried to have the application run from startup with no splash (/usr/bin/nvidia-settings -nosplash) but had no success. It put the system in a FUBAR state and I had to re-intsall.

Now I've installed xgamma and am running /usr/bin/xgamma -gamma 0.7 at startup. At least I'll have that setting applied.

Any other suggestions would be appreciated!

Offline jberkpc

  • Full Member
  • ***
  • Posts: 50
Re: How Do I Invoke My Nvidia X-server Settings At Startup?
« Reply #3 on: May 03, 2013, 05:13:50 AM »
I might be missing something here, but I've never been able to use nvidia-setttings in any distribution (KDE). I just start PCC, go to hardware, then Configure Video Card, select the proper video card, that selection seems to start the script to ask you: Do you want to use the Proprietary Driver?, select your monitor, resolution (that you should know for your flat panel or monitor), select your options, reboot and xorg.conf is written for you. Then you restart your computer and your settings have been applied and your off and running.That's what is so great, it's all done for you and you can add some lines shown in the Nvida appendix if you want. Most  settings don't apply to newer Nvidia Cards, but I set it up once with a 480GTX, just to be able to control the speed of the cooling fan on the video card and it worked.
You don't give your model of your card so I don't know if your card is older or newer, but that's one reason I've stuck with Nvidia cards because their Proprietary Drivers work well, even though there is a rift between Linus and Nvidia for not giving them more source to work with to develop the Open Source drivers.
Current PC
ASUS Rampage Extreme IV MB, i7-3820 quad core @3.6Ghz, 3.8Ghz turbo. 16 Gb Corsair Dominator GT Ram @1600 Mhz , Corsair 120Gb SSD, WD VelociRaptor 1Tb, WD Black 1Tb
Silverstone TJ09 Aluminum Case, Corsair 1200AX PS
EVGA 680GTX SC+ metal back plate

Offline jdrichardson

  • New Friend
  • *
  • Posts: 9
Re: How Do I Invoke My Nvidia X-server Settings At Startup?
« Reply #4 on: May 03, 2013, 07:35:43 AM »
I don't have any problems installing the driver for my GE6150 graphics chip. I do things just as you said - it's set up well for you in PCLinuxOS. The problem comes when I use the Nvidia-Settings app to set gamma values, brightness and contrast values, digital vibrance, etc. The app will let me set things, but will not reapply them on reboot, even though they're saved in a file. Upon further googling, I found out that's how things work by design - your settings are not reapplied. One has to restart the app every time after reboot to reapply the settings. Go figure!

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10607
  • MLUs Forever!
Re: How Do I Invoke My Nvidia X-server Settings At Startup?
« Reply #5 on: May 03, 2013, 08:28:10 AM »
I don't have any problems installing the driver for my GE6150 graphics chip. I do things just as you said - it's set up well for you in PCLinuxOS. The problem comes when I use the Nvidia-Settings app to set gamma values, brightness and contrast values, digital vibrance, etc. The app will let me set things, but will not reapply them on reboot, even though they're saved in a file. Upon further googling, I found out that's how things work by design - your settings are not reapplied. One has to restart the app every time after reboot to reapply the settings. Go figure!

Can the contents of the saved file from one setting be saved elsewhere and re-applied (saved over the default) before log in?
Would that work?

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6372
  • I'm going South
Re: How Do I Invoke My Nvidia X-server Settings At Startup?
« Reply #6 on: May 03, 2013, 09:23:10 AM »
I don't have any problems installing the driver for my GE6150 graphics chip. I do things just as you said - it's set up well for you in PCLinuxOS. The problem comes when I use the Nvidia-Settings app to set gamma values, brightness and contrast values, digital vibrance, etc. The app will let me set things, but will not reapply them on reboot, even though they're saved in a file. Upon further googling, I found out that's how things work by design - your settings are not reapplied. One has to restart the app every time after reboot to reapply the settings. Go figure!

Ah, you never told us which settings you wished to save. Those that aren't global and saved in /etc/X11/xorg.conf go by default into /home/<yourname>/.nvidia-settings-rc. To get them there you have to click "Save Current Configuration" on the "nvidia-settings Configuration" tab of nvidia settings. You can do this as your ordinary user and you can change the file-name and location.

(Clicking "Save to X Configuration File" on the "X Server Display Configuration" does not help; for that you have to be root and that's for global settings.)

After you've created the file .nvidia-settings-rc you should edit the file you earlier created in an Autostart folder. These days System Settings will probably have created the file in /home/<yourname>/.config/autostart instead of the traditional ~/.kde4/Autostart, so the file you want to edit will be ~/.config/autostart/nvidia-settings.desktop. In that file, change the line
Code: [Select]
Exec=/usr/bin/nvidia-settingsto
Code: [Select]
Exec=/usr/bin/nvidia-settings --load-config-only
After that the Nvidia settings should be loaded on log-in but the settings window shouldn't open.

(At least that's how it should be unless you've created and edited /etc/sysconfig/nvidia-settings.)
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline jdrichardson

  • New Friend
  • *
  • Posts: 9
Re: How Do I Invoke My Nvidia X-server Settings At Startup?
« Reply #7 on: May 03, 2013, 04:11:38 PM »
After reading your post, I reinstalled PCLinuxOS again, and gave it another go. I followed your instructions and my settings were restored on re-boot. Problem solved!!!

Thank you very much for your help.