devnulpavel / osx_battery_charge_limit Goto Github PK
View Code? Open in Web Editor NEWIntel-only Macbook (OSX) limit maximum battery charge using SMC
Intel-only Macbook (OSX) limit maximum battery charge using SMC
Can you put this in a downloadable app? Because I don't use x-code and my space is small in my MBA 2011.
Hi!
Does script controls the MagSafe LED indicator?
I get
ERROR: SMC out parse failed
valid " BCLM [ui8 ] 60 (bytes 3c)"
current " BCLM [ ] no data"
and can't set it, give same error as above
in efi I can see the value, but it does not show data also
76: key 'BCLM' size 1, type 'ui8 ', attrib 0xD0
macbookpro10,1 2012 retina
any ideas thx
Hello,
Thank you for your work on this tool, it is exactly what I am looking for.
However, I tried to run your script with sudo python3 main.py -s 65
but errors are produced.
ERROR: SMC out parse failed
valid " BCLM [ui8 ] 60 (bytes 3c)"
current " BCLM [ ] no data"
I am using a 13-inch MBP, 2020 with M1 chip and Big Sur 11.2.2 and python 3.8.6.
The repo is cloned to ~/osx_battery_charge_limit
and the commands were ran from that directory.
sudo ./smc-command_from_fan_control/smc -l | grep "BCLM"
returns no output was well, my complete output of smc -l is here: https://pastebin.com/ehGgH95J
Am I using the script wrong? Has the BCLM key been removed?
I just want to give information, that this script is working on my MacBook Pro mid-2012 MD101 running Mojave 10.14.6
Hello!
Thanks for great tool!
Is there a way to support hackintosh based systems that uses VirtualSMC?
For now I receive an error
python3 main.py
ERROR: SMC out parse failed
valid " BCLM [ui8 ] 60 (bytes 3c)"
current " BLCM [ ] no data"
Hi guys, I have an old MacBook Pro 7.1 running Ubuntu and I care to my battery lifespan. This project works on Linux? Do you guys know some that works?
System:
Kernel: 5.15.0-46-generic x86_64 bits: 64 Desktop: MATE 1.26.0
Distro: Ubuntu 22.04.1 LTS (Jammy Jellyfish)
Machine:
Type: Laptop System: Apple product: MacBookPro7,1 v: 1.0
serial: <superuser required>
Mobo: Apple model: Mac-F222BEC8 serial: <superuser required> UEFI: Apple
v: 68.0.0.0.0 date: 06/13/2019
Battery:
ID-1: BAT0 charge: 28.1 Wh (74.7%) condition: 37.6/62.9 Wh (59.7%)
CPU:
Info: dual core model: Intel Core2 Duo P8600 bits: 64 type: MCP cache:
L2: 3 MiB
Speed (MHz): avg: 797 min/max: 798/2394 cores: 1: 796 2: 799
Graphics:
Device-1: NVIDIA MCP89 [GeForce 320M] driver: nvidia v: 340.108
Device-2: Apple Built-in iSight type: USB driver: uvcvideo
Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nvidia
gpu: nvidia resolution: 1280x800~60Hz
OpenGL: renderer: GeForce 320M/integrated/SSE2 v: 3.3.0 NVIDIA 340.108
Audio:
Device-1: NVIDIA MCP89 High Definition Audio driver: snd_hda_intel
Sound Server-1: ALSA v: k5.15.0-46-generic running: yes
Sound Server-2: PulseAudio v: 15.99.1 running: yes
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Broadcom BCM4322 802.11a/b/g/n Wireless LAN driver: wl
IF: wlp2s0 state: up mac: <filter>
Device-2: Broadcom NetXtreme BCM5764M Gigabit Ethernet PCIe driver: tg3
IF: enp3s0 state: down mac: <filter>
IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
Device-1: Apple Bluetooth Host Controller type: USB driver: btusb
Report: hciconfig ID: hci0 state: up address: <filter> bt-v: 1.2
Drives:
Local Storage: total: 111.79 GiB used: 26.66 GiB (23.8%)
ID-1: /dev/sda vendor: Gigabyte model: GP-GSTFS31120GNTD size: 111.79 GiB
Partition:
ID-1: / size: 108.98 GiB used: 26.65 GiB (24.5%) fs: ext4 dev: /dev/sda2
ID-2: /boot/efi size: 511 MiB used: 5.3 MiB (1.0%) fs: vfat
dev: /dev/sda1
Swap:
ID-1: swap-1 type: file size: 4.07 GiB used: 1.26 GiB (30.9%)
file: /swapfile
Sensors:
Missing: Required tool sensors not installed. Check --recommends
Info:
Processes: 245 Uptime: 14h 4m Memory: 3.58 GiB used: 2.83 GiB (79.1%)
Shell: Bash inxi: 3.3.13
Any chance your tool may work (now or in the future) for the new M1 MacBook Air?
thank you
Lukas
Hi Pavel,
since AlDente is not working on older macOS-Versions, I tried your script on my old MacBook Pro running El Capitan.
But I receive an error message every time I try to run the script:
ERROR: SMC out parse failed
valid " BCLM [ui8 ] 60 (bytes 3c)"
current " BCLM [ ] no data"
Am I doing something wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.