[YLUG] Dual xorg.conf

Matthew Burton matburton at tiscali.co.uk
Fri Nov 17 01:12:19 GMT 2006


Hey,

That sounds like a simple way, where does the init script that starts X 
live? I think I was going a bit off the track before :-S I was looking 
at the links that start with the run levels and getting a little confused.

Cheers!

Liam Wilson wrote:
> Hi,
>
> I thinks this works:
>
> #!/bin/bash
> rm /etc/X11/xorg.conf
> lspci | grep i915
> if [ "$?" = "0" ];then
>         ln -s /etc/X11/xorg.conf.i915
> /etc/X11/xorg.conf
> else
>         ln -s /etc/X11/xorg.conf.nvidia
> /etc/X11/xorg.conf
> fi
>
> Couldn't you just put it at the beginng of the init
> script that starts X so it automatically uses the
> right graphics card?
>
> Liam
> --- Nicholas Thomas <lupine at yorkshire-pagans.org.uk>
> wrote:
>
>   
>>> 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
>>
>> _______________________________________________
>> York mailing list
>> York at lists.lug.org.uk
>> https://mailman.lug.org.uk/mailman/listinfo/york
>>
>>     
>
>
>
>  
> ____________________________________________________________________________________
> Sponsored Link
>
> Mortgage rates near 39yr lows. 
> $510k for $1,698/mo. Calculate new payment! 
> www.LowerMyBills.com/lre
>
> _______________________________________________
> York mailing list
> York at lists.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/york
>
>   



More information about the York mailing list