Files
firestuff/2006-03-02-udev-is-your-friend.html
2019-04-25 02:45:09 +00:00

18 lines
1.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--# set var="title" value="udev is your friend" -->
<!--# set var="date" value="2006-03-02" -->
<!--# include file="include/top.html" -->
<p>Well, not completely. Most of us have had a udev install eat /dev and make the machine unbootable at least once. However, when it works, its really neat.</p>
<p>We have cash register machines at CORESense with two touchscreens attached; one facing the cashier and one facing the customer (they work as kiosks when theyre not in use for checkout). The problem is that the touchscreen inputs are USB event interfaces which are sequentially numbered, and the startup order isnt always the same. This means that you cant give X a device name, because it changes every bootup. Enter udev.</p>
<p>I put this in /etc/udev/rules.d/coresense.rules:</p>
<pre><code>KERNEL==”event[0-9]*”, SYSFS{name}==”Elo *”, NAME=”coresense/elo-$sysfs{uniq}”
</code></pre>
<p>This matches event interface devices with the given name pattern, and creates device nodes in /dev/coresense with the device serial number in the device name. Poof - repeatable names.</p>
<!--# include file="include/bottom.html" -->