Douglas6 wrote:What exactly is the problem? We'd need more information. I assume you're running Jessie, was it a clean install, or upgraded from Wheezy? What changes have you made from a plain-vanilla Bluetooth install and configuration? What are you trying to do with Bluetooth and what is not working, and how?
I run into this mysterious "sap-server: Operation not permitted (1)" issue. And here is more context:
1) Yes, I'm using jessie 2015-11-21
2) It is a clean install. use dd to write img to SD card.
3) What did I do?
I'm trying to use PS3 controller with my pi 2B, so I'm following
http://booting-rpi.blogspot.ro/2012/08/ ... ry-pi.html
Everything seems works fine (except bluez-utils bluez-compat seems all replaced by bluez), until the step "sudo sixad --start" and press the PS button. I was being told it supposed to be vibration on the dual-shock, but nothing happened. I tried 2 PS3 controller, and I also tried 2 different BT adapter. No luck. So I started my debugging.
I use hciconfig to check my device seems to be fine.
Code: Select all
pi@pi:~ $ hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: 00:19:86:00:11:AD ACL MTU: 1021:8 SCO MTU: 64:1
DOWN
RX bytes:616 acl:0 sco:0 events:34 errors:0
TX bytes:380 acl:0 sco:0 commands:34 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
pi@pi:~ $
But when I check the service bluetooth status I see following:
Code: Select all
pi@pi:~ $ sudo service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: active (running) since Sun 2016-02-21 05:53:32 UTC; 47s ago
Docs: man:bluetoothd(8)
Main PID: 5507 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
└─5507 /usr/lib/bluetooth/bluetoothd
Feb 21 05:53:32 pi bluetoothd[5507]: Bluetooth daemon 5.23
Feb 21 05:53:32 pi bluetoothd[5507]: Starting SDP server
Feb 21 05:53:32 pi bluetoothd[5507]: Bluetooth management interface 1.9 initialized
Feb 21 05:53:32 pi bluetoothd[5507]: Sap driver initialization failed.
Feb 21 05:53:32 pi bluetoothd[5507]: sap-server: Operation not permitted (1)
Feb 21 05:53:32 pi systemd[1]: Started Bluetooth service.
pi@pi:~ $
in order to get more detailed error messages, I have to kill the bluetoothd manually and run bluetoothd with -d -n
Code: Select all
pi@pi:~ $ sudo bluetoothd -d -n
bluetoothd[5784]: Bluetooth daemon 5.23
bluetoothd[5784]: src/main.c:parse_config() parsing main.conf
bluetoothd[5784]: src/main.c:parse_config() Key file does not have key 'DiscoverableTimeout'
bluetoothd[5784]: src/main.c:parse_config() Key file does not have key 'PairableTimeout'
bluetoothd[5784]: src/main.c:parse_config() Key file does not have key 'AutoConnectTimeout'
bluetoothd[5784]: src/main.c:parse_config() Key file does not have key 'Name'
bluetoothd[5784]: src/main.c:parse_config() Key file does not have key 'Class'
bluetoothd[5784]: src/main.c:parse_config() Key file does not have key 'DeviceID'
bluetoothd[5784]: src/main.c:parse_config() Key file does not have key 'ReverseServiceDiscovery'
bluetoothd[5784]: src/gatt.c:gatt_init() Starting GATT server
bluetoothd[5784]: src/adapter.c:adapter_init() sending read version command
bluetoothd[5784]: Starting SDP server
bluetoothd[5784]: src/sdpd-service.c:register_device_id() Adding device id record for 0002:1d6b:0246:0517
bluetoothd[5784]: src/plugin.c:plugin_init() Loading builtin plugins
bluetoothd[5784]: src/plugin.c:add_plugin() Loading hostname plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading wiimote plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading autopair plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading policy plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading neard plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading sap plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading a2dp plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading avrcp plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading network plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading input plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading hog plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading health plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading gatt plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading scanparam plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading deviceinfo plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading alert plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading time plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading proximity plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading thermometer plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading heartrate plugin
bluetoothd[5784]: src/plugin.c:add_plugin() Loading cyclingspeed plugin
bluetoothd[5784]: src/plugin.c:plugin_init() Loading plugins /usr/lib/arm-linux-gnueabihf/bluetooth/plugins
bluetoothd[5784]: src/plugin.c:add_plugin() Loading sixaxis plugin
bluetoothd[5784]: profiles/health/hdp.c:hdp_manager_start() Starting Health manager
bluetoothd[5784]: profiles/input/suspend-dummy.c:suspend_init()
bluetoothd[5784]: profiles/input/suspend-dummy.c:suspend_init() Created suspend-dummy FIFO on /run/hogsuspend
bluetoothd[5784]: profiles/network/manager.c:read_config() /etc/bluetooth/network.conf: Key file does not have key 'DisableSecurity'
bluetoothd[5784]: profiles/network/manager.c:read_config() Config options: Security=true
bluetoothd[5784]: plugins/neard.c:neard_init() Setup neard plugin
bluetoothd[5784]: plugins/sixaxis.c:sixaxis_init()
bluetoothd[5784]: src/main.c:main() Entering main loop
bluetoothd[5784]: src/rfkill.c:rfkill_event() RFKILL event idx 0 type 2 op 0 soft 1 hard 0
bluetoothd[5784]: Bluetooth management interface 1.9 initialized
bluetoothd[5784]: src/adapter.c:read_version_complete() sending read supported commands command
bluetoothd[5784]: src/adapter.c:read_version_complete() sending read index list command
bluetoothd[5784]: src/adapter.c:read_commands_complete() Number of commands: 61
bluetoothd[5784]: src/adapter.c:read_commands_complete() Number of events: 34
bluetoothd[5784]: src/adapter.c:read_commands_complete() enabling kernel-side connection control
bluetoothd[5784]: src/adapter.c:read_index_list_complete() Number of controllers: 1
bluetoothd[5784]: src/adapter.c:read_index_list_complete() Found index 0
bluetoothd[5784]: src/adapter.c:index_added() index 0
bluetoothd[5784]: src/adapter.c:btd_adapter_new() System name: BlueZ 5.23
bluetoothd[5784]: src/adapter.c:btd_adapter_new() Major class: 0
bluetoothd[5784]: src/adapter.c:btd_adapter_new() Minor class: 0
bluetoothd[5784]: src/adapter.c:btd_adapter_new() Modalias: usb:v1D6Bp0246d0517
bluetoothd[5784]: src/adapter.c:btd_adapter_new() Discoverable timeout: 180 seconds
bluetoothd[5784]: src/adapter.c:btd_adapter_new() Pairable timeout: 0 seconds
bluetoothd[5784]: src/adapter.c:index_added() sending read info command for index 0
bluetoothd[5784]: src/adapter.c:read_info_complete() index 0 status 0x00
bluetoothd[5784]: src/adapter.c:clear_uuids() sending clear uuids command for index 0
bluetoothd[5784]: src/adapter.c:clear_devices() sending clear devices command for index 0
bluetoothd[5784]: src/attrib-server.c:btd_adapter_gatt_server_start() Start GATT server in hci0
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0001
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0004
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0006
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0007
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0008
bluetoothd[5784]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10001
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001800-0000-1000-8000-00805f9
bluetoothd[5784]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[5784]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0010
bluetoothd[5784]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10002
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001801-0000-1000-8000-00805f9
bluetoothd[5784]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[5784]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[5784]: profiles/audio/a2dp.c:media_server_probe() path /org/bluez/hci0
bluetoothd[5784]: plugins/hostname.c:hostname_probe()
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New service: handle 0x0009, UUID 1803, 3 attributes
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0009
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x000a
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x000a
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x000b
bluetoothd[5784]: profiles/proximity/linkloss.c:link_loss_register() Link Loss service added
bluetoothd[5784]: profiles/proximity/reporter.c:register_tx_power() start_handle=0x000c
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x000c
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x000d
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x000e
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x000f
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New service: handle 0x0011, UUID 1802, 3 attributes
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0011
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x0012
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0012
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0013
bluetoothd[5784]: profiles/proximity/immalert.c:imm_alert_register() Immediate Alert service added
bluetoothd[5784]: profiles/proximity/reporter.c:reporter_adapter_probe() Proximity Reporter for adapter 0x55181000
bluetoothd[5784]: profiles/time/server.c:time_server_init() path /org/bluez/hci0
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New service: handle 0x0014, UUID 1805, 6 attributes
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0014
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x0015
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0015
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0016
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0017
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x0018
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0018
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0019
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New service: handle 0x001a, UUID 1806, 5 attributes
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x001a
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x001b
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x001b
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x001c
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x001d
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x001d
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x001e
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New service: handle 0x001f, UUID 180e, 9 attributes
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x001f
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x0020
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0020
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0021
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0022
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x0023
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0023
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0024
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x0025
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0025
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0026
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0027
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New service: handle 0x0028, UUID 1811, 13 attributes
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0028
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x0029
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0029
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x002a
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x002b
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x002b
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x002c
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x002d
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x002e
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x002e
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x002f
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x0030
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0030
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0031
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0032
bluetoothd[5784]: attrib/gatt-service.c:gatt_service_add() New characteristic: handle 0x0033
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0033
bluetoothd[5784]: src/attrib-server.c:attrib_db_add_new() handle=0x0034
bluetoothd[5784]: profiles/network/manager.c:panu_server_probe() path /org/bluez/hci0
bluetoothd[5784]: profiles/network/server.c:server_register() Registered interface org.bluez.NetworkServer1 on path /org/bluez/hci0
bluetoothd[5784]: profiles/network/manager.c:gn_server_probe() path /org/bluez/hci0
bluetoothd[5784]: profiles/network/manager.c:nap_server_probe() path /org/bluez/hci0
bluetoothd[5784]: profiles/audio/avrcp.c:avrcp_controller_server_probe() path /org/bluez/hci0
bluetoothd[5784]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10003
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110f-0000-1000-8000-00805f9
bluetoothd[5784]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[5784]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[5784]: profiles/audio/avrcp.c:avrcp_target_server_probe() path /org/bluez/hci0
bluetoothd[5784]: src/adapter.c:adapter_service_add() /org/bluez/hci0
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10004
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000017-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110c-0000-1000-8000-00805f9
bluetoothd[5784]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 0000110e-0000-1000-8000-00805f9
bluetoothd[5784]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[5784]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[5784]: profiles/audio/a2dp.c:a2dp_sink_server_probe() path /org/bluez/hci0
bluetoothd[5784]: profiles/audio/a2dp.c:a2dp_source_server_probe() path /org/bluez/hci0
bluetoothd[5784]: profiles/sap/manager.c:sap_server_probe() path /org/bluez/hci0
bluetoothd[5784]: Sap driver initialization failed.
bluetoothd[5784]: sap-server: Operation not permitted (1)
bluetoothd[5784]: src/adapter.c:btd_adapter_unblock_address() hci0 00:00:00:00:00:00
bluetoothd[5784]: src/adapter.c:load_link_keys() hci0 keys 0 debug_keys 0
bluetoothd[5784]: src/adapter.c:load_ltks() hci0 keys 0
bluetoothd[5784]: src/adapter.c:load_irks() hci0 irks 0
bluetoothd[5784]: src/adapter.c:load_conn_params() hci0 conn params 0
bluetoothd[5784]: src/adapter.c:adapter_service_insert() /org/bluez/hci0
bluetoothd[5784]: src/adapter.c:add_uuid() sending add uuid command for index 0
bluetoothd[5784]: src/adapter.c:set_did() hci0 source 2 vendor 1d6b product 246 version 517
bluetoothd[5784]: src/adapter.c:adapter_register() Adapter /org/bluez/hci0 registered
bluetoothd[5784]: src/adapter.c:set_dev_class() sending set device class command for index 0
bluetoothd[5784]: src/adapter.c:set_name() sending set local name command for index 0
bluetoothd[5784]: src/adapter.c:load_link_keys_complete() link keys loaded for hci0
bluetoothd[5784]: src/adapter.c:load_ltks_complete() LTKs loaded for hci0
bluetoothd[5784]: src/adapter.c:load_irks_complete() IRKs loaded for hci0
bluetoothd[5784]: src/adapter.c:load_conn_params_complete() Connection Parameters loaded for hci0
bluetoothd[5784]: src/adapter.c:local_name_changed_callback() Name: BlueZ 5.23
bluetoothd[5784]: src/adapter.c:local_name_changed_callback() Short name:
bluetoothd[5784]: src/adapter.c:local_name_changed_callback() Current alias: BlueZ 5.23
bluetoothd[5784]: src/attrib-server.c:attrib_db_update() handle=0x0006
bluetoothd[5784]: plugins/hostname.c:property_changed() static hostname: pi
bluetoothd[5784]: plugins/hostname.c:property_changed() pretty hostname:
bluetoothd[5784]: plugins/hostname.c:update_name() name: pi
bluetoothd[5784]: src/adapter.c:adapter_set_name() name: pi
bluetoothd[5784]: src/adapter.c:adapter_set_name() alias: pi
bluetoothd[5784]: src/adapter.c:set_name() sending set local name command for index 0
bluetoothd[5784]: plugins/hostname.c:property_changed() chassis:
bluetoothd[5784]: src/adapter.c:local_name_changed_callback() Name: pi
bluetoothd[5784]: src/adapter.c:local_name_changed_callback() Short name:
bluetoothd[5784]: src/adapter.c:local_name_changed_callback() Current alias: pi
bluetoothd[5784]: src/attrib-server.c:attrib_db_update() handle=0x0006
Any kinds of help are appreciated. Thanks a lot!
-xinkai