[Bug 36598] firewire dvd burner fails to coldplug into hal

Ryan Lortie desrt at desrt.ca
Sat Mar 25 15:37:44 UTC 2006


Public bug reported:
https://launchpad.net/malone/bugs/36598

Affects: hal (Ubuntu)
       Severity: Normal
       Priority: (none set)
         Status: Unconfirmed

Description:
If I boot my computer with my DVD drive plugged in then HAL fails to
show it in the device list.  I get some sort of a strange 'iLink
interface' that I think represents the Firewire interface on the device
but I get no SCSI stuff.

The modules get loaded properly and I have nodes in /dev.  I can also see it in sysfs here:
/sys/bus/ieee1394/devices/08004609000d626e/08004609000d626e-0/host3/target3:0:0/3:0:0:0

If I powercycle the DVD drive (ie: hotplug) then it works.  The new sysfs path is:
/sys/bus/ieee1394/devices/08004609000d626e/08004609000d626e-0/host7/target7:0:0/7:0:0:0

(ie: same, except for the scsi 'host' number)

desrt at moonpix:/sys/bus/ieee1394/devices/08004609000d626e/08004609000d626e-0/host7/target7:0:0/7:0:0:0$
head * 2> /dev/null

==> block <==

==> bus <==

==> device_blocked <==
0

==> driver <==

==> generic <==

==> ieee1394_id <==
08004609000d626e:0:0

==> iocounterbits <==
32

==> iodone_cnt <==
0xb64

==> ioerr_cnt <==
0xa9a

==> iorequest_cnt <==
0xb64

==> model <==
DVD RW DRU-810A

==> power <==

==> queue_depth <==
8

==> queue_type <==
none

==> rev <==
2.0d

==> scsi_device:7:0:0:0 <==

==> scsi_generic:sg1 <==

==> scsi_level <==
0

==> state <==
running

==> timeout <==
0

==> type <==
5

==> vendor <==
SONY

and information from lshal (after I've hotplugged again):

udi = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e'
  info.udi = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e'  (string)
  linux.subsystem = 'ieee1394'  (string)
  linux.hotplug_type = 1  (0x1)  (int)
  info.product = 'iLINK DRIV'  (string)
  info.vendor = 'SONY CORPORATION LTD.'  (string)
  ieee1394.product = 'iLINK DRIV'  (string)
  ieee1394.product_id = 512  (0x200)  (int)
  ieee1394.vendor = 'SONY CORPORATION LTD.'  (string)
  ieee1394.version = 66691  (0x10483)  (int)
  ieee1394.specifier_id = 24734  (0x609e)  (int)
  ieee1394.vendor_id = 524358  (0x80046)  (int)
  ieee1394.guid = 576537756772950638  (0x8004609000d626e)  (uint64)
  info.parent = '/org/freedesktop/Hal/devices/pci_1102_4001'  (string)
  info.bus = 'ieee1394'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:0c.2/fw-host0/08004609000d626e/08004609000d626e-0'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:0c.2/fw-host0/08004609000d626e/08004609000d626e-0'  (string)

udi = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e_scsi_host'
  info.udi = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e_scsi_host'  (string)
  linux.subsystem = 'scsi_host'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  scsi_host.host = 7  (0x7)  (int)
  info.product = 'SCSI Host Adapter'  (string)
  info.capabilities = {'scsi_host'} (string list)
  info.category = 'scsi_host'  (string)
  info.parent = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:0c.2/fw-host0/08004609000d626e/08004609000d626e-0/host7'  (string)
  linux.sysfs_path = '/sys/class/scsi_host/host7'  (string)

udi = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e_scsi_host_scsi_device_lun0'
  info.udi = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e_scsi_host_scsi_device_lun0'  (string)
  linux.subsystem = 'scsi'  (string)
  linux.hotplug_type = 1  (0x1)  (int)
  scsi.type = 'cdrom'  (string)
  scsi.vendor = 'SONY'  (string)
  scsi.model = 'DVD RW DRU-810A'  (string)
  info.product = 'SCSI Device'  (string)
  info.linux.driver = 'sr'  (string)
  scsi.lun = 0  (0x0)  (int)
  scsi.target = 0  (0x0)  (int)
  scsi.bus = 0  (0x0)  (int)
  scsi.host = 7  (0x7)  (int)
  info.parent = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e_scsi_host'  (string)
  info.bus = 'scsi'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:0c.2/fw-host0/08004609000d626e/08004609000d626e-0/host7/target7:0:0/7:0:0:0'  (string)  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:0c.2/fw-host0/08004609000d626e/08004609000d626e-0/host7/target7:0:0/7:0:0:0'  (string)

udi = '/org/freedesktop/Hal/devices/storage_serial__sysfs_ieee1394_id_'
  info.addons = {'hald-addon-storage', 'hald-addon-storage'} (string list)
  storage.policy.desired_mount_point = 'dvdrecorder'  (string)
  storage.policy.mount_filesystem = 'auto'  (string)
  storage.policy.should_mount = true  (bool)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__sysfs_ieee1394_id_'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_serial__sysfs_ieee1394_id_'
(string)
  storage.cdrom.write_speeds = {'7056', '5645', '4234', '2822', '2117'} (string
list)
  storage.cdrom.write_speed = 7056  (0x1b90)  (int)
  storage.cdrom.read_speed = 7056  (0x1b90)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.hddvdrw = false  (bool)
  storage.cdrom.hddvdr = false  (bool)
  storage.cdrom.hddvd = false  (bool)
  storage.cdrom.bdre = false  (bool)
  storage.cdrom.bdr = false  (bool)
  storage.cdrom.bd = false  (bool)
  storage.cdrom.dvdplusrdl = true  (bool)
  storage.cdrom.dvdplusrw = true  (bool)
  storage.cdrom.dvdplusr = true  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = true  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.cdrw = true  (bool)
  storage.cdrom.cdr = true  (bool)
  storage.requires_eject = true  (bool)
  storage.hotpluggable = true  (bool)
  info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list)
  info.category = 'storage'  (string)
  info.product = 'DVD RW DRU-810A'  (string)
  info.vendor = 'SONY'  (string)
  storage.removable = true  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e'  (string)
  storage.lun = 0  (0x0)  (int)
  storage.serial = '$sysfs{ieee1394_id}'  (string)
  storage.vendor = 'SONY'  (string)
  storage.model = 'DVD RW DRU-810A'  (string)
  storage.drive_type = 'cdrom'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.bus = 'ieee1394'  (string)
  block.is_volume = false  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 11  (0xb)  (int)
  block.device = '/dev/scd0'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e_scsi_host_scsi_device_lun0'  (string)
  linux.sysfs_path_device = '/sys/block/sr0'  (string)
  linux.sysfs_path = '/sys/block/sr0'  (string)

