-
Notifications
You must be signed in to change notification settings - Fork 150
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
Enabling charging limit puts the laptop to sleep when in clamshell mode. #89
Comments
Maybe a potential solution for this is to have some code in place to detect when clamshell mode is on: https://unix.stackexchange.com/questions/11724/how-to-detect-a-laptop-hibernate-resumeclose-lid-open-in-osx-from-a-bash-scrip. It looks like a daemon can be registered for a callback to be hit. |
This behavior is caused by the discharging function of the script. When your mac is above 80% battery will force it to use battery power in order to discharge down to <80%. Using battery power disables clamshell mode, due to apple's infinite wisdom that has determined that using clamshell on battery is wildly inappropriate. To fix this: go to /usr/local/bin/
Add a # before battery discharge "$setting", like so: This will disable the discharge behavior of battery, so you will have to manually get it down below 80%, but it will maintain the functionality of clamshell mode. |
Clamshell users, please try this beta release and thumbs up/down it to let me know if it works for you now! There is now a new GUI option: |
Closed by release v1.1.4. Please reopen if you have the same issue with that release (with debug info). |
What is the issue? (required)
I'm not entirely sure what is going on but it seems like when I enable the 80% charging limit while the laptop is in clamshell mode with a monitor and power plugged it goes to sleep. I get a notification in the side tray about background items have been enabled and then the laptop goes right to sleep. If I open the laptop up and log back in it goes right back to sleep. I'm currently on version 1.0.9
I'm wondering if the battery daemon is conflicting with the battery optimizer that comes with MacOs.
What exactly did you do to produce the issue? (required)
Steps to reproduce the behavior:
Expected behavior (required)
The behavior I'm looking for is allowing the charging limit to stay in place while in clamshell mode.
Error logs
battery_logs.gz
Did
battery
fail to install? Usetail -n 1000 ~/.battery/*/log
instead.Additional context (optional)
I tried disabling the built in battery optimizer and from the CLI told it to discharge to 80 and it laptop went to sleep:
I opened the lid and then set this and it's back to running in clamshell mode:
I suspect something is going on with the discharge setting.
The text was updated successfully, but these errors were encountered: