Skip to content

7usr7local/logitech-K81X-pairing

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Logitech K810 keyboard Linux Bluetooth pairing

Solution for a persistent connection

Set keyboard discoverable:

hcitool scan

Copy mac address XX:XX:XX:XX:XX:XX:

sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX

Which will hopefully return something like:

    DisplayPasskey (/org/bluez/537/hci0/..., 123456)

The number at the end of the string represents the PIN you need to enter for pairing. Enter those numbers on your bluetooth device and confirm with return. On success you should get:

	Release
	New device (/org/bluez/...)

Set device as trusted:

sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes

You might have a connection now, but i still needed to:

sudo bluez-test-input connect XX:XX:XX:XX:XX:XX

Reboot and hope for the best.

Creating device failed: org.bluez.Error.AlreadyExists

Reset pairing:

sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX repair

Start over.


Stolen from here.

Key configuration

sudo apt-get install build-essential

./build.sh

sudo ./k810_conf -d /dev/hidraw<X> -f on

You will have to replace by the hid number that was assigned to your keyboard. Of course there are more clever ways, but just work through the numbers brute force starting with hidraw0. The script is clever enough to detect if it’s not the K810.

About

Logitech K81X keyboard Linux Bluetooth pairing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.8%
  • Shell 1.2%