Set a static GPIO pin state

Continuing the discussion from How to toggle GPIO pins in Orin nano jetpack 6.0 dynamically:

Is there a way to set the output of a GPIO pin semi permanently? Specifically I mean until the next time the pin is toggled. The linked solution seems to only set the GPIO while the instance is running, if you close the process the GPIO also goes back to its default state.

Thanks!

Teva

Hi,
There is a known issue about GPIO control on Jetpack 6.0, 6.1, 6.2. Please apply the fix and check if you still observe the issue:

Jetson/L4T/r36.4.x patches - eLinux.org
[GPIO] Fix bit 10(SFIO) been set by gpiod