Commit Graph

89 Commits

Author SHA1 Message Date
Peter Hutterer
3481b5b976 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/)

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-28 08:12:30 -05:00
Anthony G. Basile
77e2c6addb rules/50-firmware.rules: remove firmware rules
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-10-31 16:45:12 -04:00
Kay Sievers
3b71759460 udev: remove userspace firmware loading support
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-13 08:27:22 -04:00
Tom Gundersen
405bccb70b udev: import the full db on MOVE events for devices without dev_t
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-10 21:30:25 -04:00
Mantas Mikulėnas
e950313484 rules: net-setup-link - remove stray linebreak
If not backslash-escaped, it splits the rule in two.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-10 21:06:17 -04:00
Tom Gundersen
30a0c571a9 rules: net-setup-link - preserve ID_NET_LINK_FILE and ID_NET_NAME after MOVE
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-09-10 21:05:42 -04:00
Anthony G. Basile
602fd80cd6 rules: bring up to date
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-08-05 10:14:50 -04:00
Tom Hirst
b856641839 rules: don't enable usb pm for Avocent devices
The Avocent KVM over IP devices doesn't work correctly with USB power
management enabled.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-07-02 09:42:05 -04:00
Kay Sievers
37f39cae3b rules: add loop-control and btrfs-control to "disk" group
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-19 08:01:37 -04:00
Kay Sievers
5e3ab83ab3 udev: assign group "input" to all input devices
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-15 08:14:30 -04:00
Kay Sievers
b4df39ea74 udev: stop using "floppy" group
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-06-15 08:13:39 -04:00
Anthony G. Basile
28b8a50320 rules: retain, but do not install 80-net-setup-link.rules
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-02 09:42:54 -05:00
Anthony G. Basile
c51c39f7a9 Enable some missed udev rules
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-28 17:14:31 -05:00
Lukas Nykryn
53f2bc3b0d udev/rules: setup tty permissions and group for sclp_line, ttysclp and 3270/tty
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-28 16:53:26 -05:00
Tom Gundersen
6a1fd0c8a9 udev: net_setup - import ID_NET_DRIVER
This will do until all net properties are imported.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-22 15:12:08 -05:00
Jan Engelhardt
547454da02 doc: update punctuation
Resolve spotted issues related to missing or extraneous commas, dashes.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-21 10:06:18 -05:00
Jóhann B. Guðmundsson
96d6c22b3b udev: add zram to the list of devices inappropriate for symlinks
udev seems to have a race condition with swapon to see which can open
/dev/zram0 first, causing swapon to fail. Seems to be most noticeable
on arm devices one out of every 7 times or something.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-02-09 08:14:56 -05:00
Anthony G. Basile
248ea81923 rules: bring up to date with upstream.
Note: some of these rules are premature because we have yet
to add udev_builtin_net_link.  These commits were authored by

	Kay Sievers
	David Herrmann
	Tom Gundersen
	Lennart Poettering
	Bastien Nocera

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-01-11 20:46:58 -05:00
Harald Hoyer
d153ba235b 80-net-name-slot.rules: only rename network interfaces on ACTION=="add"
Otherwise systemd-udevd will rename on "change" and "move" events,
resulting in weird renames in combination with biosdevname

systemd-udevd[355]: renamed network interface eth0 to em1
systemd-udevd[355]: renamed network interface eth1 to p3p2
systemd-udevd[357]: renamed network interface eth0 to p3p1
systemd-udevd[429]: renamed network interface p3p2 to ens3f1
systemd-udevd[428]: renamed network interface p3p1 to ens3f0
systemd-udevd[426]: renamed network interface em1 to enp63s0

or

systemd-udevd[356]: renamed network interface eth0 to em1
systemd-udevd[356]: renamed network interface eth0 to p3p1
systemd-udevd[420]: renamed network interface p3p1 to ens3f0
systemd-udevd[418]: renamed network interface em1 to enp63s0
systemd-udevd[421]: renamed network interface eth1 to p3p1
2013-09-10 05:30:35 -04:00
Ian Stakenvicius
e2f82dc60f fix build system error introduced in c8cbcb8899
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-08-01 16:20:30 -04:00
Ian Stakenvicius
c8cbcb8899 provide alternative 80-drivers.rules for --disable-kmod
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-08-01 15:57:04 -04:00
Anthony G. Basile
f6571c3d64 rules: bring up to date with upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-07-30 08:48:51 -04:00
Ian Stakenvicius
35876baf30 Switch from external keymaps to internal (hwdb) keymaps
This commit imports the new internal keyboard handling from upstream.
This is a combination of many upstream commits, including those
that added code, removed old code, and updated the hwdb.
Some commits (hwdb ones specifically) were unrelated but brought
in anyways to keep the whole hwdb consistent.  Each upstream
commit included is as follows:

9d7d42bc406a2ac04639674281ce3ff6beeda790 - internal keymap support
0c959b39175b126fdb70ae00de37ca6d9c8ca3a1 - hwdb: keyboard -- add file
e8193554925a22b63bef0e77b8397b56d63a91ff - hwdb: keyboard -- update comments
c79d894d590fc9df4861738555cc43c477e33376 - hwdb: import data
aedc2eddd16e48d468e6ad0aea2caf00c7d37365 - hwdb: keyboard update
97a9313cafccf772ce03f5ebd36fe4d9d8412583 - hwdb: drop non-existant Samsung 900XC3 from keymap
ddc77f62244bb41d5c8261517e2e1ff1b763fc94 - switch from udev keymaps to hwdb
0c3815773331b263713f4f7b9d80bc1ca159338e - also remove keymaps-force-release directory
1b6bce89b3383904d0dab619dd38bff673f7286e - keymap: re-add Logitech USB corded/cordless models
bf89b99c5a39115112c2eda4c2103e2db54988d2 - 60-keyboard.hwdb: Fix syntax error
ce39bb6909578017aa10031638e724e038f0b859 - hwdb: data update, upstream
884c86812c51479496edd50b278383d7bb67baf0 - rules: keyboard - use builtin command

All code from each of the above commits is attributed to the original
authors.

There were some adjustments made in order to support the code differences
between upstream and eudev, which was done by myself.

Also of note is that the code can still be disabled via the --disable-keymaps
configure option, which was removed from upstream.

Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-07-24 16:27:01 -04:00
Anthony G. Basile
8b06a435cc rules: updates from upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-07-06 23:02:06 -04:00
Ian Stakenvicius
3909dfd26c create /etc/udev/rules.d target on install
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-07-03 14:14:29 -04:00
Martin Pitt
98cddf4cb7 keymap: Apply to all Latitude and Precision models
https://launchpad.net/bugs/1193147

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-26 14:07:36 -04:00
Anthony G. Basile
813ad77ebb rules/95-keymap.rules: move comment since udev-test.pl fails otherwise
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-03 10:43:55 -04:00
Anthony G. Basile
4be873f22e rules: bring some rules up to date with upstream
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-03 09:36:55 -04:00
Martin Pitt
d692ac406b keymap: Add DIXONSP
https://launchpad.net/bugs/1157334
2013-06-03 09:27:15 -04:00
Martin Pitt
d1877a787c keymap: Add BenQ JoyBook
https://launchpad.net/bugs/727139
2013-06-03 09:17:04 -04:00
Martin Pitt
168b1295f9 keymap: Add Samsung 900XC3
https://launchpad.net/bugs/1012365
2013-06-03 09:15:20 -04:00
Johan Heikkilä
b557cd94be keymap: Add support for Eject button on MSI GE60/GE70 2013-06-03 09:11:53 -04:00
Martin Pitt
10f991d6a9 rules/95-keymap.rules: fix typo
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02 13:00:59 -04:00
Martin Pitt
ebbcb55a2d keymap: Add Logitech USB (iTouch)
https://launchpad.net/bugs/1152377

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02 11:25:06 -04:00
Pali Rohar
c4b8f8a920 keymap: Add HP EliteBook 8460p
Taken from
https://code.launchpad.net/~pali/ubuntu/raring/udev/hp-elitebook-8460p/+merge/157420

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02 11:23:20 -04:00
Anthony G. Basile
ab0a37ddcf rules/Makefile.am: conditionally install 80-net-name-slot.rules
We do not want to install 80-net-name-slot.rules if we
--enable-rule-generator.  In fact doing so will switch to
the predictable network interface names.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-09 12:22:42 -04:00
Anthony G. Basile
215c4a0faa rules/40-mem-null.rules: coalesce with rules/50-udev-default.rules
There is no reason to keep this rule separate and it works fine
when incuded in 50-udev-default.rules.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-07 22:52:39 -04:00
Ian Stakenvicius
9e98de5d50 Remove 75-persistent-net-generator.rules reintroduced in commit ef0ac643
75-persistent-net-generator.rules is in the rule_generator subdir, do
not try and install from here.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-04 10:28:34 -04:00
Ian Stakenvicius
85085621ba Restored the rule generator bits from udev-171
This restores the rule generator scripts for the persistent
network and optical device rule generator scripts that were
removed after udev-171, and re-introduces their installation
to the build system.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-04 10:19:35 -04:00
Anthony G. Basile
18cafe9973 Correct permissions on /dev/null and friends for 2.6.32
This sets the permissions on null, zero, full, random and urandom
to 666 which is needed for older kernels.  This is part of Gentoo's
40-gentoo.rules which can now be dropped from Gentoo's ebuild.

