Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Name
hal-get-property - get a property from a device object
Synopsis
hal-get-property [options]
Description
hal-get-property retrieves a property from a device object in the HAL device dat
abase. For more information about both the big picture and specific HAL properti
es, refer to the HAL spec which can be found in /usr/share/doc/hal-0.5.14/spec/h
al-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.
--hex
Show int32/uint64 values in hex (without a leading 0x).
--verbose
Verbose output.
--help
Print out usage.
--version
Print the version.
Return Value
If both the property and device object exists the value of the property is print
ed on stdout and the program will exit with exit code 0. Otherwise the exit code
will be non-zero.
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