Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause encode when on battery power #2109

Open
doncisco1979 opened this issue May 17, 2019 · 1 comment

Comments

3 participants
@doncisco1979
Copy link

commented May 17, 2019

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

@sr55 sr55 added the Enhancement label May 17, 2019

@Nomis101

This comment has been minimized.

Copy link
Contributor

commented May 18, 2019

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.
https://developer.apple.com/documentation/iokit/iopowersources_h?language=objc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.