From owner-freebsd-questions Mon Apr 5 1:46:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from lix.intercom.es (lix.intercom.es [194.179.21.2]) by hub.freebsd.org (Postfix) with ESMTP id 940DB14C2D for ; Mon, 5 Apr 1999 01:46:42 -0700 (PDT) (envelope-from megarcia@intercom.es) Received: from intercom.es (iv3-225.intercom.es [195.76.131.225]) by lix.intercom.es (8.7.3/8.6.12) with ESMTP id KAA20940 for ; Mon, 5 Apr 1999 10:43:50 +0100 Received: (from megarcia@localhost) by intercom.es (8.8.8/8.8.8) id KAA00400 for freebsd-questions@FreeBSD.ORG; Mon, 5 Apr 1999 10:44:09 +0200 (CEST) (envelope-from megarcia) Message-ID: <19990405104409.A220@kicelo.org> Date: Mon, 5 Apr 1999 10:44:09 +0200 From: Manuel Enrique Garcia Cuesta To: freebsd-questions@FreeBSD.ORG Subject: SCSI scanner misbehaving under 3.1 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, This is a Scanjet 5P that has been working fine under 2.2.7R and 2.2.8R. It does work also with 3.1 RELEASE and STABLE as of last weekend, but not quite. Namely, different programs do not see the scanner anymore though it seems to be there by any definition of existence. As a matter of fact, though, root happens to make xscanimage find the otherwise unvisible scanner. I have been messing with this for the last week and I feel I cannot reach any further without some little (or big ) help. Output from different commands and other data follow: ======= uname -a FreeBSD ophrys.kicelo.org 3.1-STABLE FreeBSD 3.1-STABLE #5: Sun Apr 4 11:44:29 CEST 1999 megarcia@ophrys.kicelo.org:/usr/src/sys/compile/OPHRYS i386 ======= Relevant parts from dmesg after a verbose boot: found-> vendor=0x9004, dev=0x8178, revid=0x00 class=01-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=9 map[0]: type 4, range 32, base 0000fc00, size 8 map[1]: type 1, range 32, base ffbdf000, size 12 ahc0: rev 0x00 int a irq 9 on pci0.16.0 ahc0: Reading SEEPROM...done. ahc0: internal 50 cable is present, internal 68 cable not present ahc0: external cable not present ahc0: BIOS eeprom not present ahc0: Low byte termination Enabled ahc0: aic7880 Single Channel A, SCSI Id=7, 16/255 SCBs ahc0: Downloading Sequencer Program... 409 instructions downloaded (noperiph:ahc0:0:-1:-1): SCSI bus reset delivered. 0 SCBs aborted. ahc0: Selection Timeout on A:3. 1 SCBs aborted ahc0: Selection Timeout on A:4. 1 SCBs aborted ahc0: Selection Timeout on A:5. 1 SCBs aborted ahc0: Selection Timeout on A:6. 1 SCBs aborted (probe2:ahc0:0:2:0): INQUIRY. CDB: 12 1 80 0 ff 0 (probe2:ahc0:0:2:0): ILLEGAL REQUEST ahc0: target 0 synchronous at 10.0MHz, offset = 0xf ahc0: target 1 synchronous at 10.0MHz, offset = 0xf pt0 at ahc0 bus 0 target 2 lun 0 pt0: Fixed Processor SCSI-2 device pt0: 3.300MB/s transfers pass0 at ahc0 bus 0 target 0 lun 0 pass0: Fixed Direct Access SCSI-2 device pass0: Serial Number PCB=JP60208469 ; HDA=PE54158477 pass0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled pass1 at ahc0 bus 0 target 1 lun 0 pass1: Fixed Direct Access SCSI-2 device pass1: Serial Number 395748010209 pass1: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled pass2 at ahc0 bus 0 target 2 lun 0 pass2: Fixed Processor SCSI-2 device pass2: 3.300MB/s transfers ======= /dev contents: crwxrwxrwx 1 root wheel 61, 0 2 abr 17:04 /dev/pt0 crw------- 1 root operator 31, 0 3 abr 20:34 /dev/pass0 crw------- 1 root operator 31, 1 3 abr 20:34 /dev/pass1 crw------- 1 root operator 31, 2 3 abr 20:34 /dev/pass2 crw------- 1 root operator 31, 3 3 abr 20:34 /dev/pass3 crw-rw-rw- 1 root wheel 61, 0 3 abr 10:55 /dev/scanjet lrwxrwxrwx 1 root wheel 3 2 abr 23:05 /dev/scanner -> pt0 ======= camcontrol devlist < > at scbus-1 target -1 lun -1 (xpt0) at scbus0 target 0 lun 0 (pass0,da0) at scbus0 target 1 lun 0 (pass1,da1) at scbus0 target 2 lun 0 (pass2,pt0) < > at scbus0 target -1 lun -1 () ======= camcontrol inquiry -n pt Fixed Processor SCSI-2 device Serial Number 0.0MB/s transfers ======= camcontrol tur -n pt Unit is ready ======= hpscan scanner_send: Operation not supported by device scanner_send: Operation not supported by device scanner_send: Operation not supported by device scanner_send: Operation not supported by device scanner_send: Operation not supported by device scanner_send: Operation not supported by device scanner_send: Operation not supported by device Floating point exception (core dumped) ======= (sane 1.0) xscanimage Shows window with pnm:0 and pnm:1 ======= (sane 1.0) xscanimage hp:/dev/pt0 - For non-root user shows a window with the message: Failed to open device 'hp:/dev/pt0': Invalid argument - For root user: Displays the usual xscanimage window and the scanner _works_ fine. The program dies an awful death with ** ERROR **: sigsegv caught when I try to move certain slide bars, but this is supposed to be unrelated. ======= (xvscan 1.81) xvscan -> Windows -> Scanner Displays a window with the message: <<< Device on '/dev/scanjet' is not an HP. Found '' Scanner device disabled to prevent possible overwrite. >>> ======= As I said all of the above commands have been working without a hitch under previous releases of FreeBSD. I would appreciate any clue you can give me. Please don't hesitate to ask for more info should you need it. Thanks in advance Manuel Garcia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message