IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 系统运维 -> 蓝牙不正常因为 unmet condition check -> 正文阅读

[系统运维]蓝牙不正常因为 unmet condition check

蓝牙不正常因为 unmet condition check

  • date: 2022-12-22
  • lastmod: 2022-12-23

现象:蓝牙键盘鼠标均不工作,图标也不显示,KDE系统设置显示“无已配对设备”,但是配对设备的按钮没有显示,啥按钮也没有显示

无已配对设备

事前:捣鼓 ch9328 没有成功,导致蓝牙断联,拔出 ch9328 后蓝牙偶尔恢复工作,重启后蓝牙正常,反复这个过程,捣鼓9328,蓝牙g,重启,最后重启蓝牙没恢复,出现了上面的现象

解决办法:关机后开机,恢复正常,已配对设备都显示出来了

结论:

  1. 重启 和 关机后开机 不一样

systemctl

unmet condition check 翻译为“未满足条件检查”

# systemctl status bluetooth
○ bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:bluetoothd(8)

1222 10:58:56 82dm systemd[1]: Bluetooth service was skipped because of an unmet condition check (Condi>
1222 10:59:26 82dm systemd[1]: Bluetooth service was skipped because of an unmet condition check (Condi>
1222 11:03:08 82dm systemd[1]: Bluetooth service was skipped because of an unmet condition check (Condi>
# systemctl cat bluetooth|grep Condition
ConditionPathIsDirectory=/sys/class/bluetooth
# systemctl status systemd-firstboot.service 
○ systemd-firstboot.service - First Boot Wizard
     Loaded: loaded (/usr/lib/systemd/system/systemd-firstboot.service; static)
     Active: inactive (dead)
  Condition: start condition failed at Thu 2022-12-22 10:58:29 CST; 8min ago
             └─ ConditionFirstBoot=yes was not met
       Docs: man:systemd-firstboot(1)

1222 10:58:29 82dm systemd[1]: First Boot Wizard was skipped because of an unmet condition check (Condi>
# systemctl cat bluetooth|grep Condition
ConditionPathIsDirectory=/sys/class/bluetooth

bug 复现,插上 ch9328 就蓝牙挂了,拔掉 9328 重启蓝牙服务也不得行

$ sudo systemctl start bluetooth
$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
     Active: active (running) since Thu 2022-12-22 12:33:29 CST; 4h 16min ago
       Docs: man:bluetoothd(8)
   Main PID: 522 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 14160)
     Memory: 3.8M
        CPU: 2min 2.344s
     CGroup: /system.slice/bluetooth.service
             └─522 /usr/lib/bluetooth/bluetoothd

1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSource/aptx_ll_1
1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSource/aptx_ll_0
1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_1
1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSource/aptx_ll_duplex_0
1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSource/faststream
1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSource/faststream_duplex
1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSink/opus_05
1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSource/opus_05
1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSink/opus_05_duplex
1222 16:48:35 82dm bluetoothd[522]: Endpoint unregistered: sender=:1.49 path=/MediaEndpoint/A2DPSource/opus_05_duplex

$ sudo systemctl stop bluetooth
$ sudo systemctl start bluetooth
$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; preset: disabled)
     Active: active (running) since Thu 2022-12-22 16:53:05 CST; 4s ago
       Docs: man:bluetoothd(8)
   Main PID: 39362 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 14160)
     Memory: 840.0K
        CPU: 27ms
     CGroup: /system.slice/bluetooth.service
             └─39362 /usr/lib/bluetooth/bluetoothd

1222 16:53:05 82dm bluetoothd[39362]: Bluetooth daemon 5.66
1222 16:53:05 82dm systemd[1]: Started Bluetooth service.
1222 16:53:05 82dm bluetoothd[39362]: Starting SDP server
1222 16:53:05 82dm bluetoothd[39362]: profiles/audio/vcp.c:vcp_init() D-Bus experimental not enabled
1222 16:53:05 82dm bluetoothd[39362]: src/plugin.c:plugin_init() Failed to init vcp plugin
1222 16:53:05 82dm bluetoothd[39362]: profiles/audio/mcp.c:mcp_init() D-Bus experimental not enabled
1222 16:53:05 82dm bluetoothd[39362]: src/plugin.c:plugin_init() Failed to init mcp plugin
1222 16:53:05 82dm bluetoothd[39362]: profiles/audio/bap.c:bap_init() D-Bus experimental not enabled
1222 16:53:05 82dm bluetoothd[39362]: src/plugin.c:plugin_init() Failed to init bap plugin
1222 16:53:05 82dm bluetoothd[39362]: Bluetooth management interface 1.22 initialized
$ rfkill
ID TYPE      DEVICE                 SOFT      HARD
 0 wlan      ideapad_wlan      unblocked unblocked
 1 bluetooth ideapad_bluetooth unblocked unblocked
 3 wlan      phy0              unblocked unblocked

参考

[SOLVED] Condition check resulted in Bluetooth service being skipped. 2019-02-26 blackfedora

Another cold boot resolved the issue.

  系统运维 最新文章
配置小型公司网络WLAN基本业务(AC通过三层
如何在交付运维过程中建立风险底线意识,提
快速传输大文件,怎么通过网络传大文件给对
从游戏服务端角度分析移动同步(状态同步)
MySQL使用MyCat实现分库分表
如何用DWDM射频光纤技术实现200公里外的站点
国内顺畅下载k8s.gcr.io的镜像
自动化测试appium
ctfshow ssrf
Linux操作系统学习之实用指令(Centos7/8均
上一篇文章      下一篇文章      查看所有文章
加:2022-12-25 11:43:44  更:2022-12-25 11:45:57 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年4日历 -2024/4/27 1:38:10-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码