jwise / x2100-ec

Patches for 51nb X2100 Embedded Controller firmware
17 stars 4 forks source link

TODO: Adjust coefficients on cv/cc charge control algorithm, if possible. #2

Closed jwise closed 4 years ago

jwise commented 4 years ago

It looks like the machine charges at 1.5A, according to the current readout. This is ludicrously slow for a 9-cell battery: it'll take about 5 and a half hours to fully charge. It might be nice to turn the constant current phase up if we can.

jwise commented 4 years ago

Found a function to set this up at 0x2305a. Takes a current (in mA) in R2, and a voltage (in mV) in R3. This could also enable charging a 4 cell battery. Could make it part of my bat_changed_un patch.

jwise commented 4 years ago

Only problem is that the machine bounces off the AC input while charging and while under extreme CPU load. Could be that my charger is insufficient; probably I should get a real Lenovo 90W or 135W charger.

Untested: charging 4c and 6c batteries. These can be tested without ec_sys by carefully monitoring /sys/class/power_supply/BAT0/current_now and /sys/class/power_supply/BAT0/voltage_now.