<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 16, 2018 at 12:14 PM, Khalid Baheyeldin <span dir="ltr"><<a href="mailto:kb@2bits.com" target="_blank">kb@2bits.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I got a 2.4GHz Presentation Laser Pointer from eBay. It has a small USB dongle, and 4 keys.<br><br><a href="https://www.ebay.ca/itm/2-4GHz-Wireless-Presenter-USB-Remote-Control-Presentation-Mouse-Laser-Pointer-CA/112366784517" target="_blank">https://www.ebay.ca/itm/2-<wbr>4GHz-Wireless-Presenter-USB-<wbr>Remote-Control-Presentation-<wbr>Mouse-Laser-Pointer-CA/<wbr>112366784517</a><br><br>The same pointer is sold under known brand names, such as Targus, ...etc.<br><br>When I plug it in, it is recognized as a keyboard:<br><br>[831101.349593] usb 2-1.2: new low-speed USB device number 62 using ehci-pci<br>[831101.449908] usb 2-1.2: New USB device found, idVendor=2571, idProduct=4101<br>[831101.449917] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0<br>[831101.449921] usb 2-1.2: Product: HAS HS304<br>[831101.449925] usb 2-1.2: Manufacturer: HAS<br>[831101.457195] input: HAS HAS HS304 as /devices/pci0000:00/0000:00:<wbr>1d.0/usb2/2-1/2-1.2/2-1.2:1.0/<wbr>0003:2571:4101.0019/input/<wbr>input57<br>[831101.509901] hid-generic 0003:2571:4101.0019: input,hidraw2: USB HID v1.11 Keyboard [HAS HAS HS304] on usb-0000:00:1d.0-1.2/input0<br>[831101.514417] input: HAS HAS HS304 as /devices/pci0000:00/0000:00:<wbr>1d.0/usb2/2-1/2-1.2/2-1.2:1.1/<wbr>0003:2571:4101.001A/input/<wbr>input58<br>[831101.570063] hid-generic 0003:2571:4101.001A: input,hidraw3: USB HID v1.11 Mouse [HAS HAS HS304] on usb-0000:00:1d.0-1.2/input1<br><br><br>When I start LibreOffice and press the buttons, nothing happens.<br><br>When I open a Terminal from XFCE, nothing happens.<br><br>But when I press Ctrl-Alt-F2 and login to a native terminal, the escape codes do show up in that terminal.<br><br>Here is a hex dump of the four buttons, separated by some dashes. All four buttons do send stuff. Three send escape codes, and one sends just a plain lower case b.<br><br>00000000 1b 5b 35 7e 2d 2d 2d 2d 2d 62 2d 2d 2d 2d 2d 1b |.[5~-----b-----.|<br>00000010 5b 36 7e 2d 2d 2d 2d 2d 1b 5b 33 31 7e 2d 2d 2d |[6~-----.[31~---|<br>00000020 2d 2d 0a <wbr> |--.|<br><br>So, my question is, how to make such a 'keyboard' work from LibreOffice under XFCE?<span class="HOEnZb"><font color="#888888"><br><br></font></span></div></blockquote><div><br>You might be able to work something out with Xbindkeys? [0]<br><br>[0]: <a href="https://wiki.archlinux.org/index.php/Xbindkeys">https://wiki.archlinux.org/index.php/Xbindkeys</a><br><br></div><div>Regards,<br></div><div>David.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="HOEnZb"><font color="#888888">-- <br><div class="m_-1157349537552163357gmail_signature"><div dir="ltr"><div>Khalid M. Baheyeldin<br><a href="http://2bits.com" target="_blank">2bits.com</a>, Inc.<br>Fast Reliable Drupal<br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<br>Simplicity is the ultimate sophistication. -- anonymous<br><br></div></div></div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org">kwlug-disc@kwlug.org</a><br>
<a href="http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">http://kwlug.org/mailman/<wbr>listinfo/kwlug-disc_kwlug.org</a><br>
<br></blockquote></div><br></div></div>