sony-vaio-z-series team mailing list archive
-
sony-vaio-z-series team
-
Mailing list archive
-
Message #00277
Re: Nvidia/Intel switching nightmare.
I have forgotten the hardware acceleration stuff.
Am Freitag 29. Mai 2009 16:26:02 schrieb Klaus Addicks:
> For loading the correct xorg.conf, i use this little script before starting
> xserver:
>
> #!/bin/sh
> lspci | grep "00:02.1"
> if [ $? -eq 0 ]; then
> cp /etc/X11/xorg.INTEL /etc/X11/xorg.conf
ln -sf /usr/lib/libGL.so.INTEL /usr/lib/libGL.so.1
ln -sf /usr/lib/xorg/modules/extensions/libglx.so.INTEL
/usr/lib/xorg/modules/extensions/libglx.so
> else
> cp /etc/X11/xorg.NVIDIA /etc/X11/xorg.conf
ln -sf /usr/lib/libGL.so.185.18.08 /usr/lib/libGL.so.1
ln -sf /usr/lib/xorg/modules/extensions/libglx.so.185.18.08
/usr/lib/xorg/modules/extensions/libglx.so
> fi
Nvidia driver overwrites libglx.so and libGL.so.1 with symbolic links like
mentioned above. So before installing nvidia driver, backup the current
libglx.so und libGL.so.1 to libglx.so.INTEL/libGL.so.INTEL. If you have
already installed nvidia, you can get the original files from "xserver-xorg-
core" package, respectively "libgl1-mesa-glx".
Greets, Klaus
References