Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
bluez 5.30:“;没有足够的免费句柄来注册服务“;启动Bluetooth时出错 我所做的正确:在linux环境中 hciattach/dev/ttyUSB0 any 115200 hciconfig hci0 up addgroup-S消息总线 adduser-S messagebus-G messagebus dbus守护进程--系统_Linux_Bluetooth_Bluez - Fatal编程技术网

bluez 5.30:“;没有足够的免费句柄来注册服务“;启动Bluetooth时出错 我所做的正确:在linux环境中 hciattach/dev/ttyUSB0 any 115200 hciconfig hci0 up addgroup-S消息总线 adduser-S messagebus-G messagebus dbus守护进程--系统

bluez 5.30:“;没有足够的免费句柄来注册服务“;启动Bluetooth时出错 我所做的正确:在linux环境中 hciattach/dev/ttyUSB0 any 115200 hciconfig hci0 up addgroup-S消息总线 adduser-S messagebus-G messagebus dbus守护进程--系统,linux,bluetooth,bluez,Linux,Bluetooth,Bluez,syslogd 在执行/libexec/bluetooth/bluetoothd--plugin=time-d-E-n时,出现以下错误没有足够的可用句柄来注册服务: bluetoothd[756]: src/adapter.c:clear_uuids() sending clear uuids command for index 0 <br/> bluetoothd[756]: src/adapter.c:set_mode() sending set mode command fo

syslogd

在执行
/libexec/bluetooth/bluetoothd--plugin=time-d-E-n
时,出现以下错误
没有足够的可用句柄来注册服务

bluetoothd[756]: src/adapter.c:clear_uuids() sending clear uuids command for index 0  <br/>
bluetoothd[756]: src/adapter.c:set_mode() sending set mode command for index 0 <br/>
bluetoothd[756]: src/gatt-database.c:btd_gatt_database_new() GATT Manager registered for adapter: /org/bluez/hci0 <br/>
bluetoothd[756]: src/adapter.c:adapter_service_add() /org/bluez/hci0 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10002 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001800-0000-1000-8000-00805f9 <br/>
bluetoothd[756]: src/adapter.c:adapter_service_insert() /org/bluez/hci0 <br/>
bluetoothd[756]: src/adapter.c:add_uuid() sending add uuid command for index 0 <br/>
bluetoothd[756]: src/gatt-database.c:gatt_db_service_added() GATT Service added to local database <br/>
bluetoothd[756]: Failed to obtain handles for "Service Changed"  characteristic <br/>
bluetoothd[756]: src/adapter.c:adapter_service_add() /org/bluez/hci0 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Adding record with handle 0x10003 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000007-0000-1000-8000-00805f9 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00000100-0000-1000-8000-00805f9 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001002-0000-1000-8000-00805f9 <br/>
bluetoothd[756]: src/sdpd-service.c:add_record_to_server() Record pattern UUID 00001801-0000-1000-8000-00805f9 <br/>
bluetoothd[756]: src/adapter.c:adapter_service_insert() /org/bluez/hci0 <br/>
bluetoothd[756]: src/adapter.c:add_uuid() sending add uuid command for index 0 <br/>
bluetoothd[756]: src/gatt-database.c:gatt_db_service_added() GATT Service added to local database <br/>
bluetoothd[756]: src/advertising.c:btd_advertising_manager_new() LE Advertising Manager created for adapter: /org/bluez/hci0 <br/>
bluetoothd[756]: profiles/time/server.c:time_server_init() path /org/bluez/hci0 <br/>
bluetoothd[756]: src/attrib-server.c:attrib_db_find_avail() enter! <br/>
bluetoothd[756]: src/attrib-server.c:attrib_db_find_avail() BT_UUID16! <br/>
***bluetoothd[756]: Not enough free handles to register service*** <br/>
bluetoothd[756]: Current Time Service could not be registered <br/>
bluetoothd[756]: gatt-time-server: Input/output error (5) <br/>
bluetoothd[756]:src/adapter.c:clear\u uuids()为索引0发送clear uuids命令
Bluetooth[756]:src/adapter.c:set_mode()发送索引0的set mode命令
Bluetooth[756]:src/gatt database.c:btd_gatt_database_new()为适配器注册的gatt管理器:/org/bluez/hci0
bluetoothd[756]:src/adapter.c:adapter\u service\u add()/org/bluez/hci0
Bluetooth[756]:src/sdpd service.c:将_记录添加到_服务器()使用句柄0x10002添加记录
Bluetooth[756]:src/sdpd service.c:将记录添加到服务器()记录模式UUID 0000000 7-0000-1000-8000-00805f9
Bluetooth[756]:src/sdpd service.c:将记录添加到服务器()记录模式UUID 00000100-0000-1000-8000-00805f9
Bluetooth[756]:src/sdpd service.c:将记录添加到服务器()记录模式UUID 00001002-0000-1000-8000-00805f9
Bluetooth[756]:src/sdpd service.c:将记录添加到服务器()记录模式UUID 00001800-0000-1000-8000-00805f9
bluetoothd[756]:src/adapter.c:adapter\u service\u insert()/org/bluez/hci0
Bluetooth[756]:src/adapter.c:add_uuid()发送索引0的add uuid命令
Bluetooth[756]:src/gatt database.c:gatt_db_service_added()gatt service added to local database
Bluetooth[756]:无法获取“服务已更改”特征的句柄
bluetoothd[756]:src/adapter.c:adapter\u service\u add()/org/bluez/hci0
bluetoothd[756]:src/sdpd service.c:将\u记录\u添加到\u服务器()使用句柄0x10003添加记录
Bluetooth[756]:src/sdpd service.c:将记录添加到服务器()记录模式UUID 0000000 7-0000-1000-8000-00805f9
Bluetooth[756]:src/sdpd service.c:将记录添加到服务器()记录模式UUID 00000100-0000-1000-8000-00805f9
Bluetooth[756]:src/sdpd service.c:将记录添加到服务器()记录模式UUID 00001002-0000-1000-8000-00805f9
Bluetooth[756]:src/sdpd service.c:将记录添加到服务器()记录模式UUID 00001801-0000-1000-8000-00805f9
bluetoothd[756]:src/adapter.c:adapter\u service\u insert()/org/bluez/hci0
Bluetooth[756]:src/adapter.c:add_uuid()发送索引0的add uuid命令
Bluetooth[756]:src/gatt database.c:gatt_db_service_added()gatt service added to local database
Bluetooth[756]:src/advisting.c:btd_advision_manager_new()为适配器创建的广告管理器:/org/bluez/hci0
Bluetooth[756]:profiles/time/server.c:time\u server\u init()path/org/bluez/hci0
Bluetooth[756]:src/attrib server.c:attrib\u db\u find\u avail()输入
Bluetooth[756]:src/attrib server.c:attrib_db_find_avail()BT_UUID16
***Bluetooth[756]:没有足够的可用句柄来注册服务***
Bluetooth[756]:无法注册当前时间服务
蓝牙[756]:关贸总协定时间服务器:输入/输出错误(5)
我深入到代码中去调试这个问题。
attrib\u db\u find\u avail(适配器、svc\u uuid、大小)[in function:gatt\u service\u add()]
始终返回0

