Bug 1451

Summary: Only partial detect of usb-storage camera on hotplug.
Product: hal Reporter: Jörgen Lidholm <jlm01001>
Component: haldAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED NOTABUG QA Contact:
Severity: major    
Priority: high    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Jörgen Lidholm 2004-09-23 09:24:19 UTC
When I hotplug my camera (Konica Minolta G530), which is a usb-storage capable
camera, it's only partially detected by hal:

my system:
 Slackware-current (>10.0)
 Kernel: 2.6.7
 hal-0.2.97
 udev-026
 hotplug-2004_01_05-noarch-3

hald --daemon=no:
[W] property.c:83 hal_property_new_string() : Key 'usb_device.product' has
invalid UTF-8 string 'Microsoft Wireless Optical Desktop® 1.00'
[W] property.c:83 hal_property_new_string() : Key 'info.product' has invalid
UTF-8 string 'Microsoft Wireless Optical Desktop® 1.00'
[W] property.c:83 hal_property_new_string() : Key 'info.product' has invalid
UTF-8 string 'Microsoft Microsoft Wireless Optical Desktop® 1.00'
[W] property.c:83 hal_property_new_string() : Key 'info.product' has invalid
UTF-8 string 'Microsoft Microsoft Wireless Optical Desktop® 1.00'
[E] linux/common.c:687 class_device_get_device_file() : /usr/bin/udevinfo
returned 256 for /block/fd0/queue
[E] linux/common.c:687 class_device_get_device_file() : /usr/bin/udevinfo
returned 256 for /block/fd0/queue/iosched
[E] linux/common.c:687 class_device_get_device_file() : /usr/bin/udevinfo
returned 256 for /block/hde/queue
[E] linux/common.c:687 class_device_get_device_file() : /usr/bin/udevinfo
returned 256 for /block/hde/queue/iosched
[E] linux/osspec.c:239 visit_class() : Error opening class pcmcia_socket

[E] linux/osspec.c:239 visit_class() : Error opening class ieee1394_host

[E] linux/osspec.c:239 visit_class() : Error opening class ieee1394_node

[E] linux/osspec.c:239 visit_class() : Error opening class ieee1394

[W] linux/class_device.c:304 class_device_got_parent_device() : No parent for
class device at sysfs path /sys/block/fd0
[W] linux/osspec.c:936 hald_helper_data() : First SEQNUM=427; sleeping 2500ms to
get a few more events
[W] linux/osspec.c:618 handle_udev_node_created_found_device() : No HAL device
corresponding to device file /dev/sda
[W] linux/osspec.c:618 handle_udev_node_created_found_device() : No HAL device
corresponding to device file /dev/sg0
[W] linux/osspec.c:618 handle_udev_node_created_found_device() : No HAL device
corresponding to device file /dev/sda1


/var/log/messages:
Sep 23 18:25:22 localhost kernel: usb 3-1: new full speed USB device using
address 5Sep 23 18:25:22 localhost hal.hotplug[7462]: got info for
/class/scsi_host/host3 (waited 0 ms)
Sep 23 18:25:22 localhost kernel: scsi3 : SCSI emulation for USB Mass Storage
devices
Sep 23 18:25:22 localhost scsi.agent[7467]: how to add device type= at
/devices/pci0000:00/0000:00:10.2/usb3/3-1/3-1:1.0/host3/3:0:0:0 ??
Sep 23 18:25:22 localhost kernel:   Vendor: KM        Model: DiMAGE G530      
Rev: 1.00
Sep 23 18:25:22 localhost kernel:   Type:   Direct-Access                     
ANSI SCSI revision: 02
Sep 23 18:25:22 localhost hal.hotplug[7485]: got info for /block/sda (waited 0 ms)
Sep 23 18:25:22 localhost kernel: SCSI device sda: 499712 512-byte hdwr sectors
(256 MB)
Sep 23 18:25:22 localhost kernel: sda: assuming Write Enabled
Sep 23 18:25:22 localhost hal.hotplug[7493]: got info for /block/sda/sda1
(waited 0 ms)
Sep 23 18:25:22 localhost hal.hotplug[7501]: got info for
/class/scsi_device/3:0:0:0 (waited 0 ms)
Sep 23 18:25:22 localhost hal.hotplug[7509]: got info for
/class/scsi_generic/sg0 (waited 0 ms)
Sep 23 18:25:22 localhost kernel:  sda: sda1
Sep 23 18:25:22 localhost kernel: Attached scsi removable disk sda at scsi3,
channel 0, id 0, lun 0
Sep 23 18:25:22 localhost kernel: Attached scsi generic sg0 at scsi3, channel 0,
id 0, lun 0,  type 0
Sep 23 18:25:22 localhost hal.hotplug[7465]: got info for
/devices/pci0000:00/0000:00:10.2/usb3/3-1/3-1:1.0 (waited 200 ms)
Sep 23 18:25:24 localhost hal.hotplug[7514]: got info for
/devices/pci0000:00/0000:00:10.2/usb3/3-1 (waited 0 ms)
Sep 23 18:25:24 localhost udev[7520]: creating device node '/dev/sda'
Sep 23 18:25:24 localhost udev[7523]: creating device node '/dev/sg0'
Sep 23 18:25:24 localhost udev[7521]: configured rule in
'/etc/udev/rules.d/udev.rules' at line 110 applied, added symlink 'camera'
Sep 23 18:25:24 localhost udev[7521]: creating device node '/dev/sda1'

/var/log/syslog:
Sep 23 18:27:05 localhost hal.hotplug[7699]: Dont know how to wait for scsi at
/devices/pci0000:00/0000:00:10.2/usb3/3-1/3-1:1.0/host4/4:0:0:0; sleeping 1000 ms
Sep 23 18:27:06 localhost kernel: sda: assuming drive cache: write through

lshal: (after physical hotplug)
udi = '/org/freedesktop/Hal/devices/usb_device_132b_15_100_-1_noserial'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_132b_15_100_-1_noserial' 
(string)
  linux.kernel_devname = 'usb-0000:00:10.2-1'  (string)
  usb_device.version_bcd = 272  (0x110)  (int)
  usb_device.speed_bcd = 4608  (0x1200)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  usb_device.linux.parent_number = 6  (0x6)  (int)
  usb_device.linux.device_number = 6  (0x6)  (int)
  usb_device.level_number = 1  (0x1)  (int)
  usb_device.port_number = 1  (0x1)  (int)
  usb_device.bus_number = 3  (0x3)  (int)
  info.product = 'DiMAGE G530'  (string)
  usb_device.product = 'DiMAGE G530'  (string)
  info.vendor = 'KONICA MINOLTA'  (string)
  usb_device.vendor = 'KONICA MINOLTA'  (string)
  usb_device.vendor_id = 4907  (0x132b)  (int)
  usb_device.product_id = 21  (0x15)  (int)
  usb_device.can_wake_up = false  (bool)
  usb_device.is_self_powered = true  (bool)
  usb_device.device_revision_bcd = 256  (0x100)  (int)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.max_power = 2  (0x2)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.configuration_value = 1  (0x1)  (int)
  info.parent =
'/org/freedesktop/Hal/devices/usb_device_0_0_206_-1_0000:00:10.2'  (string)
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.2/usb3/3-1'
 (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:10.2/usb3/3-1' 
(string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.2/usb3/3-1'  (string)
  info.bus = 'usb_device'  (string)
Comment 1 Jörgen Lidholm 2004-09-23 10:31:45 UTC
A faulty .fdi file was the "bug"... So it was no real bug!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.