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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-07-2012, 11:34 AM
|
#1
|
Member
Registered: Apr 2011
Location: Philadelphia
Posts: 165
Rep:
|
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
|
|
|
06-07-2012, 07:22 PM
|
#2
|
Member
Registered: Oct 2009
Location: Federal Way, WA
Distribution: openSUSE 11.4 x86_64, openSuSE 12.1, Fedora 15
Posts: 207
Rep:
|
Quote:
Originally Posted by mrm5102
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.
|
06-07-2012, 07:36 PM
|
#3
|
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,233
|
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.
|
06-07-2012, 08:50 PM
|
#4
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,667
|
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.
|
|
|
06-08-2012, 09:49 AM
|
#5
|
Member
Registered: Apr 2011
Location: Philadelphia
Posts: 165
Original Poster
Rep:
|
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
|
|
|
06-08-2012, 10:11 AM
|
#6
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
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.
|
06-08-2012, 10:21 AM
|
#7
|
Member
Registered: Apr 2011
Location: Philadelphia
Posts: 165
Original Poster
Rep:
|
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
|
|
|
06-08-2012, 10:24 AM
|
#8
|
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
|
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.
|
06-08-2012, 10:26 AM
|
#9
|
Member
Registered: Apr 2011
Location: Philadelphia
Posts: 165
Original Poster
Rep:
|
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
|
|
|
06-08-2012, 10:38 AM
|
#10
|
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,233
|
Quote:
Originally Posted by mrm5102
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
|
|
|
06-08-2012, 10:52 AM
|
#11
|
Member
Registered: Apr 2011
Location: Philadelphia
Posts: 165
Original Poster
Rep:
|
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
|
|
|
06-08-2012, 12:43 PM
|
#12
|
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,233
|
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.
|
|
|
06-08-2012, 01:44 PM
|
#13
|
Member
Registered: Apr 2011
Location: Philadelphia
Posts: 165
Original Poster
Rep:
|
Hey frieza, thanks again for your reply...
Quote:
Originally Posted by frieza
... 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
|
|
|
All times are GMT -5. The time now is 12:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|