{"id":568,"date":"2011-01-28T00:30:38","date_gmt":"2011-12-28T05:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/adding-udev-rules\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-12-28T05:51:50","slug":"adding-udev-rules","status":"publish","type":"post","link":"\/blog\/index.php\/adding-udev-rules\/","title":{"rendered":"Adding udev rules"},"content":{"rendered":"<p>I inspected all the devices i wanted to add to udev using &#8220;udevadm info&#8221; for each path i knew was the device i needed.<br \/>\nudevadm info -a -p $(udevadm info -q path -n \/dev\/video1)<br \/>\nudevadm info -a -p $(udevadm info -q path -n \/dev\/video0)<br \/>\nudevadm info -a -p $(udevadm info -q path -n \/dev\/input\/mouse1)<br \/>\nudevadm info -a -p $(udevadm info -q path -n \/dev\/input\/event1)<br \/>\nudevadm info -a -p $(udevadm info -q path -n \/dev\/input\/event2)<br \/>\nudevadm info -a -p $(udevadm info -q path -n \/dev\/input\/mouse2)<br \/>\nThen just created the udev file \/etc\/udev\/rules. d\/95-my.rules<br \/>\nKERNEL==&#8221;video*&#8221;, SUBSYSTEM==&#8221;video4linux&#8221;, ATTR{name}==&#8221;saa7133*&#8221;, SYMLINK+=&#8221;tvcard&#8221;<br \/>\nSUBSYSTEM==&#8221;video4linux&#8221;, ATTR{name}==&#8221;gspca main driver&#8221;, SYMLINK+=&#8221;geniuscam&#8221;<br \/>\nKERNEL==&#8221;mouse*&#8221;, ATTRS{name}==&#8221;Microsoft Basic Optical Mouse&#8221;, SYMLINK+=&#8221;input\/cecimouse&#8221;<br \/>\nKERNEL==&#8221;event*&#8221;, ATTRS{name}==&#8221;AT Translated Set 2 keyboard&#8221;, SYMLINK+=&#8221;input\/cecikb&#8221;<br \/>\nKERNEL==&#8221;event*&#8221;, ATTRS{name}==&#8221;Logitech Logitech USB Keyboard&#8221;, SYMLINK+=&#8221;input\/betokb&#8221;<br \/>\nKERNEL==&#8221;mouse*&#8221;, ATTRS{name}==&#8221;USB Optical Mouse&#8221;, SYMLINK+=&#8221;input\/betomouse&#8221;<br \/>\nreboot, and i get pretty aliases for all my devs \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I inspected all the devices i wanted to add to udev using &#8220;udevadm info&#8221; for each path i knew was the device i needed. udevadm info -a -p $(udevadm info -q path -n \/dev\/video1) udevadm info -a -p $(udevadm info -q path -n \/dev\/video0) udevadm info -a -p $(udevadm info -q path -n \/dev\/input\/mouse1) udevadm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-568","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=568"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/568\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=568"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}