LinuxQuestions.org
Review your favorite Linux distribution.
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 11-29-2002, 09:38 AM   #1
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
dumb X question


What option do I pass startx to get it to read a different XF86Config file than the one in /etc/X11? Or can you even do that? or is it as easy as sticking something in .xinit?

Or, better yet, the problem as a whole. I've got 2 XF86Configs I want to be able to juggle around easily without having to constantly swap out /etc/X11/XF86Config, one for single head (with dri support), and one for dual head support.

Cheers,

Finegan
 
Old 11-29-2002, 12:11 PM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Hi,

The option is -xf86config <file>:

# X -xf86config /etc/passwd
.
.
(==) Log file: "/var/log/XFree86.1.log", Time: Fri Nov 29 16:08:10 2002
(++) Using config file: "/etc/passwd"
Parse error on line 1 of section (null) in file /etc/passwd
"root:x:0:0:root:/root:/bin/bash" is not a valid keyword in this section.
(EE) Problem parsing the config file
(EE) Error from xf86HandleConfigFile()
.
.

But to use that with startx it will be need to test, because startx is a script that calls xinit, and there are some options that must run in a right order...

Hope that helps...
 
Old 11-29-2002, 12:15 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
It's a serverarg, so you just need to specify it before the double dash in your startx args: "startx <serverargs> -- <clientargs>".
 
Old 11-29-2002, 11:24 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I don't know if this'll help at all Fin, but here's how I do it (for different mice/keyboard usage).

I have 2 XF86's and a symlink to them. Depening on which one, I simply replace the symlink:

1. /etc/X11/XF86Confg-usbmouse
2. /etc/X11/XF86Config-wireless

Then:
ln -sf /etc/X11/XF86Config-usbmouse /etc/X11/XF86Config

And then when I use the other, I simply symlink it the other way around.

Cool
 
Old 11-30-2002, 07:08 PM   #5
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Original Poster
Rep: Reputation: 72
vladkrak's example was what I was looking for, I don't like to touch root a lot to swap up XF86Config files, so I just abused vladkrak's example into a script so startx for 1 user is single head, and for my normal user is dual head.

Offhand since I've got 3 respondents, I'm bored and poor and looking at a lot of vacation time here over the next month. I did this so I could get DRI to work and hence, better gaming, and of course downloaded and installed Unreal Tournament 2003, patched it twice, and found that it of course won't bloody run under anything but a Nvidia card with the binary drivers.

Quake III seemed like a good second stop, but as far as I can tell I can't get a single player version and I want to try and get back into practice with fragging before I go and embarrass myself online again.

Anyone got some good suggestions in the games department for someone with a Matrox card that only spits out about 60fps in glxgears?

Cheers,

Finegan
 
Old 11-30-2002, 07:50 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hey fin, never heard of a manpage?
 
Old 11-30-2002, 07:57 PM   #7
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Original Poster
Rep: Reputation: 72
Quote:
Originally posted by acid_kewpie
hey fin, never heard of a manpage?
I did, I was just looking in the wrong place, didn't even occur to me to check X itself, just startx and xinit... I'm a gimp man, give me a break, heck I even avoid graphics card questions in Hardware. I'm afraid of X, its big and evil and... stuff.

Cheers,

Finegan
 
  


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
dumb question xedios Linux - Software 6 08-31-2004 02:24 PM
dumb a*s question Jetta-GT- Linux - Newbie 3 01-08-2004 05:58 AM
REALLY dumb question christer Linux - Newbie 11 10-05-2003 10:43 PM
Dumb question Thetargos Linux - Software 3 05-06-2003 07:31 PM
Dumb Question!!!! cirkut5732 Linux - Newbie 3 04-16-2003 12:39 PM

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

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