Contents

Archlinux 驱动

必备的Archlinux驱动安装和使用

无线(wifi)

iwd

  1. 安装iwd
    1
    
    sudo pacman -S iwd
    
  2. 使用
    • 进入iwd管理
    1
    
    iwctl
    
    • 命令使用并连接wifi
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    
    //查看适配器列表
    adapter list
    //查看无线设备
    device list
    //如果没有打开适配器和无限设备则打开
    adapter adapter-name(phy0) set-property Powered on
    device device-name(wlan0) set-property Powered on
    //扫瞄wifi
    station device-name(wlan0) scan
    //显示所有wifi
    station device-name(wlan0) get-networks
    //连接wifi
    station device-name(wlan0) connect wifi-name
    

蓝牙(bluetooth)

bluez

  1. 安装bluez和工具

    1
    2
    3
    
    sudo pacman -S bluez
    sudo pacman -S bluez-utils
    sudo pacman -S bluez-tools
    
  2. 查看蓝牙驱动btusb内核模块是否加载

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    
    //查看
    modprobe info btusb
    //加载模块
    modprobe btusb
    //或者按照文件名加载
    // insmod filename [args]
    //移除模块
    //modprobe -r module_name
    //或者
    //rmmod module_name
    
  3. 查看是否被rfkill禁用

    1
    2
    3
    4
    
    //查看:Hard blocked则去BIOS配置开启,Soft blocked则使用rfkill 打开
    rfkill list
    //打开Soft blocked
    sudo rfkill unblock bluetooth
    
  4. 开启bluetooth.service

    1
    2
    3
    4
    
    //开启
    sudo systemctl start bluetooth.service
    //开机自启动
    sudo systemctl enable bluetooth.service
    
  5. bluetoothctl使用

    • 进入蓝牙管理
      1
      
      bluetoothctl
      
    • 连接蓝牙设备
       1
       2
       3
       4
       5
       6
       7
       8
       9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      
      //选择一个蓝牙接收器
      //select MAC_address
      //开启蓝牙
      power on
      //选择要连接的设备类型
      agent on
      //确认并完成要连接的设备类型
      default-agent
      //搜索所有可配对的设备
      scan on
      //获取所有设备MAC地址
      devics
      //配对设备
      pair MAC_address
      //连接
      connect MAC_address
      //如果设备不需要配对码(PIN),可以将设备加入信任列表
      //trust MAC_address
      
  6. 配置蓝牙开机后自启动

    在文件/etc/bluetooth/main.conf底部的[Policy]下面添加AutoEnable=true

    1
    2
    
    [Policy]
    AutoEnable = true
    
  7. 蓝牙音频输出 需要先安装pulseaudio-bluetooth,可以使用pavucontrol选择音频的输出设备。如果全局的PulseAudio设置,确保运行守护进程(一般是pulse)用户在lp组,并且PulseAudio配置中加载蓝牙模块:

    1
    2
    3
    4
    
    .....
    load-module module-bluetooth-policy
    load-module module-bluetooth-discover
    .....
    
  8. pavucontrol工具选择音频的输出设备

    1
    
    sudo pacman -S pavucontrol
    
  9. Failed to set power on :org.bluz.Error.Failed

1
2
3
sudo systemctl start bluetooth
sudo systemctl enable bluetooth
rfkill unblock bluetooth

音频

  1. install the pulsemixer is the CLI
1
sudo pacman -S alsa-utils alsa pulseaudio pulsemixer