<div dir="ltr"><div><div>The laser pointer's input goes to the non-Xorg part of Linux.<br><br></div>Using xev confirmed that Xorg receives nothing from it.<br><br></div>So, how does one make that input go to Xorg?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 16, 2018 at 5:28 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"><div>Did the xev test.<br><br>Nothing from the pointer is captured by X11 ...<br><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 16, 2018 at 4:49 PM, Chris Irwin <span dir="ltr"><<a href="mailto:chris@chrisirwin.ca" target="_blank">chris@chrisirwin.ca</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"><div><div>Since you're using xfce (and therefore Xorg) you might want to try out `xev`.<br><br>Run it in a terminal, and with focus on the window it creates, press the buttons on the presenter. It will output whatever key presses it sees to the terminal (this may be very noisy, with key up/down events, etc).<br><br></div>This will at least tell you if the key presses are getting as far as X11 and simply nothing is handling them, or if you need to dig further. It may also output the key names you need to bind with other tools.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_1458601821990448289h5">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></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_1458601821990448289h5"><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-4GHz<wbr>-Wireless-Presenter-USB-Remote<wbr>-Control-Presentation-Mouse-La<wbr>ser-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<wbr>.0/usb2/2-1/2-1.2/2-1.2:1.0/00<wbr>03:2571:4101.0019/input/input5<wbr>7<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<wbr>.0/usb2/2-1/2-1.2/2-1.2:1.1/00<wbr>03:2571:4101.001A/input/input5<wbr>8<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="m_1458601821990448289m_8613570602244838964HOEnZb"><font color="#888888"><br><br>-- <br><div class="m_1458601821990448289m_8613570602244838964m_-4610424034705132497gmail_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></div></div><span>______________________________<wbr>_________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">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/listi<wbr>nfo/kwlug-disc_kwlug.org</a><br>
<br></span></blockquote></div><span class="m_1458601821990448289HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div class="m_1458601821990448289m_8613570602244838964gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Chris Irwin<br><<a href="mailto:chris@chrisirwin.ca" target="_blank">chris@chrisirwin.ca</a>></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="m_1458601821990448289gmail_signature" data-smartmail="gmail_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>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_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>
</div>