File: bug-script

package info (click to toggle)
fglrx-driver 1%3A15.9-4~deb8u1~bpo70%2B1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy-backports
  • size: 505,568 kB
  • sloc: ansic: 15,231; xml: 4,141; sh: 2,401; makefile: 425
file content (75 lines) | stat: -rwxr-xr-x 1,655 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/sh

PATH="/sbin:$PATH"
CONFIG_DIR=/etc/X11
XORGCONFIG="$CONFIG_DIR/xorg.conf"

exec >&3

printf "Full fglrx package list:\n"
dpkg -l|grep fglrx

printf "\n"

if which lspci > /dev/null 2>&1; then
    printf "VGA-compatible devices on PCI bus:\n"
    for device in $(lspci -mn | awk '{ if ($2 == "\"0300\"") { print $1 } }'); do
	LC_ALL=C lspci -vvnn -s $device
    done
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"

for package in glx-alternative-fglrx
do
	if [ -x /usr/share/bug/$package/script ]; then
		printf "Bug script output from package $package:\n"
		/usr/share/bug/$package/script 3>&1
		printf "\n"
	fi
done

printf "\n"