SarangRao20 GitHub avatar

battery-charge-limiter

SarangRao20

A cross-platform daemon that prevents laptop battery overcharging by directly writing to the Embedded Controller register.

Stars

5

7-day growth

No data

Forks

0

Open issues

0

License

No data

Last updated

2026-07-30

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It enables a hidden hardware battery charge limiter feature on consumer laptops like HP Pavilion that lack official support, using EC-level control on both Windows and Arch Linux.

Who it is for

  • Owners of HP Pavilion laptops without Battery Health Manager
  • Users of Windows or Arch Linux who want to extend battery lifespan
  • Tinkerers comfortable with hardware-level EC register manipulation
  • Users of other laptops seeking to discover their own EC registers

Use cases

  • Set an 80% charge limit to reduce lithium-ion battery degradation
  • Run a headless daemon on Arch Linux to maintain charge stop automatically
  • Use the detection scripts to find the correct EC register for any laptop
  • Re-enable hidden charge-limiting hardware on consumer-grade laptops

Strengths

  • Cross-platform support with one-click setup for Windows and Arch Linux
  • Works at the hardware EC level rather than relying on software-based charging control
  • Includes detection scripts and a community register database for other laptops
  • Automatically re-applies the charge inhibit every few seconds to counter EC register resets

Considerations

  • Only tested on HP Pavilion 15-eg3xxx; other models require manual EC register discovery
  • Windows setup requires either disabling Secure Boot or using a signed driver (RwDrv.sys)
  • Arch Linux daemon uses a 60-second poll interval which may not work if the ACPI path is unstable

README quick start

Quick Start

Description

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.

Related repositories

Similar projects matched by category, topics, and programming language.

slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
Blaizzy
Featured
Blaizzy GitHub avatar

nativ

Nativ is a native macOS app that lets you run AI models locally on Apple silicon, offering chat, model management, performance analytics, and an OpenAI/Anthropic-compatible API server.

AI & Machine LearningAI Vision & Audio
985
makecindy
Featured
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI & Machine LearningLarge Language Models
958