From owner-freebsd-questions Wed May 26 8:29:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tuminfo2.informatik.tu-muenchen.de (tuminfo2.informatik.tu-muenchen.de [131.159.0.81]) by hub.freebsd.org (Postfix) with ESMTP id 0A23A14E7D for ; Wed, 26 May 1999 08:29:20 -0700 (PDT) (envelope-from hafner@informatik.tu-muenchen.de) Received: from hprbg5.informatik.tu-muenchen.de ([131.159.0.200] EHLO hprbg5.informatik.tu-muenchen.de ident: root [port 1446]) by tuminfo2.informatik.tu-muenchen.de with ESMTP id <111478-224>; Wed, 26 May 1999 17:29:10 +0000 Received: from hafner@localhost by hprbg5.informatik.tu-muenchen.de id <24220-876>; Wed, 26 May 1999 17:28:58 +0200 From: Walter Hafner MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14156.4922.102472.856320@hprbg5.informatik.tu-muenchen.de> Date: Wed, 26 May 1999 17:28:58 +0200 (METDST) To: questions@freebsd.org Subject: Scanner, sane, pt and 3.1 X-Mailer: VM 6.51 under 20.3 "Vatican City" XEmacs Lucid Reply-To: Walter Hafner X-treme: Who? Me? Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ... 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 *CLICK* "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