[Desire HD Android Development] Chezbel:
Great work, thanks! Here is some info from my testing, hope it's useful.

I installed mad-#4-aic3254pd_signed.zip from recovery, rebooted then waited

a while without doing anything with the phone (no power button, no touch).

Here is what I got:

/cygdrive/c/xxx: adb shell aic3254pd status

Power status of aic3254 chip: ON

/cygdrive/c/xxx: adb shell dmesg | grep aic3254_

<6>[ 5.092376] spi_aic3254_init

<6>[ 5.092590] spi_aic3254_probe

<6>[ 9.520355] aic3254_ioctl: parameters(64, 1024, 806041a0)

<6>[ 9.521087] aic3254_config: size = 23

<6>[ 9.524627] aic3254_config: size = 1

<6>[ 9.524963] aic3254_ioctl: update table(64,1024) successfully

<6>[ 9.526031] aic3254_ioctl: parameters(64, 1024, 806341a8)

<6>[ 9.526733] aic3254_ioctl: update table(64,1024) successfully

<6>[ 10.349945] aic3254_ioctl: parameters(24, 16384, 806641b4)

<6>[ 10.351898] aic3254_ioctl: update table(24,16384) successfully

<6>[ 10.370605] aic3254_ioctl: index 23 for 40047321

<6>[ 10.370697] aic3254_set_config: table(0x40047321) index(23)

<6>[ 10.370910] aic3254_set_config: miniDSP command len = 32

<6>[ 10.371002] aic3254_set_config: rx mode 29, tx mode 29

<6>[ 10.371124] aic3254_config: size = 32

<6>[ 10.372253] aic3254_set_config: configure minidsp done

<6>[ 10.372406] aic3254_ioctl: index 15 for 40047312

<6>[ 10.372619] aic3254_set_config: table(0x40047312) index(15)

<6>[ 10.372711] aic3254_set_config: enable tx

<6>[ 10.373138] aic3254_config: size = 23

<6>[ 10.373626] aic3254_config: size = 20

<6>[ 470.774963] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 1 (ON)

After this I used Google voice and then the power button to turn off the screen:

/cygdrive/c/xxxb: adb shell aic3254pd status

Power status of aic3254 chip: OFF

/cygdrive/c/xxx: adb shell dmesg | grep aic3254_

...

<6>[ 470.774963] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 1 (ON)

<6>[ 608.652496] aic3254_ioctl: index 1 for 40047321

<6>[ 608.652709] aic3254_set_config: table(0x40047321) index(1)

<6>[ 608.652801] aic3254_set_config: miniDSP command len = 32

<6>[ 608.653015] aic3254_set_config: rx mode 29, tx mode 15

<6>[ 608.653106] aic3254_config: size = 32

<6>[ 608.658111] aic3254_config: size = 23

<6>[ 608.659820] aic3254_config: size = 20

<6>[ 608.660278] aic3254_set_config: configure minidsp done

<6>[ 608.660614] aic3254_ioctl: index 29 for 40047312

<6>[ 608.660705] aic3254_set_config: table(0x40047312) index(29)

<6>[ 608.660919] aic3254_set_config: enable tx

<6>[ 608.661315] aic3254_config: size = 12

<6>[ 608.733917] aic3254_ioctl: index 23 for 40047321

<6>[ 608.734008] aic3254_set_config: table(0x40047321) index(23)

<6>[ 608.734222] aic3254_set_config: miniDSP command len = 32

<6>[ 608.734313] aic3254_set_config: rx mode 29, tx mode 29

<6>[ 608.734436] aic3254_config: size = 32

<6>[ 608.737457] aic3254_set_config: configure minidsp done

<6>[ 608.737670] aic3254_ioctl: index 15 for 40047312

<6>[ 608.737792] aic3254_set_config: table(0x40047312) index(15)

<6>[ 608.737976] aic3254_set_config: enable tx

<6>[ 608.738372] aic3254_config: size = 23

<6>[ 608.738922] aic3254_config: size = 20

<6>[ 614.000122] aic3254_ioctl: index 13 for 40047313

<6>[ 614.000396] aic3254_set_config: table(0x40047313) index(13)

<6>[ 614.000549] aic3254_set_config: enable rx

<6>[ 614.001068] aic3254_config: size = 15

<6>[ 614.001892] aic3254_config: size = 11

<6>[ 616.998382] aic3254_ioctl: index 1 for 40047321

<6>[ 616.998565] aic3254_set_config: table(0x40047321) index(1)

<6>[ 616.998687] aic3254_set_config: miniDSP command len = 32

<6>[ 616.998931] aic3254_set_config: rx mode 13, tx mode 15

<6>[ 616.999359] aic3254_config: size = 32

<6>[ 617.001770] aic3254_config: size = 15

<6>[ 617.006561] aic3254_config: size = 11

<6>[ 617.011535] aic3254_config: size = 23

<6>[ 617.013336] aic3254_config: size = 20

<6>[ 617.059783] aic3254_set_config: configure minidsp done

<6>[ 617.059906] aic3254_ioctl: index 29 for 40047312

<6>[ 617.059936] aic3254_set_config: table(0x40047312) index(29)

<6>[ 617.059936] aic3254_set_config: enable tx

<6>[ 617.059967] aic3254_config: size = 12

<6>[ 617.269744] aic3254_ioctl: index 29 for 40047313

<6>[ 617.269744] aic3254_set_config: table(0x40047313) index(29)

<6>[ 617.269744] aic3254_set_config: enable rx

<6>[ 617.269744] aic3254_config: size = 8

<6>[ 627.686737] aic3254_powerdown: power off AIC3254

<6>[ 627.686859] aic3254_config: size = 32

<3>[ 627.794860] aic3254_config: 3254 power down procedure ,flag 0x24=0x00(0x88)

<6>[ 1173.502197] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)