AppHouseKitchen / AppHouseKitchen/AlDente-Battery_Care_and_Monitoring

Use macOS' native settings for “Disable Sleep until Charge Limit”

Aperta
#982 1 commento 3 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Swift
Stelle
9.2k
Fork
332
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**Is your feature request related to a problem? Please describe.**
Currently, when enabling the feature “Disable Sleep until Charge Limit” on an Apple Silicon MacBook, the display doesn't turn off/no screensaver is invoked until the set charge limit is reached. This is especially annoying when doing calibration.

**Describe the solution you'd like**
At least on macOS Monterey, there is an option in the advanced Displays Settings called: “Prevent automatic sleeping on power adapter when the display is off”. From my limited understanding of both settings, yours and the macOS feature, they provide almost the same functionality.

So, would it be possible that AlDentes “Disable Sleep until Charge Limit” option would enable macOS' “Prevent automatic sleeping on power adapter when the display is off” option on Apple Silicon MacBoks when charging starts and disable it when the charge limit is reached? Maybe adding an option like “Always disable sleep when on power adapter” that can only be ticked when the first one is selected would be a neat addition.

I'm uncertain if it is good practice to change system settings from a third-party app. But I'd rather have this instead of a display never turning off.

**Additional context**
![CleanShot 2023-06-24 at 21 58 56@2x](https://github.com/davidwernhart/AlDente-Charge-Limiter/assets/2091312/c27141db-485b-4b87-8d70-3252ebf7626a)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.