Systemd/rules
Peter Hutterer 0213a26f65 hwdb: add a new db for the DPI/frequency settings of mice
Pointer acceleration for relative input devices (mice, trackballs, etc.)
applies to the deltas of the device. Alas, those deltas have no physical
reference point - a delta of 10 may be caused by a large movement of a
low-dpi mouse or by a minute movement of a high-dpi mouse.
Which makes pointer acceleration a bit useless and high-dpi devices
essentially unusable.

In an ideal world, we could read the DPI from the device directly and work
with that. In the world we actually live in, we need to compile this list
manually. This patch introduces the database, with the usual match formats
and a single property to be set on a device: MOUSE_DPI

That is either a single value for most mice, or a list of values for mice
that can change resolution at runtime. The exact format is detailed in the
hwdb file.

Note that we're explicitly overshooting the requirements we have for
libinput atm. Frequency could be detected in software and we don't
actually use the list of multiple resolutions (because we can't detect
when they change anyway). However, we might as well collect those values
from the get-go, adding/modifying what will eventually amount to hundreds
of entries is a bit cumbersome.

Note: we rely on the input_id builtin to tag us as mouse first, ordering
of the rules is important.

(David: fixed up typos and moved hwdb file into ./hwdb/)
2014-11-27 12:30:08 +01:00
..
.gitignore move imported udev into place 2012-04-04 05:05:07 +02:00
42-usb-hid-pm.rules rules: don't enable usb pm for Avocent devices 2014-06-27 20:02:15 +02:00
50-udev-default.rules rules: add loop-control and btrfs-control to "disk" group 2014-06-18 03:37:32 +02:00
60-cdrom_id.rules udev: move all unconditionally installed rules to rules/ 2012-04-14 20:10:03 +02:00
60-drm.rules rules: simply 60-drm.rules 2013-11-03 16:17:14 +01:00
60-keyboard.rules udev: keyboard - also hook into "change" events 2014-05-26 09:30:21 +08:00
60-persistent-alsa.rules move imported udev into place 2012-04-04 05:05:07 +02:00
60-persistent-input.rules rules: Fix persistent input symlinks for interface 00 2012-10-11 08:21:17 +02:00
60-persistent-serial.rules move imported udev into place 2012-04-04 05:05:07 +02:00
60-persistent-storage-tape.rules move imported udev into place 2012-04-04 05:05:07 +02:00
60-persistent-storage.rules gpt-auto-generator: rename root device node symlink to /dev/gpt-auto-root 2014-03-11 17:43:41 +01:00
60-persistent-v4l.rules udev: move all unconditionally installed rules to rules/ 2012-04-14 20:10:03 +02:00
61-accelerometer.rules udev: move all unconditionally installed rules to rules/ 2012-04-14 20:10:03 +02:00
64-btrfs.rules udev: add btrfs support 2012-09-17 13:54:03 +02:00
70-mouse.rules hwdb: add a new db for the DPI/frequency settings of mice 2014-11-27 12:30:08 +01:00
75-net-description.rules rules: net, tty description - ask hwdb explicitly for pci data 2013-07-21 16:33:27 +02:00
75-probe_mtd.rules build-sys: make loadable module support optional 2012-11-20 19:35:27 +01:00
75-tty-description.rules rules: net, tty description - ask hwdb explicitly for pci data 2013-07-21 16:33:27 +02:00
78-sound-card.rules udev: add hardware database support 2012-10-23 16:43:32 +02:00
80-drivers.rules rules: drivers - do not reset RUN list 2014-01-03 01:32:03 +01:00
80-net-setup-link.rules udev: import the full db on MOVE events for devices without dev_t 2014-09-09 15:03:49 +02:00
95-udev-late.rules move imported udev into place 2012-04-04 05:05:07 +02:00
99-systemd.rules.in units: make sure rfkill service is bount to the actual hardware 2014-11-21 01:20:57 +01:00
Makefile backlight: add minimal tool to save/restore screen brightness across reboots 2013-08-14 01:57:02 +02:00