6

使用blueman连接蓝牙设备

 3 years ago
source link: https://www.lujun9972.win/blog/2018/05/19/%E4%BD%BF%E7%94%A8blueman%E8%BF%9E%E6%8E%A5%E8%93%9D%E7%89%99%E8%AE%BE%E5%A4%87/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

使用blueman连接蓝牙设备

之前写过一篇博客介绍如何通过命令行来连接蓝牙耳机,但是这个过程显得很繁琐。

事实上, blueman 给我们提供了一个GUI界面来方便地让我们连接蓝牙设备。

  1. 查看蓝牙状态

    sudo rfkill
    
    ID TYPE      DEVICE      SOFT      HARD
     0 wlan      phy0   unblocked unblocked
     1 bluetooth hci0   unblocked unblocked
    

    确定 bluetoothSOFTHARD 都是 unblocked

    若不是,则执行

    sudo rfkill unblock bluetooth
    
  1. 安装blueman

    sudo pacman -S blueman --noconfirm
    
    looking for conflicting packages...
    
    Packages (1) blueman-2.0.5-2
    
    Total Installed Size:  5.31 MiB
    Net Upgrade Size:      0.00 MiB
    
    :: Proceed with installation? [Y/n] 
    (0/1) checking keys in keyring                     [----------------------]   0%
    (1/1) checking keys in keyring                     [######################] 100%
    (0/1) checking package integrity                   [----------------------]   0%
    (1/1) checking package integrity                   [######################] 100%
    (0/1) loading package files                        [----------------------]   0%
    (1/1) loading package files                        [######################] 100%
    (0/1) checking for file conflicts                  [----------------------]   0%
    (1/1) checking for file conflicts                  [######################] 100%
    (0/1) checking available disk space                [----------------------]   0%
    (1/1) checking available disk space                [######################] 100%
    :: Processing package changes...
    (1/1) reinstalling blueman                         [----------------------]   0%
    (1/1) reinstalling blueman                         [#######---------------]  36%
    (1/1) reinstalling blueman                         [######################] 100%
    :: Running post-transaction hooks...
    (1/4) Compiling GSettings XML schema files...
    (2/4) Updating icon theme caches...
    (3/4) Arming ConditionNeedsUpdate...
    (4/4) Updating the desktop file MIME type cache...
    
  2. 检查bluetooth service是否启动

    sudo systemctl status bluetooth.service
    
    ● bluetooth.service - Bluetooth service
       Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; disabled; vendor preset: disabled)
       Active: active (running) since Sat 2018-05-19 07:57:38 CST; 19min ago
         Docs: man:bluetoothd(8)
     Main PID: 28874 (bluetoothd)
       Status: "Running"
        Tasks: 1 (limit: 4636)
       Memory: 1.8M
       CGroup: /system.slice/bluetooth.service
               └─28874 /usr/lib/bluetooth/bluetoothd
    
    May 19 07:57:37 X61 systemd[1]: Starting Bluetooth service...
    May 19 07:57:37 X61 bluetoothd[28874]: Bluetooth daemon 5.49
    May 19 07:57:38 X61 systemd[1]: Started Bluetooth service.
    May 19 07:57:38 X61 bluetoothd[28874]: Starting SDP server
    May 19 07:57:38 X61 bluetoothd[28874]: Bluetooth management interface 1.14 …ized
    Hint: Some lines were ellipsized, use -l to show in full.
    

    若bluetooth.service没有启动,则启动它

    sudo systemctl start bluetooth.service
    
  3. 启动blueman

    在终端执行

    blueman-applet
    

    就会发现任务栏上出现一个蓝牙的图标了 screenshot-60.png

    点击蓝牙图表之后选择 设备 就能搜索蓝牙设备了 screenshot-61.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK