Jam*_*dge 85
似乎该选项已从蓝牙控制面板中删除,但您仍然可以通过命令行更改名称:
sudo hciconfig hci0 name 'Device Name'
Run Code Online (Sandbox Code Playgroud)
运行该命令后,您应该能够通过再次打开蓝牙控制面板并检查设备名称来验证更改。
小智 70
您还不能在 ubuntu 的控制面板中更改蓝牙设备名称。这是错误报告,它提供了此解决方法:
如果要永久更改蓝牙设备名称,则必须创建一个名为的文件
/etc/machine-info,该文件应包含以下内容:Run Code Online (Sandbox Code Playgroud)PRETTY_HOSTNAME=device-name
之后,重新启动蓝牙服务:
sudo service bluetooth restart
Run Code Online (Sandbox Code Playgroud)
或者重启。
小智 21
我做了什么(12.04):
/var/lib/bluetooth/XX:XX:XX:XX:XX:XX/config~# service bluetooth restart)/etc/bluetooth/main.conf?)要在 Ubuntu 14.04 或更高版本上永久更改蓝牙主机名:
打开终端CTRL- ALT-T
编辑 /etc/bluetooth/main.conf 用您想要的计算机名称替换“%h”。出于某种原因,“%h”似乎总是在我的系统上代表“ubuntu”。
gksudo gedit /etc/bluetooth/main.conf
例如更改Name = %h-%d为Name = gruber-%d
`
删除 /var/lib/bluetooth/ xx:xx:xx:xx:xx:xx /config 以使您的系统忘记旧名称。在XX:XX:XX:XX:XX:XX有独特的蓝牙硬件十六进制值。
sudo rm /var/lib/bluetooth/xx:xx:xx:xx:xx:xx/config
重启蓝牙服务
sudo service bluetooth restart
(低于 15.04 或更高版本:)
sudo systemctl restart bluetooth.service
您可以通过打开蓝牙设置来查看新名称。最后两步来自马克思的回答。
| 归档时间: |
|
| 查看次数: |
89555 次 |
| 最近记录: |