Debian Codegraph @

man/gpiomon.man

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
2 .TH GPIOMON "1" "June 2026" "libgpiod v2.2.5" "gpiomon"
3 .SH NAME
4 gpiomon \- libgpiod command-line utility
5 .SH SYNOPSIS
6 .B gpiomon
7 [\fI\,OPTIONS\/\fR] \fI\,<line>\/\fR...
8 .SH DESCRIPTION
9 Wait for events on GPIO lines and print them to standard output.
10 .PP
11 Lines are specified by name, or optionally by offset if the chip option
12 is provided.
13 .SH OPTIONS
14 .TP
15 \fB\-\-banner\fR
16 display a banner on successful startup
17 .TP
18 \fB\-b\fR, \fB\-\-bias\fR <bias>
19 specify the line bias
20 Possible values: 'pull\-down', 'pull\-up', 'disabled'.
21 (default is to leave bias unchanged)
22 .TP
23 \fB\-\-by\-name\fR
24 treat lines as names even if they would parse as an offset
25 .TP
26 \fB\-c\fR, \fB\-\-chip\fR <chip>
27 restrict scope to a particular chip
28 .HP
29 \fB\-C\fR, \fB\-\-consumer\fR <name> consumer name applied to requested lines (default is 'gpiomon')
30 .TP
31 \fB\-e\fR, \fB\-\-edges\fR <edges>
32 specify the edges to monitor
33 Possible values: 'falling', 'rising', 'both'.
34 (default is 'both')
35 .TP
36 \fB\-E\fR, \fB\-\-event\-clock\fR <clock>
37 specify the source clock for event timestamps
38 Possible values: 'monotonic', 'realtime', 'hte'.
39 (default is 'monotonic')
40 By default 'realtime' is formatted as UTC, others as raw u64.
41 .TP
42 \fB\-h\fR, \fB\-\-help\fR
43 display this help and exit
44 .TP
45 \fB\-F\fR, \fB\-\-format\fR <fmt>
46 specify a custom output format
47 .TP
48 \fB\-\-idle\-timeout\fR <period>
49 exit gracefully if no events occur for the period specified
50 .TP
51 \fB\-l\fR, \fB\-\-active\-low\fR
52 treat the line as active low, flipping the sense of
53 rising and falling edges
54 .TP
55 \fB\-\-localtime\fR
56 format event timestamps as local time
57 .TP
58 \fB\-n\fR, \fB\-\-num\-events\fR <num>
59 exit after processing num events
60 .TP
61 \fB\-p\fR, \fB\-\-debounce\-period\fR <period>
62 debounce the line(s) with the specified period
63 .TP
64 \fB\-q\fR, \fB\-\-quiet\fR
65 don't generate any output
66 .TP
67 \fB\-s\fR, \fB\-\-strict\fR
68 abort if requested line names are not unique
69 .TP
70 \fB\-\-unquoted\fR
71 don't quote line or consumer names
72 .TP
73 \fB\-\-utc\fR
74 format event timestamps as UTC (default for 'realtime')
75 .TP
76 \fB\-v\fR, \fB\-\-version\fR
77 output version information and exit
78 .SS "Chips:"
79 .IP
80 A GPIO chip may be identified by number, name, or path.
81 e.g. '0', 'gpiochip0', and '/dev/gpiochip0' all refer to the same chip.
82 .SS "Periods:"
83 .IP
84 Periods are taken as milliseconds unless units are specified. e.g. 10us.
85 Supported units are 'm', 's', 'ms', and 'us' for minutes, seconds, milliseconds and
86 microseconds respectively.
87 .SS "Format specifiers:"
88 .TP
89 %o
90 GPIO line offset
91 .TP
92 %l
93 GPIO line name
94 .TP
95 %c
96 GPIO chip name
97 .TP
98 %e
99 numeric edge event type ('1' \- rising or '2' \- falling)
100 .TP
101 %E
102 edge event type ('rising' or 'falling')
103 .TP
104 %S
105 event timestamp as seconds
106 .TP
107 %U
108 event timestamp as UTC
109 .TP
110 %L
111 event timestamp as local time
112 .SH AUTHOR
113 Bartosz Golaszewski <[email protected]>
114 .SH "REPORTING BUGS"
115 Report bugs to:
116 Bartosz Golaszewski <[email protected]>
117 linux-gpio <[email protected]>
118 .SH COPYRIGHT
119 Copyright \(co 2017\-2023 Bartosz Golaszewski
120 License: GPL\-2.0\-or\-later
121 .br
122 This is free software: you are free to change and redistribute it.
123 There is NO WARRANTY, to the extent permitted by law.