I think it’s just the PMIC. I started with fully charged batteries and it read 50%, using it a bit and plugging it back in it charged up to 71% this time. I’m using 6,500mAh cells, so 13,000mAh design total, but I’m using some battery discharge test graphs to get the capacity above 3v and have set the min volt to 3v instead of 3.3v - I think I landed on something like 10,500mAh usable for my configuration (Edit: I think this is probably the wrong way to do it, in retrospect, Edit2: Fixed).
I have tried charging using external charger and put it back into HG 21700 battery board but the same results, the run time were just extremely short.
in fact I used Claude to help create some script to record the data from the charge and discharge, then I asked Claude to analyzed and Claude reported that the resistances, watts etc were just not right for a 2x 21700mag batt.
Given how painfully long it took to do the battery calibration, it serms my fears were unfounded. 8hr discharge with a static load max brightness, died around “3%”, 6hrs to recharge. I’m running a lower min voltage, an undervolt and limiting clocks on the CM5.
Getting about 85% of the discharge capacity of the battery. 40Wh/45Wh or 11,000mAh/13,000mAh at an estimate. Pretty happy with that.
Do wish I could limit the max charge voltage, the PMIC supports it, but afaik that’s not exposed as a device tree overlay or udev attribute atm. Not hard to write myself, but I’d rather not.
yup your discharge and charge time are normal, mine were totally off the charge.
tested with heavy undeclocking and without nvme, powered on and idling but the batteries only runs the uconsole for about 2-3hrs every single time.
send email to HG but they have not replied.
My suggestion: run the diagnostic script I shared with you. It will log the state of charge, voltage, total energy, current, whether the battery is fully charged, battery health, and plenty of other information—including temperatures, which also affect performance, charging, and discharging.
The script will create a file called memory_report.log in the directory where you run it. Send that file to them. That way, you help them investigate, and they can help you. You may have received a faulty unit.
Note: Before running the script, delete the previous log file. It will write a log entry with all this data every five seconds. Leave it running until the battery runs out. This will give you more accurate measurements and evidence of the problem. Run it with sudo and install smartmontools to check the disk as well.
yup, thanks for the script, I used that and some other created using AI help. HG just came back holidays today so they may need a few days to catch up the backlogs
How come? If you’re using a uConsole with a CM4 or CM5, you have several sensors, including temperature sensors. Use the script I posted here. Don’t forget to run it with sudo and install smartmontools to monitor the SSD.
We just noticed that when connecting the AC1200 wifi card, it may have a chance that the bottom bluetooth IPEX/U.FL connector touches the capacitor for the battery power rail (see the picture below), which will cause a short circuit.
I’m not sure how many batteries you have, but assuming three or two EVE 21700 58E cells in parallel, rated at 5,800 mAh and 3.6 V nominal per cell:
#EVE INR21700-58E — 2 cells in parallel #11600 mAh / 41,76 Wh
dtoverlay=clockworkpi-custom-battery
dtparam=charge_full_design_uah=11600000
dtparam=energy_full_design_uwh=41760000
For three cells, the values would be:
#EVE INR21700-58E — 3 cells in parallel #17400 mAh / 62.64 Wh
dtoverlay=clockworkpi-custom-battery
dtparam=charge_full_design_uah=17400000
dtparam=energy_full_design_uwh=62640000
These are the values I would use. However, always remember these four things:
Set the parameters in config.txt beforehand—DO NOT BOOT YET. Just power off.
Before installing the new batteries, remove the old ones and let the capacitors discharge so the counters can reset. 15 or 30 min.
With the new batteries installed, let them charge for four to five hours.
Calibrate the battery readings by charging and discharging the batteries about twice. Two complete cycles should get the counters working properly and the registers reporting the correct values.
That’s how I always do it. Hope this helps!
P.S. Avoid using old batteries or mixing brands whenever possible. Choose new batteries from reputable brands that other forum members have used.
#Placed under the [cm5] header
arm_freq=1800 # 2.4GHz -> 1.8GHz, consider 2.0GHz for higher workloads
isp_freq=500 # Not using a camera
v3d_freq=750
hevc_freq=710
arm_freq_min=800
# Lowers min idle from 1.5GHz to 800MHz.
# 1GHz may be more snappy, as the idle clock.
# Other clock mins already default to a min of 500, I set them in
# my file but it's unnecessary. core_freq is already good at it's defaults.
over_voltage_delta=-35000
# Lower by -35mV, about 3.5% at max core voltage (1v).
# Can lower by -50mV if you have good silicon and stable power.
I’ve also changed the cpu governer to schedutil. Rather than being either at min or max like the default governer does, this one tends to hold my machine at around 1.0-1.2GHz for most casual workloads.
I edited cmdline.txt to add cpufreq.default_governor so it boots eith schedutil set. But another bit of the OS will overwrite it after the initial boot. I created a file /etc/tmpfiles.d/99-uconsole-custom-cpu-governor.conf with the contents:
w /sys/devices/system/cpu/cpufreq/policy*/scaling_governor - - - - schedutil
Then ran sudo systemd-tmpfiles --create /etc/tmpfiles.d/99-uconsole-custom-cpu-governor.conf to properly set it up.
Never really seen my device break 50°C on the CPU temp widget, but I’m primarily running Picotron, which is a Lua-base Fantasy Workstation - not exactly the heaviest workload. Average a 4-6w draw according to upower. No NVMe, no cellular data module, no SDR equipment etc.
I noticed how close it was to the AC1200 (Lanthar reported an incident), and as soon as I looked at the board, I solved it the same way: some Kapton tape, two seconds with a heat gun… success!