AppHouseKitchen / AppHouseKitchen/AlDente-Battery_Care_and_Monitoring

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

未關閉
#982 1 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Swift
星號
9.2k
分支
332
PR 合併指標
30 天內沒有已合併 PR

描述

**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)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。