Audio CD not detected when inserted into CD-ROM drive

Bug #489468 reported by Rudy in Vancouver
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
cdrom-detect (Ubuntu)
Confirmed
Undecided
Unassigned
Nominated for Karmic by Paul Moosman

Bug Description

When I insert an audio CD into my CD-ROM drive, there is no obvious indication that the system has detected it. Specifically: no disc icon appears under the 'Places' menu in Nautilus, Rhythmbox doesn't indicate that a CD is available even after clicking 'Scan Removable Media.'

However, I can play the music CD through VLC if I select Media > Open Disc... > Audio CD and entering /dev/sr0 in the 'Disc device' field and clicking the 'Play' button.

The behaviour that I expect is that when an audio CD is inserted there would be some indication in Nautilus as well as multimedia applications (i.e. Rhythmbox) that the new media is available.

Data CDs seem to work fine, I can see the disc icon in 'Places' and access the data just fine.

dmesg when I insert and audio CD:
[ 6805.147138] sr 0:0:1:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6805.147146] sr 0:0:1:0: [sr0] Sense Key : Illegal Request [current]
[ 6805.147153] sr 0:0:1:0: [sr0] Add. Sense: Illegal mode for this track
[ 6805.147162] end_request: I/O error, dev sr0, sector 0
[ 6805.253097] sr 0:0:1:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6805.253106] sr 0:0:1:0: [sr0] Sense Key : Illegal Request [current]
[ 6805.253114] sr 0:0:1:0: [sr0] Add. Sense: Illegal mode for this track
[ 6805.253124] end_request: I/O error, dev sr0, sector 0
[ 6805.253955] sr 0:0:1:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6805.253961] sr 0:0:1:0: [sr0] Sense Key : Illegal Request [current]
[ 6805.253967] sr 0:0:1:0: [sr0] Add. Sense: Illegal mode for this track
[ 6805.253976] end_request: I/O error, dev sr0, sector 0
[ 6805.254803] sr 0:0:1:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6805.254811] sr 0:0:1:0: [sr0] Sense Key : Illegal Request [current]
[ 6805.254817] sr 0:0:1:0: [sr0] Add. Sense: Illegal mode for this track
[ 6805.254825] end_request: I/O error, dev sr0, sector 0

$ sudo lshw -c disk
  *-disk:0
       description: ATA Disk
       product: SAMSUNG SP0411N
       physical id: 0
       bus info: scsi@0:0.0.0
       logical name: /dev/sda
       version: TW10
       serial: S01JJ70X991356
       size: 37GiB (40GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=00095fbd
  *-cdrom
       description: SCSI CD-ROM
       product: ROM-DRIVE-56MAX
       vendor: ATAPI-CD
       physical id: 0.1.0
       bus info: scsi@0:0.1.0
       logical name: /dev/cdrom
       logical name: /dev/scd0
       logical name: /dev/sr0
       version: 56AI
       capabilities: removable audio
       configuration: ansiversion=5 status=ready
     *-medium
          physical id: 0
          logical name: /dev/cdrom
  *-disk:1
       description: ATA Disk
       product: HITACHI_DK23EA-6
       vendor: Hitachi
       physical id: 1
       bus info: scsi@1:0.0.0
       logical name: /dev/sdb
       version: 00K2
       serial: 643823
       size: 55GiB (60GB)
       capabilities: partitioned partitioned:dos
       configuration: ansiversion=5 signature=ae32ae32

$ devkit-disks --show-info /dev/sr0
Showing information for /org/freedesktop/DeviceKit/Disks/devices/sr0
  native-path: /sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:1/0:0:1:0/block/sr0
  device: 11:0
  device-file: /dev/sr0
    by-path: /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0
  detected at: Fri 27 Nov 2009 08:33:16 PM PST
  system internal: 0
  removable: 1
  has media: 1 (detected at Fri 27 Nov 2009 10:25:34 PM PST)
    detects change: 1
    detection by polling: 1
    detection inhibitable: 1
    detection inhibited: 0
  is read only: 0
  is mounted: 0
  mount paths:
  mounted by uid: 0
  presentation hide: 0
  presentation nopolicy: 0
  presentation name:
  presentation icon:
  size: 450721792
  block size: 2048
  job underway: no
  usage:
  type:
  version:
  uuid:
  label:
  optical disc:
    blank: 0
    appendable: 0
    closed: 0
    num tracks: 0
    num audio tracks: 0
    num sessions: 0
  drive:
    vendor: ATAPI-CD
    model: ROM-DRIVE-56MAX
    revision: 56AI
    serial:
    detachable: 0
    can spindown: 0
    rotational media: 1
    ejectable: 1
    media: optical_cd
      compat: optical_cd
    interface: scsi
    if speed: (unknown)
    ATA SMART: not available

$ lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10

teju (teju)
affects: ubuntu → cdrom-detect (Ubuntu)
Revision history for this message
Paul Moosman (pmoosman) wrote :
Download full text (10.6 KiB)

FYI, I'm seeing this same problem on my system. I turned on hald debugging and captured this output.

Jan 12 16:30:03 orca hald[481]: 16:30:03.851 [I] device.c:1894: Removing locks from ':1.132'
Jan 12 16:30:19 orca hald[481]: 16:30:19.051 [I] osspec.c:251: SEQNUM=1516, ACTION=change, SUBSYSTEM=scsi, DEVPATH=/sys/devices/pci0000:00/0000:00:1f.1/host1/target1:0:0/1:0:0:0, DEVNAME=, IFINDEX=0
Jan 12 16:30:19 orca hald[481]: 16:30:19.051 [I] hotplug.c:435: checking event /sys/devices/pci0000:00/0000:00:1f.1/host1/target1:0:0/1:0:0:0
Jan 12 16:30:19 orca hald[481]: 16:30:19.051 [I] hotplug.c:121: /sys/devices/pci0000:00/0000:00:1f.1/host1/target1:0:0/1:0:0:0 is a device (store)
Jan 12 16:30:19 orca hald[481]: 16:30:19.051 [I] device.c:5035: refresh_dev: subsys=scsi
Jan 12 16:30:19 orca hald[481]: 16:30:19.051 [D] hotplug.c:453: events queued = 0, events in progress = 0
Jan 12 16:30:19 orca hald[481]: 16:30:19.051 [D] hotplug.c:458: Hotplug-queue empty now ... no hotplug events in progress
Jan 12 16:30:19 orca orage: polling /dev/sr0 (every 2 sec): [549]: 16:30:19.053 [D] addon-storage.c:541: Media insertion detected on /dev/sr0
Jan 12 16:30:19 orca hald[481]: 16:30:19.054 [D] hald_dbus.c:1652: udi=/org/freedesktop/Hal/devices/storage_model_CD_Writer__9500, key=storage.removable.media_available
Jan 12 16:30:19 orca hald[481]: 16:30:19.054 [I] hald_dbus.c:3096: entering, local_interface=1
Jan 12 16:30:19 orca hald[481]: 16:30:19.055 [D] hald_dbus.c:3105: udi=/org/freedesktop/Hal/devices/storage_model_CD_Writer__9500
Jan 12 16:30:19 orca hald[481]: 16:30:19.055 [I] blockdev.c:1779: blockdev_rescan_device: udi=/org/freedesktop/Hal/devices/storage_model_CD_Writer__9500
Jan 12 16:30:19 orca hald-probe-storage: [1570]: 16:30:19.061 [D] probe-storage.c:141: Doing probe-storage for /dev/sr0 (bus pci) (drive_type cdrom) (udi=/org/freedesktop/Hal/devices/storage_model_CD_Writer__9500) (--only-check-for-fs==1)
Jan 12 16:30:19 orca hald-probe-storage: [1570]: 16:30:19.061 [D] probe-storage.c:192: Doing open ("/dev/sr0", O_RDONLY | O_NONBLOCK)
Jan 12 16:30:19 orca hald-probe-storage: [1570]: 16:30:19.062 [D] probe-storage.c:198: Returned from open(2)
Jan 12 16:30:19 orca hald-probe-storage: [1570]: 16:30:19.075 [D] probe-storage.c:342: Checking for optical disc on /dev/sr0
Jan 12 16:30:19 orca hald-probe-storage: [1570]: 16:30:19.075 [D] probe-storage.c:350: Doing open ("/dev/sr0", O_RDONLY | O_NONBLOCK | O_EXCL)
Jan 12 16:30:19 orca hald-probe-storage: [1570]: 16:30:19.078 [D] probe-storage.c:380: PROBE HAS EXCLUSIVE LOCK ON CDROM
Jan 12 16:30:19 orca hald-probe-storage: [1570]: 16:30:19.080 [D] probe-storage.c:422: media size = 483153920
Jan 12 16:30:19 orca hald-probe-storage: [1570]: 16:30:19.080 [D] probe-storage.c:430: PROBE CLOSED LOCK ON CDROM
Jan 12 16:30:19 orca hald[481]: 16:30:19.081 [I] hald_dbus.c:1342: storage.cdrom.read_speed -> 5645
Jan 12 16:30:19 orca hald[481]: 16:30:19.081 [I] hald_dbus.c:1342: storage.cdrom.write_speed -> 2117
Jan 12 16:30:19 orca hald[481]: 16:30:19.081 [I] hald_dbus.c:1366: storage.removable.media_available -> True
Jan 12 16:30:19 orca hald[481]: 16:30:19.081 [I] hald_dbus.c:1350: storage.removable.media_size -> 4831539...

Revision history for this message
DutchSherpa (riemer-thalen) wrote :

With me, this bug only affects older data-CD's containing MP3 files. Ubuntu does not "see" these CD's at all...
Audio-CD's and newer MP3-CD's work just fine.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in cdrom-detect (Ubuntu):
status: New → Confirmed
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.