SimulPiscator / AirSane

Publish SANE scanners to MacOS, Android, and Windows via Apple AirScan.
GNU General Public License v3.0
243 stars 26 forks source link

Missing options on HP ScanJet 8200 #108

Closed jimbolaya closed 10 months ago

jimbolaya commented 11 months ago

I was trying to get this working with my ScanJet 8250.

My primary concern is that the only input source is "Feeder".

Screenshot 2023-09-14 at 8 46 21 AM

So, when I try to scan with something on the flatbed, it times out with a "no document found" error.

I also had a question about setting defaults for "Color Mode" and "Page Size" in the web interface, but those aren't as important.

SimulPiscator commented 11 months ago

Regarding the "Feeder" issue: AirSane depends on the SANE driver's options to have recognizable values. If there is no "Flatbed" or "Platen" value available, it will not display "Platen" as an option in the Web GUI. You can help me diagnosing this by posting the output of scanimage -A .

jimbolaya commented 11 months ago

Ah, of course. It's called "normal"

Output format is not set, using pnm as a default.

All options specific to device `avision:libusb:002:013':
  Scan mode:
    --mode Lineart|Dithered|Gray|16bit Gray|Color|16bit Color [Color]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --resolution 50..4800dpi (in steps of 1) [150]
        Sets the resolution of the scanned image.
    --speed 0..4 (in steps of 1) [0]
        Determines the speed at which the scan proceeds.
    --preview[=(yes|no)] [no]
        Request a preview-quality scan.
    --source Normal|Transparency|ADF Front|ADF Duplex [Normal]
        Selects the scan source (such as a document-feeder).
  Geometry:
    -l 0..216mm [0]
        Top-left x position of scan area.
    -t 0..355mm [0]
        Top-left y position of scan area.
    -x 0..216mm [216]
        Width of scan-area.
    -y 0..355mm [355]
        Height of scan-area.
    --overscan-top 0..4mm [inactive]
        The top overscan controls the additional area to scan before the paper
        is detected.
    --overscan-bottom 0..4mm [inactive]
        The bottom overscan controls the additional area to scan after the
        paper end is detected.
    --background-lines 0..50pel [inactive]
        The background raster controls the additional background lines to scan
        before the paper is feed through the scanner.
  Enhancement:
    --brightness -100..100% (in steps of 1) [0]
        Controls the brightness of the acquired image.
    --contrast -100..100% (in steps of 1) [0]
        Controls the contrast of the acquired image.
    --quality-scan[=(yes|no)] [yes]
        Turn on quality scanning (slower but better).
    --quality-cal[=(yes|no)] [yes]
        Do a quality white-calibration
    --gamma-table 0..255,... [inactive]
        Gamma-correction table.  In color mode this option equally affects the
        red, green, and blue channels simultaneously (i.e., it is an intensity
        gamma table).
    --red-gamma-table 0..255,...
        Gamma-correction table for the red band.
    --green-gamma-table 0..255,...
        Gamma-correction table for the green band.
    --blue-gamma-table 0..255,...
        Gamma-correction table for the blue band.
    --exposure 0..1000% (in steps of 1) [inactive]
        Manual exposure adjustment.
    --infra-red[=(yes|no)] [inactive]
        Enable infra-red scan mode.
    --multi-sample[=(yes|no)] [inactive]
        Enable multi-sample scan mode.
  Scan mode:
    --frame 0..0 [inactive]
        Selects the number of the frame to scan
    --power-save-time <int> [23]
        Allows control of the scanner's power save timer, dimming or turning
        off the light.
    --message <string> [] [read-only]
        This text contains device specific options controlled by the user on
        the scanner hardware.
    --nvram-values <string> [Vendor: HP      
Model: C9930A          
Firmware: 1.03
Manufacturing date: 12854-13908-21552
First scan date: 2056-13623-12800
Flatbed scans: 102302976
Pad scans: 609
ADF simplex scans: 825110579] [read-only]
        Allows access obtaining the scanner's NVRAM values as pretty printed
        text.
    --paper-length[=(yes|no)] [inactive]
        Newer scanners can utilize this paper length to detect double feeds. 
        However some others (DM152) can get confused during media flush if it
        is set.
    --flip-page[=(auto|yes|no)] [inactive]
        Tells page-flipping document scanners to flip the paper back to its
        original orientation before dropping it in the output tray.  Turning
        this off might make scanning a little faster if you don't care about
        manually flipping the pages afterwards.
SimulPiscator commented 11 months ago

I've now added "Normal" as an alias for "Flatbed". Regarding defaults in the web interface, these are relatively easy to spot and change in scanner/scannerpage.cpp, line 138-140. Let me know if things are working for you now.

jimbolaya commented 11 months ago

Works now. Yay.

I'll take a look at the defaults too, but mostly I wanted to be able to scan from my Mac.

This should also work for iOS as well, but the folks that have them aren't here at the moment.