Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will step on the night soil of many countries.


comp / comp.os.linux.misc / Re: Need Help With Libinput

SubjectAuthor
* Need Help With LibinputLester Thorpe
`* Re: Need Help With LibinputGerhard Strangar
 `- Re: Need Help With LibinputLester Thorpe

1
Subject: Need Help With Libinput
From: Lester Thorpe
Newsgroups: alt.os.linux, comp.os.linux.misc
Organization: UsenetExpress - www.usenetexpress.com
Date: Tue, 2 Jul 2024 19:28 UTC
From: lt@gnu.rocks (Lester Thorpe)
Subject: Need Help With Libinput
Newsgroups: alt.os.linux,comp.os.linux.misc
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 34
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Tue, 02 Jul 2024 19:28:22 +0000
Nntp-Posting-Date: Tue, 02 Jul 2024 19:28:22 +0000
X-Received-Bytes: 1308
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17de7c0ce189fbc8$526471$1616079$802601b3@news.usenetexpress.com>
View all headers

I desire a relatively slow pointing device (i.e. mouse) motion,
but with the now mandatory (i.e. no choice) libinput driver
under X Window I have a hard time understanding how to configure
the motion.

Using "xinput list" I discover that my pointing device is
device id=8.

Thus:

xinput list-props 8

....
....
Device 'PixArt Microsoft USB Optical Mouse':
Device Enabled (155): 1
Coordinate Transformation Matrix (157): 0.400000, 0.000000, 0.000000, 0.000000, 0.400000, 0.000000, 0.000000, 0.000000, 1.000000
....
....

The motion is apparently controlled by this "transformation
matrix," which seems to be 3x3 in size.

As seen above, I have what I assume to be the x and y motion
set to 0.4.

This does indeed slow the motion down.

But what do the rest of the values accomplish?

I can find no documentation on this issue. If someone can
provide links or a description it would be appreciated.

Subject: Re: Need Help With Libinput
From: Gerhard Strangar
Newsgroups: comp.os.linux.misc
Date: Wed, 3 Jul 2024 05:55 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: g.s@arcor.de (Gerhard Strangar)
Newsgroups: comp.os.linux.misc
Subject: Re: Need Help With Libinput
Date: Wed, 3 Jul 2024 05:55:40 +0000
Lines: 20
Message-ID: <lek7esF2l4rU1@mid.individual.net>
References: <17de7c0ce189fbc8$526471$1616079$802601b3@news.usenetexpress.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net jkyYiQN4QKsp+wEdjjOPJAiBuc7PZp5XPsXx6V8c6JwVG4+vQy
Cancel-Lock: sha1:qRZtcmfGBpeEirXno7uFZ+JSGEs= sha256:Qx77XF5VUSxAZ+PuoMPELdCvqB6843GNI/g4RYa5/yE=
X-No-Archive: Yes
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101
Firefox/91.0 SeaMonkey/2.53.18.2
In-Reply-To: <17de7c0ce189fbc8$526471$1616079$802601b3@news.usenetexpress.com>
View all headers

Lester Thorpe wrote:

> Coordinate Transformation Matrix (157): 0.400000, 0.000000, 0.000000, 0.000000, 0.400000, 0.000000, 0.000000, 0.000000, 1.000000
[...]
> But what do the rest of the values accomplish?
>
> I can find no documentation on this issue. If someone can
> provide links or a description it would be appreciated.

You cursor movement is the vector you get when you multiply the matrix
with the input vector:

/x'\ /x\
|y'| = M * |y|
\1 / \1/

The third dimension allows merging every possible transformation into a
single multiplication:

https://en.wikipedia.org/wiki/Affine_transformation#Image_transformation

Subject: Re: Need Help With Libinput
From: Lester Thorpe
Newsgroups: comp.os.linux.misc
Organization: UsenetExpress - www.usenetexpress.com
Date: Wed, 3 Jul 2024 19:41 UTC
References: 1 2
From: lt@gnu.rocks (Lester Thorpe)
Subject: Re: Need Help With Libinput
Newsgroups: comp.os.linux.misc
References: <17de7c0ce189fbc8$526471$1616079$802601b3@news.usenetexpress.com> <lek7esF2l4rU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 21
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Wed, 03 Jul 2024 19:41:56 +0000
Nntp-Posting-Date: Wed, 03 Jul 2024 19:41:56 +0000
X-Received-Bytes: 886
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17decb5f09b34bbe$301$847046$802601b3@news.usenetexpress.com>
View all headers

On Wed, 3 Jul 2024 05:55:40 +0000, Gerhard Strangar wrote:

>
> You cursor movement is the vector you get when you multiply the matrix
> with the input vector:
>
> /x'\ /x\
> |y'| = M * |y|
> \1 / \1/
>

Great! Thanks!

These are essentially 2-D homogeneous coordinates.

Now that I know this I can experiment with different
settings and observe the effect via:

xinput --set-prop 8 ...

1

rocksolid light 0.9.8
clearnet tor