1HAL-SET-PROPERTY(1) General Commands Manual HAL-SET-PROPERTY(1)
2
3
4
6 hal-set-property - set a property on a device object
7
9 hal-set-property [options]
10
11
13 hal-set-property sets a property on a device object in the HAL device
14 database. For more information about both the big picture and specific
15 HAL properties, refer to the HAL spec which can be found in
16 /usr/share/doc/hal-0.5.9/spec/hal-spec.html depending on the distribuā
17 tion.
18
19
21 The following options are supported:
22
23 --udi The UDI (Unique Device Identifier) of the device object.
24
25 --key The name of the property.
26
27 --int Set value property of the property to a 32-bit signed integer.
28 The value passed is assumed to be decimal unless it's prefixed
29 with 0x or x for hexadecimal values.
30
31 --uint64
32 Set value property of the property to a 64-bit unsigned integer.
33 The value passed is assumed to be decimal unless it's prefixed
34 with 0x or x for hexadecimal values.
35
36 --string
37 Set value property of the property to a string.
38
39 --double
40 Set value property of the property to a floating point number.
41
42 --bool Set value property of the property to boolean, e.g. true or
43 false.
44
45 --strlist-pre
46 Prepend an item to a string list.
47
48 --strlist-post
49 Append an item to a string list.
50
51 --strlist-rem
52 Remove an item from a string list.
53
54 --remove
55 Remove a property.
56
57 --help Print out usage.
58
59 --version
60 Print the version.
61
62
64 If setting the property succeeds, this program will exit with exit code
65 0. On errors a non-zero the program will exit with a non-zero exit
66 code. Note that setting properties on the HAL device database usually
67 requires super user privileges.
68
69
71 Please send bug reports to either the distribution or the HAL mailing
72 list, see http://lists.freedesktop.org/mailman/listinfo/hal on how to
73 subscribe.
74
75
77 hald(8), lshal(1), hal-get-property(1), hal-find-by-property(1), hal-
78 find-by-capability(1)
79
80
82 Written by David Zeuthen <david@fubar.dk> with a lot of help from many
83 others.
84
85
86
87
88 HAL-SET-PROPERTY(1)