udev.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:46:36 +0200
changeset 1905 fba288d59662
parent 1553 342448057aef
child 1912 8b81a8f0f692
permissions -rw-r--r--
Include only local subsections into TOC. This prevent duplication of TOC when build single page HTML document. Also this make unnecessary CSS hack to hide document title as top level section.

.. -*- coding: utf-8; -*-
.. include:: HEADER.rst

=======
 udev.
=======
.. contents::
   :local:

About.
======

 * http://reactivated.net/writing_udev_rules.html
 * http://wiki.debian.org/udev
 * https://wiki.archlinux.org/index.php/Udev
 * http://wiki.gentoo.org/wiki/Udev
 * http://www.crashcourse.ca/wiki/index.php/Udev

Record udev events.
===================

This dump udev events to console::

  $ sudo udevadm monitor

View device capability with udev compatible format.
===================================================

For Debian use::

  $ /sbin/udevadm info --name=/dev/sdc --attribute-walk
  $ udevadm info --attribute-walk --path $(udevadm info --query=path --name=/dev/ttyUSB0)

For other Linux use::

  $ udevinfo -a -p $(udevinfo -q path -n /dev/sdc)

Debugging udev rule.
====================
::

  $ sudo udevadm trigger
  $ sudo udevadm test $(udevadm info -n /dev/$DEV -q path)