The Logitech K810 is a nice keyboard, but it does not work with Ubuntu out of the box. Still contrary to what some websites might lead you to believe, it does work. The following instructions worked for me on Ubuntu 13.10 & 14.04.
- Start a terminal (terminal 1)
- Install the tools needed for this walk-through
sudo apt-get install bluez-hcidump bluez-utils blueman
- Enable Bluetooth on your Ubuntu machine (you might have a hardware button, don’t forget about that)
- Start the bluetooth manager (blueman) from your start menu, dash, or whatever other way of starting programs your desktop has
- Start another terminal (terminal 2) – yep you’ll need two for this exercise
- Get the K810 into pairing mode by pressing the button on the back of the keyboard and then one of the device buttons on the front (F1-F3). You should see the bluetooth light flashing now.
- In terminal 1 run
if the K810 is found this should give you something like
Scanning ... xx:xx:xx:xx:xx:xx Logitech K810
- Copy the address of your K810 (that’s the xx:xx:xx:xx:xx:xx)
- In terminal 2 run
sudo hcidump -at | grep pass
- In terminal 1 run
sudo bluez-simple-agent hci0 xx:xx:xx:xx:xx:xx
- In terminal 2 you should now see the passkey which is a number
- Type that code on your K810 followed by enter
- The bluetooth manager should now show the K810.
- In blueman select the K810 and mark it as “trusted”
- Now click on Setup and follow the dialog box.
- Tada, you’re done, you can now close all terminals as well as blueman.
The Function Keys
By default, the function keys (the ones above the numbers row) are assigned to special functions like media control, which I find annoying. – Every time you want to do something normal like Alt-F4 or search via F3 you need the Fn key. Logitech’s windows software on the other hand lets you invert the Fn key. Actually all the Windows software does is to send a certain string of commands to the keyboard, which some clever Linux Guru has reverse engineered and coded into a nice little program, that can be found at http://www.trial-n-error.de/posts/2012/12/31/logitech-k810-keyboard-configurator/. I’ll again add a step-by-step guide:
- Optional: Go to http://www.trial-n-error.de/posts/2012/12/31/logitech-k810-keyboard-configurator/ and read about how he did it ;)
- Install a compiler
sudo apt-get install build-essential
- Download and extract Mario’s program
wget http://blog.chschmid.com/media/k810_conf-v0.1.tar.bz2 tar -jxf k810_conf-v0.1.tar.bz2
- Compile it
- Run it
sudo ./k810_conf -d /dev/hidraw<x> -f on
You will have to replace <x> by the hid number that was assigned to your keyboard. In my case it is hidraw2. Of course there are more clever ways, but just work through the numbers brute force starting with hidraw0. – Mario’s program is clever enough to detect if it’s not the K810.