X-gentoo-Bug: 457868
X-gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=457868
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02 15:02:35 -04:00
Ozan Çağlayan
dfdffb7041 keymap: Remap microphone mute and touchpad toggle for Lenovo U300s
Separate out Ideapad U300s to its own line and add Microphone mute key.

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02 13:54:37 -04:00
Ozan Çağlayan
3cc17c82a6 keymap: Fix touchpad toggling on Lenovo IdeaPad U300s
IdeaPad U300s needs mapping 0xf1 to f21 just like Lenovo V480.

Signed-off-by: Martin Pitt <martinpitt@gnome.org>
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02 13:54:36 -04:00
Tom Gundersen
f3ea87f611 udev: make firmware loading optional and disable by default
Distros that whish to support old kernels should set
  --with-firmware-dirs="/usr/lib/firmware/updates:/usr/lib/firmware"
to retain the old behaviour.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02 13:54:36 -04:00
Anthony G. Basile
ef0ac643c8 rules: updates from upstream
Authors include:

	Tollef Fog Heen
	Kay Sievers
	Tom Gundersen
	Tony Camuso
	Lennart Poettering
	Martin Pitt
	Harald Hoyer
	Michal Schmidt
	Matthew Garrett

See http://cgit.freedesktop.org/systemd/systemd/log/rules

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02 13:54:21 -04:00
Martin Pitt
bbdf02f1bc keymaps: Add HP HDX 9494NR
Add touchpad and www keys:

   https://bugzilla.redhat.com/show_bug.cgi?id=757928

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-03-14 18:18:33 -04:00
Ayan George
462eddbaf8 keymap: Add support for the brower hotkey on the HP ProBook
https://bugs.launchpad.net/bugs/1105191

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-03-14 18:10:48 -04:00
Martin Pitt
d003905a5e keymap: Add Samsung 700T
https://bugzilla.redhat.com/show_bug.cgi?id=879691

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-03-14 17:53:37 -04:00
Alessandro Crismani
ec5e59d929 keymap: Update the list of Samsung Series 9 models
Currently, keymaps are provided only for the NP90X3A laptop. Samsung
introduced updated models, codenamed 900X3B, 900X3C, 900X4B, 900X4C,
which are currently not matched by udev rules. This patch includes the
newer modules in udev rules and move the samsung-n90x3a file defining
keys to a more generic samsung-series-9 file.

The patch was tested on a 900X4C laptop, and other people reported
that the rules also work for 900X3B and 900X3C ones.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-03-14 17:49:02 -04:00
Ian Stakenvicius
a9ef3ca764 Make blkid optional
Embedded systems may not want to include util-linux when they do
not intend to use blkid functionality

Modified from original author's commit to not install
60-persistent-storage.rules if blkid is disabled

systemd commit f553b3b1074151200187df916427a1468186435e
Original author: Anders Olofsson <Anders.Olofsson@axis.com>

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28 17:42:47 -05:00
Ian Stakenvicius
e34b05dc4c Port new net_id capabilities from systemd-udev-197
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28 17:42:47 -05:00