Badcaps.net Forum
Go Back   Badcaps Forums > General Topics > General Computer & Tech Discussion
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
Thread Tools
Old Yesterday, 08:26 AM   #1
Jacotsu
New Member
 
Join Date: Feb 2018
City & State: Milan
My Country: Italy
I'm a: Hardcore Geek
Posts: 3
Post 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
Jacotsu is offline   Reply With Quote
Old Yesterday, 08:48 AM   #2
stj
Great Sage 齊天大聖
 
stj's Avatar
 
Join Date: Dec 2009
City & State: Europe
My Country: some shithole run by Israeli agents
I'm a: Professional Tech
Posts: 25,533
Default 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.
stj is offline   Reply With Quote
Old Yesterday, 09:00 AM   #3
Jacotsu
New Member
 
Join Date: Feb 2018
City & State: Milan
My Country: Italy
I'm a: Hardcore Geek
Posts: 3
Default Re: Limit battery charging percentage through EC registers

Quote:
Originally Posted by stj View Post
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
Jacotsu is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Badcaps.net Technical Forums 2003 - 2021
Powered by vBulletin ®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
All times are GMT -6. The time now is 08:20 AM.
Did you find this forum helpful?