Page 1 of 1
Any way to poll the reset or boot keys in an app?
Posted: 2026-03-18 11:28
by jeff
Hi,
for a custom reset data (and IP) function, I wonder if one can detect, whether the reset and/or boot key is pressed and hold (Lyra Ultra).
Any idea?
Thanks
Re: Any way to poll the reset or boot keys in an app?
Posted: 2026-03-23 1:34
by Crocodile
Hello, for the boot button of lyra ultra, you can add the adc-key driver to the device tree by modifying it, and register it as an input node (/dev/input/eventX). Then, you can write an application to check whether the boot button has been triggered to achieve the functionality you need.
Re: Any way to poll the reset or boot keys in an app?
Posted: 2026-03-24 10:37
by narlix
Enable the adc-key driver in the device tree for the boot/reset button, expose it as an input device (/dev/input/eventX), and then read that input event in your application to detect when the button is pressed....