是否可以记录/监控蓝牙错误?

Cri*_*mbo 5 bluetooth error-handling

我的蓝牙键盘在我从暂停状态唤醒计算机后停止工作,没有明显原因(暂停后无法使用蓝牙键盘写入)。

所以我相信一个错误正在悄悄地输出。

我想知道是否有办法监控蓝牙错误,可能在终端中?

Rin*_*ind 8

/var/log/syslog
Run Code Online (Sandbox Code Playgroud)

会有关于蓝牙的通知。

grep blue /var/log/syslog.1|more
Run Code Online (Sandbox Code Playgroud)

节目中...

3 月 12 日 17:47:36 schijfwereld bluetoothd[894]:DIS 无法启动:GATT 已禁用
3 月 12 日 17:47:36 schijfwereld bluetoothd [894]:无法初始化 deviceinfo 插件
3 月 12 日 17:47:36 schijfwereld bluetoothd [894]:无法初始化邻近插件
3 月 12 日 17:47:36 schijfwereld bluetoothd [894]:无法初始化时间插件
3 月 12 日 17:47:36 schijfwereld bluetoothd [894]:无法初始化警报插件
3 月 12 日 17:47:36 schijfwereld bluetoothd [894]:无法初始化温度计插件
3 月 12 日 17:47:36 schijfwereld bluetoothd [894]:无法初始化 gatt_example 插件
3 月 12 日 17:47:36 schijfwereld bluetoothd[894]:蓝牙管理接口 ini
化
3 月 12 日 18:38:23 schijfwereld bluetoothd [862]:无法初始化 gatt_example 插件

如果你做一个

tail -f /var/log/syslog
Run Code Online (Sandbox Code Playgroud)

并启用/禁用蓝牙,它会在将命令插入系统日志时开始列出命令,以便您可以实时监控此文件。