[kwlug-disc] Presentation Pointer

Khalid Baheyeldin kb at 2bits.com
Wed Mar 21 14:28:33 EDT 2018


Some progress ...

The device is listed twice under 'Mouse and Touchpad' in XFCE's settings.
All the options there are about pointing, nothing about buttons.

In a terminal, when I do:

xinput

It lists the device.

I can also do

xinput list-prop 15

and

xinput list-prop 16

I can finally get the buttons to be recognized in Xorg by doing this:

xinput --enable 15
xinput --enable 16

Now, I need to find a way to do this automatically when its dongle is
inserted ...

Another issue is that when I pull the dongle out, the device would not pair
up again with the pointer. Before doing the xinput --enable, it used to
pair up every time ...

On Wed, Mar 21, 2018 at 1:57 PM, Khalid Baheyeldin <kb at 2bits.com> wrote:

> The laser pointer's input goes to the non-Xorg part of Linux.
>
> Using xev confirmed that Xorg receives nothing from it.
>
> So, how does one make that input go to Xorg?
>
> On Fri, Mar 16, 2018 at 5:28 PM, Khalid Baheyeldin <kb at 2bits.com> wrote:
>
>> Did the xev test.
>>
>> Nothing from the pointer is captured by X11 ...
>>
>>
>> On Fri, Mar 16, 2018 at 4:49 PM, Chris Irwin <chris at chrisirwin.ca> wrote:
>>
>>> Since you're using xfce (and therefore Xorg) you might want to try out
>>> `xev`.
>>>
>>> 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).
>>>
>>> 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.
>>>
>>> On Fri, Mar 16, 2018 at 12:14 PM, Khalid Baheyeldin <kb at 2bits.com>
>>> wrote:
>>>
>>>> I got a 2.4GHz Presentation Laser Pointer from eBay. It has a small USB
>>>> dongle, and 4 keys.
>>>>
>>>> https://www.ebay.ca/itm/2-4GHz-Wireless-Presenter-USB-Remote
>>>> -Control-Presentation-Mouse-Laser-Pointer-CA/112366784517
>>>>
>>>> The same pointer is sold under known brand names, such as Targus,
>>>> ...etc.
>>>>
>>>> When I plug it in, it is recognized as a keyboard:
>>>>
>>>> [831101.349593] usb 2-1.2: new low-speed USB device number 62 using
>>>> ehci-pci
>>>> [831101.449908] usb 2-1.2: New USB device found, idVendor=2571,
>>>> idProduct=4101
>>>> [831101.449917] usb 2-1.2: New USB device strings: Mfr=1, Product=2,
>>>> SerialNumber=0
>>>> [831101.449921] usb 2-1.2: Product: HAS HS304
>>>> [831101.449925] usb 2-1.2: Manufacturer: HAS
>>>> [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
>>>> [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
>>>> [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
>>>> [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
>>>>
>>>>
>>>> When I start LibreOffice and press the buttons, nothing happens.
>>>>
>>>> When I open a Terminal from XFCE, nothing happens.
>>>>
>>>> But when I press Ctrl-Alt-F2 and login to a native terminal, the escape
>>>> codes do show up in that terminal.
>>>>
>>>> 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.
>>>>
>>>> 00000000  1b 5b 35 7e 2d 2d 2d 2d  2d 62 2d 2d 2d 2d 2d 1b
>>>> |.[5~-----b-----.|
>>>> 00000010  5b 36 7e 2d 2d 2d 2d 2d  1b 5b 33 31 7e 2d 2d 2d
>>>> |[6~-----.[31~---|
>>>> 00000020  2d 2d 0a                                          |--.|
>>>>
>>>> So, my question is, how to make such a 'keyboard' work from LibreOffice
>>>> under XFCE?
>>>>
>>>> --
>>>> Khalid M. Baheyeldin
>>>> 2bits.com, Inc.
>>>> Fast Reliable Drupal
>>>> Drupal optimization, development, customization and consulting.
>>>> Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra
>>>> Simplicity is the ultimate sophistication. -- anonymous
>>>>
>>>>
>>>> _______________________________________________
>>>> kwlug-disc mailing list
>>>> kwlug-disc at kwlug.org
>>>> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
>>>>
>>>>
>>>
>>>
>>> --
>>> Chris Irwin
>>> <chris at chrisirwin.ca>
>>>
>>
>>
>>
>> --
>> Khalid M. Baheyeldin
>> 2bits.com, Inc.
>> Fast Reliable Drupal
>> Drupal optimization, development, customization and consulting.
>> Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra
>> Simplicity is the ultimate sophistication. -- anonymous
>>
>>
>
>
> --
> Khalid M. Baheyeldin
> 2bits.com, Inc.
> Fast Reliable Drupal
> Drupal optimization, development, customization and consulting.
> Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra
> Simplicity is the ultimate sophistication. -- anonymous
>
>


-- 
Khalid M. Baheyeldin
2bits.com, Inc.
Fast Reliable Drupal
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra
Simplicity is the ultimate sophistication. -- anonymous
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20180321/be997c23/attachment.htm>


More information about the kwlug-disc mailing list