LinuxQuestions.org
Visit Jeremy's Blog.
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 06-13-2010, 04:00 AM   #1
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
How do I make nvida-settings start automatically in Xfce?


I've looked at the Arch wiki entry for configuring NVIDIA cards/drivers, and I found that you can put the command nvidia-settings --load-config-only into your DE's session startup configs to make it launch automatically upon login. However, I can't seem to figure out how to do this under Xfce. I've already tried modifying /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml with the following:

Code:
...
<property name="Client4_PerScreen" type="bool" value="false"/>
<property name="Client4_Command" type="array"/>
    <value type="string" value="nvidia-settings"/>
    <value type="string" value="--load-config-only"/>
</property>
This is just my own extrapolation of what the rest of the config file looks like. However, when I log out and back in again, I get an unwanted splash screen (the Xfce mouse), and the settings don't apply themselves. I've tried searching both LQ and Google for this problem or a similar problem, but to no avail. Is there something I'm doing wrong and/or missing with this?
 
Old 06-13-2010, 08:54 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
http://ubuntuforums.org/showthread.php?t=142846
you could always create an 'Autostart' directory within the Desktop directory (~/Desktop/Autostart) and place any executables you want started upon XFCE boot into an executable script in that directory.

the nvidia configuration tool is supposed to save the settings and sort out the correct xorg.conf for you. You should not need to load your settings every time.
 
Old 06-13-2010, 11:04 AM   #3
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864

Original Poster
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Thanks for that little tip. It works now, yay!

One thing that's a little annoying though is the fact that now I've got the icon for the "Autostart" folder on the desktop. Oh well...

Quote:
the nvidia configuration tool is supposed to save the settings and sort out the correct xorg.conf for you. You should not need to load your settings every time.
? It created a correct xorg.conf, but there are other settings that it needs to apply on startup for some reason. For example, I've got it set to do special GPU scaling when the resolution is set to something other than the screen's native res of 1366x768, so that the display doesn't look "stretched" if a game or other finicky program wants to run in a non-16:9 aspect ratio. That, and other various things like forcing OpenGL apps to vsync, on-demand vblank interrupts to save power when on battery (this is on a laptop), etc. For some reason they only apply when I load nvidia-settings upon login. But, it's good to know that the autostart workaround works...
 
Old 06-14-2010, 05:11 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by MrCode View Post
Thanks for that little tip. It works now, yay!

One thing that's a little annoying though is the fact that now I've got the icon for the "Autostart" folder on the desktop. Oh well...
Yeah - the idea is that you want to know there are autostart scripts there, so it is probably good that it is there. But I know what you mean.

Quote:
forcing OpenGL apps to vsync, on-demand vblank interrupts to save power when on battery (this is on a laptop), etc. For some reason they only apply when I load nvidia-settings upon login. But, it's good to know that the autostart workaround works...
The nvidia manual (man nvidia) gives you a range of options that you can add to xorg.conf to achieve this sort of thing - anything you don't have to modify on the fly. All the driver options can be added this way.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 make wlan0 driver start automatically in opensuse 11? tjwoosta Linux - Newbie 2 10-21-2008 01:35 AM
Make Samba start automatically? anti.corp Arch 2 02-12-2006 11:59 AM
how to make named start automatically at startup nazzymac *BSD 3 04-20-2004 10:58 AM
How can I make my NIC card working automatically at my os start? exper Linux - Hardware 1 11-12-2003 09:50 PM
How can i make xfree86 start automatically at boot? KiLLaWaBBiT Linux - Software 1 04-07-2003 10:06 AM

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

All times are GMT -5. The time now is 03:00 AM.

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