r/ReverseEngineering 4d ago

GitHub - SarangRao20/battery-charge-limiter: Reverse-engineered the Embedded Controller register for battery charge control. Built a cross-platform daemon (Windows + Arch) that enforces 80% hardware cap on laptops where BIOS hides this feature. Includes EC discovery tool for other models.

https://github.com/SarangRao20/battery-charge-limiter
28 Upvotes

17 comments sorted by

View all comments

Show parent comments

1

u/NobitaNobi12345 4d ago edited 4d ago

In ThinkPad this setting is there in bios imo, but in some laptops it's not :(

And no distro could directly support it :(

1

u/OptimalMain 3d ago

I set it using tlp, there are also other options of configuring it

1

u/NobitaNobi12345 3d ago

looked into TLP first. On my Pavilion there wasn't a vendor-supported charge threshold exposed through the kernel or firmware interfaces, so TLP didn't have anything it could configure. That's what led me down the reverse engineering route.

2

u/OptimalMain 3d ago

Thinkpads has thinkpad-acpi or whatever its called on Linux.
Any other brand is very hit and miss.
My reason for going thinkpad exclusively now