分享

UOS 操作蓝牙、wifi开关

在UOS想通过命令操作蓝牙功能开关,尝试过hciconfig、rfkill、bluetoothctl等命令都不行,最后通过gdbus方式成功,随手记录

打开蓝牙:gdbus call --session -d com.deepin.daemon.Bluetooth -o /com/deepin/daemon/Bluetooth -m com.deepin.daemon.Bluetooth.SetAdapterPowered /org/bluez/hci0 true


关闭蓝牙:gdbus call --session -d com.deepin.daemon.Bluetooth -o /com/deepin/daemon/Bluetooth -m com.deepin.daemon.Bluetooth.S

试读已结束,请付费阅读全文。

  本文只能试读34%,付费后可阅读全文。 

版权说明:论坛帖子主题均由合作第三方提供并上传,若内容存在侵权,请进行举报

没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系在线客服