← Back to team overview

sony-vaio-z-series team mailing list archive

Re: Maintainer script for openGL with speed-stamina switch environment.

 

On Di, 20 Okt 2009, Raphael Gradenwitz wrote:
>         'update-gl'

Some remarks from reading the source code (mind I never did run the script):

- it is very inefficient to use apt-get -s in make_inventory, what
  about
	[~] apt-cache policy xserver-xorg-core
	xserver-xorg-core:
	  Installed: 2:1.6.5-1
	  Candidate: 2:1.6.5-1
	  Version table:
	 *** 2:1.6.5-1 0
	        500 http://ftp.jaist.ac.jp sid/main Packages
	        100 /var/lib/dpkg/status

- extract_lib:
  Why not use dpkg-deb -x instead of ar etc to unpack the debs?

- I am still not happy with the links setup mechanism.
  On Debian and AFAIR also Ubuntu the nvidia-glx package moves away
  the libs to /usr/lib/nvidia/libGL.so.1.2.xlibmesa and
  /usr/lib/nvidida/libglx.so.xlibmesa
  dpkg ensures that even after updating the core packages the 
  links are correct and the files up2date.

  So what I do here in the init.d switch script:
	for intel:
	ln -sf /usr/lib/nvidia/libGL.so.1.2.xlibmesa /usr/lib/libGL.so.100000
	ln -sf /usr/lib/nvidia/libglx.so.xlibmesa /usr/lib/xorg/modules/extensions/libglx.so

	for nvidia:
	ln -sf /usr/lib/libGL.so.185.18.36 /usr/lib/libGL.so.100000
	ln -sf /usr/lib/xorg/modules/extensions/libglx.so.185.18.36 /usr/lib/xorg/modules/extensions/libglx.so

  and that's it. THe point in having libGL.so.100000 is that the later
  ldconfig will link
	libGL.so -> libGL.so.100000 and thus always to the right one.

  How does your setup work when you do ldconfig? Does the ldconfig not
  link the libGL.so to the nvidia one because it has a higher version
  number?

  How are updates to the xserver-xorg-core and ... handled when running
  nvidia/intel at the moment?


I only want to help, and at the end have a nice script I would use, too ;-)

Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining                                        Associate Professor
JAIST Japan Advanced Institute of Science and Technology   preining@xxxxxxxxxxx
Vienna University of Technology                               preining@xxxxxxxx
Debian Developer (Debian TeX Task Force)                    preining@xxxxxxxxxx
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
LOWER PEOVER (n.)
Common solution to the problems of a humby (q.v.)
			--- Douglas Adams, The Meaning of Liff



Follow ups

References