resolvedstarted 2026-10-20 · updated 2026-10-22

Teaching a Dell E1705 to accept a Chinesium battery over SMBus

An aftermarket pack for my Inspiron E1705 was rejected by the BIOS ("unable to identify the battery", no charging). I read its gauge over SMBus with a Raspberry Pi, edited the identity strings in its data flash, and the laptop now charges it. The tooling is on GitHub.

My Dell Inspiron E1705 (Windows XP, BIOS MP061) needed a battery. The original, a Dell D5318, was cooked: the BIOS said it had “suffered a permanent failure” and wouldn’t charge it. Replacements for this laptop are thin on the ground, so I bought one of the very few I could find, an eBay “11.1V 5200mAh” pack for about $30.

It fit, it ran the laptop (the gauge said 81%), and the BIOS refused to have anything to do with it: “unable to identify the battery,” no charging, LED flashing orange/green forever. The seller offered an instant return. I figured I’d rather find out whether this was a programming problem I could fix.

It was.

Windows XP Power Meter showing battery name DELL F51336, manufacturer CHINESIUM, power state On Line, Charging

What the laptop was objecting to

Laptop batteries aren’t dumb cells. Inside is a fuel-gauge chip that talks the Smart Battery System protocol over SMBus (a cousin of I²C). The laptop’s embedded controller asks it for its name, manufacturer, chemistry, capacity and so on, and Dell’s firmware decides whether it likes the answers. This pack’s gauge answered with:

  • ManufacturerName SANYO
  • DeviceName DELL00 (note the leading space)
  • ManufacturerData: the factory filler pattern abcdefghijklmnopqrstuvwzxy012345

That filler is the giveaway that nobody had ever finished provisioning the chip. The gauge was also claiming 4400 mAh of capacity with a MaxError of 100% and a cycle count of 1.

Hooking a Pi up to a battery

I used a Raspberry Pi 3 B+ running full Raspbian, which already had python3-smbus2 and i2c-tools. The pack’s address is 0x0B and the logic is 3.3 V, which the Pi’s I²C bus matches. The Pi’s I2C1 has its own 1.8k pull-ups, so I didn’t add any. The Dell schematic says SYSPRES# has to be grounded for the pack to wake, and I don’t care about BATT_PRES#.

Pack-side pinout, looking at the connector with the label up (outer pairs confirmed on the real pack; the order of the middle pins is inferred from the schematic):

GND  GND  VOLT  SYSPRES#  PRES#  SDA  SCL  +  +

The pins are tiny and the supply pins sit right next to SCL/SDA, so this was the fiddly part.

Dead ends and wrong turns

  • I started out assuming the gauge was a TI bq2084, the chip in a re-celling writeup I’d found. Its data-flash commands at 0x50-0x52 just NACKed. Wrong chip.
  • Several of the early probe commands poked registers blind, and I’m glad that got removed before anything bad happened.
  • Poking the original pack first was a bust: it only wakes for a few seconds on a current-limited 7.5-9.3 V supply, drawing about 0.2 W at 9.3 V.
  • On the new pack I eventually got “write errors” from the command set I was trying. Then I opened it: a label on the board says BQ4050. It behaves like TI’s bq40z50/bq4050 family: manufacturer commands go through ManufacturerBlockAccess (0x44), the chip echoes the command back, and the data flash sits at 0x4000-0x5FFF. A clone can fake all of that, so what I actually know is that it behaves like one.

Dumping that flash and reading it against the SBS registers was the breakthrough. Identity strings are length-prefixed fields tiled 21 bytes apart (ManufacturerName at 0x4070, DeviceName at 0x4085, DeviceChemistry at 0x409A), with ManufacturerData at 0x4040.

The fix

With a backup saved first, I rewrote:

  1. DeviceName to DELL F51336
  2. ManufacturerData to a short numeric string instead of the alphabet filler

and read both back to verify. The BIOS now identifies the pack, reports Battery Health as “performing normally”, and charges it. The Power Meter screenshot at the top is the same pack after the edits; here it is before:

Windows XP Power Meter showing battery name DELL F51336, manufacturer Sanyo

The part I never figured out

I changed two fields at once and never tested them separately, so I don’t know which edit the BIOS actually needed. It’s an open question.

Signatures

Obviously I couldn’t leave Sanyo in there. The manufacturer string is now CHINESIUM (length byte 9), which XP shows proudly. And because a string written into the unused tail of a length-prefixed field stays invisible over SBS (I tested that), there’s also a hidden CLAUDE+FF tag sitting just past the end of it, at 0x407B.

What the pack actually is

I opened it up. Six cells labeled 2000 mAh, so 3S2P is about 4000 mAh, with a 2/2026 date code. So they’re at least new cells. The listing said 5200 mAh, the gauge says 4400 mAh, and the cells say 4000. Pick your favorite lie.

The original pack

For the record: Dell D5318, a bq80201DBT gauge (a chip I’d never have guessed), 70 cycles, made 2006-01-18, cells dead. I opened it by gorilla-gripping the case, poked around, and shelved the re-cell idea. It’s e-waste now, sitting on a bench that is a clutter hellscape, and I’ve already thrown part of the case away.

Where it stands

The fix works: the E1705 identifies the pack and charges it. I haven’t used the laptop in a few weeks (it’s a vintage computer, after all), so I haven’t done long-term runtime testing. I expect the laptop’s own charge cycles to recalibrate the gauge; whether FullChargeCapacity, MaxError or the cycle count ever move off their starting values is something I haven’t checked.

The tool

I had Claude scrub the probing scripts into a proper tool, sbsprobe (MIT): a single-file Python script that detects what kind of gauge is in a pack, dumps SBS registers, reads the data flash, and writes it back safely (dry-run by default, backup JSON, read-back verify, undo). The repo also has my real captures as test fixtures and field notes that separate what was observed from what was inferred.