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

Clamshell mode? #11

Open
neumannjan opened this issue Dec 13, 2023 · 2 comments
Open

Clamshell mode? #11

neumannjan opened this issue Dec 13, 2023 · 2 comments
Labels
priority/awaiting-more-evidence Low priority. Possibly useful, but not yet enough interest in it.

Comments

@neumannjan
Copy link

Hi,

does this work with clamshell mode? I currently have charging at 100%, but I wish it to discharge to 80% despitebeing connected to the adapter. However, my laptop is in clamshell mode (closed and connected to external monitor), which, when I disable the adapter, it goes to sleep immediately.

@charlie0129
Copy link
Owner

Yes, the charge limit should work as long as you plug the power supply in and adapter is not disabled. However, discharging is not possible (yet). This is due to Apple's limitations (not allowing clamshell mode with power unplugged). If you disable the adapter, it is the same as unplugging the power supply so Apple will not allow this. You can try some 3rd apps to overcome this limit (like Amphetamine) to allow clamshell mode with power unplugged. Maybe batt can integrate this in the future.

@charlie0129 charlie0129 added wontfix This will not be worked on priority/awaiting-more-evidence Low priority. Possibly useful, but not yet enough interest in it. labels Sep 18, 2024
@charlie0129 charlie0129 removed the wontfix This will not be worked on label Dec 7, 2024
@charlie0129
Copy link
Owner

To summary this issue (for anyone that happens to come by).

Apple decides clamshell mode is only achievable if:

  1. Power adapter is attached;
  2. External display is on.

Failing to fulfill any of these will prevent clamshell mode from being enabled.

A common pitfall is when you are using clamshell mode and you unplugged the power adapter (either by pulling the power cord or batt adapter disable), making first requirement unmet, causing MacBook to go to sleep immediately.

Recently I looked into what other 3rd party App does to allow clamshell mode with power unplugged. Basically they just disable sleep entirely by pmset -a sleep 0, so your Mac never sleeps, even if it is in your bag, unplugged.

If we were to implement this feature, we must consider multiple edge cases. For example, you certainly don't want your Mac burning battery in your bag when travelling. Considering the risks, it is a low priority feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/awaiting-more-evidence Low priority. Possibly useful, but not yet enough interest in it.
Projects
None yet
Development

No branches or pull requests

2 participants