根本原因是服务器
glist
参数始终为空,它位于
g\u slist\u find\u custom(服务器、适配器、适配器\u cmp)[从find\u uuid16\u avail()/find\u uuid128\u avail()调用]

我注意到有一个调用:
**btd\u adapter\u gatt\u server\u start**(struct btd\u adapter*adapter)
用于将服务器添加到服务器中。但奇怪的是,它在整个bluez源代码树中都没有被调用


那么,我应该在代码中的某个地方调用
btd\u adapter\u gatt\u server\u start()
?或者我应该采取什么其他步骤来解决这个问题

我的蓝牙也有问题。在我的情况下,当我的设备间歇性地上下波动时,我每分钟都会收到以下错误消息几次:

bluetoothd[3196]: Failed to obtain handles for "Service Changed" characteristic
bluetoothd[3196]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSource
bluetoothd[3196]: Endpoint registered: sender=:1.51 path=/MediaEndpoint/A2DPSink
bluetoothd[3196]: Failed to set mode: Failed (0x03)
经过一些研究,我发现,有些人通过删除~/.config/pulse解决了蓝牙问题。 它也为我解决了这个问题


我没有解释为什么会这样,但我留下这个提示,因为它也可以解决其他人的问题。

您也可以尝试检查rfkill服务。它有时可能会阻止lan、wifi和蓝牙的连接。您可以检查此命令阻止的内容:rfkill list

我的蓝牙被屏蔽了。我使用了这个命令:


rfkill解锁蓝牙

rfkill是一个子系统,用于管理设备可能具有的各种无线电发射机(如wifi和蓝牙)的电源。它能够使用软件交换机(以便可以临时禁用它们,例如节省电源)或硬件交换机(可能需要重新启动才能重新启用)来管理这些设备。rfkill有一个命令行界面,允许您控制该子系统。更多信息可以从Red Hat找到


您的蓝牙很可能被rfkill阻塞,电源管理可以调用rfkill。

谢谢,不知道为什么会发生这种情况,但这是我的问题。“rfkill列表”显示hci0:Bluetooth软阻止:是。我运行了“rfkill unblock 1”(1是运行列表中hci0的索引),现在我的BT键盘又能工作了。