Bluetooth battery drain issue
Hi Pongster,
i have also the bluetooth issue with a battery drain of ~60ma in standby.
At the moment this is pretty normal for stock roms. Only in Sense Roms that issue isnt. It is not a kernel problem, because i used the same Kernel in stock and in sense roms. For me it seems an issue of the lib-files or the firmware for the BCM4329.
You can reproduce the problem very simple - switch Bluetooth on, put htc in standby mode, wait 1 or 2 minutes until the BT autoscan is finish, switch htc on and have a look on currentwidget - you will see something around 60ma drain. Same procedure with BT off will show a current of 3 to 5.
I had done also some tests to change the relevant libs, bins and bt firmwarefiles from a sense rom to your's but i seems that i can't handle all dependencies.
Changed files are:
/lib/bluetoothdroid.so
/lib/bluetooth.so
/lib/libbluetoothd.so
/bin/bluetoothd
/bin/btld <- that file exists only in sense roms
/firmware/BCM4329B1_002.002.023.0511.0538.hcd
/firmware/fw_bcm4329.bin
/firmware/fw_bcm4329_apsta.bin
The firmware files will loaded through /bin/btld deamon in sense environment.
In the stock environment it seems that firmware will loaded through
"service hciattach /system/bin/brcm_patchram_plus --enable_hci --patchram /etc/firmware/bcm4329.hcd /dev/ttyHS0"
The hciattach deamon is commented out in sense firmware.
By changing all that files i get, when i start bluetooth, an error from org.bluez.Adapter and the bluetooth stack never come up.
If you want to do something on the problem, i will be happy to support you!
Best regards
trilu