70-mouse.hwdb revision 0213a26f656d72ac83eb201f2104726fcfe60eaa
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# This file is part of systemd.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# Database for the DPI setting of mice, trackballs, other pointer devices that
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# cannot be queried directly.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# The lookup keys are composed in:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# Note: The format of the "mouse:" prefix match key is a
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# contract between the rules file and the hardware data, it might
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# change in later revisions to support more or better matches, it
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# is not necessarily expected to be a stable ABI.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# Match string format:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# mouse:<subsystem>:v<vid>p<pid>:name:<name>:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# Supported subsystems: usb, bluetooth
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# vid/pid as 4-digit hex lowercase vendor/product
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# if vid/pid is unavailable, use
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# mouse:*:name:<name>:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# if name is unavailable, use
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# mouse:<subsystem>:v<vid>p<pid>:*
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# For example, the following 5 matches all match the same mouse:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# mouse:usb:v17efp6019:name:Lenovo Optical USB Mouse:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# mouse:usb:*:name:Lenovo Optical USB Mouse:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# mouse:usb:v17efp6019:*
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# mouse:*:name:Lenovo Optical USB Mouse:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# DPI settings are specified as
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# MOUSE_DPI=<dpi>[@<frequency>]
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# Where <dpi> is the resolution in dots per inch, and <frequency> the
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# optional sampling frequency in Hz.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# The value of MOUSE_DPI is:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# - a single integer for single-resolution mice, e.g.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# MOUSE_DPI=800
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# or, if the frequency is known:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# MOUSE_DPI=800@120
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# - a space-separated list of resolutions for multi-resolution mice.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# The default resolution must be prefixed by an asterisk, the resultions
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# in the database must be as shipped by the manufacturer. e.g.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# MOUSE_DPI=400 *800 2000
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# The order of resolutions is as configured by the HW manufacturer or in
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# ascending order, whichever appropriate.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# The frequency must be given to either none or all resolutions. If the
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# device supports multiple frequencies, the order of items is
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# MOUSE_DPI=r1@f1 r2@f1 r3@f1 r1@f2 r2@f2 r3@f2
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# If the default manufacturer-set resolution is unclear, a resolution of
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# 800 or 1000 should be set as default, if available. If neither is
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# available, choose the "middle" resolution value of those available.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# The list may contain a single item which must be marked with an
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# Local changes to the a non-default resolution of the mouse (e.g. through
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# third-party software) must not be entered into this file, use a local
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# hwdb instead.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# To add local entries, create a new file
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# and add your rules there. To load the new rules execute (as root):
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# udevadm hwdb --update
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# udevadm trigger /dev/input/eventXX
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# where /dev/input/eventXX is the mouse in question. If in
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# doubt, simply use /dev/input/event* to reload all input rules.
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# If your changes are generally applicable, open a bug report on
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# http://bugs.freedesktop.org/enter_bug.cgi?product=systemd
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer# and include your new rules, a description of the device, and the
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer##########################################
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer##########################################
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterermouse:usb:v17efp6019:name:Lenovo Optical USB Mouse:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer MOUSE_DPI=1000@125
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer##########################################
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer##########################################
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterermouse:usb:v046dpc24e:name:Logitech G500s Laser Gaming Mouse:
0213a26f656d72ac83eb201f2104726fcfe60eaaPeter Hutterer MOUSE_DPI=400@500 *800@500 2000@500