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 syncthing on battery only mode #128

Open
cwerner1 opened this issue Oct 1, 2020 · 2 comments
Open

pause syncthing on battery only mode #128

cwerner1 opened this issue Oct 1, 2020 · 2 comments

Comments

@cwerner1
Copy link

cwerner1 commented Oct 1, 2020

Hello

It would be nice if syncthing, can automaticlyy stop the service if a macbook is running on the battery.

Greetings Christian

@xor-gate
Copy link
Member

xor-gate commented Oct 2, 2020

Hi @cwerner1 this is indeed a nice feature, it should not be to hard using the https://developer.apple.com/documentation/iokit/iopowersources_h API.

We should poll IOPSCopyExternalPowerAdapterDetails for != NULL to check if the AC is plugged

@jordanade
Copy link

Would love to see this. For now I had to exclude ~/Library since the scanning and syncing was constantly using 60-100% of a core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants