LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-28-2009, 11:46 AM   #1
maxkukartsev
LQ Newbie
 
Registered: Apr 2009
Distribution: Gentoo, Arch, Slackware
Posts: 22

Rep: Reputation: 16
Launch nvidia-settings automatically


Hello everyone,

I'm trying to have the nVidia control panel program (nvidia-settings) load its settings automatically upon launching a graphical environment, but the methods that were suggested do not appear to work for me.

After I log in to Ubuntu (Jaunty), running this command line makes nVidia adjust screen properties (brightness, contrast, etc):
Code:
nvidia-settings --config=/etc/.nvidia-settings-rc --load-config-only &
To make this happen automatically, people have suggested to place the command into into ~/.xinitrc and create a symbolic link to it from ~/.xsession: http://forums.linuxmint.com/viewtopic.php?f=42&t=3908

I did exactly that, but even after login:
1) Screen properties are still default, no change happened.
2) When I launch the nvidia-settings command manually, the screen properties briefly become as if they were set by nvidia-settings, but then goes right back to the default. This happens over a split-second. If I remove nvidia-settings from ~/.xinitrc, the command sets the screen properties normally.

Can anyone else confirm this behavior on Ubuntu Jaunty?

There was another suggestion - to add the nvidia-settings command to the list of startup applications in GNOME. I did that, but the effect was identical to what I described above with ~/.xinitrc.

How should I make nvidia-settings launch at startup so that it sets screen properties properly?

Thanks in advance,
Max Kukartsev
 
Old 08-28-2009, 12:31 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
This Fixup file works for me (but I'm running KDE3 so it's placed in ~/.kde/Autostart )

Code:
tred@vaio:~$ cat Fixup
#!/bin/bash
# Disable the stupid Caps Lock key, and make it "Shift" instead
xmodmap -e "remove Lock = Caps_Lock"
xmodmap -e "add Shift = Caps_Lock"
# load the default nvidia settings (I like a slightly dimmed screen)
nvidia-settings -l
tred@vaio:~$
Note that Fixup needs to have executable permissions set: chmod +x Fixup
 
Old 09-01-2009, 08:55 PM   #3
maxkukartsev
LQ Newbie
 
Registered: Apr 2009
Distribution: Gentoo, Arch, Slackware
Posts: 22

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by tredegar View Post
This Fixup file works for me (but I'm running KDE3 so it's placed in ~/.kde/Autostart )

Code:
tred@vaio:~$ cat Fixup
#!/bin/bash
# Disable the stupid Caps Lock key, and make it "Shift" instead
xmodmap -e "remove Lock = Caps_Lock"
xmodmap -e "add Shift = Caps_Lock"
# load the default nvidia settings (I like a slightly dimmed screen)
nvidia-settings -l
tred@vaio:~$
Note that Fixup needs to have executable permissions set: chmod +x Fixup
The corresponding autostart directory for GNOME is ~/.config/autostart/, and each autostart entry is in *.desktop format.

Code:
$ cat ~/.config/autostart/nvidia-settings.desktop
[Desktop Entry]
Name=nVidia2
Comment=Load nVidia Configuration
Icon=system-run
Exec=nvidia-settings --config=/etc/.nvidia-settings-rc --load-config-only
Terminal=false
Type=Application
OnlyShowIn=GNOME;XFCE;
X-GNOME-Autostart-enabled=true
With this nvidia-settings.desktop file it works now.
 
  


Reply

Tags
graphics, nvidia, nvidiasettings



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to launch apps on start up? automatically? (Just like startup services in windos) wrapster Solaris / OpenSolaris 3 07-24-2009 03:28 PM
how to launch a script automatically newusermike Linux - Newbie 2 08-12-2005 06:19 PM
How can I force audio cd's to automatically launch and run in xmms? corso64 Linux - Newbie 1 08-29-2004 12:44 AM
slackware - launch Gnome automatically? jhecht Linux - Software 5 06-26-2004 07:12 AM
Automatically Launch apps. with Fluxbox ganninu Linux - Software 1 08-17-2003 12:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration