Logitech M570 - ArchWiki

Jump to content
From ArchWiki

The Logitech M570 is a wireless trackball mouse. It is quite similar to the Logitech Marble Mouse.

## Installation

No additional drivers need to be installed.

## Configuration

### Temporary

The factual accuracy of this article or section is disputed.

Reason: Why not with libinput? See Libinput#Configuration (Discuss in Talk:Logitech M570)

If the system is not using libinput, the mouse can be configured on the fly using a script such as:

    #!/bin/sh
    dev="Logitech M570"
    we="Evdev Wheel Emulation"

    xinput set-int-prop "$dev" "$we" 8 1
    xinput set-int-prop "$dev" "$we Button" 8 3

### Permanent

To make the changes permanent, either a script such as the one above has to be run at startup/login or changes can be made to the Xorg configuration files. When changing the configuration files, the product name as reported by Xorg has to be known and used. Typically, your M570 should be known as `Logitech M570`, however, it can be valuable to check `/var/log/Xorg.0.log` for the match product name.

In the two configuration files below, only the essential changes are made to get button scrolling to work. Other worthwhile options are:

- `Option "EmulateWheelInertia" "5"`
- `Option "EmulateWheelTimeout" "100"`

It is important to find out if your system is using only evdev or libinput and evdev. See Xorg#Input devices for how to check the driver in use.

Changes made to Xorg configuration files do not take effect until the X session is restarted. To restart the X session, simply log out from your window manager and log back in.

#### Using libinput

Create a configuration file for libinput to recognise it:

    /etc/X11/xorg.conf.d/41-libinput.conf

    Section "InputClass"
            Identifier      "Logitech M570"
            MatchProduct    "Logitech M570"
            Driver          "libinput"
            Option          "ScrollMethod" "button"
            Option          "ScrollButton" "3"
    	Option		"MiddleEmulation" "on"
    EndSection

#### Using evdev

Create a configuration file for evdev to recognise it:

    /etc/X11/xorg.conf.d/10-evdev.conf

    Section "InputClass"
        Identifier      "Logitech M570"
        MatchProduct    "Logitech M570"
        Driver          "evdev"
        Option "EmulateWheel" "true"
        Option "EmulateWheelButton" "3"
    EndSection

## See also

- Scroll Like A Ninja - Logitech M570 Trackball & Linux Mint
- Ubuntu documentation

Category:

- Mice

Hidden category:

- Pages or sections flagged with Template:Accuracy