[Pkg-fglrx-devel] r652 - fglrx-driver/trunk/debian

Andreas Beckmann anbe-guest at alioth.debian.org
Thu Aug 4 19:16:04 UTC 2011


Author: anbe-guest
Date: 2011-08-04 19:16:03 +0000 (Thu, 04 Aug 2011)
New Revision: 652

Added:
   fglrx-driver/trunk/debian/bug-script
Removed:
   fglrx-driver/trunk/debian/reportbug/
Log:
recover bug-script

Copied: fglrx-driver/trunk/debian/bug-script (from rev 646, fglrx-driver/trunk/debian/reportbug/script)
===================================================================
--- fglrx-driver/trunk/debian/bug-script	                        (rev 0)
+++ fglrx-driver/trunk/debian/bug-script	2011-08-04 19:16:03 UTC (rev 652)
@@ -0,0 +1,62 @@
+#!/bin/sh
+
+# $Id$
+
+PATH="/sbin:$PATH"
+CONFIG_DIR=/etc/X11
+XORGCONFIG="$CONFIG_DIR/xorg.conf"
+CONFIG_AUX_DIR=/var/lib/x11
+
+exec >&3
+
+if which lspci > /dev/null 2>&1; then
+    printf "VGA-compatible devices on PCI bus:\n"
+    LC_ALL=C lspci | grep 'VGA compatible controller:'
+    LC_ALL=C lspci -n | grep 'Class 0300:'
+else
+    printf "The lspci command was not found; not including PCI data.\n"
+fi
+
+printf "\n"
+
+if [ -x /bin/dmesg ]; then
+	printf "DRM and fglrx Informations from dmesg:\n"
+	dmesg | egrep -i 'drm|agp|fglrx'
+fi
+
+
+printf "\n"
+
+if [ -e "$XORGCONFIG" ]; then
+    printf "Xorg X server configuration file status:\n"
+    ls -dl "$XORGCONFIG"
+    printf "\n"
+    printf "Contents of $XORGCONFIG:\n"
+    iconv -c -t ascii "$XORGCONFIG"
+    printf "\n"
+else
+    printf "$XORGCONFIG does not exist.\n"
+fi
+
+printf "\n"
+
+XORG_LOGS=$(ls -dt /var/log/Xorg.*.log 2>/dev/null)
+
+if [ -n "$XORG_LOGS" ]; then
+    printf "Xorg X server log files on system:\n"
+    ls -dlrt /var/log/Xorg.*.log 2>/dev/null
+    printf "\n"
+    for LOG in $XORG_LOGS; do
+        if [ -f "$LOG" ]; then
+            printf "Contents of most recent Xorg X server log file\n"
+            printf "%s:\n" "$LOG"
+            cat "$LOG"
+            # the log files are large; only show the most recent
+            break
+        fi
+    done
+else
+    printf "No Xorg X server log files found.\n"
+fi
+
+printf "\n"




More information about the Pkg-fglrx-devel mailing list