haldaemon and device discovery

Greg Allen GAllen at arrayinc.com
Fri Sep 7 11:25:22 PDT 2007


I have figured out my problem and have made some general changes to the
daemon code so these devices are recognized.

 

What is the mechanism for getting these changes into the source tree?

Is there someone I should send them to for review and comment?

 

Thanks,

 

-- Greg Allen

 

 

 

  _____  

From: hal-bounces at lists.freedesktop.org
[mailto:hal-bounces at lists.freedesktop.org] On Behalf Of Greg Allen
Sent: Wednesday, August 08, 2007 8:37 PM
To: hal at lists.freedesktop.org
Subject: haldaemon and device discovery

 

I have a CD device with my own drivers on the system. It is recognized
by udevinfo as you can see below:

 

udevinfo -a -p /sys/bus/scsi/devices/0\:0\:126\:0/

 

Udevinfo starts with the device specified by the devpath and then

walks up the chain of parent devices. It prints for every device

found, all possible attributes in the udev rules key format.

A rule to match, can be composed by the attributes of the device

and the attributes from one single parent device.

 

  looking at device '/devices/vscsi0/host0/target0:0:126/0:0:126:0':

    KERNEL=="0:0:126:0"

    SUBSYSTEM=="scsi"

    SYSFS{ioerr_cnt}=="0x2"

    SYSFS{iodone_cnt}=="0xe"

    SYSFS{iorequest_cnt}=="0xe"

    SYSFS{iocounterbits}=="32"

    SYSFS{timeout}=="0"

    SYSFS{state}=="running"

    SYSFS{rev}=="1.00"

    SYSFS{model}=="DVDR   PX-716AL "

    SYSFS{vendor}=="PLEXTOR "

    SYSFS{scsi_level}=="3"

    SYSFS{type}=="5"

    SYSFS{queue_type}=="none"

    SYSFS{queue_depth}=="1"

    SYSFS{device_blocked}=="0"

 

  looking at parent device '/devices/vscsi0/host0/target0:0:126':

    ID=="target0:0:126"

    BUS==""

    DRIVER==""

 

  looking at parent device '/devices/vscsi0/host0':

    ID=="host0"

    BUS==""

    DRIVER==""

 

  looking at parent device '/devices/vscsi0':

    ID=="vscsi0"

    BUS=="virtual_bus"

    DRIVER=="cd_vscsi"

 

However, the device does not appear in the output of hal-devices. Is
there
something I need to do to make this happen?

 

I've tried restarting haldaemon, and also restart the udev daemon as
well, but
it still doesn't show up.

 

My understanding is that HAL discovers devices based on udev. Then why
isn't my device being seen?

 

Thanks for any help.

 

-- Greg Allen

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/hal/attachments/20070907/0adff5a6/attachment-0001.htm 


More information about the hal mailing list