Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31047 - [obex, bluez] OBEX isn't being detected as a discoverable service

Attached to Project: Arch Linux
Opened by Ryan (Kirby) - Tuesday, 07 August 2012, 16:37 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 24 November 2013, 11:30 GMT
Task Type Support Request
Category Upstream Bugs
Status Closed
Assigned To Tom Gundersen (tomegun)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
https://bbs.archlinux.org/viewtopic.php?id=146222

I pretty much described my problem in that forum thread, but here's a quick summary

- OBEX isn't being detected as a discoverable service. Can force it on with 'sdptool add opush' but doesn't work correctly
- Can pinpoint the problem directly to Arch-based systems. Even Chakra has the exact same problem. However, Kubuntu and OpenSUSE does not.
- I can actually push files successfully between computers using obexftp and the dolphin file manager

unfortunately, trying to cause error messages is proving to be quite hard.

Additional info:
* bluez 4.101-1, obex-data-server 0.4.6-2, dbus 1.6.4-1
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 24 November 2013, 11:30 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Bleuz4 has been dropped. Please check bluez5 stack.
Comment by Ryan (Kirby) - Thursday, 09 August 2012, 21:33 GMT
OK....I will keep on updating through this same ticket, them

The major problem I'm having is that I can't find a helpful error message. The configuration files for bluez appear to be the same between Kubuntu and Arch, and if I'm the only one having such problem, then I doubt it's a config problem with bluez at all.

I'm leaning more towards an actual hardware incompatibility than anything else now. The Thinkpad T500 uses a Broadcom BCM2046 bluetooth card. I also have a bluetooth dongle that uses a BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth), and that has the same problem. I'm more inclined to check out the Chakra LiveCD on another laptop with a different bluetooth chip...see if that does the same thing. At least I'll know it's not a general configuration or compilation problem
Comment by Ryan (Kirby) - Thursday, 09 August 2012, 23:43 GMT
I now have a good understanding on what is happening right now

For some reason or another, the Bluetooth Device Class is actually being detected incorrectly. I ran 'hciconfig -a' on both the Kubuntu LiveCD that works, and the Arch installation:

on Kubuntu:
hci0: Type: BR/EDR Bus: USB
BD Address: 00:26:5E:BA:00:18 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:1145 acl:0 sco:0 events:41 errors:0
TX bytes:905 acl:0 sco:0 commands:41 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'kubuntu-0'
Class: 0x7e0100
Service Classes: Networking, Rendering, Capturing, Object Transfer, Audio, Telephony
Device Class: Computer, Uncategorized
HCI Version: 2.1 (0x4) Revision: 0x518f
LMP Version: 2.1 (0x4) Subversion: 0x424c
Manufacturer: Broadcom Corporation (15)

On Arch Linux (well, Chakra, in this instance....but the same base)
hci0: Type: BR/EDR Bus: USB
BD Address: 00:26:5E:BA:00:18 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN ISCAN
RX bytes:5188 acl:0 sco:0 events:173 errors:0
TX bytes:3674 acl:0 sco:0 commands:173 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'chakra-pc-0'
Class: 0x400100
Service Classes: Telephony
Device Class: Computer, Uncategorized
HCI Version: 2.1 (0x4) Revision: 0x518f
LMP Version: 2.1 (0x4) Subversion: 0x424c
Manufacturer: Broadcom Corporation (15)

I can set the class manually by using 'hciconfig hci0 class 0x7e0100', but then I stop and start bluetoothd to load support for the new services, it ends up resetting back to 0x400100. Here's the output of 'bluetoothd -n -d':

