:: Re: [DNG] mouse driver question
Góra strony
Delete this message
Reply to this message
Autor: Fred
Data:  
Dla: dng
Temat: Re: [DNG] mouse driver question
On 4/24/22 10:49, Fred wrote:
> Hi,
>
> On 4/23/22 12:53, karl@??? wrote:
>> Fred:
>>> On 4/23/22 02:34, karl@??? wrote:
>> ...
>>>> So, make sure you are running in a virtual console and logged in as
>>>> root, then run the gpm -b etc. thing and move the mouse around.
>>>>
>>>> To make the mouse to work in X11, please test the mouse with gpm in
>>>> a console first to assert basic functionality, and then come back.
>>
>> Did you do the test above ?
>>
>> As long the serial port isn't opened by anything,
>> you can let X11 and openbox be running.
>>
>> If so, press Ctl-Alt-F2 buttons simultaineusly to get to a console.
>> There log in as root
>> and then try one of
>>    gpm -b 1200 -m /dev/ttyUSB0 -t msc
>>    gpm -b 1200 -m /dev/ttyUSB0 -t sun
>>    gpm -b 1200 -m /dev/ttyUSB0 -t mman
>> and move the mouse to test.
>>
> This works.  The msc protocol works best, the mman protocol doesn't work
> at all.  All three buttons show some effect.
>
>>> A previous post mentioned xorg.conf which doesn't appear to exist in
>>> Devuan Beowulf (AMD64).
>>> So, where do I go from here?
>>
>> You can either
>> A, do a xorg configuration with the mouse driver
>>     man xorg.conf is your friend.
>>
>> B, try inputattach to make the mouse appear as a /dev/input/* device
>>     and be automatically included by X11, I haven't tested this. See
>>
>>     https://wiki.archlinux.org/title/Serial_input_device_to_kernel_input
>>     https://sourceforge.net/projects/linuxconsole/files/
>>     https://help.ubuntu.com/community/SerialMouseHowto
>>     https://wiki.alpinelinux.org/wiki/Serial_Mouse
>>
>> Regards,
>> /Karl Hammar
>>
> There is some progress. The inputattach package in Devuan apparently
> doesn't have a config file.  Specifying the baud on the command line
> results in an invalid baud message. inputattach does work with the Sun
> mouse but the middle button doesn't work.  I tried msc and sun protocol
> and both work the same.  I may try some other protocols but I suspect a
> bug in inputattach.  Maybe I should contact the maintainer?
>
> Best regards,
> Fred
>

The middle button is being seen as the pointer won't move when it is
held down. It would appear the application is being told something
different than when the standard pc mouse is used.

Best regards,
Fred