Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

HP Scanjet Professional 1000 Mobile Scanner — Standalone Linux Driver

A standalone Linux userspace driver and CLI (hp1000-scan) for the HP Scanjet Professional 1000 Mobile Scanner (03f0:3c05, Genesys Logic GL846 ASIC, dual-CIS single-pass duplex sheetfed scanner) — a device not supported by SANE, HPLIP, or VueScan.

Features

  • Direct userspace USB communication via libusb-1.0 (no kernel module or SANE rebuild required)
  • Strictly read-only access to the scanner's onboard NVRAM and SPI Flash factory calibration (exposure times, AFE offsets, and per-pixel shading tables are read directly from the scanner and never modified)
  • Single-pass duplex (front + rear simultaneously), front-only, and rear-only scanning
  • Color (24-bit RGB), Grayscale (8-bit), and Lineart / B&W (1-bit thresholded)
  • 300 DPI and 600 DPI optical resolution, plus arbitrary software downscaling (50–600 DPI)
  • Local software flat-field calibration (hp1000-scan calibrate) using a blank white sheet to correct aged CIS segments and brighten paper backgrounds without touching scanner flash
  • Automatic paper-end detection for variable-length sheets (receipts, business cards, Letter, A4, Legal)
  • Outputs PNG, JPEG, TIFF, or single/multi-page PDF with embedded DPI metadata
  • Paper sensor status, physical Scan button waiting, paper grab/feed, and manual eject commands

Requirements

  • Linux with libusb-1.0
  • Python 3.10+ with numpy and Pillow

Install system dependencies for your distro:

# Arch / EndeavourOS
sudo pacman -S libusb python-numpy python-pillow

# Debian / Ubuntu
sudo apt install libusb-1.0-0 python3-venv python3-numpy python3-pil

# Fedora
sudo dnf install libusb1 python3-numpy python3-pillow

Installation

Quick install (recommended)

make install

This creates an isolated virtualenv at ~/.local/share/hp1000-scan/venv (avoiding PEP 668 system-Python conflicts), symlinks ~/.local/bin/hp1000-scan, and installs the udev rule for non-root USB access. Run make help to see all targets (install-app, install-dev, install-udev, uninstall, check-deps, test).

Manual setup

  1. Install the udev rule (for non-root access):
    sudo install -Dm644 udev/60-hp-scanjet-1000.rules /etc/udev/rules.d/60-hp-scanjet-1000.rules
    sudo udevadm control --reload-rules
    sudo udevadm trigger --subsystem-match=usb
    
  2. Install the package:
    python3 -m venv .venv
    .venv/bin/pip install .
    
    (Or run directly from the repo without installing via python3 -m hp1000.cli ....)

Usage

# Check USB speed, paper sensor, Scan button, and local calibration status
hp1000-scan status

# Read NVRAM counters/serial and verify onboard SPI flash calibration profiles
hp1000-scan info

# Optional: calibrate local flat-field white balance with a blank 8.5" white sheet
# (saves to ~/.config/hp1000-scan/calibration.npz; never writes to scanner flash)
hp1000-scan calibrate
hp1000-scan calibrate --dpi 600   # optional dedicated 600 DPI profile

# Scan front side at 300 DPI color (waits for paper if slot is empty)
hp1000-scan scan -o page.png

# Single-pass duplex scan to a 2-page PDF
hp1000-scan scan --side duplex --dpi 300 --mode color -o document.pdf

# Single-pass duplex scan to PNG (writes document_front.png and document_rear.png)
hp1000-scan scan --side duplex --dpi 300 --mode color -o document.png

# Wait for paper + physical Scan button press, 600 DPI grayscale
hp1000-scan scan --wait-button --dpi 600 --mode gray -o scan.png

# Bypass local calibration for raw linear hardware output
hp1000-scan scan --no-calibrate -o raw.png

# Manually grab or eject a sheet
hp1000-scan feed
hp1000-scan eject

Python API

from pathlib import Path
from hp1000 import ScanConfig, ScanJet1000, save_scan_result, scan_document

with ScanJet1000() as scanner:
    result = scan_document(
        scanner,
        ScanConfig(dpi=300, mode="color", side="duplex"),
    )
    saved_paths = save_scan_result(result, Path("output.pdf"))

Troubleshooting

  • Permission denied opening USB device: Re-run make install-udev and unplug/replug the scanner.
  • Vertical streaks or uneven bands: Gently wipe both CIS glass strips inside the scanner cover with a lint-free cloth, then run hp1000-scan calibrate with a clean blank white sheet.
  • Paper background looks slightly gray: Run hp1000-scan calibrate once; by default the scanner outputs linear RGB, and local flat-field calibration normalizes paper white to ~250/255 (adjustable via --target-white and --gamma).

Hardware & Protocol Documentation

See docs/PROTOCOL.md for the reverse-engineered GL846 USB vendor control protocol, SPI Flash calibration table layout, and duplex de-interleaving details.

Disclaimer & License

This is an independent, unofficial open-source project and is not affiliated with or endorsed by HP Inc. No proprietary HP software or firmware binaries are included or required.

Licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages