Limit battery charging percentage through EC registers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jacotsu
    New Member
    • Feb 2018
    • 3
    • Italy

    #1

    Limit battery charging percentage through EC registers

    Hello everyone,
    this is my first thread so i don't know if this is the appropriate section so excuse me if i'm wrong.

    Recently i've bought an hp 15s-eq2004nl which has been a good laptop overall but it lacks a few important features like:
    - HP Battery care (Limits the maximum charging percentage)
    - S3 suspend (Which i've fixed by patching the DSDT).

    While monitoring the embedded controller registers i've discovered that by writing 0x00 into the register 0x40 the charging stops. but there are the following issues:
    - The embedded controller firmware resets the register periodically and tries to charge the battery, so i have to rewrite the register every 2s
    - There is still a slight amount of charging going on while the script is running (around 1 W).
    - The limiter only works while the laptop is in S0 mode, so if i leave it plugged while in standby or powered off, the battery will fully charge
    - If i increase the register writing frequency, there is a significant performance drop (probably due to ACPI detecting a frequent AC/BAT power supply change)

    Since the computer is brand new, invasive modding or opening it is out of discussion.
    Bios modding is also not really possible both due to HP Sure start and warranty issues.

    Did anyone else try to do this? Maybe someone who has an hp laptop with Battery Care available in the bios.

    Here's a link to my current "working" script, this is made for void linux but you can easily make your windows equivalent
    https://gist.github.com/Jacotsu/0d5f...6a84fb11819566
  • stj
    Great Sage 齊天大聖
    • Dec 2009
    • 31044
    • Albion

    #2
    Re: Limit battery charging percentage through EC registers

    i hope you dont kill the battery,
    modern packs have a microcontroller in them that has a charge-counter among other things.

    Comment

    • Jacotsu
      New Member
      • Feb 2018
      • 3
      • Italy

      #3
      Re: Limit battery charging percentage through EC registers

      Originally posted by stj
      i hope you dont kill the battery,
      modern packs have a microcontroller in them that has a charge-counter among other things.
      I know, but i'm not messing with the battery charge chip. i'm messing with the EC which communicates with the battery chip through SMBus. The register i'm using seems to be the one that controls the charge rate, i don't think that any problem will arise if i set it to 0

      Comment

      Related Topics

      Collapse

      • Thomasraud
        Dell Vostro 3550 (v A01 with BQ24707) Plugged in, Not Charging
        by Thomasraud
        Hello,


        i have similar problem as https://www.badcaps.net/forum/showthread.php?t=37828
        QUOTED
        -It works on charger (without battery connected-only charger)
        -It works on battery (without charger connected-only battery)
        -& it also works when plugged in battery & charger, but it's not charging the battery

        //Confirming, i have same issue, but problem started from charger, centre PIN is outputing 10V+ and jumping randomly 19V


        and..


        QUOTE
        The IC cannot maintain the input current level
        ...
        06-28-2022, 06:47 PM
      • Scoff
        HP Probook 470 G4 - Power and Charging Problem
        by Scoff
        Looking for some help with this one if anybody can assist please? I have an HP Probook 470 G4 Laptop which recently started to intermittently failing to turn on, with intermittent white LED light(charging LED) by the charging port when it should have been charging and showing an orange LED instead. Definitely some sort of gradual failure. Now the laptop fails to power on at all, no charging LED, no Power Button LED either - seemingly dead.
        Stripped down to the bare motherboard. The original HP battery, when disconnected from the motherboard, is reading 0.00v - possibly some sort of protection...
        07-03-2023, 09:28 AM
      • SluggerB
        Help with trying to fix phone that is not charging (Pics inside)
        by SluggerB
        I have two TCL A30 phones.

        Old Phone: This phone worked fine for years, then stopped charging If you plugged a charger into it, the phone would make the charging sound, the phone would tell you it is charging, but the battery icon would not have the charging symbol in it and the battery would not charge.I tried new battery, same behavior.

        New Phone: Works fine, bought as a donor board to try and repair Old Phone

        My interest here is to repair Old Phone, using components parts off New Phone if needed. I am not interested in replacing Old Phone with New Phone....
        08-12-2024, 08:11 AM
      • alfanikos
        Zbook 15u G6 (PR/ID 4YW47AV) not charging
        by alfanikos
        Laptop stopped charging and battery was emptied.

        Initially thought that it was the battery that failed, since the battery symbol was indicated in the screen when laptop was switched on.

        New original HP battery was ordered and installed. Laptop started without issue.

        1. When power adapter 3,5 mm is connected Charging led is blinking 8 times white and stops. No Charging at all.

        2. USB charger is connected and Charging led lighst orange . No charging at all

        New battery is exhausted slowly-slowly (having 3%)

        ...
        08-24-2023, 01:28 AM
      • thesame
        Lenovo TB-X605F fake charging after charging connector replacement.
        by thesame
        Hy guys, i have this lenovo TB-X605F with charging problem, the tablet is fake charging, i have replaced the charging connector twice, it only draws 0.40 Amps when pluging the cable for the first time then it stops drawing any Amps but the tablet keeps showing the charging image at 0% as long as i keep it connected. I have no voltage at the battery connector with the cable pluged, but i have 5 volts after usb connector on some testing points on the board.
        04-03-2024, 03:14 AM
      • Loading...
      • No more items.
      Working...