On Wed, Jan 18, 2023 at 2:44 PM Fabio Estevam <festevam@xxxxxxxxx> wrote: > > Hi Bartosz, > > On master, there is a useful -a option for gpioget: > > --as-is - leave the line direction unchanged, not forced to input > > I am running libgpiod v1.6.3, which does not contain such an option. > > Backporting this feature to v1.6.x did not seem trivial. > > Would you have any suggestions as to how to add this option to v1.6.x? Nevermind. I changed the libgpiod OE recipe to use master instead of 1.6.3 and now I can read the output correctly using the -a option: # gpioget --version gpioget (libgpiod) v2.0-devel Copyright (C) 2017-2018 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. # gpioset --hold-period 20ms -t0 -c 2 16=1 # gpioget --numeric -a -c 2 16 1