LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux > 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 08-28-2009, 12:46 PM   #1
maxkukartsev
LQ Newbie
 
Registered: Apr 2009
Distribution: Fedora, Ubuntu, Debian
Posts: 16
Thanked: 1
Launch nvidia-settings automatically


[Log in to get rid of this advertisement]
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
linuxubuntu maxkukartsev is offline  
Tag This Post , ,
Reply With Quote
Old 08-28-2009, 01:31 PM   #2
tredegar
Senior Member
 
Registered: May 2003
Location: London, UK
Distribution: Kubuntu6.06.1LTS (still excellent!). Kubuntu 8.04.1
Posts: 4,373
Thanked: 141
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
linuxubuntu tredegar is offline     Reply With Quote
Old 09-01-2009, 09:55 PM   #3
maxkukartsev
LQ Newbie
 
Registered: Apr 2009
Distribution: Fedora, Ubuntu, Debian
Posts: 16
Thanked: 1

Original Poster
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.
linuxubuntu maxkukartsev is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 04:28 PM
how to launch a script automatically newusermike Linux - Newbie 2 08-12-2005 07:19 PM
How can I force audio cd's to automatically launch and run in xmms? corso64 Linux - Newbie 1 08-29-2004 01:44 AM
slackware - launch Gnome automatically? jhecht Linux - Software 5 06-26-2004 08:12 AM
Automatically Launch apps. with Fluxbox ganninu Linux - Software 1 08-17-2003 01:29 PM


All times are GMT -5. The time now is 07:27 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration