I’m newbie to Linux(Ubuntu) ecosystem, and I had a trouble in pairing bluetooth keyboard; Logitech K380. The device was not showing on the bluetooth list. So, I had to connect it manually. The specs are the following.

  • Keyboard: Logitech K380
  • OS: Ubuntu 22.04 LTS
  • Computer: LG gram 13

How To Solve

  1. Make sure to turn on your keyboard. Press the bluetooth button in or to find new device.

  2. Enter bluetoothctl module in your terminal.

bluetoothctl

If it’s not working, try installing it.

sudo apt-get install bluez bluetooth blueman
  1. Scan bluetooth devices
scan on
  1. Trust, Pair, Connect your device using MAC Address
trust XX:XX:XX:XX:XX:XX
pair XX:XX:XX:XX:XX:XX
connect XX:XX:XX:XX:XX:XX
  1. Enter passkey with your keyboard shown in terminal.
[agent] Passkey: XXXXXX

That’s all! You have your keyboard connected to your PC.

References