LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-21-2007, 08:13 PM   #1
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Arch
Posts: 452

Rep: Reputation: 35
Xorg switching


Alright I think its safe to say we probably all have at least once messed around with an Xorg/Xf86 config file and were booted into a black screen with a basic oops you screwed up message.Over the past years I always saved my original to another directory along with any other versions that I got working. Like on my suse 10.2 box I have one for beryl and one for my tv-out then I issue a "cd /directory/xorg/" then "cp xorg.conf /etc/X11/" and all is good.Now there has got to be an even easier way to do this. Am I wrong?

Last edited by Mojojo; 07-21-2007 at 08:15 PM.
 
Old 07-21-2007, 09:45 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
If you know where the directory is just issue the command from where you are, e.g. cp /<file location>/xorg.conf /etc/X11 or you could create a shell script that when ran will copy the file to the location.
 
Old 07-22-2007, 10:49 PM   #3
Mojojo
Member
 
Registered: May 2003
Location: Philadelphia/PA
Distribution: Arch
Posts: 452

Original Poster
Rep: Reputation: 35
What I was actually looking for is setting up kdm/gdm to allow me to switch between 2 different xorg files. ex. Beryl and standard nvidia. My main reason is my desktop is linked to 2 sources my LCD which works perfect with beryl.And my tv which I use to play games or watch movies. If I have all the options beryl/compiz needs to run then even with beryl disabled my fps is lower than just my standard nvidia xorg.
My laptop I would like to add the option to switch between nvidia and nv driver.That card says it supported by nvidia but the computer only locks up with the nvidia driver the nv driver works perfect.
What I wrote above was for those occasions where my xorg.conf gets so messed up I cannot get to a login screen. Which doesn't happen often.But with all the different distros having there own methods of setting up your video display I resorted to my own method. I have 3 computers all with a different distro Fedora/Debian/Suse. And use to have Mandy also, I got tired of XFdrake and suse's Sax2 sorry that can be even more of a headache all depends on the hardware.
 
Old 07-24-2007, 07:42 PM   #4
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Just wrap them in a shell script. The shell script first copies the correct xorg.conf file into place then invokes the window manager.
 
Old 07-25-2007, 02:15 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
When you see KDM/GDM, X is already started. So I doubt very much that it can be done from within the display manager; drivers, refresh rates, resolutions, it's already configured at that point so you have to restart X.
I'm not familiar with Beryl/Compiz (I don't know how they affect config files).

If you want to decide at boot time what option to use (so before X has started), you can analyse how your systems start X and modify a file in the bootup sequence to prompt the user.
Currently I only have Slackware10.1 at hand, where I can modify the file /etc/rc.d/rc.4. And there indeed copy or link xorg.conf
 
  


Reply



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
xkb not switching keymap on non-root users (xorg) z3r0v3rs10n Linux - Software 0 05-21-2007 04:17 PM
switching from xorg to xfree86 in debian kramtoad Linux - Software 3 07-06-2006 09:20 AM
Xorg virtual console switching doesn't work nickptar Linux - Software 0 06-15-2006 01:29 PM
Nvidia and Xorg freeze when switching tty/X molgrum Linux - General 2 05-10-2005 01:52 PM
Switching From Xorg to Xfree86 4.3.0 predator.hawk Slackware 7 09-27-2004 02:48 PM

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

All times are GMT -5. The time now is 03:47 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