$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Trackball Scroll Setup Ubuntu 18.04 Guide

September 29, 2019 | By the+gnu+linux+evangelist.

Getting Started

  1. 3. Finding out Device Name

    So to Display Devices List
    Run:

    Copy
    xinput list

    Select & Copy Device’s Name with Ctrl+x.

    Xinput Ubuntu Tutorial - Devices List

    Or simply take note of the Device’s ID.

  2. 4. Setting up Xinput Device Emulation

    Now to Enable Xinput Device Emulation on Ubuntu
    First, to list the available Properties run:

    Copy
    xinput list-props "[DEVICENAME]"

    Or alternatively:

    Copy
    xinput list-props [DEVICEID]

    So in this case for instance:

    Copy
    xinput list-props "Kensington      Kensington Expert Mouse"

    Or else:

    Copy
    xinput list-props 13
    Xinput Ubuntu Tutorial - Devices List

    But if the “Wheel Emulation” Property is Not Found then you have to configure Evdev in Xorg like:

    Copy
    sudo cp /usr/share/X11/xorg.conf.d/10-evdev.conf /etc/X11/xorg.conf.d/

    And then Reboot with:

    Copy
    sudo reboot

    Next to set up a Trackball Wheel Scroll, first enable it:

    Copy
    xinput --set-prop "Kensington      Kensington Expert Mouse" "Evdev Wheel Emulation" 1

    So alternatively easier using the ID like:

    Copy
    xinput --set-prop 13 "Evdev Wheel Emulation" 1

    And then set the Target Button:

    Copy
    xinput --set-prop 13 "Evdev Wheel Emulation Button" 2

    How to Find the Trackball Button ID

    Here Find Device Button on Ubuntu
    How to Find the Trackball Button Number on Ubuntu Linux
  3. 5. Making Permanent Config

    Last, to make a Permanent Xinput Configuration File
    For a Single User using the nano editor, put your both Commands into:

    Copy
    nano ~/.xsessionrc

    Ctrl+x to Save & Exit from nano Editor.
    The setup should be consistent also after rebooting.

Contents