Web Bluetooth on Ubuntu20.04

Recently, the environment for using BLE on desktop PCs has been prepared. This time, we will talk about making Web Bluetooth available on Ubuntu 20.04.


Correspondence situation

「Implementation Status」 https://github.com/WebBluetoothCG/web-bluetooth/blob/master/implementation-status.md

according to,

「Linux is partially implemented and not supported. The chrome://flags/#enable-experimental-web-platform-features flag must be enabled.」

There is. Also,

「Linux: Requires Kernel 3.19+ and BlueZ 5.41+ installed. Read How to get Chrome Web Bluetooth working on Linux. Note that Bluetooth daemon needs to run with experimental interfaces if BlueZ version is lower than 5.43: sudo /usr/sbin/bluetoothd -E」

There was also. Previously, when I tried it on Ubuntu16.04, the version of BlueZ was low and it didn't work. Well, I wonder if it will work this time ...

Now, https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API According to it, firefox is not supported.

Setting work

Status check

Originally, when you try to pair, the following dialog will appear.


This site has been confirmed to appear on Google Chrome on Windows 10 and Android, but not on Google Chrome on Linux.


First, let's check bluez.

$ sudo apt install bluez
Loading the package list...Done
Creating a dependency tree
Reading status information...Done
bluez is already the latest version(5.53-0ubuntu3)is.
The following packages were installed automatically but are no longer needed:
  libfprint-2-tod1 libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib
  python2 python2-minimal python2.7 python2.7-minimal
To remove this'sudo apt autoremove'Please use.
upgrade:0 pieces, new installation:0, deleted:0 pieces, pending:11 pieces.

It was already in. The version is also 5.53, so there seems to be no problem.

Google Chrome


chrome://flags Open and #enable-experimental-web-platform-features To Enabled.


It was convenient to be able to access directly with the following URL.


With Google Chrome, you can now use Web Bluetooth by itself.

Chromium browser

I also tried it on Chromium. chrome://flags/#enable-experimental-web-platform-features Go to and enable it as above. After restarting the browser, I tried it and it was OK.


Recommended Posts

Web Bluetooth on Ubuntu20.04
tmux on Ubuntu
Screen recording on Ubuntu 20.04
Try DisplayLink on Ubuntu 20.04
Reinstall Kubernetes on Ubuntu 19.10
Use Flutter on Ubuntu
Install pyqt5 on ubuntu
Install Ruby on Ubuntu 20.04
Setting JAVA_HOME on Ubuntu
Install Autoware on Ubuntu 18.04.5
Put JetBrains on Ubuntu
Use mkdir on ubuntu
Apache2 on Ubuntu20.04 LTS
Use cpplapack on ubuntu
ubuntu on wsl part 10
Install Homebrew on Ubuntu 20.04
Run tiscamera on Ubuntu 18.04
Build Zabbix on Ubuntu 20.04
Using Flutter on Ubuntu (Part 2)
Create SSL certificate on Ubuntu 18.04
Building WebGIS on Ubuntu20.04 LTS
Install OpenJDK7 (JAVA) on ubuntu 14.04
Put Ubuntu 20.04.1 on Raspberry Pi 4
Build VNC Server on Ubuntu 20.04
Install Cybozu Office 10 on Ubuntu 20.4
Extend swap area on Ubuntu 18.04
Install Docker on Ubuntu Server 20.04
Ubuntu on Windows Community Preview
Japanese input on Ubuntu20.04 Desktop
Oracle Java 8 on Docker Ubuntu
Install zabbix agent (5.0) on Ubuntu 18.04
Install MAV Proxy on Ubuntu 18.04
Install Arudino IDE on Ubuntu 20
Record video on ubuntu18.04 LTS
Introduced knowledge (wiki) on Ubuntu
Installing OpenMX on Ubuntu 18.04.5 LTS
Install Java on WSL Ubuntu 18.04
Ruby installation on WSL2 + Ubuntu 20.04
Install Ubuntu Desktop 20.10 on RaspberryPi4
Run chromium-mir-kiosk on Ubuntu Core
Install Arduino IDE on Ubuntu 20.04
Ubuntu on Windows build speed
Run java applet on ubuntu
Install raspi-config on Ubuntu 20.04 (LTS)
Install WordPress 5.5 on Ubuntu 20.04 LTS
Run Eclipse CDT on Ubuntu
Set up ansible-playbook on Ubuntu 20.04
Install PlantUML on Intellij on Ubuntu
Install Ubuntu Server 20.04 on Btrfs
Note: Install PostgreSQL 9.5 on Ubuntu 18.04
Install AWS IoT Greengrass on Ubuntu
Using Azure IOT Hub on Ubuntu 20.10.
Installing Ruby + Rails on Ubuntu 18.04 (rbenv)
Install JDK and JRE on Ubuntu 16.10
If you can't hear sound from your Bluetooth headphones on Ubuntu 20.04
Install ngrok on ubuntu16.04 using Vagrant
Build the latest Samba 4 on Ubuntu 20.04
How to use Bio-Formats on Ubuntu 20.04
Build a XAMPP environment on Ubuntu
Check H2 database on the web
Wake on Lan settings on Ubuntu 20.04.1 LTS