LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2012, 11:34 AM   #1
mrm5102
Member
 
Registered: Apr 2011
Location: Philadelphia
Posts: 158

Rep: Reputation: 3
Nvidia-Settings GUI Commands


Hello All,

I had a question about the "nvidia-settings" command that opens the GUI.

Specs:
OS: OpenSuSE 11.4
Kernel: 2.6.37.6-0.11-default
GPU: NVS 3100M
NVIDIA Driver: 295.49

Does anyone know if there is anyway that you can capture the commands that get executed when you click "apply" from
within the "nvidia-setting" GUI? I would like to try and script something out to make it a little less painful.

The main reason I wanted to use the "nvidia-settings" GUI is because I can change stuff temporarily WITHOUT
having it saved to my "xorg.conf" file.

Any thoughts would be much appreciated...


Thanks in Advance,
Matt
 
Old 06-07-2012, 07:22 PM   #2
tommyttt
Member
 
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207

Rep: Reputation: 34
Quote:
Originally Posted by mrm5102 View Post
Hello All,

I had a question about the "nvidia-settings" command that opens the GUI.

Specs:
OS: OpenSuSE 11.4
Kernel: 2.6.37.6-0.11-default
GPU: NVS 3100M
NVIDIA Driver: 295.49

Does anyone know if there is anyway that you can capture the commands that get executed when you click "apply" from
within the "nvidia-setting" GUI? I would like to try and script something out to make it a little less painful.

The main reason I wanted to use the "nvidia-settings" GUI is because I can change stuff temporarily WITHOUT
having it saved to my "xorg.conf" file.

Any thoughts would be much appreciated...


Thanks in Advance,
Matt
I can't help with actually capturing the commands from a GUI but you could save the xorg.conf file under a different name, run the GUI, and then compare the old and new files. Maybe set up a simple script to switch between them when needed, i.e.:either renaming or creating softlinks. This is not the most beautiful method but it works.

Tom
 
1 members found this post helpful.
Old 06-07-2012, 07:36 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
as far as i know, the nvidia-settings doesn't run commands per-se it's just a front-end for editing the xorg.conf file
 
1 members found this post helpful.
Old 06-07-2012, 08:50 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,825

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
I would like to try and script something out to make it a little less painful.
what

how is one time ONLY lunching it as root and saving the xorg.conf "painful"

or
as a normal user a ONE TIME ONLY saving some setting ".nvidia-settings-rc" in the $HOME folder "painful"

Last edited by John VV; 06-07-2012 at 08:54 PM.
 
Old 06-08-2012, 09:49 AM   #5
mrm5102
Member
 
Registered: Apr 2011
Location: Philadelphia
Posts: 158

Original Poster
Rep: Reputation: 3
Hey Tommytt, thanks for the reply.

Yea, good suggestion. I've actually tried that not too long ago but that would require restarting the Xserver which
kind of defeats my purpose. But thanks for the suggestion!


Hey frieza, also thanks for your reply.

Yea I know that it can modify the Xorg.conf with it, but it has got to (maybe not, I could be wrong) do something to change
"certain" things because it is not restarting the Xserver when I hit apply for what I do to remove it from my docking
station. In order to switch to the laptop monitor only.

I've tried looking into the xrandr command but unless my laptop monitor is enable I'm pretty sure it doesn't even
know that the monitor is present...


John, thanks for the sarcasm!

The whole idea behind this is my laptop is plugged into a docking station which has an external monitor attached to it.
Quite frequently I get called into meetings last minute and need to bring my laptop with me. 99% of the time I am working
on stuff and have lots of things open and running when this happens (i.e. Tons of Firefox windows, a Virtual Machine, a
couple windows of Gedit, SSH/Telnet Sessions etc...) and the time it takes to save everything and close it all out so I can
take my laptop with me, and then restarting the Xserver wastes lots of time. A couple of minutes seems a lot longer when you
have people waiting on you to get there.

My other option that I do now is to open the Nvidia GUI, which sometimes take up to a full minute to load up. Then when it FINALLY
does I enable my laptop monitor in Twin View then change the external monitor's resolution to the closest resolution to my
laptop's monitor, then hit apply (which does NOT restart my Xserver, and does not overwrite my xorg.conf file). Then I remove my
laptop and am on my way.

