Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Pause encode when on battery power #2109
I have a multi user mac laptop in the house that I use during the days to encode some files. These can, obviously, go on for hours. What I would love is if HandBrake could detect when the laptop is removed from power and pause the encoding, and then resume encoding when its plugged back into power, to spare the batter life in the case I'm not home while an encode is occurring and someone decides to grab the laptop and run off with it.
Version 1.2.0 (Mac)
Mac OSX Mojave on a 2018 Macbook Pro
This would also be helpful in another scenario. The new USB-C connected power does not have the MagSafe feature anymore. So, it happened twice to me already, that while I was encoding over night, the USB-C power connecter got loose by itself and the encoding stopped in the middle of the night, because the battery run empty.
IOPowerSources.h can detect the power status.