/lib/udev/cdrom_id does not correctly probe audio CDs on USB drive (maverick)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udev (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
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_
ID_CDROM=1
ID_CDROM_CD_R=1
ID_
ID_CDROM_DVD=1
ID_
ID_CDROM_MRW=1
ID_
ID_
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_
ID_
ID_
ID_
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:
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: udev 162-2.2 [modified: lib/udev/cdrom_id]
ProcVersionSign
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=
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:bvnAwardSof
dmi.product.name: GA-890GPA-UD3H
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
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 CDROM_MEDIA_ STATE=complete CDROM_MEDIA_ SESSION_ COUNT=1 CDROM_MEDIA_ TRACK_COUNT= 1 CDROM_MEDIA_ TRACK_COUNT_ DATA=1
ID_
ID_
ID_
ID_