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

Trackball Scroll KDE Plasma 5 Setup – Step-by-step

August 9, 2023 | By the+gnu+linux+evangelist.

Setting up

  1. 2. Installing Xinput

    Now to Install Xinput Utility for KDE Plasma 5
    On Debian/Ubuntu based:

    sudo apt install xinput xserver-xorg-input-evdev xserver-xorg-input-libinput xserver-xorg-input-mouse

    On Fedora/CentOS/Mageia:

    sudo dnf xorg-x11-server-utils install xorg-x11-drv-evdev xorg-x11-drv-libinput

    On openSUSE/SLED:

    sudo zypper in xinput xf86-input-evdev xf86-input-libinput

    On Arch Linux based:

    sudo pacman -Sy xorg-xinput xf86-input-evdev xf86-input-libinput xf86-input-mouse
  2. 3. Finding out Device Name

    So to Display Devices List
    Run:

    xinput list

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

    Xinput KDE Plasma 5 Tutorial - Devices List

    Or simply take note of the Device’s ID.
    But if No Device Name but “xwayland” on GNOME Wayland then instead follow the linked Guide:

    Wayland xinput output

    How to Set up Trackball Scroll Wheel Emulation on GNOME Wayland

    Trackball Scroll Wheel Wayland Guide
  3. 4. Setting up Xinput Device Emulation

    Now to Enable Xinput Device Emulation on KDE Plasma 5
    First, to list the available Properties run:

    xinput list-props "[DEVICENAME]"

    Or alternatively:

    xinput list-props [DEVICEID]

    So in this case for instance:

    xinput list-props "Kensington      Kensington Expert Mouse"

    Or else:

    xinput list-props 13
    Xinput KDE Plasma 5 Tutorial - Devices List

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

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

    And then Reboot with:

    sudo reboot

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

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

    So alternatively easier using the ID like:

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

    And then set the Target Button:

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

    How to Find the Trackball Button ID

    Find Device Button on KDE Plasma 5
  4. 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:

    nano ~/.xsessionrc

    Ctrl+x to Save & Exit from nano Editor.
    So the setup should be consistent also after Reboot.

    xsessionrc setup

Contents