On 05-09-2022 14:56, Ludovic Courtès wrote: > I’d like to test whether UPower invokes the intended critical action, > but I’m not sure how to simulate a low battery level. Thoughts? I've found a 'Virtual Battery Driver': https://lwn.net/Articles/440097/ The gmane links are dead, but the linux source tree as a drivers/power/supply/test_power.c that seems to be about the same thing. Greetings, Maxime.