Package: sane-utils
Version: 1.2.1-2
Severity: normal
X-Debbugs-Cc: debianbugreport_20240411+s...@cobbaut.be

Dear Maintainer,

   * What led up to the situation?

Using a Kyocera ECOSYS M5526cdw printer to scan hundreds of pages. Using the
flatbed, not the document feeder.

Any scan of a page works fine, but I have to wait about two minutes before
scanning the next page, otherwise it fails with "device busy".


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

scanimage, with or without the --batch option, only allows for one scan. A
second scan will fail, providing it is done within about two minutes.

For example this command will scan perfectly:
$ scanimage -d 'escl:http://192.168.178.32:9095/eSCL'  --format jpeg --mode
Gray -o page1.jpg

This command, executed after flipping the page on the scanner, fails as
follows:
$ scanimage -d 'escl:http://192.168.178.32:9095/eSCL'  --format jpeg --mode
Gray -o page2.jpg
scanimage: sane_start: Device busy
 503 Service Unavailable 503 Service Unavailable 503 Service Unavailable 503
Service Unavailable

Using the vendor kyocera-sane package makes no difference.
Using 'escl:http://192.168.178.32:9095' or 'escl:http://192.168.178.32:9096' as
the device name makes no difference.
The result is identical when using xscanimage in GIMP 2.10 or xsane in GIMP
2.8.

According to one Reddit user on r/Debian it is a known problem.


   * What outcome did you expect instead?

I was hoping to use a script to quickly scan hundreds of pages into jpg.

for i in $(seq -w 12 100)
do
 scanimage --format jpeg --mode Gray -o page$i.jpg
 #sleep 120
done

But the script only works when the sleep 120 command is included, which limits
my scanning ability to 30 pages per hour.



-- System Information:
Debian Release: 12.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-28-amd64 (SMP w/24 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sane-utils depends on:
ii  adduser                3.134
ii  debconf [debconf-2.0]  1.5.82
ii  init-system-helpers    1.65.2
ii  libavahi-client3       0.8-10
ii  libavahi-common3       0.8-10
ii  libc6                  2.36-9+deb12u4
ii  libieee1284-3          0.2.11-14
ii  libjpeg62-turbo        1:2.1.5-2
ii  libpng16-16            1.6.39-2
ii  libsane1               1.2.1-2
ii  libsystemd0            252.22-1~deb12u1
ii  libusb-1.0-0           2:1.0.26-1
ii  libxml2                2.9.14+dfsg-1.3~deb12u1
ii  update-inetd           4.53

sane-utils recommends no packages.

Versions of packages sane-utils suggests:
ii  avahi-daemon  0.8-10
ii  unpaper       7.0.0-0.1

-- Configuration Files:
/etc/sane.d/saned.conf changed:
192.168.178.0/24


-- debconf information:
  sane-utils/saned_run: false
  sane-utils/saned_scanner_group: true

Reply via email to