CD/DVD change not recognized

Bug #590448 reported by kallewirsch
70
This bug affects 13 people
Affects Status Importance Assigned to Milestone
udisks (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: udisks

If I insert a disk into my CD/DVD drive, nothing happens (not shown on desktop, rythmbox, no traces in syslog). udisks --monitor-detail shows nothing, although udisks --enumerate / --show-info and dmesg show the drive properly.
If I however issue udisks --poll-for-media /dev/hdb after disk insertion, the disk appears as if by magic.

This affects at least all powerpc installations (see http://ubuntuforums.org/showthread.php?t=1323153 and https://bugs.launchpad.net/ubuntu/+source/gnome-mount/+bug/507113).

Output of udisks --show-info /dev/hdb:
Showing information for /org/freedesktop/UDisks/devices/hdb
  native-path: /sys/devices/pci0002:24/0002:24:0d.0/ide0/0.1/block/hdb
  device: 3:64
  device-file: /dev/hdb
    presentation: /dev/hdb
    by-path: /dev/disk/by-path/pci-0002:24:0d.0
  detected at: So 06 Jun 2010 15:04:17 CEST
  system internal: 0
  removable: 1
  has media: 0
    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: 0
  block size: 0
  job underway: no
  usage:
  type:
  version:
  uuid:
  label:
  drive:
    vendor:
    model:
    revision:
    serial:
    WWN:
    detachable: 0
    can spindown: 0
    rotational media: Yes, unknown rate
    write-cache: unknown
    ejectable: 1
    adapter: Unknown
    ports:
    similar devices:
    media:
      compat: optical_cd optical_cd_r optical_cd_rw optical_dvd optical_dvd_plus_r optical_dvd_plus_r_dl optical_dvd_plus_rw optical_dvd_r optical_dvd_rw
    interface: (unknown)
    if speed: (unknown)
    ATA SMART: not available

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: udisks 1.0.1-1build1
ProcVersionSignature: Ubuntu 2.6.32-22.36-powerpc 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-powerpc ppc
Architecture: powerpc
Date: Sun Jun 6 18:35:15 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release powerpc (20091027.2)
Lsusb:
 Bus 003 Device 002: ID 05ac:0215 Apple, Inc.
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 003: ID 05ac:8207 Apple, Inc.
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcCmdLine: root=/dev/hda3 ro quiet splash
ProcEnviron:
 LANG=de_DE.utf8
 SHELL=/bin/bash
SourcePackage: udisks

Revision history for this message
kallewirsch (stefan-hunsicker) wrote :
Revision history for this message
Jason Ritzke (sha-goyjo) wrote :

Bug confirmed on an iBook G4. Udisk polling fix also works, but this make PowerPC utterly broken for people who aren't comfortable with terminal.

Revision history for this message
Jason Ritzke (sha-goyjo) wrote :

Sorry, forgot to add that it's the 1.3 Ghz 12 inch iBook G4

Revision history for this message
J. McDonald (mcdonald-joseph) wrote :

Confirmed on a "windtunnel" G4 (dual 1.42 Ghz). As in the example above, I can manually poll with:
     udisks --poll-for-media /dev/<devicename>
and the media is immediately recognized. Oddly, I only have problems with the internal ATAPI Pioneer DVR-105 DVD/CD/RW. If I plug in an external USB DVD/CD/RW drive and place media in the drive, it automatically polls the media and works fine.

Revision history for this message
J. McDonald (mcdonald-joseph) wrote :

For me, doing:
     eject -T && udisks --poll-for-media /dev/hde

from the terminal gives the desired behavior. The problem is that I am too new to Linux to figure out a way to bind that command to the Apple keyboard "eject" key (which I think is key #161).

Revision history for this message
J. McDonald (mcdonald-joseph) wrote :

I ended up writing a very simple shell script to load or eject CDs and poll udisks, and then I call the script from a Gnome panel custom application launcher. It's not ideal, but it works for me until udisks is fixed.

Revision history for this message
J. McDonald (mcdonald-joseph) wrote :

This may be some sort of problem in the powerpc 2.6.32-xx kernel. See here:
http://ubuntuforums.org/showpost.php?p=9505509&postcount=21
Has anyone tried compiling a 2.6.34 kernel for the Ubuntu 10.04 powerpc port? If so, did that fix this problem?

Revision history for this message
J. McDonald (mcdonald-joseph) wrote :
Revision history for this message
J. McDonald (mcdonald-joseph) wrote :

I recently upgraded to the the following kernel:
Linux G4 2.6.32-24-powerpc-smp #39-Ubuntu SMP
The CD/DVD bug is still there.

Revision history for this message
Jochen Fahrner (jofa) wrote :

Same problem on an iMac G5.

Revision history for this message
Jochen Fahrner (jofa) wrote :

I did some more testing. An external USB DVD writer (Samsung) is working with no problems. Inserted discs are immediately recognized.
The internal drive does not recognize inserted discs. The command "udisks --poll-for-media /dev/cdrom" makes them available and they are automounted.

Revision history for this message
Bodo Hoffmann (pebkac) wrote :

Same thing here on my PowerMac G4 450Mhz AGP.

Spec's: http://www.everymac.com/systems/apple/powermac_g4/stats/powermac_g4_450.html
OS: Ubuntu 10.04 LTS PPC

lshw -C disk
*-disk
       product: QUANTUM FIREBALLP KX27.3
       vendor: Quantum
       physical id: 0
       bus info: ide@0.0
       logical name: /dev/hda
       capacity: 25GiB (27GB)
  *-cdrom
       product: MATSHITAPD-2 LF-D110
       physical id: 0
       bus info: ide@1.0
       logical name: /dev/hdc
       capabilities: packet
  *-floppy
       product: IOMEGA ZIP 100 ATAPI
       physical id: 1
       bus info: ide@1.1
       logical name: /dev/hdd

Another feature is:
When I'm logged in, it's difficult to insert a cd/dvd into the drive, because the door will be closed immediately,
when I press the push-button to open the door (less 1 sec).
Before I log in, the door stays open as long I press the eject-button again.

Revision history for this message
Antonis Christofides (anthony-itia) wrote :

Except for the problems already mentioned, in my ibook g4 the device file has group disk instead of cdrom. I think that part of the problems may be because of the name "hdc" that is assigned (by the kernel I guess) to the cdrom, whereas udev and other subsystems probably expect it to be named "sr0" or something.

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

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

Changed in udisks (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.