haldaemon and device discovery

Greg Allen GAllen at arrayinc.com
Mon Sep 10 07:13:15 PDT 2007


I am trying to get the sources with git. From the page you
pointed me to:

  43  - anonymous checkouts  
  44   
  45    $ git clone git://git.freedesktop.org/git/hal.git  
  46

I tried this, but can't connect:

[root at localhost tmp]# git clone git://git.freedesktop.org/git/hal.git
Initialized empty Git repository in /tmp/hal/.git/
git.freedesktop.org[0: 131.252.210.178]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
fetch-pack from 'git://git.freedesktop.org/git/hal.git' failed.
[root at localhost tmp]#

Am I doing something wrong?

Thanks,

-- Greg

-----Original Message-----
From: hal-bounces at lists.freedesktop.org
[mailto:hal-bounces at lists.freedesktop.org] On Behalf Of Doug Goldstein
Sent: Friday, September 07, 2007 2:36 PM
To: HAL Development List
Subject: Re: haldaemon and device discovery

Greg Allen wrote:
>
> 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
>
Copying and pasting a similar e-mail I sent this morning....

The best thing to do would be to provide a diff against the current 
master branch files, rather then a whole acpi.c file.

http://gitweb.freedesktop.org/?p=hal.git;a=blob;f=HACKING

Provides a terse explaination of how to use git to pull the latest
master.

You would submit your patches to the mailing list.

_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the hal mailing list