Bug 579256 - F13 does not detect DVD insertion/removal
Summary: F13 does not detect DVD insertion/removal
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kdebase-runtime
Version: 13
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-03 17:29 UTC by Jaroslav Franek
Modified: 2010-04-20 13:16 UTC (History)
15 users (show)

Fixed In Version: kdebase-runtime-4.4.2-2.fc13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-20 13:16:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Franek 2010-04-03 17:29:42 UTC
Description of problem:

1) F13 does not detect DVD insertion (no kernel message is seen) and DVD is not presented in Device notifier (KDE).

2) When booting up with DVD inserted, the DVD is visible and can be mounted/used, can also be ejected, but leaves a permanent trace in device notifier - the actual volume will not disappear, will not allow inserting another DVD.

3) Only way to use a DVD is to reboot with it in the drive!

The same DVD drive work perfectly when booting to Windows.


Version-Release number of selected component (if applicable):

kernel-2.6.33.1-19.fc13.i686
udev-151-7.fc13.i686
hal-0.5.14-3.fc13.i686
kdebase-4.4.1-1.fc13.i686

How reproducible:

Always

Steps to Reproduce:

1. log into KDE
2. insert non-empty DVD (no matter whether original movie or burned data)
3. check device notifier
4. check dmesg & /var/log/messages
  
Actual results:

Nothing. No message in dmesg or /var/log/messages related to DVD insertion.

Expected results:

DVD is detected and presented in device notifier. I can use more than one DVD per boot...

Additional info:

excerpt from
# lshal

udi = '/org/freedesktop/Hal/devices/storage_model_DVD_RW_AD_7593A'
  block.device = '/dev/sr0'  (string)
  block.is_volume = false  (bool)
  block.major = 11  (0xb)  (int)
  block.minor = 0  (0x0)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_DVD_RW_AD_7593A'  (string)
  info.addons = {'hald-addon-storage'} (string list)
  info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list)
  info.category = 'storage'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Storage', 'org.freedesktop.Hal.Device.Storage'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/pci_8086_24ca_scsi_host_0_scsi_device_lun0'  (string)
  info.product = 'DVD RW AD-7593A'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_DVD_RW_AD_7593A'  (string)
  info.vendor = 'Optiarc'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.1/host1/target1:0:0/1:0:0:0/block/sr0'  (string)
  org.freedesktop.Hal.Device.Storage.method_argnames = {'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Storage.method_execpaths = {'hal-storage-eject', 'hal-storage-closetray'} (string list)
  org.freedesktop.Hal.Device.Storage.method_names = {'Eject', 'CloseTray'} (string list)
  org.freedesktop.Hal.Device.Storage.method_signatures = {'as', 'as'} (string list)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'pci'  (string)
  storage.cdrom.bd = false  (bool)
  storage.cdrom.bdr = false  (bool)
  storage.cdrom.bdre = false  (bool)
  storage.cdrom.cdr = true  (bool)
  storage.cdrom.cdrw = true  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.dvdplusr = true  (bool)
  storage.cdrom.dvdplusrdl = true  (bool)
  storage.cdrom.dvdplusrw = true  (bool)
  storage.cdrom.dvdplusrwdl = false  (bool)
  storage.cdrom.dvdr = true  (bool)
  storage.cdrom.dvdram = true  (bool)
  storage.cdrom.dvdrdl = true  (bool)
  storage.cdrom.dvdrw = true  (bool)
  storage.cdrom.hddvd = false  (bool)
  storage.cdrom.hddvdr = false  (bool)
  storage.cdrom.hddvdrw = false  (bool)
  storage.cdrom.mo = false  (bool)
  storage.cdrom.mrw = true  (bool)
  storage.cdrom.mrw_w = true  (bool)
  storage.cdrom.read_speed = 4234  (0x108a)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.support_multisession = true  (bool)
  storage.cdrom.write_speed = 4234  (0x108a)  (int)
  storage.cdrom.write_speeds = {'4234', '3528', '2822', '1764', '1411', '706'} (string list)
  storage.drive_type = 'cdrom'  (string)
  storage.firmware_version = '1.05'  (string)
  storage.hotpluggable = false  (bool)
  storage.lun = 0  (0x0)  (int)
  storage.media_check_enabled = true  (bool)
  storage.model = 'DVD RW AD-7593A'  (string)
  storage.no_partitions_hint = true  (bool)
  storage.originating_device = '/org/freedesktop/Hal/devices/computer'  (string)
  storage.removable = true  (bool)
  storage.removable.media_available = false  (bool)
  storage.removable.support_async_notification = false  (bool)
  storage.requires_eject = true  (bool)
  storage.size = 0  (0x0)  (uint64)
  storage.vendor = 'Optiarc'  (string)

Comment 1 Jaroslav Franek 2010-04-10 22:04:20 UTC
I tried the following approach:

1) boot with a DVD in the drive
2) login to KDE, the medium is visible in device notifier under its proper label
3) use root account from console to unmount the DVD
4) KDE device notifier detected media was unmounted
5) use root account from console to eject the DVD
6) KDE device notifier retained previous label in the list, still showing unmounted
7) insert another DVD
6) KDE device notifier did not detect any change
8) Mounted the other DVD using KDE device notifier, but under the previous label