bluetoothd[2660]: Bluetooth daemon 4.99
bluetoothd[2660]: src/main.c:parse_config() parsing main.conf
bluetoothd[2660]: src/main.c:parse_config() discovto=0
bluetoothd[2660]: src/main.c:parse_config() pairto=0
bluetoothd[2660]: src/main.c:parse_config() pageto=8192
bluetoothd[2660]: src/main.c:parse_config() auto_to=60
bluetoothd[2660]: src/main.c:parse_config() name=%h-%d
bluetoothd[2660]: src/main.c:parse_config() class=0x7e0100
bluetoothd[2660]: src/main.c:parse_config() discov_interval=30
bluetoothd[2660]: src/main.c:parse_config() Key file does not have key 'DeviceID'
bluetoothd[2660]: Starting SDP server
bluetoothd[2660]: src/plugin.c:plugin_init() Loading builtin plugins
bluetoothd[2660]: src/plugin.c:add_plugin() Loading audio plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading input plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading serial plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading network plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading service plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading hciops plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading mgmtops plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading formfactor plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading storage plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading adaptername plugin
bluetoothd[2660]: src/plugin.c:add_plugin() Loading wiimote plugin
bluetoothd[2660]: src/plugin.c:plugin_init() Loading plugins /usr/lib/bluetooth/plugins
bluetoothd[2660]: plugins/service.c:register_interface() path /org/bluez/2660/any
bluetoothd[2660]: plugins/service.c:register_interface() Registered interface org.bluez.Service on path /org/bluez/2660/any
bluetoothd[2660]: network/manager.c:read_config() /etc/bluetooth/network.conf: Key file does not have key 'DisableSecurity'
bluetoothd[2660]: network/manager.c:read_config() Config options: Security=true
bluetoothd[2660]: input/manager.c:input_manager_init() input.conf: Key file does not have key 'IdleTimeout'
bluetoothd[2660]: audio/manager.c:audio_manager_init() audio.conf: Key file does not have key 'AutoConnect'
bluetoothd[2660]: plugins/hciops.c:hciops_init()
bluetoothd[2660]: plugins/hciops.c:hciops_setup()
bluetoothd[2660]: src/main.c:main() Entering main loop
bluetoothd[2660]: src/rfkill.c:rfkill_event() RFKILL event idx 0 type 2 op 0 soft 0 hard 0
bluetoothd[2660]: src/rfkill.c:rfkill_event() RFKILL event idx 1 type 2 op 0 soft 0 hard 0
bluetoothd[2660]: src/rfkill.c:rfkill_event() RFKILL event idx 2 type 1 op 0 soft 0 hard 0
bluetoothd[2660]: plugins/hciops.c:init_known_adapters()
bluetoothd[2660]: plugins/hciops.c:init_device() hci0
bluetoothd[2660]: Listening for HCI events on hci0
bluetoothd[2660]: plugins/hciops.c:init_device() child 2661 forked
bluetoothd[2660]: plugins/hciops.c:read_local_features_complete() Got features for hci0
bluetoothd[2660]: plugins/hciops.c:read_local_version_complete() Got version for hci0
bluetoothd[2660]: plugins/hciops.c:read_bd_addr_complete() hci0 status 0
bluetoothd[2660]: plugins/hciops.c:read_bd_addr_complete() Got bdaddr for hci0
bluetoothd[2660]: plugins/hciops.c:read_local_name_complete() hci0 status 0
bluetoothd[2660]: plugins/hciops.c:read_local_name_complete() Got name for hci0
bluetoothd[2660]: plugins/hciops.c:read_tx_power_complete() hci0 status 0
bluetoothd[2660]: plugins/hciops.c:update_ext_inquiry_response() hci0
bluetoothd[2660]: plugins/hciops.c:read_local_ext_features_complete() hci0 status 0
bluetoothd[2660]: HCI dev 0 up
bluetoothd[2660]: plugins/hciops.c:device_devup_setup() hci0
bluetoothd[2660]: src/adapter.c:btd_adapter_ref() 0x7f9149745e20: ref=1
bluetoothd[2660]: plugins/hciops.c:hciops_read_bdaddr() hci0
bluetoothd[2660]: src/sdpd-database.c:sdp_init_services_list()
bluetoothd[2660]: plugins/hciops.c:hciops_add_uuid() hci0
bluetoothd[2660]: plugins/hciops.c:update_service_classes() hci0 value 0
bluetoothd[2660]: plugins/hciops.c:hciops_add_uuid() hci0
bluetoothd[2660]: plugins/hciops.c:update_service_classes() hci0 value 0
bluetoothd[2660]: plugins/service.c:register_interface() path /org/bluez/2660/hci0
bluetoothd[2660]: plugins/service.c:register_interface() Registered interface org.bluez.Service on path /org/bluez/2660/hci0
bluetoothd[2660]: network/manager.c:network_server_probe() path /org/bluez/2660/hci0
bluetoothd[2660]: src/adapter.c:btd_adapter_ref() 0x7f9149745e20: ref=2
bluetoothd[2660]: network/server.c:server_register() Registered interface org.bluez.NetworkServer on path /org/bluez/2660/hci0
bluetoothd[2660]: serial/manager.c:proxy_probe() path /org/bluez/2660/hci0
bluetoothd[2660]: src/adapter.c:btd_adapter_ref() 0x7f9149745e20: ref=3
bluetoothd[2660]: serial/proxy.c:proxy_register() Registered interface org.bluez.SerialProxyManager on path /org/bluez/2660/hci0
bluetoothd[2660]: src/adapter.c:btd_adapter_ref() 0x7f9149745e20: ref=4
bluetoothd[2660]: audio/manager.c:media_server_probe() path /org/bluez/2660/hci0
bluetoothd[2660]: src/adapter.c:btd_adapter_ref() 0x7f9149745e20: ref=5
bluetoothd[2660]: audio/manager.c:audio_adapter_ref() 0x7f9149746820: ref=1
bluetoothd[2660]: audio/manager.c:headset_server_probe() path /org/bluez/2660/hci0
bluetoothd[2660]: audio/manager.c:audio_adapter_ref() 0x7f9149746820: ref=2
bluetoothd[2660]: audio/manager.c:headset_server_init() audio.conf: Key file does not have key 'Master'
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10000
bluetoothd[2660]: plugins/hciops.c:hciops_add_uuid() hci0
bluetoothd[2660]: plugins/hciops.c:update_service_classes() hci0 value 0
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001108-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001112-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001203-0000-1000-8000-00805f9
bluetoothd[2660]: audio/headset.c:headset_config_init() audio.conf: Key file does not have key 'SCORouting'
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10001
bluetoothd[2660]: plugins/hciops.c:hciops_add_uuid() hci0
bluetoothd[2660]: plugins/hciops.c:update_service_classes() hci0 value 64
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000003-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000111e-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000111f-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001203-0000-1000-8000-00805f9
bluetoothd[2660]: audio/manager.c:a2dp_server_probe() path /org/bluez/2660/hci0
bluetoothd[2660]: audio/manager.c:audio_adapter_ref() 0x7f9149746820: ref=3
bluetoothd[2660]: audio/a2dp.c:a2dp_register() audio.conf: Key file does not have key 'Enable'
bluetoothd[2660]: audio/a2dp.c:a2dp_register() audio.conf: Key file does not have key 'Disable'
bluetoothd[2660]: audio/avdtp.c:avdtp_init() audio.conf: Key file does not have key 'Master'
bluetoothd[2660]: audio/manager.c:avrcp_server_probe() path /org/bluez/2660/hci0
bluetoothd[2660]: audio/manager.c:audio_adapter_ref() 0x7f9149746820: ref=4
bluetoothd[2660]: audio/avrcp.c:avrcp_register() audio.conf: Key file does not have key 'Master'
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10002
bluetoothd[2660]: plugins/hciops.c:hciops_add_uuid() hci0
bluetoothd[2660]: plugins/hciops.c:update_service_classes() hci0 value 64
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110c-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10003
bluetoothd[2660]: plugins/hciops.c:hciops_add_uuid() hci0
bluetoothd[2660]: plugins/hciops.c:update_service_classes() hci0 value 64
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[2660]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
bluetoothd[2660]: plugins/adaptername.c:adaptername_probe() Setting name 'chakra-pc-0' for device 'hci0'
bluetoothd[2660]: plugins/hciops.c:hciops_set_name() hci0, name chakra-pc-0
bluetoothd[2660]: plugins/hciops.c:update_ext_inquiry_response() hci0
bluetoothd[2660]: plugins/formfactor.c:formfactor_probe() Setting 0x00010c for major/minor device class
bluetoothd[2660]: plugins/hciops.c:hciops_set_dev_class() hci0 major 1 minor 12
bluetoothd[2660]: plugins/hciops.c:hciops_unblock_device() hci0 dba 00:00:00:00:00:00
bluetoothd[2660]: plugins/hciops.c:hciops_load_keys() hci0 keys 0 debug_keys 0
bluetoothd[2660]: Unable to load keys to adapter_ops: Function not implemented (38)
bluetoothd[2660]: plugins/hciops.c:hciops_get_conn_list() hci0
bluetoothd[2660]: src/manager.c:btd_manager_register_adapter() Adapter /org/bluez/2660/hci0 registered
bluetoothd[2660]: src/adapter.c:btd_adapter_ref() 0x7f9149745e20: ref=6
bluetoothd[2660]: plugins/hciops.c:hciops_set_dev_class() hci0 major 1 minor 0
bluetoothd[2660]: audio/manager.c:state_changed() /org/bluez/2660/hci0 powered on
bluetoothd[2660]: audio/telephony.c:telephony_init()
bluetoothd[2660]: audio/headset.c:telephony_ready_ind() Telephony plugin initialized
bluetoothd[2660]: audio/headset.c:print_ag_features() HFP AG features: "Ability to reject a call" "Enhanced call status" "Extended Error Result Codes"
bluetoothd[2660]: plugins/hciops.c:hciops_disable_cod_cache() hci0 cache_enable 1
bluetoothd[2660]: plugins/hciops.c:hciops_disable_cod_cache() hci0 current_cod 0x000000 wanted_cod 0x400100
bluetoothd[2660]: plugins/hciops.c:write_class() hci0 class 0x400100
bluetoothd[2660]: Adapter /org/bluez/2660/hci0 has been enabled
bluetoothd[2660]: plugins/hciops.c:hciops_set_discoverable() hci0 discoverable 1
bluetoothd[2660]: plugins/hciops.c:hciops_set_pairable() hci0 pairable 1
bluetoothd[2660]: src/adapter.c:btd_adapter_unref() 0x7f9149745e20: ref=5
bluetoothd[2660]: plugins/hciops.c:child_exit() child 2661 exited
bluetoothd[2660]: plugins/hciops.c:read_local_ext_features_complete() hci0 status 0
bluetoothd[2660]: src/adapter.c:register_agent() Agent registered for hci0 at :1.11:/blueDevil_agent
bluetoothd[2660]: plugins/hciops.c:read_tx_power_complete() hci0 status 0
bluetoothd[2660]: plugins/hciops.c:update_ext_inquiry_response() hci0
bluetoothd[2660]: plugins/hciops.c:update_ext_inquiry_response() hci0
bluetoothd[2660]: plugins/hciops.c:read_local_name_complete() hci0 status 0
bluetoothd[2660]: plugins/hciops.c:update_ext_inquiry_response() hci0
bluetoothd[2660]: plugins/hciops.c:read_simple_pairing_mode_complete() hci0 status 0
bluetoothd[2660]: plugins/hciops.c:update_ext_inquiry_response() hci0
bluetoothd[2660]: plugins/hciops.c:read_scan_complete() hci0 status 0
bluetoothd[2660]: plugins/hciops.c:hciops_set_limited_discoverable() hci0 limited 0
bluetoothd[2660]: src/adapter.c:adapter_mode_changed() old 0x00 new 0x03
bluetoothd[2660]: src/adapter.c:set_mode_complete()

