Want to check the status of power-key

I am using a customized Jetson AGX Xavier industrial board and
I am using L4T version 35.4.1.

The gpio status is as follows.
gpio_state_240802.txt (7.5 KB)

As with the existing gpio control method, I tried to use “echo 332 > export” in the /sys/class/gpio path, but the following error occurred and the export did not work.

“-sh: echo: write error: Device or resource busy”

How can I find out the status of the GPIO in the APP I am developing?

Hi insu8897,

 gpio-332 (PEE.04              |power-key           ) in  hi IRQ ACTIVE LOW

This pin is HIGH currently and it is configured as Active Low.

The GPIO can be only requested/used by one driver/application at the same time.

You have to read the status from that driver, or remove the usage from that driver.

@KevinFFF
Thanks for your reply.

What driver is using this power key?

It is used by gpio_keys.c driver.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.