[ltp] [ANN] tp_smapi 0.35-test1

Henrique de Moraes Holschuh linux-thinkpad@linux-thinkpad.org
Thu, 24 Jan 2008 00:25:21 -0200


On Mon, 21 Jan 2008, Vincent C Jones wrote:
> dump:40 d0 42 16 01 15 2a 0e 2f 0e 3f 0e 31 0e 04 50
       trash (-1-) (-2-) (g0-) (g1-) (g2-) (g3-) (-3-)

1 and 2: unknown, appear to be constant for a given battery pack.
examples:
T43 main battery, 6-cell: 42 17 44 01   (didn't change even with recalibration)
T43 main battery, 9-cell: 42 17 38 02
T43 bay battery, ? cells: 42 10 26 05

3: no idea, this is the first time I see it being non-zero.  Vincent, does
it ever change after a bit of charge or discharge?

g0: group zero voltage (packs with a mutiple of four cells)
g1: group one voltage (packs with a multiple of three cells)
g2: group two voltage (packs with a multiple of three cells)
g3: group three voltage (packs with a multiple of three cells)

Maybe it makes sense for us to invert the naming of the voltage groups.

Also, I'd *really* like to see what row 0x0b is like on a 4-cell battery,
Vincent, could you look in the tp_smapi.c source for a line that says
"#define MAX_DUMP_ARG0 0x0a" and change that 0x0a to 0x0b, then recompile
and use this modified tp_acpi's dump function?  It should give you one extra
row in the tail of the dump...

The reason why dumping row 0x0b is normally disabled is a hideous hit-it-
and-the-EC-hangs firmware bug on older firmwares, but AFAIK the T6x family
never had this bug...  (just in case, test it in single-user mode
:p).

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh