startx while specifying configuration?

Giles Orr gilesorr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Tue Aug 30 11:12:14 UTC 2011


On 29 August 2011 15:41, Lennart Sorensen <lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org> wrote:
> On Mon, Aug 29, 2011 at 03:09:18PM -0400, William O'Higgins Witteman wrote:
>> I have an nVidia-based video card.  Most of the time, I would rather use
>> the nouveau driver - it works, it's snappy, and it doesn't take any
>> hoop-jumping to "just work".  It doesn't do OpenGL, however, which I
>> occasionally want.  I'd like to specify with xorg.conf to use when I
>> startx, rather than "mv"-ing configuration files around.  Is there a way
>> to do this?
>>
>> man startx and man xinitrc provide no guidance, and I couldn't find
>> anything with the aid of Google.
>
> In the past you could do:
>
> startx -- Xserverarguments
>
> Like: startx -- :1
>
> That would launch the X server with :1 as an argument.  So if the 'X'
> has an option for configfile to use, that should work there.
>
> So startx options go before '--' and X server options go after '--'.

The Xorg man page says this:

  -config file
    Read the server configuration from file.  This option will work
    for any file when the server  is  run as  root  (i.e,  with
    real-uid 0), or for files relative to a directory in the config
    search path for all other users.

So that should work something like "startx -- -config
./Xconfs/dualhead.txt".  I say "should" because, while I think I've
used it in the past, the handling of X and its associated files has
changed immensely since the emergence of Xorg.  Good luck.

-- 
Giles
http://www.gilesorr.com/
gilesorr-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list