This way, I am able to change DVDs in the drive in one KDE session, all under the label of the first one. KDE device notifier did not detect the change of media, it still thinks it was the previous one.

So some kind of interaction from command line works, and I suppose it is not a kernel issue then; More probably the issue of KDE, or communication between KDE and those *Kit applications?

Comment 2 Jaroslav Franek 2010-04-17 18:58:37 UTC
It seems that udisks (DeviceKit) knows about media changes. See the steps and udisks output below below. But KDE Device Notifier is not aware of any change. Strange because USB media seem to work correctly with KDE Device Notifier, even that U3 stuff pretending to be an optical disk.

1) boot without any DVD media being inserted into the DVD drive
2) log into KDE
3) check with udisks: has media: 0
4) insert a DVD media, wait a few seconds
5) check KDE Device Notifier: no DVD media shown
6) udisks shows media was detected, see below
7) remove the DVD media
8) check with udisks: has media: 0
9) KDE Device Notifier - hmm, nothing as before


$ udisks --dump
...
========================================================================
Showing information for /org/freedesktop/UDisks/devices/sr0
  native-path:                 /sys/devices/pci0000:00/0000:00:1f.1/host1/target1:0:0/1:0:0:0/block/sr0
  device:                      11:0
  device-file:                 /dev/sr0
    presentation:              /dev/sr0
    by-path:                   /dev/disk/by-path/pci-0000:00:1f.1-scsi-1:0:0:0
  detected at:                 Sat 17 Apr 2010 08:32:28 PM CEST
  system internal:             0
  removable:                   1
  has media:                   1 (detected at Sat 17 Apr 2010 08:34:19 PM CEST)
    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:                        4641751040
  block size:                  2048
  job underway:                no
  usage:                       filesystem
  type:                        iso9660
  version:                     Joliet\x20Extension
  uuid:                        
  label:                       MyDisk
  optical disc:
    blank:                     0
    appendable:                0
    closed:                    1
    num tracks:                1
    num audio tracks:          0
    num sessions:              1
  drive:
    vendor:                    Optiarc
    model:                     DVD RW AD-7593A
    revision:                  1.05
    serial:                    
    WWN:                       
    detachable:                0
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 1
    adapter:                   /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e1
    ports:
      /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e1/host1
    similar devices:
    media:                     optical_dvd_plus_r
      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_ram optical_dvd_rw optical_mrw optical_mrw_w
    interface:                 scsi
    if speed:                  (unknown)
    ATA SMART:                 not available

========================================================================

Comment 3 Rex Dieter 2010-04-17 19:33:23 UTC
rpm -q hal-storage-addon
please.

If it's not installed, please do so.

If it is installed, then the issue lies there, most likely.

Comment 4 Rex Dieter 2010-04-17 19:38:04 UTC
Looks like they indeed made this split in F13 too (was originally planned for f14+ only).  Re-assigning to kdebase-runtime to add this dep.

Comment 5 Jaroslav Franek 2010-04-17 19:51:57 UTC
hal-storage-addon was not installed. After installing it and rebooting, the KDE Device Notifier works as expected.

Thanks a lot for help.

Comment 6 Fedora Update System 2010-04-17 19:58:14 UTC
kdebase-runtime-4.4.2-2.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/kdebase-runtime-4.4.2-2.fc13

Comment 7 Fedora Update System 2010-04-20 13:16:07 UTC
kdebase-runtime-4.4.2-2.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.