[Pkg-fglrx-devel] r810 - fglrx-driver/trunk/debian
Andreas Beckmann
anbe-guest at alioth.debian.org
Sat Oct 15 15:06:16 UTC 2011
Author: anbe-guest
Date: 2011-10-15 15:06:16 +0000 (Sat, 15 Oct 2011)
New Revision: 810
Added:
fglrx-driver/trunk/debian/switchlibGL
Modified:
fglrx-driver/trunk/debian/changelog
fglrx-driver/trunk/debian/fglrx-driver.install.in
fglrx-driver/trunk/debian/fglrx-driver.links.in
Log:
add switchlibGL/switchlibglx script (#643773)
Modified: fglrx-driver/trunk/debian/changelog
===================================================================
--- fglrx-driver/trunk/debian/changelog 2011-10-05 19:16:50 UTC (rev 809)
+++ fglrx-driver/trunk/debian/changelog 2011-10-15 15:06:16 UTC (rev 810)
@@ -1,3 +1,13 @@
+fglrx-driver (1:11-9-2) UNRELEASED; urgency=low
+
+ [ Andreas Beckmann ]
+ * Add switchlibGL/switchlibglx scripts to enable
+ aticonfig --px-dgpu | --px-igpu | --px-list
+ which switches between the two GPUs (discrete/AMD and integrated/Intel)
+ in some laptops with hybrid GPUs. (Closes: 643773)
+
+ -- Andreas Beckmann <debian at abeckmann.de> Sat, 15 Oct 2011 16:04:08 +0200
+
fglrx-driver (1:11-9-1) unstable; urgency=low
* New upstream release.
Modified: fglrx-driver/trunk/debian/fglrx-driver.install.in
===================================================================
--- fglrx-driver/trunk/debian/fglrx-driver.install.in 2011-10-05 19:16:50 UTC (rev 809)
+++ fglrx-driver/trunk/debian/fglrx-driver.install.in 2011-10-15 15:06:16 UTC (rev 810)
@@ -14,3 +14,4 @@
_XPIC_/usr/X11R6/_LIB_/modules/extensions/fglrx/fglrx-libglx.so usr/lib/fglrx/
_XPIC_/usr/X11R6/_LIB_/modules/linux/*.so usr/lib/xorg/modules/linux/
fglrx.ids usr/share/fglrx/
+debian/switchlibGL usr/lib/fglrx/
Modified: fglrx-driver/trunk/debian/fglrx-driver.links.in
===================================================================
--- fglrx-driver/trunk/debian/fglrx-driver.links.in 2011-10-05 19:16:50 UTC (rev 809)
+++ fglrx-driver/trunk/debian/fglrx-driver.links.in 2011-10-15 15:06:16 UTC (rev 810)
@@ -1 +1,2 @@
_LIBDIR_/dri/fglrx_dri.so usr/lib/dri/fglrx_dri.so
+usr/lib/fglrx/switchlibGL usr/lib/fglrx/switchlibglx
Added: fglrx-driver/trunk/debian/switchlibGL
===================================================================
--- fglrx-driver/trunk/debian/switchlibGL (rev 0)
+++ fglrx-driver/trunk/debian/switchlibGL 2011-10-15 15:06:16 UTC (rev 810)
@@ -0,0 +1,52 @@
+#!/bin/sh
+set -e
+# switchlibGL/switchlibglx
+#
+# Purpose:
+# For switch between AMD and Intel graphic driver library.
+#
+# Usage:
+# switchlibGL/switchlibglx amd|intel|query
+# amd: switches to the AMD version of libGL.
+# intel: switches to the open-source version of libGL .
+# query: checks, which version is currently active and prints either "amd"
+# or "intel" or "unknown" on the standard output.
+#
+# This version of the script is intended for Debian based systems that use
+# the glx alternatives managed by the packages
+# glx-diversions
+# glx-alternative-mesa
+# glx-alternative-fglrx
+
+get_current()
+{
+ case "$(update-alternatives --query glx | sed -ne 's/^Value: //p')" in
+ /usr/lib/mesa-diverted)
+ echo "intel"
+ ;;
+ /usr/lib/fglrx)
+ echo "amd"
+ ;;
+ *)
+ echo "unknown"
+ ;;
+ esac
+}
+
+case "$1" in
+ amd)
+ update-alternatives --set glx /usr/lib/fglrx
+ ;;
+ intel)
+ update-alternatives --set glx /usr/lib/mesa-diverted
+ ;;
+ query)
+ get_current
+ ;;
+ *)
+ echo "Usage: $(basename $0) amd|intel|query" 1>&2
+ exit 1
+ ;;
+esac
+
+exit 0
Property changes on: fglrx-driver/trunk/debian/switchlibGL
___________________________________________________________________
Added: svn:executable
+ *
More information about the Pkg-fglrx-devel
mailing list