Skip site navigation (1)Skip section navigation (2)
From:      Walter Hafner <hafner@informatik.tu-muenchen.de>
To:        questions@freebsd.org
Subject:   Scanner, sane, pt and 3.1
Message-ID:  <14156.4922.102472.856320@hprbg5.informatik.tu-muenchen.de>

next in thread | raw e-mail | index | archive | help
Quick question:

Are there known problems with sane 1.0.1, SCSI scanners and the pt
driver under 3.1 STABLE?

I have HP ScanJet 4c, configured as pt0:

w3proj3# camcontrol devlist -v
...
<HP C2520A 3503>                   at scbus0 target 5 lun 0 (pass2,pt0)
...

w3proj3# ll /dev/pt0
crw-rw----  2 root  wheel   61,   0 May 26 16:12 /dev/pt0

I hardlinked /dev/pt0 to /dev/scanner

However, trying to run "scanimage" from the "sane 1.0.1" port results
in:

w3proj3# scanimage -d hp
scanimage: open of device hp failed: Invalid argument


I did a "ktrace" on scanimage and found the following:


  ...
  5428 scanimage CALL  open(0xefbfc6f8,0x2,0x280b6a8c)
  5428 scanimage NAMI  "/dev/scanner"
  5428 scanimage RET   open 5
  5428 scanimage CALL  ioctl(0x5,CAMGETPASSTHRU,0xefbfc004)
  5428 scanimage RET   ioctl -1 errno 19 Operation not supported by device
  5428 scanimage CALL  madvise(0x8057000,0x1000,0x5)
  5428 scanimage RET   madvise 0
  5428 scanimage CALL  madvise(0x8056000,0x1000,0x5)
  5428 scanimage RET   madvise 0
  5428 scanimage CALL  close(0x4)
  5428 scanimage RET   close 0
  5428 scanimage CALL  madvise(0x804e000,0x2000,0x5)
  5428 scanimage RET   madvise 0
  5428 scanimage CALL  write(0x2,0xefbfd418,0x36)
  5428 scanimage GIO   fd 2 wrote 54 bytes
       "scanimage: open of device hp failed: Invalid argument
       "
  5428 scanimage RET   write 54/0x36
  ...


"Not supported by device" doesn't sound good to me. Isn't the pt driver
supposed to be used for scanners?

The scanner worked under 2.2.8 and sane 0.something

Any hints appreciated.

-Walter


-- 
Walter Hafner__________________________________ hafner@in.tum.de
         <A href=http://www.tum.de/~hafner/>*CLICK*</A>;
  "Multiple exclamation marks," he went on, shaking his head,
"are a sure sign of a diseased mind."  (Terry Pratchett, "Eric")


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14156.4922.102472.856320>