batt
batt copied to clipboard
Failed to connect to unix socket
MBA M4, macOS 14.6.1
Installed version via brew:
brew info batt
==> batt: stable 0.2.1 (bottled)
Control and limit battery charging on Apple Silicon MacBooks
https://github.com/charlie0129/batt
Installed
/opt/homebrew/Cellar/batt/0.2.1 (7 files, 11.2MB) *
Error when setting with batt
$ sudo batt limit 80
Password:
ERRO[2024-08-28 17:54:32.433] failed to connect to unix socket. 1) Do you have adequate permissions? Please re-run as root. 2) Is the daemon running? Have installed it?
Error: failed to set limit: failed to send request: Put "http://unix/limit": dial unix /var/run/batt.sock: connect: no such file or directory
Usage:
batt limit [percentage] [flags]
Flags:
-h, --help help for limit
Global Flags:
-l, --log-level string log level (trace, debug, info, warn, error, fatal, panic) (default "info")