aboutsummaryrefslogtreecommitdiff
path: root/rules
Commit message (Collapse)AuthorAgeFilesLines
...
* rules: move block device rules to its own rules fileKay Sievers2015-03-183-13/+14
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: storage - relace blacklist with explicit whitelistKay Sievers2015-03-181-15/+16
| | | | | | | | | | | | | | | | Newly added kernel drivers repeatedly pass our blacklist and cause trouble for the devices, because they do not expect to be examined by udev's default rules which include blkid. This turns the blacklist into a whitelist. Device type which need support for additional symlinks need to be added to the whitelist now. Note, that the by-id, by-path symlinks are only intended for hotpluggable devices. There is no reason for exotic, or for statically configured devices to provide them. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: simplify mmc RPMB handlingv3.0Martin Pitt2015-03-011-6/+2
| | | | | | | | We don't actually want a by-path/ symlink for MMC RPMB devices, so just add them to the blacklist. This will prevent creating wrong by-path links and blkid'ing those. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: Fix by-path of mmc RPMB partitions and don't blkid themMartin Pitt2015-03-011-1/+5
| | | | | | | | | | | | | | | | Linux 3.10+ exposes RPMB (Replay Protected Memory Block) partitions of MMC devices [1] ; trying to read them with blkid or other unspecific means will cause kernel buffer I/O errors and timeouts. So don't run blkid on these. Also ensure that /dev/disk/by-path creates proper symlinks and exposes the -rpmb partition separately, instead of letting the "normal" partition symlink point to the rpbm device (this is a race condition). [1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=090d25fe224c0 https://launchpad.net/bugs/1333140 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* src/udev/udev-builtin.c: remove legacy optional keymapAnthony G. Basile2015-02-111-5/+1
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* src/udev/udev-builtin-kmod.c: remove the modprobe alt to kmod codeAnthony G. Basile2015-02-112-19/+1
|
* rule_generator: remove legacy codeAnthony G. Basile2015-02-111-5/+1
|
* hwdb: add a touchpad hwdbPeter Hutterer2015-02-082-0/+13
| | | | | | | | | | | | | | | | | | | | | Currently used to tag devices in the new Lenovo *50 series and the X1 Carbon 3rd. These laptops re-introduced the physical trackpoint buttons that were missing from the *40 series but those buttons are now wired up to the touchpad. The touchpad now sends BTN_0, BTN_1 and BTN_2 for the trackpoint. The same button codes were used in older touchpads that had dedicated scroll up/down buttons. Input drivers need to work around this and thus know what they're dealing with. For the previous gen we introduced INPUT_PROP_TOPBUTTONPAD in the kernel, but the resulting mess showed that these per-device quirks should really live in userspace. The list currently includes the X1 Carbon 3rd PNPID, others will be added as get to know which PNPID they have. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: clean up stale CD drive mounts after ejectionMartin Pitt2015-02-081-0/+5
| | | | | | | | | | | | | | | | Ejecting a CD with the hardware drive button only causes a change uevent, but the device node stays around (just without a medium). Pick up these uevents and mark the device as SYSTEMD_READY=0 on ejection, so that systemd stops the device unit and consequently all mount units on it. On media insertion, mark the device as SYSTEMD_READY=1 again. https://bugs.freedesktop.org/show_bug.cgi?id=72206 https://bugzilla.opensuse.org/show_bug.cgi?id=909418 https://bugs.archlinux.org/task/42071 https://bugs.launchpad.net/bugs/1168742 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* hwdb: add rule and first entry for PS/2 micePeter Hutterer2014-12-291-0/+3
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=87037 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* hwdb: add a new db for the DPI/frequency settings of micePeter Hutterer2014-11-282-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* rules/50-firmware.rules: remove firmware rulesAnthony G. Basile2014-10-311-3/+0
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev: remove userspace firmware loading supportKay Sievers2014-09-131-5/+0
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev: import the full db on MOVE events for devices without dev_tTom Gundersen2014-09-101-2/+0
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: net-setup-link - remove stray linebreakMantas Mikulėnas2014-09-101-2/+1
| | | | | | If not backslash-escaped, it splits the rule in two. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: net-setup-link - preserve ID_NET_LINK_FILE and ID_NET_NAME after MOVETom Gundersen2014-09-101-1/+2
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: bring up to dateAnthony G. Basile2014-08-053-8/+12
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: don't enable usb pm for Avocent devicesTom Hirst2014-07-021-4/+0
| | | | | | | The Avocent KVM over IP devices doesn't work correctly with USB power management enabled. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: add loop-control and btrfs-control to "disk" groupKay Sievers2014-06-191-0/+2
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev: assign group "input" to all input devicesKay Sievers2014-06-151-0/+1
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev: stop using "floppy" groupKay Sievers2014-06-151-1/+0
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: retain, but do not install 80-net-setup-link.rulesAnthony G. Basile2014-03-021-1/+0
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Enable some missed udev rulesAnthony G. Basile2014-02-281-0/+2
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev/rules: setup tty permissions and group for sclp_line, ttysclp and 3270/ttyLukas Nykryn2014-02-281-0/+3
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev: net_setup - import ID_NET_DRIVERTom Gundersen2014-02-221-0/+2
| | | | | | This will do until all net properties are imported. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* doc: update punctuationJan Engelhardt2014-02-211-1/+1
| | | | | | Resolve spotted issues related to missing or extraneous commas, dashes. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* udev: add zram to the list of devices inappropriate for symlinksJóhann B. Guðmundsson2014-02-091-1/+1
| | | | | | | | 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>
* rules: bring up to date with upstream.Anthony G. Basile2014-01-114-14/+25
| | | | | | | | | | | | | 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>
* 80-net-name-slot.rules: only rename network interfaces on ACTION=="add"Harald Hoyer2013-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | 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
* fix build system error introduced in c8cbcb8899v1.2Ian Stakenvicius2013-08-011-1/+1
| | | | Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
* provide alternative 80-drivers.rules for --disable-kmodIan Stakenvicius2013-08-012-0/+18
| | | | Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
* rules: bring up to date with upstreamAnthony G. Basile2013-07-305-247/+4
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* Switch from external keymaps to internal (hwdb) keymapsIan Stakenvicius2013-07-242-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* rules: updates from upstreamAnthony G. Basile2013-07-063-6/+4
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* create /etc/udev/rules.d target on installIan Stakenvicius2013-07-031-0/+3
| | | | Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
* keymap: Apply to all Latitude and Precision modelsMartin Pitt2013-06-261-1/+1
| | | | | | https://launchpad.net/bugs/1193147 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules/95-keymap.rules: move comment since udev-test.pl fails otherwiseAnthony G. Basile2013-06-031-1/+2
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* rules: bring some rules up to date with upstreamAnthony G. Basile2013-06-033-14/+8
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* keymap: Add DIXONSPMartin Pitt2013-06-031-0/+2
| | | | https://launchpad.net/bugs/1157334
* keymap: Add BenQ JoyBookMartin Pitt2013-06-031-1/+1
| | | | https://launchpad.net/bugs/727139
* keymap: Add Samsung 900XC3Martin Pitt2013-06-032-2/+2
| | | | https://launchpad.net/bugs/1012365
* keymap: Add support for Eject button on MSI GE60/GE70Johan Heikkilä2013-06-031-0/+1
|
* rules/95-keymap.rules: fix typoMartin Pitt2013-06-021-1/+1
| | | | Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* keymap: Add Logitech USB (iTouch)Martin Pitt2013-06-021-0/+1
| | | | | | https://launchpad.net/bugs/1152377 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
* keymap: Add HP EliteBook 8460pPali Rohar2013-06-021-0/+1
| | | | | | | | 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>
* rules/Makefile.am: conditionally install 80-net-name-slot.rulesAnthony G. Basile2013-04-091-1/+5
| | | | | | | | 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>
* rules/40-mem-null.rules: coalesce with rules/50-udev-default.rulesAnthony G. Basile2013-04-073-5/+3
| | | | | | | 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>
* Remove 75-persistent-net-generator.rules reintroduced in commit ef0ac643Ian Stakenvicius2013-04-041-1/+0
| | | | | | | 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>
* Restored the rule generator bits from udev-171Ian Stakenvicius2013-04-041-101/+0
| | | | | | | | | 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>
* Correct permissions on /dev/null and friends for 2.6.32Anthony G. Basile2013-04-022-0/+5
| | | | | | | | | | | 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>