author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 19 Oct 2015 17:04:52 +0300 | |
changeset 1769 | cadd23f8127f |
parent 1553 | 342448057aef |
child 1905 | fba288d59662 |
permissions | -rw-r--r-- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1140
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1140
diff
changeset
|
2 |
.. include:: HEADER.rst |
1137 | 3 |
|
4 |
======= |
|
5 |
udev. |
|
6 |
======= |
|
1346
a2fbf50a43f4
Fix: Has no 'contents::' directive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
7 |
.. contents:: |
1137 | 8 |
|
9 |
About. |
|
10 |
====== |
|
11 |
||
12 |
* http://reactivated.net/writing_udev_rules.html |
|
13 |
* http://wiki.debian.org/udev |
|
14 |
* https://wiki.archlinux.org/index.php/Udev |
|
1553 | 15 |
* http://wiki.gentoo.org/wiki/Udev |
1552
a2ef410db055
Debugging udev rule.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1551
diff
changeset
|
16 |
* http://www.crashcourse.ca/wiki/index.php/Udev |
1137 | 17 |
|
1551
934b45916514
Record udev events.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
18 |
Record udev events. |
934b45916514
Record udev events.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
19 |
=================== |
934b45916514
Record udev events.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
20 |
|
934b45916514
Record udev events.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
21 |
This dump udev events to console:: |
934b45916514
Record udev events.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
22 |
|
934b45916514
Record udev events.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
23 |
$ sudo udevadm monitor |
934b45916514
Record udev events.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1346
diff
changeset
|
24 |
|
1139
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
25 |
View device capability with udev compatible format. |
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
26 |
=================================================== |
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
27 |
|
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
28 |
For Debian use:: |
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
29 |
|
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
30 |
$ /sbin/udevadm info --name=/dev/sdc --attribute-walk |
1140 | 31 |
$ udevadm info --attribute-walk --path $(udevadm info --query=path --name=/dev/ttyUSB0) |
1139
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
32 |
|
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
33 |
For other Linux use:: |
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
34 |
|
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
35 |
$ udevinfo -a -p $(udevinfo -q path -n /dev/sdc) |
376ff5f1c602
View device capability with udev compatible format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1137
diff
changeset
|
36 |
|
1552
a2ef410db055
Debugging udev rule.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1551
diff
changeset
|
37 |
Debugging udev rule. |
a2ef410db055
Debugging udev rule.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1551
diff
changeset
|
38 |
==================== |
a2ef410db055
Debugging udev rule.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1551
diff
changeset
|
39 |
:: |
a2ef410db055
Debugging udev rule.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1551
diff
changeset
|
40 |
|
a2ef410db055
Debugging udev rule.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1551
diff
changeset
|
41 |
$ sudo udevadm trigger |
a2ef410db055
Debugging udev rule.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1551
diff
changeset
|
42 |
$ sudo udevadm test $(udevadm info -n /dev/$DEV -q path) |
a2ef410db055
Debugging udev rule.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1551
diff
changeset
|
43 |