<div dir="ltr">On Mon, May 6, 2013 at 9:12 PM, Mike Cloaked <span dir="ltr"><<a href="mailto:mike.cloaked@gmail.com" target="_blank">mike.cloaked@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I have a strange scanner failure to try to resolve, and I am hoping that an expert on this list may be able to help me fix the problem.<div>

<br></div><div>I have a Samsung SCX-4500W multifunction printer that is plugged in to the usb port of my main machine running arch linux x86_64.  The printer part works fine with the Splix driver, but the scanner fails to work.</div>


<div><br></div><div>When I unplug the device and plug it into a laptop running arch linux, it works fine. On a second laptop also running arch linux the scanner functions also work fine (xsane). However plugging the same device back in to my main desktop the scanner fails to work.</div>


<div><br></div><div>Some information is as follows:</div><div><br></div><div>sane-find-scanner works as either root or user and yields lines including:</div><div><br></div><div><div>found USB scanner (vendor=0x04e8 [Samsung Electronics Co., Ltd.], product=0x342b [SCX-4500W Series]) at libusb:001:007</div>


<div>  # Your USB scanner was (probably) detected. It may or may not be supported by</div><div>  # SANE. Try scanimage -L and read the backend's manpage.</div><div><br></div><div>scanimage -L works the first time I issue the command but then subsequently fails:</div>


<div><br></div><div><div>scanimage -L</div><div>device `xerox_mfp:libusb:001:006' is a Samsung Samsung SCX-4500W Series multi-function peripheral</div><div><br></div><div><div>scanimage -L</div><div><br></div>
<div>No scanners were identified. If you were expecting something different,</div><div>check that the scanner is plugged in, turned on and detected by the</div><div>sane-find-scanner tool (if appropriate). Please read the documentation</div>


<div>which came with this software (README, FAQ, manpages).</div></div><div><br></div><div>The device is listed correctly with the lsusb command:</div><div>Bus 001 Device 007: ID 04e8:342b Samsung Electronics Co., Ltd <br>


</div><div><br></div><div><br></div><div>The file /etc/sane.d/xerox_mfp.conf does have the correct line for the device:</div><div><div># Samsung SCX-4500W</div><div>usb 0x04e8 0x342b</div><div><br>
</div><div>The system log files contain lines like:</div><div>May  6 16:43:27 localhost kernel: [ 8041.053060] usb 1-4: usbfs: interface 1 claimed by usblp while 'xsane' sets config #1<br></div><div>
<br></div><div>I have tried unplugging the device and replugging it but nothing I do ever seems to make any difference.  I also removed the .sane directory from the user and started from new and nothing changed.</div>
<div><br></div><div>The udev rules file seems fine and in less /lib64/udev/rules.d/53-sane.rules the lines relevant to the device are:</div><div><br></div><div><div># Samsung SCX-4500W</div><div>ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="342b", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"</div>


<div><br></div><div><br></div><div>The system is fully up to date, and runs with systemd. The two laptops one of which is x86_64 and the other i386 are both the same arch setup, and both up to date. They work but the main machine does not.</div>


<div><br></div><div>Can anyone suggest how I might be able to narrow down where the problem may lie?</div><div><br></div><div>Many thanks for any help.</div></div><span><font color="#888888"><div><br></div>
<div><br></div></font></span></div></div></div></div></blockquote><div>Having tried to follow up on the post I saw about the Pulstek OpticBook 3800, I tried to do something analogous but it did not seem to work so I probably did not have the correct syntax.</div>
<div><br></div><div style>However I tried (in arch linux):</div><div style><br></div><div style>sudo sane-find-scanner<br></div><div style><br></div><div style>which gave the device as:</div><div style>found USB scanner (vendor=0x04e8 [Samsung Electronics Co., Ltd.], product=0x342b [SCX-4500W Series]) at libusb:001:009<br>
</div><div style><br></div><div style>Then I tried the command:</div><div style>sudo SANE_DEBUG_XEROX_MFP=256  scanimage -d xerox_mfp:libusb:001:009 -v -v -v -v -v 2> scan-debug-1.txt<br></div><div style><br></div><div style>
and the file contains:</div><div style><br></div><div style><div>[sanei_debug] Setting debug level of xerox_mfp to 256.</div><div>[xerox_mfp] sane_init: Xerox backend (build 13), version != null, authorize != null</div><div>
[xerox_mfp] sane_xerox_mfp_open: 'libusb:001:009'</div><div>[xerox_mfp] sane_xerox_mfp_get_devices: (nil), 1</div><div>[xerox_mfp] list_one_device: libusb:001:009</div><div>[xerox_mfp] usb_dev_open: open 0x21e93c0</div>
<div>[xerox_mfp] :: dev_command(INQUIRY[0x12], 70)</div><div>[xerox_mfp] usb_dev_request: sanei_usb_read_bulk: Error during device I/O</div><div>[xerox_mfp] dev_command: dev_request: Error during device I/O</div><div>[xerox_mfp] usb_dev_close: closing dev 0x21e93c0</div>
<div>[xerox_mfp] list_one_device: dev_inquiry(libusb:001:009): Error during device I/O</div><div>scanimage: open of device xerox_mfp:libusb:001:009 failed: Invalid argument</div><div>Calling sane_exit</div><div>scanimage: finished</div>
<div><br></div><div style>Did I get the command syntax incorrect?  I would appreciate any help with this - but this seems to be unable to open the device so I don't know how to proceed to get some definitive information about that is going wrong.</div>
<div style><br></div><div style>Thanks for any help.</div></div></div><br><br clear="all"><div><br></div>-- <br>mike c
</div></div>