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 |
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.
|
|
11-29-2002, 10:38 AM
|
#1
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Rep:
|
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
|
|
|
11-29-2002, 01:11 PM
|
#2
|
Member
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334
Rep:
|
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...
|
|
|
11-29-2002, 01:15 PM
|
#3
|
Moderator
Registered: May 2001
Posts: 29,415
|
It's a serverarg, so you just need to specify it before the double dash in your startx args: "startx <serverargs> -- <clientargs>".
|
|
|
11-30-2002, 12:24 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
11-30-2002, 08:08 PM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Original Poster
Rep:
|
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
|
|
|
11-30-2002, 08:50 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
hey fin, never heard of a manpage?
|
|
|
11-30-2002, 08:57 PM
|
#7
|
LQ Guru
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 07:56 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
|
|