[YLUG] Dual xorg.conf

Nicholas Thomas lupine at yorkshire-pagans.org.uk
Thu Nov 16 17:10:18 GMT 2006


> Hey,
>
> Thanks for the super fast responses! A quick lspci showed that when
> using my i915 there's no trace of the 6600. So I take it then (with a
> bit of scripting prowess lol) I could make a script that runs before X
> starts and changes xorg.conf to either. xorg.conf.i915 or
> xorg.conf.6600? Or do I still need to run the script myself by changing
> the run level?
>
> Cheers dudes :-D you know your stuff!
>

Hi,

Well, some of us do ;). All but the n00bist of the n00b know that in Ubuntu, 
the default runlevel is '2' ;). 3-5 are identical to 2, by default.

The best thing to do would be to have that script - something like 

#!/bin/bash
if [`lspci |grep i915` == "i915"]
	rm /etc/X11/xorg.conf
	ln -s /etc/X11/xorg.conf.915 /etc/X11/xorg.conf
	(run x server here) &
	exit
fi

rm /etc/X11/xorg.conf
ln -s /etc/X11/xorg.conf.nvidia /etc/X11/xorg.conf
(run x server here) &
exit

Or... something like that, anyway. Bash scripting isn't my strong point. If 
the if statement doesn't work like that, no doubt you can check the return 
value of grep ($?)

As to what to do with it - no need to modify your runlevels, etc. Simply 
follow the instructions you'd use for making gdm/kdm boot Xgl (e.g. the 
method of running the startxgl.sh script referenced at 
http://wiki.beryl-project.org/ ), but pointing to your script instead. 

As for beryl or compiz... beryl has more flashy effects :). IMO it's also 
coded better (although the writer of compiz disagrees). It's also a fork of a 
Novell project, rather than directly supporting Novell (as compiz does). We 
All Hate Novell(tm)

Of course, /some/ people here prefer Ion to Beryl ;)

You /will/ want to use the nVidia 9xxx series drivers though, whichever one 
you choose - makes your startup script easier, if nothing else. Ubotu 
quote....
[17:06] <ubotu> For Ubuntu 6.10 (Edgy Eft), you can obtain the (unsupported!) 
Beta version of the binary NVidia drivers by using one of these 
repositories: "deb http://amaranth.selfip.com/ edgy lrm" (for x86) or "deb 
http://ubuntu.lupine.me.uk/ edgy lrm-amd64" (for AMD64)

the version in there right now is 9629 and not beta anymore, but never mind.

HTH...

xF,

...Nick



More information about the York mailing list