What I am trying to do, which doesn't seem stupid to me, is have a launcher (or something similar) in which I just click and it runs
the script I'm trying to do. Besides the whole idea of computers and technology is to make your life simpler and automation is a
major goal of most technology!


Thanks again for everybody's suggestions.


Thanks,
Matt
 
Old 06-08-2012, 10:11 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,011

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
It won't help you find out what settings the GUI is changing but nvidia-xconfig may work, probably worth a look.
http://man.cx/nvidia-xconfig%281%29
 
1 members found this post helpful.
Old 06-08-2012, 10:21 AM   #7
mrm5102
Member
 
Registered: Apr 2011
Location: Philadelphia
Posts: 158

Original Poster
Rep: Reputation: 3
Hey 273, thanks for your reply.

Yea, I looked into that not too long ago, but I'll check it out again...

Ok, so I just re-read through the Man Pages Briefly again.
Do you know if when it says this below:

Quote:
"The system X configuration file is found and read into memory...
The configuration in memory is modified to support the NVIDIA driver...
The configuration in memory is modified according to the options specified on the command line...."
Does that mean (i.e. "The one in memory"), that it will try to apply these changes after the command finishes executing?


Thanks Again,
Matt
 
Old 06-08-2012, 10:24 AM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,011

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
I'm afraid I'm not sure on that, sorry. I have only used nvidia-xconfig to create an xorg.conf on first install of the drivers when I don't have any GUI at all. Best I can advise is backup your xorg.conf and try it carefully.
 
1 members found this post helpful.
Old 06-08-2012, 10:26 AM   #9
mrm5102
Member
 
Registered: Apr 2011
Location: Philadelphia
Posts: 158

Original Poster
Rep: Reputation: 3
Yea I hear ya... Thanks for the suggestion though, I'll give it a shot if I ever find a little break today...
Or most likely sometime after work.


Thanks Again,
Matt
 
Old 06-08-2012, 10:38 AM   #10
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Quote:
Originally Posted by mrm5102 View Post


Does that mean (i.e. "The one in memory"), that it will try to apply these changes after the command finishes executing?


Thanks Again,
Matt
some options can be changed on the fly, some can't, but you have to click 'apply' it isn't an automatic thing
 
Old 06-08-2012, 10:52 AM   #11
mrm5102
Member
 
Registered: Apr 2011
Location: Philadelphia
Posts: 158

Original Poster
Rep: Reputation: 3
frieza, thanks for the reply.

Right... But the nvidia-xconfig is run on the command line and doesn't have a GUI, so no "Apply" button available.

With the nvidia-settings GUI, which I guess is what your talking about, that's what I've been doing
with it, changing the settings that don't require a X restart. Which is usually, for me, changing to Twin View.


Thanks,
Matt
 
Old 06-08-2012, 12:43 PM   #12
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
as far as i know, nvidia-xconfig only goes as far as to create a default xorg.conf based on your existing default settings and/or results from probing the hardware, it isn't really a front-end for other commands as your initial post seems to imply, though i do understand what you mean about some programs being a front-end/back-end situation where the 'front-end' only provides a ui for other commands in the background, running such front-ends in the terminal and watching the output helped me learn a lot of what i know, but i don't think that would work here.
 
Old 06-08-2012, 01:44 PM   #13
mrm5102
Member
 
Registered: Apr 2011
Location: Philadelphia
Posts: 158

Original Poster
Rep: Reputation: 3
Hey frieza, thanks again for your reply...

Quote:
Originally Posted by frieza View Post
... it isn't really a front-end for other commands as your initial post seems to imply...
Just an FYI, I never mentioned anything about the "nvidia-xconfig" command at all in my Original Post. I think you
may be mixing me up with someone else's post..? Unless you meant to say "nvidia-settings" command.

No worries though. I appreciate your help.

Thanks Again,
Matt
 
  


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
nvidia proprietary driver, nvidia-settings and how to configure panning bluebox Linux - Hardware 1 03-11-2011 04:21 PM
nvidia-settings vs nvidia-glx POWERade Linux - Games 2 07-18-2006 12:40 AM
what are the commands for these settings? Drone4four Linux - Newbie 6 07-04-2006 07:08 PM
GUI terminal commands Red Squirrel Linux - Software 8 08-14-2005 07:06 AM
SEE linux commands while I use GUI nuby Linux - Newbie 4 09-04-2003 08:31 PM


All times are GMT -5. The time now is 12:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration