PiSugar / pisugar-power-manager-rs

PiSugar Power Manger in rust language
https://www.pisugar.com/
GNU General Public License v3.0
130 stars 15 forks source link

[FEATURE] Make 'long' custom button press longer or configurabe #126

Open Zanop opened 1 week ago

Zanop commented 1 week ago

Is your feature request related to a problem? Please describe. I want to use the custom button long press for soft shutdown and configure the regular shutdown to just turn off pisugar without actually shutting the Pi. This way I can continue to use the pi if I am connected with the micro usb for example without having to keep Pisugar3 connected/charging.

What I found is that the 'Long" custom button press is actually not very long, it takes less then a second to trigger. Because of that I had many accidental shutdowns.

Describe the solution you'd like I would like the long press to be something like 3 seconds instead of 0.5 seconds or to have a configuration for how long it is.

Describe alternatives you've considered For now I have stopped using the long press function for shutdown as it is too easy to trigger accidentally.

Additional context n/a