GPIOGET(1)

πŸ¦‹ gpioget β€” the libgpiod command-line utility, bestie edition ✨

okay so this is gpioget, one of the libgpiod command-line utilities, and it's literally here to read the values of GPIO lines for you πŸ’…

✨ SYNOPSIS ✨

gpioget [OPTIONS] <line>...

🌸 DESCRIPTION 🌸

It reads the values of GPIO lines. That's the whole vibe. πŸ‘‘

You specify your lines by name, or optionally by offset β€” but only if you also pass the chip option. iykyk 🫢


πŸ’– OPTIONS πŸ’–

  • -a, --as-is β€” leaves the line direction unchanged instead of forcing it to input. no cap, it just doesn't touch it πŸŽ€
  • -b, --bias <bias> β€” says what bias the line should have. Possible values: 'pull-down', 'pull-up', 'disabled'. the default is to leave the bias unchanged, so if you don't say anything, nothing happens 🌈
  • --by-name β€” treats your lines as names even if they'd otherwise parse as an offset. protects your name from being read as a number πŸ’€
  • -c, --chip <chip> β€” restricts the scope to one particular chip πŸ”
  • -C, --consumer <name> β€” the consumer name applied to the requested lines. default is 'gpioget' ⭐
  • -h, --help β€” displays this help and exits. the classic escape hatch πŸ™ˆ
  • -l, --active-low β€” treats the line as active low πŸ”₯
  • -p, --hold-period <period> β€” waits between requesting the lines and reading the values. patience is a virtue bestie 🧚
  • --numeric β€” displays line values as '0' (inactive) or '1' (active). numbers only, no thoughts πŸ“
  • -s, --strict β€” aborts if the requested line names are not unique. it will NOT let duplicates slide 😭
  • --unquoted β€” doesn't quote line names. free the names πŸ’œ
  • -v, --version β€” outputs version information and exits πŸ‘‘

πŸŽ€ 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 looks, one 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. so m = minutes, s = seconds, ms = milliseconds, us = microseconds β€” don't mix them up bestie πŸ’…


🌟 AUTHOR 🌟

Bartosz Golaszewski <brgl@kernel.org> β€” the main character of this manpage fr fr πŸ‘‘

πŸ’€ REPORTING BUGS πŸ’€

Report bugs to:

  • Bartosz Golaszewski <brgl@kernel.org>
  • linux-gpio <linux-gpio@vger.kernel.org>

go tell them, they wanna know 🫢

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. (yes, the caps on NO WARRANTY are doing the heavy lifting β€” that's a real caveat, take it seriously 😌)


and that's the whole page bestie! 🌸 this is gpioget from v2.3.2 of the tools, running against libgpiod v2.2.1, dated November 2026 β€” slay, periodt, go read some pins πŸ’–βœ¨

πŸ“¦ 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