Vous êtes sur la page 1sur 3

Name

hald - HAL daemon


Synopsis
hald [options]
Description
hald is a daemon that maintains a database of the devices connected to the syste
m system in real-time. The daemon connects to the D-Bus system message bus to pr
ovide an API that applications can use to discover, monitor and invoke operation
s on devices. For more information about both the big picture and specific API d
etails, refer to the HAL spec which can be found in /usr/share/doc/hal-0.5.14/sp
ec/hal-spec.html depending on the distribution.
Options
The following options are supported:
--daemon=yes|no
Specify whether to run in the foreground or the background.
--verbose=yes|no
Enable verbose debug output.
--use-syslog
Enable logging of debug output to the syslog instead of stderr. Use this opt
ion only together with --verbose.
--help
Print out usage.
--version
Print the version of the daemon and exit.
Bugs and Debugging
Please send bug reports to either the distribution or the HAL mailing list, see
http://lists.freedesktop.org/mailman/listinfo/hal on how to subscribe.
First, to obtain useful debug traces you will need to have debuginfo packages in
stalled. On a Fedora system this is in the hal-debuginfo package and can be inst
alled via the yum update program.
Second, shut down the existing hald daemon instance; on a Fedora system
this is achieved by
/etc/init.d/haldaemon stop
After having shut down the daemon, you might want to run
pkill hald
to ensure that all the helper processe of hald are killed too. To start the HAL
daemon, use
/usr/sbin/hald
daemon=no --verbose=yes
If the daemon crashes, you can start it under a

debugger via
gdb /usr/sbin/hald
and then typing
run --daemon=no --verbose=yes
at the (gdb) prompt. To capture a back trace, use the bt command and attach this
to the bug report.
Please also attach the output of lshal(1) in the bug report if possible (it's no
t possible if the hald daemon crashed). If the nature of the bug has to do with
hotplugging, attach two outputs of lshal(1) - one before the device hotplug even
t and one after.
Name
lshal - list HAL devices
Synopsis
lshal [options]
Description
lshal is a utility for displaying items in the HAL device database. For more inf
ormation about both the big picture and specific HAL properties, refer to the HA
L spec which can be found in /usr/share/doc/hal-0.5.14/spec/hal-spec.html depend
ing on the distribution.
Options
The following options are supported:
-m, --monitor
Print changes emitted by the hald daemon.
-s, --short
Short output.
-t, --tree
Display the devices organized in a tree.
-u, --show
Show only the given UDI (Unique Device Identifier).
-h, --help
Print out usage.
-V, --version
Print the version.
Name
hal-set-property - set a property on a device object
Synopsis
hal-set-property [options]
Description
hal-set-property sets a property on a device object in the HAL device database.
For more information about both the big picture and specific HAL properties, ref
er to the HAL spec which can be found in /usr/share/doc/hal-0.5.14/spec/hal-spec
.html depending on the distribution.
Options
The following options are supported:
--udi
The UDI (Unique Device Identifier) of the device object.
--key

The name of the property.


--int
Set value property of the property to a 32-bit signed integer. The value pas
sed is assumed to be decimal unless it's prefixed with 0x or x for hexadecimal v
alues.
--uint64
Set value property of the property to a 64-bit unsigned integer. The value p
assed is assumed to be decimal unless it's prefixed with 0x or x for hexadecimal
values.
--string
Set value property of the property to a string.
--double
Set value property of the property to a floating point number.
--bool
Set value property of the property to boolean, e.g. true or false.
--strlist-pre
Prepend an item to a string list.
--strlist-post
Append an item to a string list.
--strlist-rem
Remove an item from a string list.
--remove
Remove a property.
--help
Print out usage.
--version
Print the version.
Return Value
If setting the property succeeds, this program will exit with exit code 0. On er
rors a non-zero the program will exit with a non-zero exit code. Note that setti
ng properties on the HAL device database usually requires super user privileges.
Bugs
Please send bug reports to either the distribution or the HAL mailing list, see
http://lists.freedesktop.org/mailman/listinfo/hal on how to subscribe.

Vous aimerez peut-être aussi