I should also note that setting the 'default device class' in /etc/bluetooth/main.conf doesn't change anything
Comment by Ryan (Kirby) - Thursday, 16 August 2012, 19:22 GMT
Thank you for assigning this

I also have a post in the linux-bluetooth mailing list about the same problem. No replies, however

http://marc.info/?l=linux-bluetooth&m=134465266004860&w=2
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 11 September 2012, 05:38 GMT
Is this still an issue? Any replies from upstream? Thanks
Comment by Ryan (Kirby) - Wednesday, 12 September 2012, 02:28 GMT
Hello,

I have yet to receive a response from upstream. I also did a fresh install with a pure systemd environment to no change in bluetooth behavior
Comment by Ryan (Kirby) - Thursday, 13 September 2012, 20:27 GMT
If Kubuntu has this fixed, is there a way to acquire the possible patches that they used? provided that it isn't a configuration error this whole time. However, if it was a patch, I find it weird how they didn't commit it to upstream yet.
Comment by Andrea Scarpino (BaSh) - Thursday, 13 September 2012, 20:33 GMT
{K,}ubuntu uses an older version of obexd and bluez, you could try to downgrade both.
Comment by Ryan (Kirby) - Friday, 14 September 2012, 20:58 GMT
Downgrading both obexd and bluez to match Kubuntu's version and building it from source was one of the first things I tried.

And actually, I'm going to be buying a new USB dongle, because I seem to be having some intermittent connection problems where I have to unplug and replug. However, it's still detectable and shows the same problems as my T500 laptop when it works. Would you be interested in me donating the dongle to you?
Comment by Andrea Scarpino (BaSh) - Friday, 14 September 2012, 21:11 GMT
No, thanks. I'm just a packager, you should try again in the linux mailing list. Linux developers could need it.

BTW, did you downgraded to the exactly versions that kubuntu has?
Comment by Greg (dolby) - Monday, 15 October 2012, 12:20 GMT
Status?
Comment by Ryan (Kirby) - Monday, 15 October 2012, 16:35 GMT
I have not recieved a response from upstream as of yet. I just might do a repost to the mailing list.

But first I should probably grab the latest changes from svn. Is there a updated PKGBUILD in the AUR? Last time I tried to compile using an old one....it didn't go so well
Comment by Andrea Scarpino (BaSh) - Saturday, 02 February 2013, 18:02 GMT
unassigning me as obexd has been merged into bluez

Loading...