Set up Raspberry Pi Bluetooth from command line in 19.04

This seems like it should be obvious, but I cannot find an answer on Google. I can install and set up Linux but I’m not a kernel recompiling car or anything.

Put simply: I need to get my Bluetooth keyboard paired to my Raspberry Pi 4 with 64-bit Ubuntu 19.10 from the command line or, barring that, Enlightenment. Billions of tutorials for Raspian, nothing that works for Ubuntu on the Pi 4. (Mostly old tuts for the 3B+ from 2-3 years ago.

Why not just use any of the standard desktops, you might ask, which all have Bluetooth settings widgets? Because I’m using the Raspberry Pi 7” official touchscreen, which has a max resolution of 800x480, and all of the usual desktop environments - MATE, lubuntu, etc. - simply don’t work that low. Every window is cut off screen and I don’t have any interest in dicking around with them. Enlightenment, on the other hand, is small and fast as hell on the Pi 4 even with compositing turned on, and as I mainly use the desktop to run MagicMirror and Transmission and Firefox and a terminal emulator, it’s good enough for me.

Anyway: anybody know how to do this and make Bluetooth work and also automatically pair with my keyboard (and hopefully my mouse and maybe my BT soundbar if I’m really feeling optimistic here)? Does it involve the pi-bluetooth package? I tried installing bluez and bluez-tools but it’s still just silently failing.

Any advice would be awesome. Thanks!

1 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like