bluetoothd won't start

308 views
Skip to first unread message

Dan

unread,
Sep 8, 2013, 12:54:09 AM9/8/13
to andro...@googlegroups.com
Does anyone know how to debug bluetoothd not starting.  I'm having some trouble with the latest 4.0.3 build.  I just repo synced and the build was clean, but bluetoothd won't start - so the GUI in Setting fails, and obviously bluetooth doesn't work.

 Bluetoothd is started from init.rc, but fails.  And when you try to start it manually with bluetoothd -n -d you get the following:


bluetoothd[2391]: Bluetooth deamon 4.93
bluetoothd[2391]: Parsing /etc/bluetooth/main.conf failed: No such file or directory  (I have an older working build with same error but still works)
bluetoothd[2391]: Starting SDP server
bluetoothd[2391]: opening L2CAP socket: Operation not permitted
bluetoothd[2391]: Server initialization failed
bluetoothd[2391]: external/bluetooth/bluez/src/plugin.c:plugin_init() Loading builtin plugins
bluetoothd[2391]: external/bluetooth/bluez/src/plugin.c:add_plugin() Loading hciops plugin
bluetoothd[2391]: external/bluetooth/bluez/src/plugin.c:plugin_init() Loading plugins /system/lib/bluez-plugin
bluetoothd[2391]: external/bluetooth/bluez/src/plugin.c:add_plugin() Loading input plugin
bluetoothd[2391]: external/bluetooth/bluez/src/plugin.c:add_plugin() Loading health plugin
bluetoothd[2391]: external/bluetooth/bluez/src/plugin.c:add_plugin() Loading network plugin
bluetoothd[2391]: external/bluetooth/bluez/src/plugin.c:add_plugin() Loading audio plugin
bluetoothd[2391]: Failed to open control socket: Operation not permitted (1)
bluetoothd[2391]: Can't init bnep module
bluetoothd[2391]: Failed to init network plugin
bluetoothd[2391]: external/bluetooth/bluez/plugins/hciops.c:hciops_init() 
bluetoothd[2391]: external/bluetooth/bluez/plugins/hciops.c:hciops_setup() 
bluetoothd[2391]: Can't open HCI socket: Operation not permitted (1)
bluetoothd[2391]: adapter_ops_setup failed

This is a lot of information on this L2CAP socket error and permissions with rfkill0, but I don't know where to begin to fix this. 

Christopher Price

unread,
Sep 9, 2013, 1:56:24 AM9/9/13
to andro...@googlegroups.com
If you can, I would switch to a Jelly Bean build, especially 4.2 or 4.3. The Bluetooth stack on x85 has undergone major revisions and may have solved the problem you're suffering from.

---
Christopher Price

Dan

unread,
Sep 10, 2013, 8:32:03 AM9/10/13
to andro...@googlegroups.com
Thanks Christopher.  I scrapped the 4.0 and downloaded 4.3.  The different devices build fine, so I'm off to start testing.

Dan

Terry Poulin

unread,
Sep 10, 2013, 2:58:47 PM9/10/13
to andro...@googlegroups.com
While I'm not sure where it is in the foodchain yet, on my machine with 4.3 Bluetooth has been working fine, as long as you NEVER try to turn it off or let the device go to suspend/sleep. Then you need a reboot to fix it.
Reply all
Reply to author
Forward
0 new messages