GPIONOTIFY(1)
π gpionotify β the libgpiod command-line utility, bestie edition β¨
okay so first things first: this page is GPIONOTIFY(1), and it lives in the gpionotify manual section β that's the whole "manual name" thing, consider it folded in and slayed π
β¨ SYNOPSIS β¨
gpionotify [OPTIONS] <line>...
like, that's the whole shape of it. options first, then one or more lines. simple. iconic. π¦
πΈ DESCRIPTION πΈ
so what does this thing do? it waits for changes to info on GPIO lines and prints them to standard output. that's it. that's the gig. it just sits there being patient and then goes "oop, something changed" and tells you π
lines are specified by name, or optionally by offset if the chip option is provided. iykyk.
π OPTIONS π
okay this is the part where you screenshot and save. every single flag, no skips, no cap π«Ά
--bannerβ display a banner on successful startup. yes it's cosmetic. yes it's necessary.--by-nameβ treat lines as names even if they would parse as an offset. lowkey a lifesaver when your line names look numeric π-c,--chip <chip>β restrict scope to a particular chip-e,--event <event>β specify the events to monitor. Possible values:'requested','released','reconfigured'. (default is all events)-h,--helpβ display this help and exit. the classic.-F,--format <fmt>β specify a custom output format. go wild, customize the vibe β¨--idle-timeout <period>β exit gracefully if no events occur for the period specified--localtimeβ convert event timestamps to local time-n,--num-events <num>β exit after processing num events. good for when you want a finite amount of drama π-q,--quietβ don't generate any output. silent. mysterious. main character energy.-s,--strictβ abort if requested line names are not unique. harsh but fair π«‘--unquotedβ don't quote line or consumer names--utcβ convert event timestamps to UTC-v,--versionβ output version information and exit
π₯ Chips: π₯
a GPIO chip may be identified by number, name, or path. e.g. '0', 'gpiochip0', and /dev/gpiochip0 all refer to the same chip. three names, one chip, we love a flexible icon π
β±οΈ Periods: β±οΈ
periods are taken as milliseconds unless units are specified. e.g. 10us. supported units are 'm', 's', 'ms', and 'us' for minutes, seconds, milliseconds and microseconds respectively. ngl the unit game here is tight π
π Format specifiers: π
these are the little codes you drop into your --format string and they get swapped for real info:
%oβ GPIO line offset%lβ GPIO line name%cβ GPIO chip name%eβ numeric info event type ('1'- requested,'2'- released or'3'- reconfigured)%Eβ info event type ('requested','released'or'reconfigured')%aβ line attributes%Cβ consumer%Sβ event timestamp as seconds%Uβ event timestamp as UTC%Lβ event timestamp as local time
π AUTHOR π
Bartosz Golaszewski <brgl@kernel.org> β the legend himself, we stan π«Ά
π REPORTING BUGS π
found a bug? don't suffer in silence, report bugs to:
- Bartosz Golaszewski
<brgl@kernel.org> - linux-gpio
<linux-gpio@vger.kernel.org>
β COPYRIGHT β
Copyright Β© 2017-2023 Bartosz Golaszewski License: GPL-2.0-or-later
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (read that last bit again, bestie β no warranty fr fr π)
okay that's the whole page, you're officially smarter than like 90% of the group chat π β¨
and a cute little sign-off for the footer crowd: this was gpionotify v2.3.2 (libgpiod v...), dated November 2026. mwah. πππ¦
π¦ where this page comes from
- arch rolling: libgpiod 2.3.2-1 Β· LGPL-2.1-or-later AND GPL-2.0-or-later AND CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms