Fix+Logitech+Presenter+R400,R700,R800+to+Play+With+LibreOffice+Impress

By default, the R700 presenter works nicely on Linux but only the navigation buttons (right and left). The button that sends F5 to switch to the presentation mode is not working and the one that switches the screen to black is not working either.

Perform the following steps to make all of the buttons functioning properly with LibreOffice Impress:

Tips copied from: http://derickrethans.nl/logitech-r400-take2.html and http://www.hpaschke.de/blog/2014/06/logitech-presenter-r400-keys-in-linux-mint-16petra-kde/

The first column represents the scancode, which I obtained by first looking up with input event the device was tied to: code stat -t /dev/input/by-id/usb-Logitech_USB_Receiver-event-kbd --printf "%N\n" code Which showed the following for me: code ‘/dev/input/by-id/usb-Logitech_USB_Receiver-event-kbd’ -> ‘../event19’ code To find out the scan codes, I had to download a getscancodes tool, and then compile it (You can also use the tool "evtest": apt-get install evtest): code wget 'http://downloads.sourceforge.net/project/keytouch/getscancodes/getscancodes%201.0/getscancodes-1.0.tar.gz?r=http%3A%2F%2Fkeytouch.sourceforge.net%2Fdl-getscancodes.php&ts=1412723944&use_mirror=kent' -O getscancodes-1.0.tar.gz tar -xvzf getscancodes-1.0.tar.gz cd getscancodes/ make code With the new binary, and the event19 from above, I ran: code sudo ./getscancodes /dev/input/event19 code Which showed: code 458807 (0x70037) 458793 (0x70029) 458814 (0x7003e) 458827 (0x7004b) 458830 (0x7004e) code With these numbers, I now had enough information to edit the /lib/udev/hwdb.d/60-keyboard.hwdb file. Change the file like this:

Find the section //Logitech Presenter R400// and change it as follows: code keyboard:usb:v046DpC52Dd*dc*dsc*dp*ic*isc*ip*in00* KEYBOARD_KEY_070029=esq KEYBOARD_KEY_07003e=f5 KEYBOARD_KEY_070037=b code After that, I had to run: code sudo udevadm hwdb --update sudo udevadm trigger sudo udevadm control --reload code This consolidated the modified rules and made the keymapping active. My presenter tool now sends the correct key codes again. The changes will persist after rebooting as well.
 * 1) Logitech Presenter R400
 * 1) KEYBOARD_KEY_070029=presentation
 * 2) KEYBOARD_KEY_07003e=presentation
 * 3) KEYBOARD_KEY_070037=displaytoggle