udev.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:28:53 +0200
changeset 2227 1e9323e7ec88
parent 1964 2945703c8dbd
child 2228 837f1337c59b
permissions -rw-r--r--
Removed files: I don't longer have interest on topic.

.. -*- coding: utf-8; -*-

=======
 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

List available devices
======================
::

  $ udevadm info --export-db

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)