Restart X with not default xorg.conf

Using applications, configuring, problems
Post Reply
Message
Author
T_B
Posts: 160
Joined: Sun 08 Apr 2007, 12:54

Restart X with not default xorg.conf

#1 Post by T_B »

I've got 2 xorg.conf's I use with Puppy. I need to exit X and start X again with the other xorg.conf.
I'd like to do that automaticly with a script.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#2 Post by GuestToo »

something like this?

#!/bin/sh
cp /etc/X11/xorg1.conf /etc/X11/xorg.conf
exec restartwm

T_B
Posts: 160
Joined: Sun 08 Apr 2007, 12:54

#3 Post by T_B »

Didn't expect a script copying the xorg.conf, but I guess this should work.
Thanks.

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#4 Post by Dougal »

I think Xorg is built to always use xorg.conf, so there's no other option than to copy them around...
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

T_B
Posts: 160
Joined: Sun 08 Apr 2007, 12:54

#5 Post by T_B »

It's possible to startx with another file than xorg.conf
Something like startx -- :1 /etc/X11/xorg2.conf, but the way GuestToo did it works like a charm.

Post Reply