Hald-addon-storage won't run

View: New views
3 Messages — Rating Filter:   Alert me  

Hald-addon-storage won't run

by Brown, Tony-P56943 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hald-addon-storage won't run

We are building a custom linux system based upon redhat 5.1.   We are using halevt to send events whenever a user inserts/removes USB storage or CD/DVDs.  On our development systems, also based on redhat 5.1, this works great, but on our targets we get no events for USB or CD/DVD insertion/removal.  We have noticed that hald-addon-storage is not running, though it is available in /usr/libexec.  It runs on the development machines, however.

We would like some information on how to debug this.
We tried copying our /etc/dbus-1/* and /usr/share/hal/* configuration directories from the development machines to the target machines, but this didn't help. 


Tony Brown
General Dynamics C4 Systems
480 441 7417

This email message is for the sole use of the intended recipient(s) and may contain GDC4S confidential or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message.




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

Re: Hald-addon-storage won't run

by Dan Nicholson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Oct 26, 2009 at 7:53 AM, Brown, Tony-P56943
<Anthony.Brown@...> wrote:

>
> We are building a custom linux system based upon redhat 5.1.   We are using
> halevt to send events whenever a user inserts/removes USB storage or
> CD/DVDs.  On our development systems, also based on redhat 5.1, this works
> great, but on our targets we get no events for USB or CD/DVD
> insertion/removal.  We have noticed that hald-addon-storage is not running,
> though it is available in /usr/libexec.  It runs on the development
> machines, however.
>
> We would like some information on how to debug this.
> We tried copying our /etc/dbus-1/* and /usr/share/hal/* configuration
> directories from the development machines to the target machines, but this
> didn't help.

On my fedora 11 system, this seems to be done in
/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi:

    <!-- poll drives with removable media -->
    <match key="storage.removable" bool="true">
      <append key="info.addons" type="strlist">hald-addon-storage</append>
    </match>

You can run lshal and check if it's in the info.addons string list.

udi = '/org/freedesktop/Hal/devices/storage_model_DVDRW_SHM_165H6S_0'
  access_control.file = '/dev/sr1'  (string)
  access_control.type = 'cdrom'  (string)
  block.device = '/dev/sr1'  (string)
  block.is_volume = false  (bool)
  block.major = 11  (0xb)  (int)
  block.minor = 1  (0x1)  (int)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_model_DVDRW_SHM_165H6S_0'
(string)
  info.addons = {'hald-addon-storage'} (string list)
  ...

If that's setup correctly, check if hald-runner (which spawns the
addons) is running. Otherwise, you may want to look in syslog and see
if there's any info about hal. You can also try running hald
--daemon=no --verbose=yes to get more info.

--
Dan
_______________________________________________
hal mailing list
hal@...
http://lists.freedesktop.org/mailman/listinfo/hal

RE: Hald-addon-storage won't run

by Brown, Tony-P56943 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hald-addon-storage won't run
We solved this problem, libvolume_id was missing.
 

Tony Brown
General Dynamics C4 Systems
480 441 7417

This email message is for the sole use of the intended recipient(s) and may contain GDC4S confidential or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message.


 


From: hal-bounces@... [mailto:hal-bounces@...] On Behalf Of Brown, Tony-P56943
Sent: Monday, October 26, 2009 7:53 AM
To: hal@...
Subject: Hald-addon-storage won't run


We are building a custom linux system based upon redhat 5.1.   We are using halevt to send events whenever a user inserts/removes USB storage or CD/DVDs.  On our development systems, also based on redhat 5.1, this works great, but on our targets we get no events for USB or CD/DVD insertion/removal.  We have noticed that hald-addon-storage is not running, though it is available in /usr/libexec.  It runs on the development machines, however.

We would like some information on how to debug this.
We tried copying our /etc/dbus-1/* and /usr/share/hal/* configuration directories from the development machines to the target machines, but this didn't help. 


Tony Brown
General Dynamics C4 Systems
480 441 7417

This email message is for the sole use of the intended recipient(s) and may contain GDC4S confidential or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender by reply email and destroy all copies of the original message.




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