meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
2.99k stars 715 forks source link

Portduino: Catch the keyboard power button and initiate poweroff #3953

Closed jp-bennett closed 1 month ago

jp-bennett commented 1 month ago

When running on the Pi400, and using the built-in keyboard inputs, there's no clean way to power off the unit without SSH or an external keyboard. This is the first step in fixing that. The Pi generates a bower button event when releasing the FN key and the f10 key after held together for more than 2 seconds.