From: Remco Date: Sun, 04 Jun 2006 16:24:44 +0000 Subject: Re: [PATCH] Update writing udev rules documentation Message-Id: <20060604162446.B45761EF2@mail.d-compu.nl> List-Id: References: <4481B0C5.80301@gentoo.org> In-Reply-To: <4481B0C5.80301@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org > Comments appreciated. > This may be an useful addition, gave me a bit of a headache the past two days. Both the lp and the usblp driver create devices named lp[n], though the kernel messages suggest an usblp[n] device for the USB printer. When both a parallel port printer and an USB printer are attached they will both be called lp0 leaving the system with only one device node. (So one of the printers will be missing) So far the best way to make a distinction seemed to be filtering on subsystem, e.g.: # printers KERNEL="lp[0-9]*", SUBSYSTEM="printer", NAME="printer/lpt%n" KERNEL="lp[0-9]*", SUBSYSTEM="usb", NAME="printer/usb%n" This way parallel port printers will be called 'printer/lpt[n]' and USB printers 'printer/usb[n]'. _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel