Assuming the presence of xorg, perhaps xmodmap is the next place to look?<br /><br />~Peter<br /><hr /><strong>Subject:</strong> [kwlug-disc] Presentation Pointer<br /><strong>Date:</strong> Fri, 16 Mar 2018 12:14:22 -0400<br /><strong>From:</strong> Khalid Baheyeldin <kb@2bits.com><br /><strong>To:</strong> KWLUG discussion <kwlug-disc@kwlug.org><br /><strong>Reply-To:</strong> kb@2bits.com, KWLUG discussion <kwlug-disc@kwlug.org><br /><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<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">https://www.ebay.ca/itm/2-4GHz-Wireless-Presenter-USB-Remote-Control-Presentation-Mouse-Laser-Pointer-CA/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:1d.0/usb2/2-1/2-1.2/2-1.2:1.0/0003:2571:4101.0019/input/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:1d.0/usb2/2-1/2-1.2/2-1.2:1.1/0003:2571:4101.001A/input/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                                          |--.|<br /><br />So, my question is, how to make such a 'keyboard' work from LibreOffice under XFCE?<br /><br />-- <br />
<div class="gmail_signature">
<div dir="ltr">
<div>Khalid M. Baheyeldin<br /><a href="http://2bits.com">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>
</div>
<p> </p>
<div> </div>