blob: 10836d9909a48218583c706a104aad611423e1e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
.\"
.\" hal-set-property manual page.
.\" Copyright (C) 2007 David Zeuthen <david@fubar.dk>
.\"
.TH HAL-SET-PROPERTY 1
.SH NAME
hal-set-property \- set a property on a device object
.SH SYNOPSIS
.PP
.B hal-set-property
[options]
.SH DESCRIPTION
\fIhal-set-property\fP sets a property on a device object in
the
.B HAL
device database. For
more information about both the big picture and specific
.B HAL
properties, refer to the \fIHAL spec\fP which can be found in
.I "@docdir@/spec/hal-spec.html"
depending on the distribution.
.SH OPTIONS
The following options are supported:
.TP
.I "--udi"
The UDI (\fIUnique Device Identifier\fP) of the device object.
.TP
.I "--key"
The name of the property.
.TP
.I "--int"
Set value property of the property to a 32-bit signed integer. The
value passed is assumed to be decimal unless it's prefixed with
.B 0x
or
.B x
for hexadecimal values.
.TP
.I "--uint64"
Set value property of the property to a 64-bit unsigned integer. The
value passed is assumed to be decimal unless it's prefixed with
.B 0x
or
.B x
for hexadecimal values.
.TP
.I "--string"
Set value property of the property to a string.
.TP
.I "--double"
Set value property of the property to a floating point number.
.TP
.I "--bool"
Set value property of the property to boolean, e.g.
.B true
or
.B false.
.TP
.I "--strlist-pre"
Prepend an item to a string list.
.TP
.I "--strlist-post"
Append an item to a string list.
.TP
.I "--strlist-rem"
Remove an item from a string list.
.TP
.I "--remove"
Remove a property.
.TP
.I "--help"
Print out usage.
.TP
.I "--version"
Print the version.
.SH RETURN VALUE
.PP
If setting the property succeeds, this program will exit with exit
code 0. On errors a non-zero the program will exit with a non-zero
exit code. Note that setting properties on the
.B HAL
device database usually requires super user privileges.
.SH BUGS
.PP
Please send bug reports to either the distribution or the HAL
mailing list, see
.I "http://lists.freedesktop.org/mailman/listinfo/hal"
on how to subscribe.
.SH SEE ALSO
.PP
\&\fIhald\fR\|(8),
\&\fIlshal\fR\|(1),
\&\fIhal-get-property\fR\|(1),
\&\fIhal-find-by-property\fR\|(1),
\&\fIhal-find-by-capability\fR\|(1)
.SH AUTHOR
Written by David Zeuthen <david@fubar.dk> with a lot of help from many
others.
|