But now it is not working anymore at all. So I figured gpio-timed-keys is not built into the kernel so I changed that, so it gets built, but it’s still not working.
Is this supported? Do I need to change it somewhere else?
Or are there any other options?
Best regards,
jb
EDIT: I get this in dmesg:
[ 1.173320] input: gpio-timed-keys as /devices/gpio-timed-keys/input/input0
please also check Jetson Nano Product Design Guide,
you should check [Jetson Nano Power and System Pin Descriptions], it’s SHUTDOWN_REQ to issue a power-down.
thanks
could you please define the expect behavior of short press and long press, for example 1-sec, and 5-sec?
there’s behavior to power-off by press the powerkey for 6-second.
thanks
I’d like something like a really short press for suspend and 3 second press for shutdown.
I know about 6 second power-off, but this one is a hardware reset, isnt it? Is it recommended to shutdown the jetson like this in a daily manner while software is running?
so, you may change the 1-sec behavior as KEY_SUSPEND for testing,
please refer to below for the details of keys and buttons,
i.e. $L4T_Sources/r32.5/Linux_for_Tegra/source/public/hardware/nvidia/soc/tegra/kernel-include/dt-bindings/input/linux-event-codes.h
there’s handling for the sudden power loss. so it won’t physically harm your platform.
note, it may have data lose if you’re writing data and also shutdown the board .
Hi, sorry for no reply.
Since when using timed-gpio my power_key is also not working anymore, so I knew using KEY_SLEEP would not change that misbehaviour. Since I am short on time, I decided to drop this and just use the gpio for SUSPEND. Users can now power off completly from inside my GUI.