Bug 502528

Summary: Batch mode does not batch because ADF is empty
Product: [Applications] Skanpage Reporter: JPT <j-p-t>
Component: generalAssignee: Alexander Stippich <a.stippich>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.12.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: scanpage config

Description JPT 2025-04-07 16:34:24 UTC
Created attachment 180070 [details]
scanpage config

SUMMARY
Batch mode does not batch because ADF is empty

STEPS TO REPRODUCE
1. open Skanpage
2. select batchmode with delay
3. press scan

OBSERVED RESULT
It scans. Then waits N seconds. Then shows the image scanned, and says "document feed empty" and stops. 

EXPECTED RESULT
after pressing SCAN keep scanning every N seconds from flatbed until aborted. regardless if the ADF is empty or not.

SOFTWARE/OS VERSIONS
Linux: Manjaro Stable kernel 6.6.84-1-MANJARO
KDE Plasma Version: 6.3.3-1
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION
I recently switched to skanpage because it's the best scan app available. I tried simple-scan which totally sucks. I used skanlite before but this seems to be abandoned. skanlite every few months changed its behavior. sometimes my ADF worked. sometimes it didn't. sometimes batch mode worked. sometimes it didn't. 
so this probably is a driver or backend issue. how could i find out? 
My scanner is a network attached Samsung SCX-4726N.

I also tried 25.07.70 from AUR skanpage-git. Same result.

BTW: please permanently show error messages like "Document feed empty" why? because when you are at the scanner waiting for it to scan but it doesn't, you will totally miss the error message.
Comment 1 Alexander Stippich 2025-05-03 14:04:31 UTC
For clarification: you are using the flatbed for scanning, have selected flatbed as the scan source, but it still aborts with the ADF empty error message?

Do you know which SANE backend you are using? eSCL or sane-airscan?
Comment 2 JPT 2025-05-03 16:30:54 UTC
Exactly. 
I moved from the samsung to the xerox-mfp driver. that fixes this issue. but instead it is terribly slow sending the scan data over network.

how do I find out which backend i am using?
Comment 3 Alexander Stippich 2025-05-03 18:51:12 UTC
backend = driver. So this is definitely something wrong with the samsung one, which should be reported there.

As this is a network scanner, you could try use the generic eSCL or sane-airscan backends to see if it is any better. Sane-airscan usually is a separate package which you need to install.
Comment 4 JPT 2025-05-04 09:46:07 UTC
Wow. didn't know they finally agreed on some standard interface and there is a generic driver available. 
airscan shows the scanned image instantly. 

but still there is the problem of how or when to abort an endless batch scan. 
maybe you could add a max count?
or only abort the scan in between the actual scan processes?

still something crashes every time I cancel a scan.
I have to power cycle the printer after every batch scan.
Comment 5 Alexander Stippich 2025-06-01 10:59:37 UTC
For the cancel of the scan, see bug 501412

I am closing this bug here for the batch mode