<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Marcin Juszkiewicz - scanner</title><link href="https://marcin.juszkiewicz.com.pl/" rel="alternate"/><link href="https://marcin.juszkiewicz.com.pl/tag/scanner/feed/" rel="self"/><id>https://marcin.juszkiewicz.com.pl/</id><updated>2007-11-08T14:22:00+01:00</updated><entry><title>USB scanner and udev</title><link href="https://marcin.juszkiewicz.com.pl/2007/11/08/usb-scanner-and-udev/" rel="alternate"/><published>2007-11-08T14:22:00+01:00</published><updated>2007-11-08T14:22:00+01:00</updated><author><name>Marcin Juszkiewicz</name></author><id>tag:marcin.juszkiewicz.com.pl,2007-11-08:/2007/11/08/usb-scanner-and-udev/</id><summary type="html">&lt;p&gt;&lt;span class="caps"&gt;USB&lt;/span&gt; scanners are quite popular today, many &amp;#8216;all-in-one&amp;#8217; devices contains them. But if you use distribution where permissions are done &amp;#8216;per group&amp;#8217; like it is in Debian you can get hit by lack of access to your&amp;nbsp;scanner.&lt;/p&gt;
&lt;p&gt;Solution is: write own udev rule. It may sounds scary but in …&lt;/p&gt;</summary><content type="html">&lt;p&gt;&lt;span class="caps"&gt;USB&lt;/span&gt; scanners are quite popular today, many &amp;#8216;all-in-one&amp;#8217; devices contains them. But if you use distribution where permissions are done &amp;#8216;per group&amp;#8217; like it is in Debian you can get hit by lack of access to your&amp;nbsp;scanner.&lt;/p&gt;
&lt;p&gt;Solution is: write own udev rule. It may sounds scary but in reality it is quite&amp;nbsp;simple.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run &lt;code&gt;udevmonitor&lt;/code&gt; (it needs root access&amp;nbsp;so &lt;code&gt;sudo udevmonitor&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Unplug and plug scanner. You will get lot of output from udev monitor &amp;#8212; only one line is&amp;nbsp;needed:&lt;/p&gt;
&lt;p&gt;&lt;span class="caps"&gt;UDEV&lt;/span&gt;  [1194523774.343853] add      /devices/pci0000:00/0000:00:13.0/usb1/1-1/usb_endpoint/usbdev1.7_ep00&amp;nbsp;(usb_endpoint)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Now it is time to gather more information about our device.&amp;nbsp;Run &lt;code&gt;udevinfo -a -p LINE_FROM_PREVIOUS_POINT&lt;/code&gt; and look at output. For &lt;a href="/2006/11/26/epson-stylus-dx4000/"&gt;my Epson Stylus &lt;span class="caps"&gt;DX4000&lt;/span&gt;&lt;/a&gt; it&amp;nbsp;shows:&lt;/p&gt;
&lt;p&gt;[&amp;#8230;.]
  looking at parent device &amp;#8216;/devices/pci0000:00/0000:00:13.0/usb1/1-1&amp;#8217;:
[&amp;#8230;.]
    &lt;span class="caps"&gt;SUBSYSTEMS&lt;/span&gt;==&amp;#8221;usb&amp;#8221;
[&amp;#8230;.]
    &lt;span class="caps"&gt;ATTRS&lt;/span&gt;{manufacturer}==&amp;#8221;&lt;span class="caps"&gt;EPSON&lt;/span&gt;&amp;#8221;
    &lt;span class="caps"&gt;ATTRS&lt;/span&gt;{product}==&amp;#8221;&lt;span class="caps"&gt;USB&lt;/span&gt; &lt;span class="caps"&gt;MFP&lt;/span&gt;&amp;#8221;&amp;nbsp;[&amp;#8230;.]&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Edit (as root) one of files in /etc/udev/rules.d/ directory (best way is creating own one &amp;#8212; scanner.rules for example) and add there something like that (of course set &amp;#8220;manufacturer&amp;#8221; and &amp;#8220;product&amp;#8221; to value shown in previous&amp;nbsp;step)&lt;/p&gt;
&lt;p&gt;&lt;span class="caps"&gt;SUBSYSTEMS&lt;/span&gt;==&amp;#8221;usb&amp;#8221;, &lt;span class="caps"&gt;ATTRS&lt;/span&gt;{manufacturer}==&amp;#8221;&lt;span class="caps"&gt;EPSON&lt;/span&gt;&amp;#8221;, &lt;span class="caps"&gt;ATTRS&lt;/span&gt;{product}==&amp;#8221;&lt;span class="caps"&gt;USB&lt;/span&gt; &lt;span class="caps"&gt;MFP&lt;/span&gt;&amp;#8221;, &lt;span class="caps"&gt;GROUP&lt;/span&gt;=&amp;#8221;scanner&amp;#8221;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add youself into &amp;#8220;scanner&amp;#8221;&amp;nbsp;group: &lt;code&gt;sudo addgroup YOURACCOUNTNAME scanner&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;Unplug and plug scanner &amp;#8212; now it should be in proper&amp;nbsp;group.&lt;/li&gt;
&lt;li&gt;Logout and login so system will notice that you are now also in &amp;#8220;scanner&amp;#8221;&amp;nbsp;group.&lt;/li&gt;
&lt;li&gt;Launch your favourite scanning utility &amp;#8212; I use Kooka from &lt;span class="caps"&gt;KDE&lt;/span&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As you see whole procedure can be done in few minutes without&amp;nbsp;problems.&lt;/p&gt;</content><category term="debian"/><category term="scanner"/><category term="udev"/></entry><entry><title>Epson Stylus DX4000</title><link href="https://marcin.juszkiewicz.com.pl/2006/11/26/epson-stylus-dx4000/" rel="alternate"/><published>2006-11-26T14:45:00+01:00</published><updated>2006-11-26T14:45:00+01:00</updated><author><name>Marcin Juszkiewicz</name></author><id>tag:marcin.juszkiewicz.com.pl,2006-11-26:/2006/11/26/epson-stylus-dx4000/</id><summary type="html">&lt;p&gt;Today I installed my brand new printer^Wmultifunction device: Epson Stylus &lt;span class="caps"&gt;DX4000&lt;/span&gt;. This is my second printer &amp;#8212; few years ago I had Epson Stylus 200 by few&amp;nbsp;weeks.&lt;/p&gt;
&lt;p&gt;Device is nicely supported under Linux &amp;#8212; printing via &lt;span class="caps"&gt;CUPS&lt;/span&gt; works without problems and there are lot of config parameters if someone want …&lt;/p&gt;</summary><content type="html">&lt;p&gt;Today I installed my brand new printer^Wmultifunction device: Epson Stylus &lt;span class="caps"&gt;DX4000&lt;/span&gt;. This is my second printer &amp;#8212; few years ago I had Epson Stylus 200 by few&amp;nbsp;weeks.&lt;/p&gt;
&lt;p&gt;Device is nicely supported under Linux &amp;#8212; printing via &lt;span class="caps"&gt;CUPS&lt;/span&gt; works without problems and there are lot of config parameters if someone want to tweak. Scanner works with &lt;span class="caps"&gt;SANE&lt;/span&gt; &amp;#8212; I only had to add one line&amp;nbsp;to &lt;code&gt;/etc/sane.d/epson.conf&lt;/code&gt; to get it&amp;nbsp;recognized:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;usb 0x04b8 0x082f
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To get it working under Debian following stuff needs to be&amp;nbsp;installed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;cupsys-driver-gutenprint (driver for&amp;nbsp;printer)&lt;/li&gt;
&lt;li&gt;quiteinsane or kooka (scanning&amp;nbsp;application)&lt;/li&gt;
&lt;li&gt;escputil (utility to printer&amp;nbsp;managment)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thanks goes to &lt;a href="http://linuxprinting.org"&gt;LinuxPrinting&lt;/a&gt; team for their website &amp;#8212; especially for article about suggested&amp;nbsp;printers.&lt;/p&gt;</content><category term="debian"/><category term="printing"/><category term="scanner"/></entry></feed>