Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I recently bought a Logitech K810 keyboard for my laptop (Ubuntu 12.10 AMD64) and set it up using the instructions found on a bug post for the device.

In a new terminal type:

hcitool scan 

and copy mac address XX:XX:XX:XX:XX:XX

Now in another terminal type:

sudo hcidump -at

You should get something like (followed by a blinking cursor):

HCI sniffer - Bluetooth packet analyzer ver 2.4 device: hci0 snap_len:
1028 filter: 0xffffffffffffffff

Switch back to your original terminal and type:

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

Now in the hcidump terminal you will see a few things scroll past until you get something that looks like:

2013-02-07 15:35:40.653393 > HCI Event: User Passkey Notification
(0x3b) plen 10
          bdaddr XX:XX:XX:XX:XX:XX passkey 66235

Type the 'passkey' in to the keyboard on the K810 and press Enter On success you should get "Release" and "New device (/org/bluez/..."

Now set device as trusted:

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

You might have a connection now, but still need to:

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

Now reboot and hope for the best!

This works perfectly after a reboot, but just fails abysmally when I try to wakeup from hibernate. I then did research and found a workaround on another bug post by adding the following script to /etc/pm/sleep.d


# Disconnect any currently connected bluetooth device before suspending
# Works around: LP bug #1075478
# Copyright: Copyright (c) 2013 Jamin Collins
# License:   BSD

case "${1}" in
        MACS=$(/usr/bin/hcitool con | /usr/bin/awk '/ACL/ {print $3}')
        # account for possibility of nothing being connected
        for MAC in ${MACS}; do
            /usr/bin/hcitool dc ${MAC}

This does nothing except crash the kernel or bluetooth.

What can I do to make my keyboard automatically work when I resume from hibernate? I am willing to reinstall the entire OS if necessary as I am simultaneously dealing with optimus issues with hooking up a 27 inch dell monitor with 2560x1440 resolution.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.