pda rules, visor and libusb

Matt Davey mcdavey at mrao.cam.ac.uk
Fri Apr 28 01:59:36 PDT 2006


What's the current status of the HAL pda rules?

I'm a developer of gnome-pilot, and have been trying to test recently
contributed code that aims to integrate gnome-pilot with HAL.  I'm
on fc5, and find that the libhal .fdi file 10-usb-pda.fdi is not
correctly matching my (sony clie) palm PDA.

It looks like HAL isn't picking up any of the ttyUSB serial stuff,
so the match rule doesn't therefore pick it up as a 'pda'
capable device with pda.platform = "palm".

Is this a known issue?  I'm not familiar with the inner workings of HAL,
so don't know whether it's likely to be a hal coding bug, a change in
the functionality (I noticed some discussion as to whether ttyS* devices
only should be marked as serial), or a kernel/udev problem, or what.

I'm attaching a portion of my 'lshal' output, showing my connected Clie,
but no 'pda' keys.

More generally, the pilot-link folks (who provide the layer that talks
to palmos devices) are moving towards libusb support in preference to
the original usbserial 'visor' module.  From a quick look, it seems that
the libhal pda rules require visor support.

Regards,

Matt

Matt Davey		What do you get the man who has everything?  
mcdavey at mrao.cam.ac.uk 		A good shot of penecillin.
-------------- next part --------------
udi = '/org/freedesktop/Hal/devices/usb_device_54c_169_noserial'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_54c_169_noserial'  (string)
  linux.subsystem = 'usb'  (string)
  linux.hotplug_type = 1  (0x1)  (int)
  usb_device.bus_number = 2  (0x2)  (int)
  usb_device.can_wake_up = false  (bool)
  usb_device.is_self_powered = true  (bool)
  usb_device.version_bcd = 256  (0x100)  (int)
  usb_device.speed_bcd = 4608  (0x1200)  (int)
  usb_device.linux.device_number = 27  (0x1b)  (int)
  usb_device.num_ports = 0  (0x0)  (int)
  usb_device.max_power = 2  (0x2)  (int)
  usb_device.device_revision_bcd = 256  (0x100)  (int)
  info.product = 'Clie PEG-TJ35 PDA Serial'  (string)
  usb_device.product = 'Clie PEG-TJ35 PDA Serial'  (string)
  info.vendor = 'Sony Corp.'  (string)
  usb_device.vendor = 'Sony Corp.'  (string)
  usb_device.product_id = 361  (0x169)  (int)
  usb_device.vendor_id = 1356  (0x54c)  (int)
  usb_device.device_protocol = 0  (0x0)  (int)
  usb_device.device_subclass = 0  (0x0)  (int)
  usb_device.device_class = 0  (0x0)  (int)
  usb_device.num_interfaces = 1  (0x1)  (int)
  usb_device.num_configurations = 1  (0x1)  (int)
  usb_device.configuration_value = 1  (0x1)  (int)
  usb_device.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.3'  (string)
  info.linux.driver = 'usb'  (string)
  info.bus = 'usb_device'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_50f_3_noserial'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.3'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.3'  (string)

udi = '/org/freedesktop/Hal/devices/usb_device_54c_169_noserial_if0'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_54c_169_noserial_if0'  (string)
  linux.subsystem = 'usb'  (string)
  linux.hotplug_type = 1  (0x1)  (int)
  info.product = 'USB Vendor Specific Interface'  (string)
  usb.interface.protocol = 0  (0x0)  (int)
  usb.interface.subclass = 0  (0x0)  (int)
  usb.interface.class = 255  (0xff)  (int)
  usb.interface.number = 0  (0x0)  (int)
  info.linux.driver = 'visor'  (string)
  usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.3/2-1.3:1.0'  (string)
  usb.configuration_value = 1  (0x1)  (int)
  usb.num_configurations = 1  (0x1)  (int)
  usb.num_interfaces = 1  (0x1)  (int)
  usb.device_class = 0  (0x0)  (int)
  usb.device_subclass = 0  (0x0)  (int)
  usb.device_protocol = 0  (0x0)  (int)
  usb.vendor_id = 1356  (0x54c)  (int)
  usb.product_id = 361  (0x169)  (int)
  usb.vendor = 'Sony Corp.'  (string)
  usb.product = 'USB Vendor Specific Interface'  (string)
  usb.device_revision_bcd = 256  (0x100)  (int)
  usb.max_power = 2  (0x2)  (int)
  usb.num_ports = 0  (0x0)  (int)
  usb.linux.device_number = 27  (0x1b)  (int)
  usb.speed_bcd = 4608  (0x1200)  (int)
  usb.version_bcd = 256  (0x100)  (int)
  usb.is_self_powered = true  (bool)
  usb.can_wake_up = false  (bool)
  usb.bus_number = 2  (0x2)  (int)
  info.bus = 'usb'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_54c_169_noserial'  (string)
  linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.3/2-1.3:1.0'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.3/2-1.3:1.0'  (string)

udi = '/org/freedesktop/Hal/devices/usb_device_54c_169_noserial_usbraw'
  info.udi = '/org/freedesktop/Hal/devices/usb_device_54c_169_noserial_usbraw'  (string)
  linux.device_file = '/dev/bus/usb/002/027'  (string)
  linux.subsystem = 'usb_device'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  usbraw.device = '/dev/bus/usb/002/027'  (string)
  info.product = 'USB Raw Device Access'  (string)
  info.capabilities = {'usbraw'} (string list)
  info.category = 'usbraw'  (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_54c_169_noserial'  (string)
  linux.sysfs_path = '/sys/class/usb_device/usbdev2.27'  (string)


More information about the hal mailing list