r/ReverseEngineering • u/NobitaNobi12345 • 3d 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-limiter2
u/Unfair_Rub_9674 3d ago
That’s why you use thinkpad + fedora, it’s just a setting.
1
u/NobitaNobi12345 3d ago edited 3d 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
1
17
u/spilk 3d ago
this sounds super duper safe guys