• Re: Need Help With Libinput

    From mummycullen@mummycullen@gmail-dot-com.no-spam.invalid (MummyChunk) to alt.os.linux on Wed Oct 16 17:24:25 2024
    From Newsgroup: alt.os.linux


    Lester Thorpe wrote:
    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.

    The
    Coordinate Transformation Matrix in libinput is used to transform the
    input coordinates from your device to screen coordinates

    Here's a brief overview of what the values mean:

    First Row: [0.4, 0, 0] - This row scales the x-axis movement
    The value 0.4 means the x-axis movement is scaled down by a factor
    of 0.4.

    Second Row: [0, 0.4, 0] - This row scales the y-axis movement
    Similarly, the value 0.4 means the y-axis movement is scaled down by
    a factor of 0.4.

    Third Row: [0, 0, 1] - This row typically remains unchanged and
    ensures the transformation matrix is properly defined
    .

    If you want to adjust the matrix further, you can use the xinput
    command to set new values. For example, to set a new transformation
    matrix, you might use a command like:

    sh

    xinput set-prop 8 "Coordinate Transformation Matrix" 0.3 0 0
    0 0.3 0 0 0 1

    This command would further slow down the motion by setting the scaling
    factor to 0.3 for both x and y axes.


    This is a response to the post seen at: http://www.jlaforums.com/viewtopic.php?p=668916285#668916285


    --- Synchronet 3.20a-Linux NewsLink 1.114