Prompt: Bluetooth device connecting to computer cartoon style
Introduction
This short writeup summarizes my experience in enabling bluetooth device pass through for WSL2 usage. In the future, newer WSL kernels may support this feature out of the box and this guide may get outdated.
Pre-requisites
- WSL2 running on your device
- USBIPD - Link to repo
- Supported bluetooth device (Tested on Intel AX200)
- Backup of your current WSL2 (Just in case things go wrong)
Steps
- Update Kernel Follow this guide until step 4, right before building the kernel (since we will need to modify the configurations before continuing)
- Install bluetooth libraries via menuconfig
via your Terminal:
Select Networking Support via pressing Enter:
Enable Bluetooth subsystem support via pressing Y:
Enable the relevant Bluetooth support as follows:
Go to Bluetooth device drivers (last entry) and enable the following:
Continue following the Microsoft guide until the end. NOTE: Building the kernel will take a few minutes depending on your system.
- Pass in bluetooth device
sudo apt update
sudo apt install bluez dbus
echo ‘export BLUETOOTH_ENABLED=1’ | sudo tee /etc/default/bluetooth - Start bluetooth services
sudo service dbus start
sudo service bluetooth start
bluetoothctl
scan on -
Enjoy! For my use case, I am using it to commission Matter devices via the CHIP Tool.