[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#409101: discover-data: fails to find any display devices

Package: discover-data
Version: 2.2007.01.21
Severity: normal

Recently there was a change:

diff -r 2.2006.12.28/lib/discover/pci-busclass.xml 2.2007.01.21/lib/discover/pci-busclass.xml
<   <busclass id="0280" name="network"/>
<   <busclass id="0300" name="display"/>
>   <busclass id="0280" name="ethernet"/>
>   <busclass id="0300" name="video"/>
>   <busclass id="0805" name="miscellaneous"/>

I suspect this was the relevant change log comment:

  * Update the name of some busclasses in pci-busclass.xml to match
    the pci.lst values. 

Note that "display" has been renamed to "video".  This breaks this code for me:

      CMD="discover --type-summary display"
      eval $CMD >>$VENDOR_MODEL_FILE || debug_report_status "$CMD" "$?"
      CMD="discover --data-path=xfree86/server/name \
                    --data-version=$UPSTREAM_VERSION display"
      eval $CMD >>$SERVER_FILE || debug_report_status "$CMD" "$?"
      CMD="discover --data-path=xfree86/server/device/driver \
                    --data-version=$UPSTREAM_VERSION display"
      eval $CMD >>$DRIVER_FILE || debug_report_status "$CMD" "$?"


That code is from /var/lib/dpkg/info/xserver-xorg.postinst and controls which
X server I run (which has now defaulted to vesa when it should be i810).

According to the discover man page, this command:

$ discover --type-summary display

Should produce the result now produced only by this command:

$ discover --type-summary video
Intel Corporation 82865G Integrated Graphics Controller 

If I regenerate pci-buslist.xml (and bear in mind I have no idea what I'm doing

martind@duezer:/tmp/badger$ /usr/share/tools/lst2xml /lib/discover/pci.lst

Then I get a very different file to the one that was installed by discover-data:

martind@duezer:/tmp/badger$ diff pci-busclass.xml /lib/discover/
< <?xml version='1.0' encoding='UTF-8'?>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- $Progeny$ -->
<   <busclass id="0400" name='video'/>
<   <busclass id="0c03" name='bridge'/>
<   <busclass id="0200" name='network'/>
<   <busclass id="0300" name='display'/>
<   <busclass id="0204" name='broadband'/>
<   <busclass id="0703" name='modem'/>
<   <busclass id="0600" name='bridge'/>
<   <busclass id="0904" name='bridge'/>
<   <busclass id="0101" name='bridge'/>
<   <busclass id="0000" name='miscellaneous'/>
<   <busclass id="0401" name='audio'/>
<   <busclass id="0100" name='bridge'/>
>   <busclass id="0000" name="miscellaneous"/>
>   <busclass id="0001" name="display"/>
>   <busclass id="0100" name="scsi"/>
>   <busclass id="0101" name="ide"/>
>   <busclass id="0102" name="bridge"/>
>   <busclass id="0103" name="bridge"/>
>   <busclass id="0104" name="bridge"/>
>   <busclass id="0180" name="bridge"/>
>   <busclass id="0200" name="ethernet"/>
>   <busclass id="0201" name="network"/>
>   <busclass id="0202" name="network"/>
>   <busclass id="0203" name="network"/>
>   <busclass id="0204" name="isdn"/>
>   <busclass id="0280" name="ethernet"/>
>   <busclass id="0300" name="video"/>
>   <busclass id="0301" name="display"/>
>   <busclass id="0302" name="display"/>
>   <busclass id="0380" name="display"/>
>   <busclass id="0400" name="video"/>
>   <busclass id="0401" name="sound"/>
>   <busclass id="0402" name="modem"/>
>   <busclass id="0480" name="miscellaneous"/>
>   <busclass id="0500" name="miscellaneous"/>
>   <busclass id="0501" name="miscellaneous"/>
>   <busclass id="0580" name="miscellaneous"/>
>   <busclass id="0600" name="bridge"/>
>   <busclass id="0601" name="bridge"/>
>   <busclass id="0602" name="bridge"/>
>   <busclass id="0603" name="bridge"/>
>   <busclass id="0604" name="bridge"/>
>   <busclass id="0605" name="bridge"/>
>   <busclass id="0606" name="bridge"/>
>   <busclass id="0607" name="bridge"/>
>   <busclass id="0608" name="bridge"/>
>   <busclass id="0609" name="bridge"/>
>   <busclass id="060a" name="bridge"/>
>   <busclass id="0680" name="bridge"/>
>   <busclass id="0700" name="miscellaneous"/>
>   <busclass id="0701" name="miscellaneous"/>
>   <busclass id="0702" name="miscellaneous"/>
>   <busclass id="0703" name="modem"/>
>   <busclass id="0780" name="miscellaneous"/>
>   <busclass id="0800" name="miscellaneous"/>
>   <busclass id="0801" name="miscellaneous"/>
>   <busclass id="0802" name="miscellaneous"/>
>   <busclass id="0803" name="miscellaneous"/>
>   <busclass id="0804" name="miscellaneous"/>
>   <busclass id="0805" name="miscellaneous"/>
>   <busclass id="0880" name="miscellaneous"/>
>   <busclass id="0900" name="bridge"/>
>   <busclass id="0901" name="humaninput"/>
>   <busclass id="0902" name="bridge"/>
>   <busclass id="0903" name="bridge"/>
>   <busclass id="0904" name="joystick"/>
>   <busclass id="0980" name="bridge"/>
>   <busclass id="0a00" name="miscellaneous"/>
>   <busclass id="0a80" name="miscellaneous"/>
>   <busclass id="0b00" name="miscellaneous"/>
>   <busclass id="0b01" name="miscellaneous"/>
>   <busclass id="0b02" name="miscellaneous"/>
>   <busclass id="0b10" name="miscellaneous"/>
>   <busclass id="0b20" name="miscellaneous"/>
>   <busclass id="0b30" name="miscellaneous"/>
>   <busclass id="0b40" name="miscellaneous"/>
>   <busclass id="0c00" name="bridge"/>
>   <busclass id="0c01" name="bridge"/>
>   <busclass id="0c02" name="bridge"/>
>   <busclass id="0c03" name="usb"/>
>   <busclass id="0c04" name="bridge"/>
>   <busclass id="0c05" name="bridge"/>
>   <busclass id="0c06" name="bridge"/>
>   <busclass id="0d00" name="miscellaneous"/>
>   <busclass id="0d01" name="miscellaneous"/>
>   <busclass id="0d10" name="miscellaneous"/>
>   <busclass id="0d80" name="miscellaneous"/>
>   <busclass id="0e00" name="miscellaneous"/>
>   <busclass id="0f00" name="miscellaneous"/>
>   <busclass id="0f01" name="miscellaneous"/>
>   <busclass id="0f03" name="miscellaneous"/>
>   <busclass id="0f04" name="miscellaneous"/>
>   <busclass id="1000" name="miscellaneous"/>
>   <busclass id="1010" name="miscellaneous"/>
>   <busclass id="1080" name="miscellaneous"/>
>   <busclass id="1100" name="miscellaneous"/>
>   <busclass id="1101" name="miscellaneous"/>
>   <busclass id="1110" name="miscellaneous"/>
>   <busclass id="1180" name="miscellaneous"/>

I'm not sure what should have happened here but it looks like something very
wrong has happened.

I wonder if this should be a higher severity bug?

-- Package-specific info:
00:00.0 Host bridge [0600]: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface [8086:2570] (rev 02)
00:02.0 VGA compatible controller [0300]: Intel Corporation 82865G Integrated Graphics Controller [8086:2572] (rev 02)
00:1d.0 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 [8086:24d2] (rev 02)
00:1d.1 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 [8086:24d4] (rev 02)
00:1d.2 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 [8086:24d7] (rev 02)
00:1d.3 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 [8086:24de] (rev 02)
00:1d.7 USB Controller [0c03]: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller [8086:24dd] (rev 02)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev c2)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge [8086:24d0] (rev 02)
00:1f.1 IDE interface [0101]: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller [8086:24db] (rev 02)
00:1f.2 IDE interface [0101]: Intel Corporation 82801EB (ICH5) SATA Controller [8086:24d1] (rev 02)
00:1f.3 SMBus [0c05]: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller [8086:24d3] (rev 02)
00:1f.5 Multimedia audio controller [0401]: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller [8086:24d5] (rev 02)
01:08.0 Ethernet controller [0200]: Intel Corporation 82562EZ 10/100 Ethernet Controller [8086:1050] (rev 01)

Bus 001 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 002 Device 002: ID 046d:c016 Logitech, Inc. M-UV69a Optical Wheel Mouse
Bus 003 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 005 Device 001: ID 0000:0000  

loaded modules:
8086:2570 intel_agp
8086:24d2 uhci_hcd
8086:24d4 uhci_hcd
8086:24d7 uhci_hcd
8086:24de uhci_hcd
8086:24dd ehci_hcd
8086:24db piix
8086:24d1 ata_piix
8086:24d3 i2c_i801
8086:24d5 snd_intel8x0
8086:1050 e100

X setting:
xserver-xfree86	xserver-xfree86/config/device/driver	select	i810
xserver-xorg	xserver-xorg/config/device/driver	select	vesa

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)

discover-data depends on no packages.

Versions of packages discover-data recommends:
ii  pciutils                      1:2.2.4-1  Linux PCI Utilities

-- no debconf information

Reply to: