Skip to content

What triggers the system event Power present? #1081

Answered by ArjenR49
ArjenR49 asked this question in Q&A
Discussion options

You must be logged in to vote

After disabling the No power event so the Pi isn't shut down within a minute or so by the assigned script, the Pi will continue to run on battery until the battery charge eventually falls below one of the thresholds set in the GUI.
When restoring AC power before PiJuice decides battery power has dropped too much, the Power present event is indeed triggered as https://github.com/tvoverbeek mentioned here #960 (comment). It does take a little while before this happens.
The script I assigned to this event only writes a message to the log.
Doing something more useful based on this event is another thing ...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ArjenR49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant