summaryrefslogtreecommitdiffstats
path: root/rules (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rules: re-add cciss rulesAlex Crawford2015-06-111-2/+3
| | | | | The original commit (1aff206) doesn't explain why these were removed. This adds them back since they are in fact needed.
* rules: whitelist xvd* devicesAlex Crawford2015-06-092-2/+2
| | | | Xen disks need to be whitelisted as well.
* Add /dev/xvd* to 60-persistent-storage whitelistEd Swierk2015-06-031-1/+1
| | | | | Without this, systemd-udevd does not create persistent storage symlinks for xen block devices.
* udev: Bring back persistant storage symlinks for bcacheDavid Mohr2015-06-011-1/+1
| | | | https://bugs.debian.org/787367
* rules: restore block watch after CHANGE eventsTom Gundersen2015-05-301-1/+1
| | | | | When processing an event, the watch is disabled, make sure it is restorted after a CHANGE event has been processed.
* rules: fix typo in block watch ruleTom Gundersen2015-05-301-1/+1
| | | | | The intention was to turn this rule from using a blacklist to a whitelist, but there was a stray '!'.
* rules: Add more firewire properties for sound, to be closer to USB and PCIAdam Goode2015-04-231-3/+6
| | | | | | | | | USB and PCI soundcards have a nice set of ID_* properties. It would be handy for firewire soundcards to have the same. Note that this removes the explicit setting of ID_ID in the firewire conditional. Because we are now setting ID_SERIAL, ID_ID will come from later in the file.
* rules: Don't use ALSA card id in ID_IDAdam Goode2015-04-231-2/+2
| | | | | | | | | | | | | | | | | The ALSA id sysattr is generated by the sound subsystem and is not a stable identifier. It is generated though some string manipulation then made unique if there is a conflict. This means that it is enumeration-dependent and shouldn't be used for ID_ID. If ID_ID is supposed to be system-unique, it is not already since for firewire it is generated from the guid and there are broken firewire devices that have duplicate guids across devices. This is tracked for PulseAudio at https://bugs.freedesktop.org/show_bug.cgi?id=90129. This is essentially a revert of systemd ed1b2d9fc7d5c5bfe2a67b0b8ff9e5ea8694268e.
* rules: finish incomplete renameZbigniew Jędrzejewski-Szmek2015-04-121-1/+1
| | | | Fixup for 51c0c2869845a058268d54c3111d55d0dd485704.
* rules: fix tests for removable stateMatthew Garrett2015-04-111-3/+3
| | | | | | | We only care about whether our direct parent is removable, not whether any further points up the tree are - the kernel will take care of policy for those itself. This enables autosuspend on devices where the root hub reports that its removable state is unknown.
* udev: builtin-keyboard: add support for EVDEV_ABS_*Peter Hutterer2015-04-112-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | Parse properties in the form EVDEV_ABS_00="<min>:<max>:<res>:<fuzz>:<flat>" and apply them to the kernel device. Future processes that open that device will see the updated EV_ABS range. This is particularly useful for touchpads that don't provide a resolution in the kernel driver but can be fixed up through hwdb entries (e.g. bcm5974). All values in the property are optional, e.g. a string of "::45" is valid to set the resolution to 45. The order intentionally orders resolution before fuzz and flat despite it being the last element in the absinfo struct. The use-case for setting fuzz/flat is almost non-existent, resolution is probably the most common case we'll need. To avoid multiple hwdb invocations for the same device, replace the hwdb "keyboard:" prefix with "evdev:" and drop the separate 60-keyboard.rules file. The new 60-evdev.rules is called for all event nodes anyway, we don't need a separate rules file and second callout to the hwdb builtin.
* 50-udev-default.rules: don't run anything but REMOVE_CMD on removeHarald Hoyer2015-03-271-0/+1
| | | | we don't want to run usb_id and input_id on ACTION=="remove"
* rules: storage - support MemoryStick (non-Pro) cardsMantas Mikulėnas2015-03-241-3/+3
| | | | These are handled by a different driver than MemoryStick Pro.
* rules: storage - whitelist partitioned MS & MMC devicesKay Sievers2015-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | On Mon, Mar 23, 2015 at 8:55 AM, Mantas Mikulėnas <grawity@gmail.com> wrote: > On Tue, Mar 17, 2015 at 11:50 PM, Kay Sievers <kay@vrfy.org> wrote: >> On Tue, Mar 17, 2015 at 5:00 PM, Mantas Mikulėnas <grawity@gmail.com> >> wrote: >> > Accidentally dropped in 1aff20687f4868575. >> > --- >> > rules/60-persistent-storage.rules | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> >> > +KERNEL!="loop*|mmcblk[0-9]*|mspblk[0-9]*|nvme*|sd*|sr*|vd*", >> > GOTO="persistent_storage_end" >> >> We can't do that, we need to ignore the mmc*rpmb devices: >> >> http://cgit.freedesktop.org/systemd/systemd/commit/?id=b87b01cf83947f467f3c46d9831cd67955fc46b9 >> >> Maybe "mmcblk*[0-9]" will work? > > Yeah, that would probably work (the names are like mmcblk0p1 etc.)
* rules: storage - don't apply rules to remove eventsTom Gundersen2015-03-241-0/+2
| | | | This line was accidentally lost in 52346b5f5424.
* rules: avoid 'device/' accessesDavid Herrmann2015-03-201-1/+1
| | | | | | We should never access parents, as the sysfs hierarchy is in no way stable. Use KERNELS== etc. to match on a parent, then access it via $attr{} (which accesses the matching device, not the current device).
* rules: fix input-name for keyboard rulesDavid Herrmann2015-03-201-1/+1
| | | | | | | | | | We match on the evdev node, but only the parent has a "name" attribute. Use $attr{device/name} to access it. This is borked since 2013, I wonder how that ever worked? Maybe this will suddenly fix all the DMI-based key detections. Thanks to Peter Hutterer for catching this!
* rules: keyboard - prefix "atkbd" match strings like we prefix the "name" stringsKay Sievers2015-03-161-1/+1
|
* rules: keyboard - only search the "input" subsystem for the modaliasKay Sievers2015-03-161-3/+3
|
* Revert "hwdb: merge atkbd into platform matches"David Herrmann2015-03-161-0/+4
| | | | | | | | | This reverts commit ba76ee29bc02879fb42c048132af8889b00220d5. As it turns out, we need to match on driver=atkbd to not load the fixups on any plugged USB devices. That is, whenever you use "name:<name>:dmi:<dmi>" style matches, you better provide a name or you're screwing things up.
* rules: keyboard - remove "platform" from commentsKay Sievers2015-03-161-2/+2
|
* hwdb: merge atkbd into platform matchesDavid Herrmann2015-03-161-5/+1
| | | | | | | | | | | | | | | | Currently, we always run hwdb 'keyboard:name:$attr{name}:$attr{[dmi/id]modalias}' as last step to match keyboards. Therefore, if nothing else matched so far, we still try the device-name+dmi combination. However, we have a special atkbd rule which is only run for atkbd as: hwdb 'keyboard:$attr{[dmi/id]modalias}' This is redundant, as we already pass the same information to hwdb in the last fallback step. This patch converts the hwdb "keyboard:dmi:*" matches to "keyboard:name:*:dmi:*" matches and drops the redundant rule.
* rules: drop redundant matchDavid Herrmann2015-03-161-1/+1
| | | | | The 60-keyboard rules are already guared by KERNEL!="event*" bail-outs, therefore, KERNELS="input*" is always true. Drop it!
* hwdb: support bluetooth keyboard fixupsDavid Herrmann2015-03-161-3/+0
| | | | | Drop the restriction not to match on bluetooth devices. They are supported just fine!
* hwdb: convert to generic input-modalias matchesDavid Herrmann2015-03-161-2/+2
| | | | | | | | | | | | | | | | There is no reason to match on usb-modaliases, if we can use the input-modalias to achieve the same. This commit changes the keyboard-lookups to not be restricted to USB, but pass all modaliases to the hwdb. Furthermore, we convert all usb:* matches to input:* matches, thus getting rid of any ambiguity if multiple usb devices are chained (or a bluetooth device / etc. is on top). Note that legacy keyboard:usb:* matches are still supported, but deprecated. If possible, please use keyboard:input:* matches instead. This is a required step to make other input devices work with 60-keyboard.hwdb. Other bus-types are often chained on usb and we want to avoid any ambiguity here if we incorrectly match on a USB hub.
* rules: merge tty and serial rules fileKay Sievers2015-03-122-18/+12
|
* rules: merge udev-late.rules filesKay Sievers2015-03-122-6/+5
|
* rules: default - remove legacy agpgartKay Sievers2015-03-121-1/+0
|
* rules: systemd - remove legacy "ram" from block device blacklistKay Sievers2015-03-121-15/+8
|
* rules: move block device rules to its own rules fileKay Sievers2015-03-122-13/+13
|
* rules: storage - relace blacklist with explicit whitelistKay Sievers2015-03-121-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.
* rules: simplify mmc RPMB handlingMartin Pitt2015-02-131-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.
* rules: Fix by-path of mmc RPMB partitions and don't blkid themMartin Pitt2015-02-131-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
* hwdb: add a touchpad hwdbPeter Hutterer2015-01-291-0/+12
| | | | | | | | | | | | | | | | | | | 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.
* rules: clean up stale CD drive mounts after ejectionMartin Pitt2015-01-281-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
* udev: merge evdev_id into input_idDavid Herrmann2015-01-151-10/+0
| | | | | There is no reason to keep both separated. We want to avoid API specific tools and instead keep generic terms like 'input'.
* udev: Add builtin/rule to export evdev information as udev propertiesCarlos Garnacho2015-01-121-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | This rule is only run on tablet/touchscreen devices, and extracts their size in millimeters, as it can be found out through their struct input_absinfo. The first usecase is exporting device size from tablets/touchscreens. This may be useful to separate policy and application at the time of mapping these devices to the available outputs in windowing environments that don't offer that information as readily (eg. Wayland). This way the compositor can stay deterministic, and the mix-and-match heuristics are performed outside. Conceivably, size/resolution information can be changed through EVIOCSABS anywhere else, but we're only interested in values prior to any calibration, this rule is thus only run on "add", and no tracking of changes is performed. This should only remain a problem if calibration were automatically applied by an earlier udev rule (read: don't). v2: Folded rationale into commit log, made a builtin, set properties on device nodes themselves v3: Use inline function instead of macro for mm. size calculation, use DECIMAL_STR_MAX, other code style issues v4: Made rule more selective v5: Minor style issues, renamed to a more generic builtin, refined rule further.
* hwdb: add rule and first entry for PS/2 micePeter Hutterer2014-12-231-0/+3
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=87037
* hwdb: add a new db for the DPI/frequency settings of micePeter Hutterer2014-11-271-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/)
* units: make sure rfkill service is bount to the actual hardwareLennart Poettering2014-11-211-1/+1
|
* /proc/sys prefixes are not necessary for sysctl anymoreZbigniew Jędrzejewski-Szmek2014-10-071-1/+1
|
* udev: import the full db on MOVE events for devices without dev_tTom Gundersen2014-09-091-2/+0
|
* rules: net-setup-link - remove stray linebreakMantas Mikulėnas2014-09-081-2/+1
| | | | If not backslash-escaped, it splits the rule in two.
* rules: net-setup-link - preserve ID_NET_LINK_FILE and ID_NET_NAME after MOVETom Gundersen2014-09-081-1/+2
|
* rules: remove firmware loading rulesZbigniew Jędrzejewski-Szmek2014-09-011-3/+0
| | | | | | | | blueness> poettering, was there a reason for not removing 50-firmware.rules when you nuked userland firmware loading? Followup for v216-119-gbe2ea723b1.
* rules: allow systemd to manage loop device partitionsKevin Wells2014-07-311-1/+1
| | | | | | | | | | SYSTEMD_READY is currently set to 0 for all loop devices (loop[0-9]*) that do not have a backing_file. Partitioned loop devices (ex. loop0p1), however, are matched by this rule and excluded by systemd even though they are active devices. This change adds an additional check to the rule, ensuring that only top level loop devices (loop[0-9]+$) are excluded from systemd.
* rules: consistently use "?*" instead of "*?"Kay Sievers2014-07-151-1/+1
|
* rules: don't enable usb pm for Avocent devicesTom Hirst2014-06-271-4/+0
| | | | | The Avocent KVM over IP devices doesn't work correctly with USB power management enabled.
* rules: add loop-control and btrfs-control to "disk" groupKay Sievers2014-06-181-0/+2
|
* udev: assign group "input" to all input devicesKay Sievers2014-06-121-0/+1
|