battery: Not working for M2 Max MacBook Pro 16 inch
What is the issue? (required) The app fails to launch on my M2 Max MacBook Pro with the following error:
Error installing battery limiter: Command failed: ./applet/bin/sh: ./applet: Bad CPU type in executable
What exactly did you do to produce the issue? (required) Steps to reproduce the behavior:
- Install
battery
via Homebrew:brew install battery
. Installation succeeds. - Open
/Applications/Battery.app
. - Observe “Bad CPU type in executable” error.
Expected behavior (required) The application should launch without error.
Screenshots (optional)
Error logs (optional)
The log for ~/.battery/battery.log
does not exist. Here is the log for ~/.battery/gui.log
:
Starting tray app
Tray app boot complete
Triggering boot-time auto-update
Is installed?
false
Installing battery for tylermilner...
Update/install error:
Error: Command failed: ./applet
/bin/sh: ./applet: Bad CPU type in executable
Update process complete
Error getting battery status:
Error: Command failed: PATH=$PATH:/usr/local/bin/battery battery status
/bin/bash: battery: command not found
Additional context (optional) Add any other context about the problem here.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (11 by maintainers)
just mention, this app is working on a macbook air m2, for me.