Hewlett Packard ScanJet 2300c

Différence entre les versions 5 et version actuelle

Résumé : Reconnaissance du scanner HP ScanJet 2300c sur la Debian

Modifié(e) :

< Il y a une option intéressante, celle permettant d'éteindre la lampe dans un délai spécifié, une minute au minimum:

à

> Il y a une option intéressante, celle permettant d'éteindre la lampe dans un délai spécifié, une minute au minimum:


Tags: hardware

Ce scanner est reconnu sans difficultés sur la Lenny, à l'exception des 2 boutons frontaux qui devraient permettre de lancer le scan ou d'imprimer (ne rêvons pas).

  gv@fantasio:~$ lsusb
  Bus 001 Device 003: ID 03f0:0901 Hewlett-Packard ScanJet 2300c
  gv@fantasio:~$ scanimage  -L
  device `genesys:libusb:001:003' is a Hewlett Packard ScanJet 2300c flatbed  scanner

Extrait de dmesg:

 [ 3586.584040] usb 1-2: new full speed USB device using uhci_hcd and address 2
 [ 3586.766031] usb 1-2: configuration #1 chosen from 1 choice
 [ 3586.771619] usb 1-2: New USB device found, idVendor=03f0, idProduct=0901
 [ 3586.771628] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=12
 [ 3586.771631] usb 1-2: Product: hp scanjet scanner
 [ 3586.771634] usb 1-2: Manufacturer: Hewlett-Packard
 [ 3586.771636] usb 1-2: SerialNumber: CN2CDS10VX

scanimage avec l'option -h affiche les options propres à ce périphériques.

 gv@fantasio:~$ scanimage -h
  (...)
 Options specific to device `genesys:libusb:001:002':
  Scan Mode:
    --mode Color|Gray|Lineart [Gray]
        Selects the scan mode (e.g., lineart, monochrome, or color).
    --source Flatbed|Transparency Adapter [inactive]
        Selects the scan source (such as a document-feeder).
    --preview[=(yes|no)] [no]
        Request a preview-quality scan.
    --depth 8|16 [8]
        Number of bits per sample, typical values are 1 for "line-art" and 8
        for multibit scans.
    --resolution 1200|600|300|150|75dpi [300]
        Sets the resolution of the scanned image.
  Geometry:
    -l 0..215.9mm [0]
        Top-left x position of scan area.
    -t 0..295mm [0]
        Top-left y position of scan area.
    -x 0..215.9mm [215.9]
        Width of scan-area.
    -y 0..295mm [295]
        Height of scan-area.
  Extras:
    --lamp-off-time 0..60 [15]
        The lamp will be turned off after the given time (in minutes). A value
        of 0 means, that the lamp won't be turned off.
    --threshold 0..100% (in steps of 1) [inactive]
        Select minimum-brightness to get a white point
    --disable-interpolation[=(yes|no)] [no]
        When using high resolutions where the horizontal resolution is smaller
        than the vertical resolution this disables horizontal interpolation.
    --color-filter Red|Green|Blue [Green]
        When using gray or lineart this option selects the used color.

Il y a une option intéressante, celle permettant d'éteindre la lampe dans un délai spécifié, une minute au minimum:

  gv@fantasio:~$ scanimage -n --lamp-off-time 1

Ne pas oublier le -n, sinon un scan est initié, et le résultat au format pnm est transmis sur la sortie standard.

  gv@fantasio:~$ scanimage  -v > test.pnm
  scanimage: scanning image of size 2549x3484 pixels at 8 bits/pixel
  scanimage: acquiring gray frame
  scanimage: min/max graylevel value = 42/255
  scanimage: read 8880716 bytes in total
  gv@fantasio:~$ identify test.pnm 
  test.pnm PNM 2549x3484 2549x3484+0+0 PseudoClass 256c 8-bit 8.46935mb

Bizarrement, l'option 'preview' ne donne pas une image différente de l'utilisation par défaut:

  gv@fantasio:~$ scanimage --preview=yes -v > test.pnm
  scanimage: scanning image of size 2549x3484 pixels at 8 bits/pixel
  scanimage: acquiring gray frame
  scanimage: min/max graylevel value = 43/255
  scanimage: read 8880716 bytes in total
  gv@fantasio:~$ identify test.pnm 
  test.pnm PNM 2549x3484 2549x3484+0+0 PseudoClass 256c 8-bit 8.46935mb