-
Notifications
You must be signed in to change notification settings - Fork 272
Enabling charging limit puts the laptop to sleep when in clamshell mode. #89
Description
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:
- Install battery
- Enable the 80% limit while in clamshell mode
- Computer goes to sleep
- Wake computer up and log in again
- Disable 80% limit
- Go back into clamshell mode
- Enable 80% limit and computer goes back to sleep
- See error logs
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? Use tail -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:
% battery discharge 80
02/24/23-09:11:53 - Discharging to 80% from 88%
02/24/23-09:11:53 - 🔽🪫 Enabling battery discharging
02/24/23-09:11:53 - Battery at 88% (target 80%)
*** sleep ***
I opened the lid and then set this and it's back to running in clamshell mode:
% battery adapter off && battery charge 80
02/24/23-09:12:09 - Setting adapter to off
02/24/23-09:12:09 - Killing running maintain daemons & enabling charging as default state
02/24/23-09:12:09 - 🔌🔋 Enabling battery charging
02/24/23-09:12:09 - 🔼🪫 Disabling battery discharging
02/24/23-09:12:09 - Battery at 88% ((no remaining), smc charging enabled
02/24/23-09:12:09 - 🔼🪫 Disabling battery discharging
02/24/23-09:12:10 - Killing running maintain daemons & enabling charging as default state
02/24/23-09:12:10 - 🔌🔋 Enabling battery charging
02/24/23-09:12:10 - 🔼🪫 Disabling battery discharging
02/24/23-09:12:10 - Battery at 88% (attached; remaining), smc charging enabled
02/24/23-09:12:10 - Setting adapter to on
02/24/23-09:12:10 - Killing running maintain daemons & enabling charging as default state
02/24/23-09:12:10 - 🔌🔋 Enabling battery charging
02/24/23-09:12:10 - 🔼🪫 Disabling battery discharging
02/24/23-09:12:10 - Battery at 88% (attached; remaining), smc charging enabled
02/24/23-09:12:10 - 🔽🪫 Enabling battery discharging
02/24/23-09:12:10 - Charging to 80% from 88%
02/24/23-09:12:10 - 🔌🔋 Enabling battery charging
02/24/23-09:12:10 - 🔼🪫 Disabling battery discharging
02/24/23-09:12:10 - 🔌🪫 Disabling battery charging
02/24/23-09:12:10 - Charging completed at 88%
I suspect something is going on with the discharge setting.