/lib/udev/cdrom_id does not correctly probe audio CDs on USB drive (maverick)

Bug #742212 reported by James Henstridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
New
Undecided
Unassigned
Nominated for Maverick by James Henstridge

Bug Description

Binary package hint: udev

I found a number of desktop programs that deal with audio CDs were not correctly detecting the drive or claiming that it didn't have an audio disk in.

These programs were all using gvfs to enumerate drives, and the problems seemed to be due to some missing udev attributes on the drive. The cdrom_id helper program fails to correctly probe the drive:

    $ /lib/udev/cdrom_id --debug /dev/cdrom
    main: probing: '/dev/cdrom'
    cd_inquiry: INQUIRY: [CHIYOMI ][TSD80Y1 DVD RW ][D010]
    info_scsi_cmd_err: GET CONFIGURATION failed
    ID_CDROM=1
    ID_CDROM_CD_R=1
    ID_CDROM_CD_RW=1
    ID_CDROM_DVD=1
    ID_CDROM_DVD_R=1
    ID_CDROM_MRW=1
    ID_CDROM_MRW_W=1
    ID_CDROM_MEDIA=1

Note the "GET CONFIGURATION failed" debug message. Using the equivalent binary from natty this command doesn't fail, and it prints some more debug info and includes the following additional attributes:

    ID_CDROM_MEDIA_CD=1
    ID_CDROM_MEDIA_SESSION_COUNT=1
    ID_CDROM_MEDIA_TRACK_COUNT=16
    ID_CDROM_MEDIA_TRACK_COUNT_AUDIO=16

With this replacement binary in place, desktop programs like sound-juicer correctly recognise the disc.

Looking at the changes in upstream, I believe this is the change that fixes the problem:

http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h=d7cd2b16110c806128747ee245aaa883dd52039d

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: udev 162-2.2 [modified: lib/udev/cdrom_id]
ProcVersionSignature: Ubuntu 2.6.35-27.48-generic 2.6.35.11
Uname: Linux 2.6.35-27-generic x86_64
Architecture: amd64
Date: Fri Mar 25 10:38:15 2011
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: Gigabyte Technology Co., Ltd. GA-890GPA-UD3H
ProcCmdLine: BOOT_IMAGE=/vmlinuz-2.6.35-27-generic root=UUID=162ca408-b98b-4538-918e-c57d785a9e27 ro quiet splash
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: udev
dmi.bios.date: 11/24/2010
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: FF
dmi.board.name: GA-890GPA-UD3H
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrFF:bd11/24/2010:svnGigabyteTechnologyCo.,Ltd.:pnGA-890GPA-UD3H:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-890GPA-UD3H:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-890GPA-UD3H
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
James Henstridge (jamesh) wrote :
Revision history for this message
James Henstridge (jamesh) wrote :

I had originally only been testing this with sound-juicer, but it looks like the disc probing fails for other disc types (e.g. writable media in Brasero).

For a CD-R, I get the same GET_CONFIGURATION error, and using the natty version of the tool gives additional media attributes:

    ID_CDROM_MEDIA_CD_R=1
    ID_CDROM_MEDIA_STATE=complete
    ID_CDROM_MEDIA_SESSION_COUNT=1
    ID_CDROM_MEDIA_TRACK_COUNT=1
    ID_CDROM_MEDIA_TRACK_COUNT_DATA=1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.