udi = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e_scsi_host_scsi_device_lun0_scsi_generic'
  info.udi = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e_scsi_host_scsi_device_lun0_scsi_generic'  (string)
  linux.device_file = '/dev/sg1'  (string)
  linux.subsystem = 'scsi_generic'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  scsi_generic.device = '/dev/sg1'  (string)
  info.product = 'SCSI Generic Interface'  (string)
  info.capabilities = {'scsi_generic'} (string list)
  info.category = 'scsi_generic'  (string)
  info.parent = '/org/freedesktop/Hal/devices/ieee1394_guid_8004609000d626e_scsi_host_scsi_device_lun0'  (string)
  linux.sysfs_path = '/sys/class/scsi_generic/sg1'  (string)

udi = '/org/freedesktop/Hal/devices/ieee1394_guid_23c0101041161'
  info.udi = '/org/freedesktop/Hal/devices/ieee1394_guid_23c0101041161'  (string)
  linux.subsystem = 'ieee1394'  (string)
  linux.hotplug_type = 1  (0x1)  (int)
  info.product = 'Creative Technology, Ltd.'  (string)
  info.vendor = 'Creative Technology, Ltd.'  (string)
  ieee1394.product = 'Creative Technology, Ltd.'  (string)
  ieee1394.product_id = 0  (0x0)  (int)
  ieee1394.vendor = 'Creative Technology, Ltd.'  (string)
  ieee1394.version = 1  (0x1)  (int)
  ieee1394.specifier_id = 94  (0x5e)  (int)
  ieee1394.vendor_id = 572  (0x23c)  (int)
  ieee1394.guid = 628924963098977  (0x23c0101041161)  (uint64)
  info.parent = '/org/freedesktop/Hal/devices/pci_1102_4001'  (string)
  info.bus = 'ieee1394'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:0c.2/fw-host0/00023c0101041161/00023c0101041161-0'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1e.0/0000:02:0c.2/fw-host0/00023c0101041161/00023c0101041161-0'  (string)

I believe this to be a HAL bug because sysfs and devfs both register the
device properly on coldplug.




More information about the desktop-bugs mailing list