<div dir="ltr">So, I am going to go down a major rabbit hole, one I might regret. <div><br></div><div>I am taking on the project of rewriting all of the community scanning documentation on <a href="http://help.ubuntu.com/community/">help.ubuntu.com/community/</a></div><div><br></div><div>I am going to remove all of the legacy (pre Ubuntu 16) documentation to some sort of legacy pages, and basically start from scratch. </div><div><br></div><div>As I do major revisions, I will be posting here asking for feedback.</div><div><br></div><div>Looking at our general documentation, maybe I can update some of that as I go too?  The website has dates of 2008 for the last major update...</div><div><br></div><div>Anyways, wish me luck.  <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 23, 2019 at 8:03 PM Steven Santos <<a href="mailto:steven@simplycircus.com">steven@simplycircus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I neglected to send this reply to the list, only Allan got it...<div><br></div><div>But also see #225 in the linked thread.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">Steven Santos</strong> <span dir="auto"><<a href="mailto:steven@simplycircus.com" target="_blank">steven@simplycircus.com</a>></span><br>Date: Sun, Jun 23, 2019 at 6:22 PM<br>Subject: Re: [sane-devel] Ubuntu documentation<br>To: m. allan noah <<a href="mailto:kitno455@gmail.com" target="_blank">kitno455@gmail.com</a>><br></div><br><br><div dir="ltr">Several scanners are having this issue, and the work-around has been to do the upload as root, then scan as a regular user.  It appears to be a permissions issue, but people have thus far been unable to solve it with udev rules.<div><br></div><div><a href="https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1728012" target="_blank">https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1728012</a>  posts 41 and 45 as an example.  <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jun 23, 2019 at 1:14 PM m. allan noah <<a href="mailto:kitno455@gmail.com" target="_blank">kitno455@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I don't know of any reason that a sane backend would require the<br>
firmware upload to be done as root. All of sane runs in user space.<br>
Can you please elaborate?<br>
<br>
allan<br>
<br>
On Sun, Jun 23, 2019 at 12:33 PM Steven Santos <<a href="mailto:steven@simplycircus.com" target="_blank">steven@simplycircus.com</a>> wrote:<br>
><br>
> I am working on some new documentation for the various SANE issues in Ubuntu 19.xx. I think this covers most of the known issues and work-arounds.<br>
><br>
> One issue I struggle with is the need of some scanners to get a firmware update that it seems only root can do.  I am thinking of adding a script to run sane as root every hour to deal with that (then the scanner will work for normal users, as root did the firmware upload...) but that has obvious implications.<br>
><br>
> Any and all feedback welcome.<br>
><br>
><br>
><br>
><br>
> =Use the most up-to-date repository=<br>
> Many SANE issues can be resolved by using the most up-to-date version of SANE.  You can add the SANE projects Ubuntu repository by running the following commands:<br>
><br>
> : sudo add-apt-repository 'deb <a href="http://launchpad.net/~rolfbensch/+archive/ubuntu/sane-git" rel="noreferrer" target="_blank">launchpad.net/~rolfbensch/+archive/ubuntu/sane-git</a> main'<br>
><br>
> : sudo apt update<br>
><br>
> : sudo apt upgrade<br>
><br>
> = The USB3 Issue =<br>
> One of the most common issues Ubuntu users are having with scanners on SANE involves the use of USB3 ports.  The easiest solution is to move your scanner to a USB2 port.  If that is not possible, try running the following command:<br>
><br>
> '$ SANE_USB_WORKAROUND=1 simple-scan'<br>
><br>
> If simple-scan works as expected, you can edit the  /etc/systemd/user.conf file to change this environmental condition as follows:<br>
><br>
> : sudo nano /etc/systemd/user.conf<br>
><br>
> and at the bottom of the file add the line:<br>
><br>
> : DefaultEnvironment=SANE_USB_WORKAROUND=1<br>
><br>
> =The sym link and udev tricks=<br>
> Sane drivers are usually located under /usr/lib/sane/, however, the system also looks for them under the /usr/lib/x86_64-linux-gnu/sane directory.  Many scanner issues can be resolved by placing the proper sym links.<br>
><br>
> Likewise, Ubuntu 18.04 and above require the proper udev rules.  The following are the work-arounds for specific brands and models.  If your brand and model is not listed, the same techniques may give you a template for getting your scanner to work.<br>
><br>
> == Brother ==<br>
><br>
> Most Brother DCP and MFP's work with the latest Brother drivers (09/13/2018 or later), however these should be installed using the install script and following the manufacturer directions found on the download page to the letter. If you need to update a driver (say, to the 01/21/2019 driver), uninstall the old driver before installing the new one.<br>
><br>
> === Installation ===<br>
><br>
> Step1. Download the tool.(linux-brprinter-installer-*.*.*-*.gz)<br>
><br>
> The tool will be downloaded into the default "Download" directory. (e.g. /home/(LoginName)/Download)<br>
><br>
> : cd ~/Download<br>
><br>
> : gunzip linux-brprinter-installer-*.*.*-*.gz*<br>
><br>
> : sudo su<br>
> : bash linux-brprinter-installer-*.*.*-* {Brother machine name} *<br>
><br>
> The driver installation will start. Follow the installation screen directions.<br>
><br>
>  When you see the message "Will you specify the DeviceURI ?",<br>
><br>
>  For USB Users: Choose N(No)<br>
>  For Network Users: Choose Y(Yes) and DeviceURI number.<br>
><br>
> The install process may take some time. Please wait until it is complete.<br>
><br>
> === brscan, brscan2, brscan3 ===<br>
> If the above process does not work as expected, you can use the following sym link and udev trick to get most Brother scanners operational.<br>
><br>
> : sudo ln -sfr /usr/lib64/libbr* /usr/lib/x86_64-linux-gnu<br>
> : sudo ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane<br>
> : sudo touch /etc/udev/rules.d/59-udev-local.rules<br>
> : sudo nano /etc/udev/rules.d/59-udev-local.rules<br>
><br>
> Add the following to that file:<br>
> : # Brother brscan devices<br>
> : ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="*", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"<br>
><br>
> === brscan4 ===<br>
> : apt-get update<br>
> : apt-get upgrade<br>
> : apt-get install libsane-extras<br>
><br>
> install brscan4 as per the instructions above.<br>
><br>
> : sudo ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane<br>
> The following command  will give you the VendorId (04f9) and ProductID of your scanner:<br>
> : lsusb<br>
><br>
> Create '/etc/udev/hwdb.d/brother4.hwdb' using the following command<br>
> : sudo touch /etc/udev/hwdb.d/brother4.hwdb<br>
><br>
> Use nano to enter the needed info into that file:<br>
> : sudo nano /etc/udev/hwdb.d/brother4.hwdb<br>
><br>
> The content of that file should be<br>
> : usb:v04f9pYYYY*<br>
> : libsane_matched=yes<br>
><br>
> Replacing YYYY with the product ID you got earlier.  The entry for the Brother MFC-1910W would be "usb:v04f9p035d", where 04f9 is vendor ID, and 035d is the product ID.<br>
><br>
> edit '/etc/sane.d/dll.d/libsane-extras' to add the brother4 backend<br>
> : nano  /etc/sane.d/dll.d/libsane-extras<br>
> At the end of that file, add:<br>
> : brother4<br>
><br>
><br>
> == Epson ==<br>
><br>
> === General ===<br>
> This fixes the majority of Epson scanners, however you may still need to use the IScan work-around.<br>
><br>
> Start by installing the latest Epson 1.3.38 driver released 10-18-2018.  This driver uses the multiarch folders and works out of the box for many Epson scanners.<br>
><br>
> If this does not work,<br>
><br>
> : sudo cp /usr/lib/sane/libsane-epk* /usr/lib/x86_64-linux-gnu/sane/<br>
> : sudo nano /etc/udev/rules.d/79-udev-epson.rules<br>
><br>
> Content:<br>
> '# chmod device EPSON group<br>
> # ACTION=="add", ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0666"<br>
> ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0777"'<br>
><br>
> For an Epson network scanner,<br>
> Edit the file /etc/sane.d/epson2.conf<br>
> Modify the line<br>
> net 192.168.xxx.yyy (to match your scanner IP)<br>
><br>
> === Epson Iscan ===<br>
> : sudo ln -sfr /usr/lib/sane/libsane-epkowa* /usr/lib/x86_64-linux-gnu/sane<br>
> : sudo touch /etc/udev/rules.d/79-udev-epson.rules<br>
><br>
> content:<br>
> # chmod device EPSON group<br>
> ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="*", MODE="0777"<br>
><br>
> == Samsung ==<br>
> === Samsung M2070 ===<br>
><br>
> : sudo ln -sfr /usr/lib/sane/libsane-smfp* /usr/lib/x86_64-linux-gnu/sane'<br>
> : sudo touch '/etc/udev/rules.d/59-smfp_samsung.rules<br>
><br>
> content:<br>
> ATTRS{idProduct}=="2070", ENV{libsane_matched}="yes"<br>
><br>
> == Xerox ==<br>
> === Xerox Workcentre 3225 ===<br>
> : sudo ln -sfr /usr/lib/sane/libsane-smfp* /usr/lib/x86_64-linux-gnu/sane<br>
> : sudo adduser $USER lp'<br>
> --<br>
> sane-devel mailing list: <a href="mailto:sane-devel@alioth-lists.debian.net" target="_blank">sane-devel@alioth-lists.debian.net</a><br>
> <a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/sane-devel" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/sane-devel</a><br>
> Unsubscribe: Send mail with subject "unsubscribe your_password"<br>
>              to <a href="mailto:sane-devel-request@lists.alioth.debian.org" target="_blank">sane-devel-request@lists.alioth.debian.org</a><br>
<br>
<br>
<br>
-- <br>
"well, I stand up next to a mountain- and I chop it down with the edge<br>
of my hand"<br>
</blockquote></div>
</div></div></div>
</blockquote></div>