[Desire HD Android Development] vizzini:
Hi there, first of all thanks for the incredible work you do! But the battery fix in KL does not seem to work for me.

I did a fresh install (wipe data/cache and even fastboot erase system) and installed nothing but battery monitor widget. The drain is 11-14 mA, that is normal for me with out battery fix, mad-murdoch's fix gave me 3-5 mA. I then tried flashing mad-murdoch's fix on this rom and it worked - strange!

Maybe a dmesg can help:

localhost devlog # dmesg | grep -i aic3254
<6>[ 428.226104] spi_aic3254_suspend
<6>[ 428.248992] spi_aic3254_resume
<6>[ 428.597045] spi_aic3254_suspend
<6>[ 428.620147] spi_aic3254_resume
<6>[ 428.977325] spi_aic3254_suspend
<6>[ 429.000488] spi_aic3254_resume
<6>[ 429.983551] spi_aic3254_suspend
<6>[ 430.006195] spi_aic3254_resume
<6>[ 430.356689] spi_aic3254_suspend
<6>[ 430.380065] spi_aic3254_resume
<6>[ 431.286041] spi_aic3254_suspend
<6>[ 431.309173] spi_aic3254_resume
<6>[ 431.723236] spi_aic3254_suspend
<6>[ 431.746490] spi_aic3254_resume
<6>[ 432.086181] spi_aic3254_suspend
<6>[ 432.109558] spi_aic3254_resume
<6>[ 433.024566] spi_aic3254_suspend
<6>[ 433.053619] spi_aic3254_resume
<6>[ 433.451232] spi_aic3254_suspend
<6>[ 433.473388] spi_aic3254_resume
<6>[ 434.375366] spi_aic3254_suspend
<6>[ 434.397918] spi_aic3254_resume
<6>[ 434.634704] spi_aic3254_suspend
<6>[ 434.646789] spi_aic3254_resume
<6>[ 435.374664] spi_aic3254_suspend
<6>[ 435.386932] spi_aic3254_resume
<6>[ 435.744628] spi_aic3254_suspend
<6>[ 435.767913] spi_aic3254_resume
<6>[ 436.069793] spi_aic3254_suspend
<6>[ 436.081207] spi_aic3254_resume
<6>[ 436.996490] spi_aic3254_suspend
<6>[ 437.022918] spi_aic3254_resume
<6>[ 437.450683] spi_aic3254_suspend
<6>[ 437.473907] spi_aic3254_resume
<6>[ 438.363250] spi_aic3254_suspend
<6>[ 438.386291] spi_aic3254_resume
<6>[ 439.282806] spi_aic3254_suspend
<6>[ 439.305603] spi_aic3254_resume
<6>[ 439.700500] spi_aic3254_suspend
<6>[ 439.723754] spi_aic3254_resume
<6>[ 440.061737] spi_aic3254_suspend
<6>[ 440.084716] spi_aic3254_resume
<6>[ 440.993194] spi_aic3254_suspend
<6>[ 441.016876] spi_aic3254_resume
<6>[ 441.372741] spi_aic3254_suspend
<6>[ 441.395874] spi_aic3254_resume
<6>[ 442.313049] spi_aic3254_suspend
<6>[ 442.343017] spi_aic3254_resume
<6>[ 442.708526] spi_aic3254_suspend
<6>[ 442.733551] spi_aic3254_resume
<6>[ 443.082031] spi_aic3254_suspend
<6>[ 443.105041] spi_aic3254_resume
<6>[ 444.032135] spi_aic3254_suspend
<6>[ 444.062011] spi_aic3254_resume
<6>[ 444.408355] spi_aic3254_suspend
<6>[ 444.433502] spi_aic3254_resume
<6>[ 445.341583] spi_aic3254_suspend
<6>[ 445.363983] spi_aic3254_resume
<6>[ 446.066101] spi_aic3254_suspend
<6>[ 446.083038] spi_aic3254_resume
<6>[ 446.780334] spi_aic3254_suspend
<6>[ 446.792694] spi_aic3254_resume
<6>[ 447.190551] spi_aic3254_suspend
<6>[ 447.218658] spi_aic3254_resume
<6>[ 865.001129] aic3254_powerdown: power off AIC3254
<6>[ 865.001220] aic3254_config: size = 32
<6>[ 865.001464] aic3254_config: success on invoking panel_sleep_in
<3>[ 865.112365] aic3254_config: 3254 power down procedure ,flag 0x24=0x00(0x88)
<6>[ 865.314910] aic3254_powerdown: power off AIC3254
<6>[ 865.315155] aic3254_config: size = 32
<3>[ 865.574829] aic3254_config: 3254 power down procedure ,flag 0x24=0x00(0x88)
<6>[ 865.842041] aic3254_ioctl: index 23 for 40047321
<6>[ 865.842224] aic3254_set_config: table(0x40047321) index(23)
<6>[ 865.842315] aic3254_set_config: miniDSP command len = 32
<6>[ 865.842498] aic3254_set_config: rx mode 29, tx mode 29
<6>[ 865.842590] aic3254_config: size = 32
<6>[ 865.850952] aic3254_set_config: configure minidsp done
<6>[ 865.851165] aic3254_powerdown: power off AIC3254
<6>[ 865.851257] aic3254_config: size = 32
<3>[ 865.981384] aic3254_config: 3254 power down procedure ,flag 0x24=0x00(0x88)
<6>[ 866.187652] aic3254_ioctl: index 15 for 40047312
<6>[ 866.187988] aic3254_set_config: table(0x40047312) index(15)
<6>[ 866.188568] aic3254_set_config: enable tx
<6>[ 866.189849] aic3254_config: size = 23
<6>[ 866.194061] aic3254_config: size = 20
<6>[ 870.518096] aic3254_ioctl: index 13 for 40047313
<6>[ 870.518249] aic3254_set_config: table(0x40047313) index(13)
<6>[ 870.518341] aic3254_set_config: enable rx
<6>[ 870.518646] aic3254_config: size = 15
<6>[ 870.537139] aic3254_config: size = 11
<3>[ 870.553436] aic3254_open: busy
<3>[ 870.553558] aic3254_open: busy
<3>[ 870.564605] aic3254_open: busy
<3>[ 870.564727] aic3254_open: busy
<6>[ 873.862518] aic3254_ioctl: index 29 for 40047313
<6>[ 873.863220] aic3254_set_config: table(0x40047313) index(29)
<6>[ 873.863555] aic3254_config: size = 8
<6>[ 873.866088] aic3254_set_config: disable rx
<6>[ 873.866760] aic3254_ioctl: index 29 for 40047312
<6>[ 873.867095] aic3254_set_config: table(0x40047312) index(29)
<6>[ 873.867706] aic3254_config: size = 12
<6>[ 873.868499] aic3254_set_config: disable tx
<6>[ 873.868835] aic3254_powerdown: power off AIC3254
<6>[ 873.869445] aic3254_config: size = 32

I would just use mad-murdoch's fix, but there I have the problem, that after a while the drain goes up to 90-100 mA without a visible reason - I had really high hopes for the new fix.

Thanks

Ruppi