Skip to content

Instantly share code, notes, and snippets.

@sergshabal
Created July 5, 2016 18:17
Show Gist options
  • Save sergshabal/7f2ec47cfaaf2bb02bc66deec72ff17c to your computer and use it in GitHub Desktop.
Save sergshabal/7f2ec47cfaaf2bb02bc66deec72ff17c to your computer and use it in GitHub Desktop.
its ok
I set keyboard in paired mod
then in terminal:
$ bluetoothctl
[NEW] Controller 00:02:72:DE:1E:41 debi [default]
[NEW] Device 00:1F:20:EC:A5:DD Logitech Keyboard K480
[NEW] Device 00:1A:7D:55:02:06 BS-55
[NEW] Device A0:8D:16:86:81:C1 CHM-U01
[bluetooth]# connect 00:1F:20:EC:A5:DD
[bluetooth]# trust 00:1F:20:EC:A5:DD
[bluetooth]# quit
thats all
it work
@sergshabal
Copy link
Author

find here https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1492441

As a workaround I managed to pair successfully following the instruction in the "Pairing process" section at
https://wiki.archlinux.org/index.php/Bluetooth_keyboard
i.e.
sudo bluetoothctl -a
power on
agent KeyboardOnly
default-agent
pairable on

enter pairing mode on the keyboard

scan on
pair MAC_OF_THE_KEABOARD_FROM_PREVIOUS_STEP

I think now I had to enter the displayed pin on the bluetooth keyboard and press enter

trust MAC...
connect MAC...
quit
The keyboard stays connected even after the system restart.

@Ch-sriram
Copy link

Ch-sriram commented Aug 30, 2021

I've connected using the MacOS mode from the keyboard w/o going through all of these steps.

Although, I did go through the following steps and then I gave up and tried connecting the keyboard using MacOS mode:

  1. sudo apt-get update
  2. sudo apt-get install bluez [NOTE: bluez-utils is deprecated]

After the above 2 steps, I've used the Ubuntu [18.04] UI to connect my Logitech K480 Keyboard using MacOS mode.

@rajasekhar911
Copy link

worked with Ubuntu 21.04 in macOS mode out of the box without the need of any extra packages

@d9k
Copy link

d9k commented Dec 31, 2022

Works,thanks!
Used hcitool scan to get MAC-address of bluetooth keyboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment