#!/bin/sh # linux how-to for bluetake bluetooth presenter type BTU-01 # http://formosa21.manufacturer.globalsources.com/si/6008822424696/pdtl/Remote-control/1001769282/Bluetooth-Slim-Remote-Control.htm sudo apt-get install bluez-utils sudo hciconfig hci0 down sudo hciconfig hci0 up sudo /etc/init.d/bluetooth restart # make sure the device is in pairing mode so it can be detected and connected # press and hold the button "bluethooth" until it start flashing very fast hcitool scan # output: 00:18:83:10:00:92 Bluetooth Presenter sdptool browse 00:18:83:10:00:92 sudo hidd --killall sudo hidd --search sudo hidd --connect 00:18:83:10:00:92 sdptool browse 00:18:83:10:00:92 echo 'HIDD_OPTIONS="--connect 00:18:83:10:00:92 --server"' | sudo tee --append /etc/default/bluetooth cat /etc/default/bluetooth Browsing 00:18:83:10:00:92 ... Service Name: Bluetooth Presenter Service Description: Consumer Service Provider: Formosa21 Inc. Service RecHandle: 0x10000 Service Class ID List: "Human Interface Device" (0x1124) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 17 "HIDP" (0x0011) Language Base Attr List: code_ISO639: 0x656e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Human Interface Device" (0x1124) Version: 0x0100 xinput list sudo apt-get install xinput ls -hal /dev/input/by-path/ total 0 drwxr-xr-x 2 root root 180 Apr 11 19:50 . drwxr-xr-x 3 root root 320 Apr 11 19:50 .. lrwxrwxrwx 1 root root 9 Apr 11 19:50 pci-0000:00:1d.1-usb-0:acl001883100092-event- -> ../event9 lrwxrwxrwx 1 root root 9 Apr 11 18:39 pci-0000:00:1d.1-usb-0:acl111111111795- -> ../mouse1 lrwxrwxrwx 1 root root 9 Apr 11 18:39 pci-0000:00:1d.1-usb-0:acl111111111795-event- -> ../event8 lrwxrwxrwx 1 root root 9 Apr 11 18:23 platform-i8042-serio-0-event-kbd -> ../event0 lrwxrwxrwx 1 root root 9 Apr 11 18:23 platform-i8042-serio-1-event-mouse -> ../event7 lrwxrwxrwx 1 root root 9 Apr 11 18:23 platform-i8042-serio-1-mouse -> ../mouse0 lrwxrwxrwx 1 root root 9 Apr 11 18:23 platform-pcspkr-event-spkr -> ../event6 # this is the bluetooth presenter /dev/input/by-path/spci-0000:00:1d.1-usb-0:acl001883100092-event- /dev/input/event9 InputDevice "presenter" Section "InputDevice" Identifier "presenter" Driver "evdev" Option "Device" "/dev/input/event9" EndSection sudo cat /dev/input/event9 > data.bin sudo perl -we ' $/=\32; $|++; open $f, "<", "/dev/input/event9"; while (<$f>) { print unpack "a*",$_ } ' sudo perl -we ' $/=\32; $|++; open $f, "<", "/dev/input/event8"; while (<$f>) { print unpack "b*",$_ } '