LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-23-2002, 11:40 AM   #1
niton
Member
 
Registered: Jul 2002
Location: CH
Distribution: Mandrake 9.1
Posts: 41

Rep: Reputation: 15
Question choosing between XF86Config or -4


Hi all,

How do I know if it's loading XF86Config or XF86Config-4 ?

In my /etc/X11 repertory, I got both.

And how can I change that. Actually I think it's pointing to XF86Config but I want it to point to -4.

Thanks for your help.

 
Old 07-23-2002, 12:07 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
It depends on what version of XFree86 you are currently running, if it is 4.x.x then it uses XF86Config-4 file, otherwise XF86Config, the reason both files are there is that some video hardware has better support in XFree86-3.x.x version which uses in RH systems (and many others RPM drivern distros) XF86Config file; another reason it is left out for history purposes like it happens with apache originaly there were three configuration files and now it is only one but you still see three files included with apache these were access.conf, httpd.conf and srm.conf now they are all part of bigger httpd.conf.
 
Old 07-23-2002, 12:08 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Usually by default Redhat will point to XF86Config-4.
 
Old 07-23-2002, 12:15 PM   #4
niton
Member
 
Registered: Jul 2002
Location: CH
Distribution: Mandrake 9.1
Posts: 41

Original Poster
Rep: Reputation: 15
Ok so it depends on which XFree86 version i am running.
And can I manually change that ?
I mean when I startx it loads on my XF86Config but my good configuration is on the XF86Config-4.

I guess that if I have the -4 it means that I should have XFree86 (version 4) installed on my computer. So can I switch to -4 ?

Thanks for your time.
 
Old 07-23-2002, 12:24 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Its not always necessarily true that if you have version 4 its going to use XF86Config-4, cause Slack uses xfree 4.x.x and it doesn't use the XF86Config-4 file, only the XF86config file...
 
Old 07-24-2002, 03:47 AM   #6
niton
Member
 
Registered: Jul 2002
Location: CH
Distribution: Mandrake 9.1
Posts: 41

Original Poster
Rep: Reputation: 15
Then what should I do to change XF86Config to XF86Config-4.
XF86Config-4 does exist in my X11/ but when I startx it points to the XF86Config. And it's not where I have configured my Nvidia driver.

Is there any command line to switch which config I wanna use ?
 
Old 07-24-2002, 03:56 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
right X3 ALWAYS uses XF86Config, X4 Will use XF86Config-4 *IF* it exists (i.e. you are also using X3 potentially) OR XF86Config if the other does not exist. if you have not got X3 installed then delete -4 and use the normal one fine.
 
Old 07-24-2002, 03:59 AM   #8
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Or you could rename it with the cp command:

first backup your old file just in case.

cp XF86Config XF86Config.old

Then name your XF86Config with the same command:

cp XF86Config-4 XF86Config

This will keep your existing XF86Config file named as .old.. then renaming your XF86Config-4 to XF86Config.. keeping the exising XF86Config-4 intact as well, but basically renaming your file for you.

Last edited by trickykid; 07-24-2002 at 04:02 AM.
 
Old 07-25-2002, 12:01 AM   #9
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
It's not the name of the file that determines which version of X it is for, its the syntax. XFree86-3.x.x uses a difernt syntax to XFree86-4.x.x. Distro's that offer the option to install v3.x.x and v4.x.x include two copies of XF86Config, one with the correct syntax for v3.x.x called XF86Config and one for v4.x.x called XF86Config-4.
 
  


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
root@localhost:~# xf86config -bash: xf86config: command not found klemen Slackware 17 01-06-2005 03:56 AM
where is the XF86config-4 or XF86config file in the fedora? u2911 Fedora 4 07-24-2004 09:38 PM
where can I find the XF86Config and XF86Config-4 files? souaw Mandriva 4 04-21-2004 10:30 AM
XF86Config compared to XF86Config-4 rberry88 Linux - Newbie 2 09-21-2003 11:29 AM
Diff btw XF86Config-4 and XF86Config BorgKing Linux - Newbie 1 06-12-2002 02:31 PM


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