4

I'm running ubuntu 16.04 and I'm trying to pair my Microsoft Designer Keyboard to my computer. When I try to pair it, the GUI ask me to enter the pin code on my bluetooth keyboard and press enter.

Ubuntu says that my keyboard is paired but it doesn't seems to work. My keyboard led continues to blink like it was searching to pair.

The strange thing is that Ubuntu detect if submitted pin is correct or not. I tried many things like doing pairing with bluetoothctl command but nothing change. I also had issues to connect my "Microsoft designer mouse" but I managed to solve the problem.

Here is my /var/lib/bluetooth/@pcbtmac/@keyboardsmac/info file:

[General]
Name=Designer Keyboard
Appearance=0x03c1
AddressType=static
SupportedTechnologies=LE;
Trusted=true
Blocked=false
Services=00001800-0000-1000-8000-00805f9b34fb;00001801-0000-1000-8000-00805f9b34fb;0000180a-0000-1000-8000-00805f9b34fb;0000180f-0000-1000-8000-00805f9b34fb;00001812-0000-1000-8000-00805f9b34fb;

[ConnectionParameters]
MinInterval=12
MaxInterval=12
Latency=30
Timeout=300

[IdentityResolvingKey]
Key=2F0F0EC777D70A3B7C545C677431060F

[LocalSignatureKey]
Key=08050DDCC91BE74D48194350810D5158
Counter=0
Authenticated=true                                                                                                                                                                                                                                                             

[LongTermKey]                                                                                                                                                                                                                                                                  
Key=79AECD16673070C09237923C045A70F4                                                                                                                                                                                                                                           
Authenticated=1                                                                                                                                                                                                                                                                
EncSize=16                                                                                                                                                                                                                                                                     
EDiv=51284                                                                                                                                                                                                                                                                     
Rand=2607687599915093354
Off
  • 43
  • 1
  • 1
  • 3

3 Answers3

4

Updating to 16.10 fixed this problem for me. I did have to reboot after pairing for some reason, but it's been working fine since then.

I know that's not a solution for 16.04, but it does confirm again that this keyboard can work under Linux.

Volker Siegel
  • 13,295
2

I have struggled a lot with my bluetooth Microsoft designer keyboard and mouse for the last two days. I managed to write off a 14.04 laptop, but had more success with my 16.04 installation.

To get the mouse working, I followed this blog to do the following:

Step 1:

sudo apt-get install bluez blueman

Step 2:

sudo nano /etc/bluetooth/main.conf
Change line 67, uncomment #[Policy] so that it reads [Policy]
Change line 89, uncomment and change #AutoEnable=false so that it reads
AutoEnable=true

Step 3:

sudo nano /lib/udev/rules.d/50-bluetooth-hci-auto-poweron.rules
Change line 1 to comment out:
#ACTION=="add", SUBSYSTEM=="bluetooth", KERNEL=="hci[0-9]*", RUN+="/bin/hciconfig %k up"

Step 4:

Save and reboot.

My system hung on the shutdown, so I was nervous after killing my previous laptop, but the 16.04 laptop started up fine

Step 5:

From the second (blueman) bluetooth icon on the top menu bar, choose "Local Services" then under "Pan support" choose "blueman (dhclient)". Click Apply or don't worry if it isn't enabled, you can just close the window.

Step 6:

Choose "Setup New Device" from the same window. Press the pairing button on the mouse, so the blue lights start flashing (it's a really small button that I missed at first). Complete the wizard, and your mouse should be paired.

To get the keyboard working, I did the following:

Step 1:

Installed the bluez-utils replacement

sudo apt-get install bluez:i386

Step 2:

Ran through the "Setup New Device" option from the blueman, and remembered to press the small pairing button, which you can find underneath on the left of the keyboard, near the battery compartment.

Success

I now have a working keyboard and mouse that work on startup (and will even wake my laptop). I am a very happy beaver, except for my broken 14.04 laptop which was a very faithful servant for so many years.

Final Step:

After another reboot, you can uninstall blueman to remove the 2nd bluetooth menu.

sudo apt-get remove blueman
Dagmar
  • 213
1

I had this problem recently on Ubuntu 24.04.1 LTS. The keyboard used to work, and then one day (perhaps after a system update - but nothing I particularly remember), my keyboard started connecting and disconnecting immediately: I could not use it. Nothing seemed to work until I found that reddit thread. Namely what I did:

# Launch bluetooth control cli:
bluetoothctl 
power on
agent on
scan on 
# At this point I launched by keyboard on pair mode:
# Had to make sure it would show up, and when it did, I copied its MAC
pair <MAC>
# It showed a pin I had to enter, make sure you do not miss that
trust <MAC> # afaik this is optional
connect <MAC> # after that the keyboard is fully usable
scan off # not necessary, you can just exit bluetoothctl with C-c, C-d

That way I got rid of blueman that I had used and simplified it all. Once again, posting it here so that anyone in my position can find the answer faster. Kudos to haelaeif

EDIT: I just wanted to say that inside of bluetoothctl, one can run devices Paired/Trusted/Connected, to get the respective list, at any moment.