[Desire HD Android Development] Blitzed_Penguin:
Having Bluetooth problems with AOSP ROMs

I am hoping someone here can help me with my Bluetooth problems. When my battery is under ~60% my bluetooth works fine, but when my battery is over ~60% or I am charging it, my bluetooth does not work.

If I turn on bluetooth with battery under 60% and connect any BT device to my phone then start to charging the phone the BT device will stop working and then a few seconds later my phone will freeze requiring me to remove the battery.

If I turn on BT with the battery under 60% then charge the phone (with no BT device connected) over ~60% and then try to connect a device, the phone does not see the BT device. If I shut off BT and try to turn it back on with the battery over 60% it will not turn on.

If I try to turn on my BT with over 60% battery at any time, BT will not turn on even if battery drains below 60% unless I restart the phone while the batter is still low.

I have not had any problems on Sense ROMs, only AOSP ROMs.

I am currently using "chezbel-cm7-20120105_015845.zip" but has been a problem ever since CM7.0 and is a problem with BeatMod ICS beta6.2. I use whatever RIL and Kernel comes with the ROM that I install.

I am currently using Radio 26.13.04.19_M but I have tried 26.04.02.17_M2, 26.09.04.11_M2, 26.10.04.03_M, and others.

Here is the logcat but since I don't understand it I might have too little or too much info, sorry.

***** Logcat turning BT on with battery at ~50% ********

V/alogcat ( 2801): save instance

V/alogcat ( 2801): paused

I/ActivityManager( 1319): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10100000 cmp=com.android.settings/.WirelessSettings bnds=[125,415][235,533] } from pid 1319

D/wifi ( 1319): wifi doCommand: ret=-1

D/wifi ( 1319): wifi doCommand: ret=-1

D/alogcat ( 2801): stopping ...

D/alogcat ( 2801): stopped

D/BluetoothService( 1319): Bluetooth state 10 -> 11

V/BluetoothEventRedirector( 1994): Received android.bluetooth.adapter.action.STATE_CHANGED

I/bluedroid( 1319): Starting hciattach daemon

D/SettingsAppWidgetProvider( 1994): Call buildUpdate for widget:55

D/SettingsAppWidgetProvider( 1994): buildUpdate done for widget:55

I/bluedroid( 1319): Starting bluetoothd deamon

D/dalvikvm( 2300): GC_CONCURRENT freed 421K, 45% free 3830

K/6855K, external 0K/0K, paused 2ms+2ms

I/BluetoothEventLoop.cpp( 1319): agent_event_filter: Received method org.bluez.Agent:Release

D/BluetoothService( 1319): found 2 bonded devices

D/BluetoothService( 1319): Bluetooth state 11 -> 12

V/BluetoothEventRedirector( 1994): Received android.bluetooth.adapter.action.STATE_CHANGED

D/AudioFlinger( 1226): setParameters(): io 0, keyvalue bluetooth_enabled=true, tid 1226, calling tid 1319

D/AudioFlinger( 1226): setParameters(): io 0, keyvalue A2dpSuspended=false, tid 1318, calling tid 1319

I/pand ( 2845): Bluetooth PAN daemon version 4.69

E/BluetoothEventLoop.cpp( 1319): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/2839/hci0

E/BluetoothEventLoop.cpp( 1319): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/2839/hci0

D/BT HSHFP( 1415): Saved priority 00:1C:D8:3F:E2:09 = 100

D/SettingsAppWidgetProvider( 1994): Call buildUpdate for widget:55

D/SettingsAppWidgetProvider( 1994): buildUpdate done for widget:55

D/BT HSHFP( 1415): Saved priority 00:1C:D8:3F:E2:09 = 1000

I/bluetooth_ScoSocket.cpp( 1415): Listening SCO socket...

D/BluetoothService( 1319): Registering hfag record

E/BluetoothEventLoop.cpp( 1319): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/2839/hci0

E/BluetoothEventLoop.cpp( 1319): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/2839/hci0

I/ActivityManager( 1319): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10100000 cmp=org.jtb.alogcat/.LogActivity } from pid 1319

V/alogcat ( 2801): started

I/alogcat ( 2801): new intent: android.intent.action.MAIN

D/alogcat ( 2801): stopping ...

D/alogcat ( 2801): canceling periodic saves

V/alogcat ( 2801): resumed

D/alogcat ( 2801): starting ...

W/InputManagerService( 1319): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@40856698 (uid=1000 pid=1994)

D/BluetoothService( 1319): Registering hsag record

E/BluetoothEventLoop.cpp( 1319): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/2839/hci0

D/BluetoothService( 1319): Registering opush record

E/BluetoothEventLoop.cpp( 1319): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/2839/hci0

E/BluetoothEventLoop.cpp( 1319): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/2839/hci0

D/dalvikvm( 2801): GC_CONCURRENT freed 727K, 51% free 3220K/6535K, external 711K/1042K, paused 1ms+3ms

D/BluetoothService( 1319): Registering pbap record

E/BluetoothEventLoop.cpp( 1319): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/2839/hci0

W/KeyCharacterMap( 2801): Can't open keycharmap file

W/KeyCharacterMap( 2801): Error loading keycharmap file '/system/usr/keychars/synaptics-rmi-touchscreen.kcm.bin'. hw.keyboards.65537.devname='synaptics-rmi-touchscreen'

W/KeyCharacterMap( 2801): Using default keymap: /system/usr/keychars/qwerty.kcm.bin

********Logcat turning BT on at ~90% ***********

I/ActivityManager( 1319): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10100000 cmp=com.android.settings/.WirelessSettings bnds=[125,415][235,533] } from pid 1319

V/alogcat ( 3684): save instance

V/alogcat ( 3684): paused

W/InputManagerService( 1319): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@409b5470

D/alogcat ( 3684): stopping ...

D/alogcat ( 3684): stopped

D/BluetoothService( 1319): Bluetooth state 10 -> 11

V/BluetoothEventRedirector( 3711): Received android.bluetooth.adapter.action.STATE_CHANGED

I/bluedroid( 1319): Starting hciattach daemon

D/SettingsAppWidgetProvider( 3711): Call buildUpdate for widget:55

D/SettingsAppWidgetProvider( 3711): buildUpdate done for widget:55

D/dalvikvm( 3721): GC_EXPLICIT freed 85K, 50% free 2690K/5379K, external 0K/0K, paused 75ms

E/bluedroid( 1319): bt_enable: Timeout waiting for HCI device to come up

D/BluetoothService( 1319): Bluetooth state 11 -> 10

V/BluetoothEventRedirector( 3711): Received android.bluetooth.adapter.action.STATE_CHANGED

D/dalvikvm( 2077): GC_EXPLICIT freed 125K, 51% free 2689K/5379K, external 492K/512K, paused 137ms

D/SettingsAppWidgetProvider( 3711): Call buildUpdate for widget:55

D/SettingsAppWidgetProvider( 3711): buildUpdate done for widget:55

D/dalvikvm( 1319): GC_EXTERNAL_ALLOC freed 171K, 39% free 7360K/11911K, external 3011K/3024K, paused 58ms

**********************************************

Sorry for the long post.