Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
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.
I have two different xorg.conf setups that I use, one when I have my 32inch LCD connected and one when I do not, is there a way I can create a file that makes it a one click process to swap the configuration it uses? I often let my roomates use my laptop to watch videos and the nVidia configuration is not so user friendly for a computer nooby.
Actually, the process of using multiple setups is not *that* simple, but it *is* simple, you just go about it another way:
One thing to remember is that when changing the configuration, X must be restarted (or a second session started) in order for the new configuration to be used.
The way to do it is with the --layout switch on the command-line that starts X. For example, a command-line like:
startx --layout=television -- :1
will start an X session on the first available tty, using the 'television' layout.
A 'layout' is defined inside the xorg.conf file; it is the 'ServerLayout" section. Most files have only one 'ServerLayout' section-- the default one. You can make a second (or more) different layouts by making new 'ServerLayout' sections each with their own 'Identifier', as long as the Device, Screen, Monitor etc. all exist elsewhere in the file (I mean, the different Layouts can share other components of the file). The 'Identifier' is the name you would use with the --layout switch.
This is way less confusing than trying to edit the config file with a script; that will get messy.
Sasha
PS - Making a button to make it a one-click process might work, but I have never tried it. The executable/command line of the button would likely be pretty much alike the commandline I gave above, with the --layout switch.
Last edited by GrapefruiTgirl; 06-29-2009 at 06:10 PM.
Alrighty, I understood most of what you said. One question though, how is my nVidia settings able to add my television to a "twin view" with out forcing an x-restart, is there a way I can do this with a script or a command do you know?
There's not a way that _I_ know, but that doesn't mean there isn't a way.
I use nvidia-settings too, and every time it offers to do something for me without re-starting X, it fails, and I need to restart X anyway if I want to see the change. I use nvidia-settings more like an info source than as a tool for actually doing something to the server.
NOTE: in my first reply, the command I gave to start X in a second tty, does not kill the running session, it just starts a second one; so for example, if you're using the machine, and you want to lend it to your friend or whatever to watch TV, you can start a second session for the friend, while leaving your first session intact; when the friend is done, just log out of that session, and you will be returned to your own session (or you can switch back and forth any time with CTRL-ALT-[1-7])
Sorry I can't give any specifics about your exact question regarding nvidia-settings, but I hope this info has helped you in some way
Yep, def helpful thank you much for the replies, I've actually been playing with a second X server for games. Any-who I've never had an issue with nvidia-settings not working for me (with or without a restart) so I will have to keep looking online I guess
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.