FYI, @ramas (slocascio), fermulator (fermulator) and Alec B (castegere) instructions - slightly updated and automated for Ubuntu 18.04.1 (libsane1_1.0.27-1~experimental3).
Also, I expanded the patch to test for both "slow_back_home" and "rewind", just in case it matters for some hardware.
FYI, @ramas (slocascio), fermulator (fermulator) and Alec B (castegere) instructions - slightly updated and automated for Ubuntu 18.04.1 (libsane1_ 1.0.27- 1~experimental3 ).
Also, I expanded the patch to test for both "slow_back_home" and "rewind", just in case it matters for some hardware.
--- cut here ---
# in Synaptic, Ubuntu Settings >> Repositories, enable "Source code"
apt-get source libsane1
# eyeball first 1.0.27/ backend/ genesys. c --dry-run < genesys.c.diff
patch sane-backends-
# if the above was successful 1.0.27/ backend/ genesys. c < genesys.c.diff
patch sane-backends-
sudo apt-get build-dep libsane1 1.0.27
cd sane-backends-
./configure
sudo apt-get install fakeroot
dpkg-buildpackage -rfakeroot -uc -b
cd ..
sudo rm /usr/share/ doc/libsane1/ changelog. Debian. gz 1.0.27- 1~experimental3 ubuntu2_ amd64.deb
sudo dpkg -i libsane1_
# reboot
--- cut here ---