[sane-devel] SCSI device running on Darwin
I read in the docs that SANE cannot accommodate Darwin SCSI devices because there are no functions in sanei_scsi to access Darwin generic SCSI devices. Patches are welcome. This was written in the docs of version 1.0.11. Is this still the case? I know on some projects the docs can get behind. If so, is anyone working this issue? Also, suppose I get a USB to SCSI converter. What are the chances that will fix the problem? Anyone attempt this? BTW- I'm running OSX 10.2.4 on an beige g3, trying to install an Epson 1200s. I apologize if this is a duplicate question; the archives are unsearchable and I didn't get the urge to browse them.
[sane-devel] HP SJ5300C
Thanks for telling me to use a CVS snapshot (downloaded it on 07 April), but... I cannot seem to get it right... can anybody help? Hardware: Hewlett Packard Scanjet 5300C USB Software: Slackware 8.1 Linux 2.4.18 CVS Snapshot of SANE Modules: -hpusbscsi -usbcore -usb-storage (for my external ZIP drive) -uhci -scanner (with vendor=0x03f0 product=0x0701) Do I have to emulate SCSI? If yes, I think I have (hpusbscsi) attempted to do so. I do not have usb-scsi (I think this version of the kernel does not have it.) BTW, before I installed the CVS snapshot, I had run make uninstall for the 1.0.10 version. sane-find-scanner finds the scanner at /dev/usb/scanner0. scanimage -L finds no scanner. When I unload the generic scanner module, sane-find-scanner does not detect. So sorry to trouble you ppl, but I am new to Linux. How do I configure my avision.conf or hp.conf? What other modules do I need to modprobe... and what other things do I need to do apart from the following: tar xfz del tar ./configure make make install modprobe ;modprobe ;... ;modprobe ;modprobe ; sane-find-scanner scanimage -L *bang the table on seeing undesired results* _ Find gifts, buy online with MSN Shopping. http://shopping.msn.com.sg/
[sane-devel] HP SJ5300C
Hi. If you would have included the scanner mfg and model in your first mails I wouldn't had overread them ... On: Mon, 07 Apr 2003 15:29:10 +0800, Daniel Sim xkjy...@hotmail.com wrote: Thanks for telling me to use a CVS snapshot (downloaded it on 07 Apri= l), = but... I cannot seem to get it right... can anybody help? = Hardware: Hewlett Packard Scanjet 5300C USB = Software: Slackware 8.1 Linux 2.4.18 CVS Snapshot of SANE = Modules: -hpusbscsi Not needed anymore. (deprecated) -usbcore -usb-storage (for my external ZIP drive) -uhci -scanner (with vendor=3D0x03f0 product=3D0x0701) Urghs. The scanner.c lack some functionaliry so it will never work with this one! Please do not load it! Do I have to emulate SCSI? If yes, I think I have (hpusbscsi) attempt= ed to = do so. I do not have usb-scsi (I think this version of the kernel doe= s not = have it.) BTW, before I installed the CVS snapshot, I had run make un= install = for the 1.0.10 version. You do not have to emulate SCSI when using the CVS version. The hpusbscsi usage is now _deprecated_! Please make sure it is no longer loaded on your workstation!!! Instead you must have the usbfs mounted: mount -t usbfs none /proc/bus/usb -o devmode=3D0666 (The devmode=3D0666 might be a security hole - if you have a sane distribution simply ommit the -o devmode=3D0666; the hot-plug system should make sure the device gets the proper permissions ...) Btw: The backend homepage is: http://drocklinux.dyndns.org/rene/avision sane-find-scanner finds the scanner at /dev/usb/scanner0. scanimage -= L finds = no scanner. When I unload the generic scanner module, sane-find-scann= er does = not detect. Although you forced the scanner module to use your HP scanner and you have a /dev/usb/scanner0 this device node will not be functional - due to missing features in the scanner driver. If you would only load hpusbscsi then you should get a scsi device node - but this deprecated, make sure the usbfs is mounted (see above) and the permissions of those files in /proc/bus/usb allow your user to reda/wrtite the files. So sorry to trouble you ppl, but I am new to Linux. How do I configur= e my = avision.conf or hp.conf? What other modules do I need to modprobe... = and = what other things do I need to do apart from the following: = tar xfz del tar ./configure make make install modprobe ;modprobe ;... ;modprobe ;modprobe ; When you modprobe some stuff which is not supost to work ... sane-find-scanner scanimage -L *bang the table on seeing undesired results* Sicerely, - Ren=E9 -- = Ren=E9 Rebe - Europe/Germany/Berlin e-mail: r...@rocklinux.org, rene.r...@gmx.net web: http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.d= e/rene/ Anyone sending unwanted advertising e-mail to this address will be charged $25 for network traffic and computing time. By extracting my address from this message or its header, you agree to these terms.
[sane-devel] Re: IRQ conflict between Fujitsu fi-4120c and NIC
Hi, On Sun, Apr 06, 2003 at 05:46:54PM -0500, CHEN wrote: Since I do not know how to send plain text via hotmail, I am now using this email account. Much better :-) I added 'usb /dev/usb/scanner0' to fujitsu.conf, and it works now. I could use scanimage to scan, but I could not use xsane, it prompted 'no device', and did not show the select device dialog, I guess that might be xsane's configuration problem? No. Most probably you installed sane from source code and didn't remove the already existing sane. Please read the sane-devel archive, this is discussed quite often. Another problem is there is a IRQ conflict between fi-4120c and my NIC, I guess the IRQ is between the USB controller and the NIC? here is the error log: eth0: transmit timed out, tx_status 00 status e601 diagnostics:net 0cd8 media 8880 dma 003a. eth0: Interrupt posted but not delivered -- IRQ blocked by another device? This is the error log when I tried to ping another Windows machine I used to be able to ping. Are you sure that this is related to your scanner at all? Does it happen if you use other USB devices? Then I reboot the Linux machine, Redhat automatically removed the NIC configuration, so I lost the network connection to my Windows machine. RedHat removed the NIC configuration because the driver claimed to see an interrupt blocking? Are you sure? Better ask the RedHat support about this. Check the BIOS settings. If automatic configuration of IRQs doesn't work, set them manually so the USB and NIC don't conflict. Maybe it's laso a problem of the APIC support. IIRC correctly, there is a kernel option called noapic or similar. Check google. Bye, Henning
[sane-devel] SCSI device running on Darwin
Hi, On Mon, Apr 07, 2003 at 12:09:48AM +, Justin Gombos wrote: I read in the docs that SANE cannot accommodate Darwin SCSI devices because there are no functions in sanei_scsi to access Darwin generic SCSI devices. Patches are welcome. This was written in the docs of version 1.0.11. Is this still the case? I know on some projects the docs can get behind. There is no support until now. And as far as I know nobody is working on that topic. But better wait some days for responses. Also, suppose I get a USB to SCSI converter. What are the chances that will fix the problem? Anyone attempt this? There was a similar discussion some days ago. If you find a SCSI controller that connects to the USB and is supported by Darwin it should work. However, they don't seem to be cheap so the question is if it's worth it. BTW- I'm running OSX 10.2.4 on an beige g3, trying to install an Epson 1200s. I apologize if this is a duplicate question; the archives are unsearchable and I didn't get the urge to browse them. The mailing list search engine works quite well for me so what's the problem for you? See http://www.mostang.com/sane/mail.html Bye, Henning
[sane-devel] HP SJ5300C
Hi, On Mon, Apr 07, 2003 at 09:49:12AM +0200, Rene Rebe wrote: If you would have included the scanner mfg and model in your first mails I wouldn't had overread them ... In addition to your comments, the original author should also check that libusb is at least at version 0.1.6 and was found by configure. I.e. configure shows LIBS = -lusb ... to the end of its output. -hpusbscsi Not needed anymore. (deprecated) Can you please update the manpage, too? -usbcore -usb-storage (for my external ZIP drive) -uhci -scanner (with vendor=0x03f0 product=0x0701) Urghs. The scanner.c lack some functionaliry so it will never work with this one! Please do not load it! Patches are welcome :-) I'm not sure if it's worth the hassle but I guess interrupt URBs could be used by defining a new ioctl. Bye, Henning
[sane-devel] HP SJ5300C
Ok, everything mounted, except for the fact that I am using usbdevfs. And now I cannot see any scanners in sane-find-scanner or scanimage -L From: Rene Rebe rene.r...@gmx.net To: xkjy...@hotmail.com CC: sane-de...@www.mostang.com Subject: Re: [sane-devel] HP SJ5300C Date: Mon, 07 Apr 2003 09:49:12 +0200 (CEST) Hi. If you would have included the scanner mfg and model in your first mails I wouldn't had overread them ... On: Mon, 07 Apr 2003 15:29:10 +0800, Daniel Sim xkjy...@hotmail.com wrote: Thanks for telling me to use a CVS snapshot (downloaded it on 07 April), but... I cannot seem to get it right... can anybody help? Hardware: Hewlett Packard Scanjet 5300C USB Software: Slackware 8.1 Linux 2.4.18 CVS Snapshot of SANE Modules: -hpusbscsi Not needed anymore. (deprecated) -usbcore -usb-storage (for my external ZIP drive) -uhci -scanner (with vendor=0x03f0 product=0x0701) Urghs. The scanner.c lack some functionaliry so it will never work with this one! Please do not load it! Do I have to emulate SCSI? If yes, I think I have (hpusbscsi) attempted to do so. I do not have usb-scsi (I think this version of the kernel does not have it.) BTW, before I installed the CVS snapshot, I had run make uninstall for the 1.0.10 version. You do not have to emulate SCSI when using the CVS version. The hpusbscsi usage is now _deprecated_! Please make sure it is no longer loaded on your workstation!!! Instead you must have the usbfs mounted: mount -t usbfs none /proc/bus/usb -o devmode=0666 (The devmode=0666 might be a security hole - if you have a sane distribution simply ommit the -o devmode=0666; the hot-plug system should make sure the device gets the proper permissions ...) Btw: The backend homepage is: http://drocklinux.dyndns.org/rene/avision sane-find-scanner finds the scanner at /dev/usb/scanner0. scanimage -L finds no scanner. When I unload the generic scanner module, sane-find-scanner does not detect. Although you forced the scanner module to use your HP scanner and you have a /dev/usb/scanner0 this device node will not be functional - due to missing features in the scanner driver. If you would only load hpusbscsi then you should get a scsi device node - but this deprecated, make sure the usbfs is mounted (see above) and the permissions of those files in /proc/bus/usb allow your user to reda/wrtite the files. So sorry to trouble you ppl, but I am new to Linux. How do I configure my avision.conf or hp.conf? What other modules do I need to modprobe... and what other things do I need to do apart from the following: tar xfz del tar ./configure make make install modprobe ;modprobe ;... ;modprobe ;modprobe ; When you modprobe some stuff which is not supost to work ... sane-find-scanner scanimage -L *bang the table on seeing undesired results* Sicerely, - René -- René Rebe - Europe/Germany/Berlin e-mail: r...@rocklinux.org, rene.r...@gmx.net web: http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.de/rene/ Anyone sending unwanted advertising e-mail to this address will be charged $25 for network traffic and computing time. By extracting my address from this message or its header, you agree to these terms. ___ Sane-devel mailing list sane-de...@www.mostang.com http://www.mostang.com/mailman/listinfo/sane-devel _ Download Norah Jones, Eminem and more! http://www.msn.com.sg/ringtones/
[sane-devel] HP SJ5300C
Hi. On: Mon, 7 Apr 2003 11:08:19 +0200, Henning Meier-Geinitz henn...@meier-geinitz.de wrote: Hi, = Not needed anymore. (deprecated) = Can you please update the manpage, too? Yes sure. Will be in the next commit. -usbcore -usb-storage (for my external ZIP drive) -uhci -scanner (with vendor=3D0x03f0 product=3D0x0701) = Urghs. The scanner.c lack some functionaliry so it will never work with this one! Please do not load it! = Patches are welcome :-) I'm not sure if it's worth the hassle but I guess interrupt URBs could be used by defining a new ioctl. I wouldn't like to mess with scanner.c. libusb just works fine and is portable. You also mentioned that scanner.c might be deprecated for kernel 2.6 or so ... Bye, Henning - Ren=E9 -- = Ren=E9 Rebe - Europe/Germany/Berlin e-mail: r...@rocklinux.org, rene.r...@gmx.net web: http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.d= e/rene/ Anyone sending unwanted advertising e-mail to this address will be charged $25 for network traffic and computing time. By extracting my address from this message or its header, you agree to these terms.
[sane-devel] HP SJ5300C
Hi. On: Mon, 07 Apr 2003 17:58:05 +0800, Daniel Sim xkjy...@hotmail.com wrote: Ok, everything mounted, except for the fact that I am using usbdevfs.= And = now I cannot see any scanners in sane-find-scanner or scanimage -L Did you read this site: Btw: The backend homepage is: http://drocklinux.dyndns.org/rene/avision Without any log we can not help you. What information do you get when you do: export SANE_DEBUG_AVISION=3D10 export SANE_DEBUG_SANEI_USB=3D8 scanimage -L (Btw: In the case your workstation is up and running for some days now - you might need to power-cycle your scanner,since the scanner's firmware is freezed because of incorrectly sent data from scanner.c ...) - Ren=E9 -- = Ren=E9 Rebe - Europe/Germany/Berlin e-mail: r...@rocklinux.org, rene.r...@gmx.net web: http://www.rocklinux.org/people/rene http://gsmp.tfh-berlin.d= e/rene/ Anyone sending unwanted advertising e-mail to this address will be charged $25 for network traffic and computing time. By extracting my address from this message or its header, you agree to these terms.
[sane-devel] IRQ conflict between Fujitsu fi-4120c and NIC
scanner does not use an irq, but the usb host adapter built into your motherboard does. at system boot time, the irq assigned to different devices can be changed by the bios. try going into your bios and set 'plugandplay os' to no. that usually helps. if not, try manually setting irqs for different devices in the bios. allan On Sun, 6 Apr 2003, Peter Chen wrote: Hi, I added 'usb /dev/usb/scanner0' to fujitsu.conf, and it works now. I could use scanimage to scan, but I could not use xsane, it prompted 'no device', and did not show the select device dialog, I guess that might be xsane's configuration problem? Another problem is there is a IRQ conflict between fi-4120c and my NIC, here is the error log: eth0: transmit timed out, tx_status 00 status e601 diagnostics:net 0cd8 media 8880 dma 003a. eth0: Interrupt posted but not delivered -- IRQ blocked by another device? This is the error log when I tried to ping another Windows machine I used to be able to ping. Then I reboot the Linux machine, Redhat automatically removed the NIC configuration, so I lost the network connection to my Windows machine. What should I do now? Thanks a lot, Peter -- so don't tell us it can't be done, putting down what you don't know. money isn't our god, integrity will free our souls - Max Cavalera
[sane-devel] Re: HP SJ5300C
On Mon, 07 Apr 2003 17:28:30 +0200 (CEST) Rene Rebe rene.r...@gmx.net wrote: I wouldn't like to mess with scanner.c. libusb just works fine and is portable. You also mentioned that scanner.c might be deprecated for kernel 2.6 or so ... At least with Mustek BearPaw 2400TA, there is a difference between using scanner.c or libusb: libusb is slower. Usually this does not matter - but at some resolutions scanning becomes unusably slow with libusb (lots of backtracking, even on Athlon XP 2000+), while the same settings with /dev/usb/scanner0 gives at most 2-3 backtrackings. This is because the GT68xx chips have a very small buffer - only 16KB. Looking at the code, I see that scanner.c uses 32KB buffer size for read, but devio.c (which is used by libusb) uses one-page buffers (4KB on x86). At least with Linux this can be improved - even beyond the scanner.c capabilities. usbdevfs has USBDEVFS_SUBMITURB, which allow asynchronous URB submitting, and even seems to allow queueing more than one URB for the same pipe. (The Windows kernel driver for GT68xx seems to use this: the usbsnoop logs shows that it submits 5 URBs at once and then receives the scanned data using them as a buffer ring.) However, this feature is not currently supported by libusb.
[sane-devel] g_NCR5380.o is hang up
Hi! System: Debian Woody 3.0 Kernel compiled: 2.4.14 Module: g_NCR5380 Scanner: Mustek Scanmagic 9636S Chip: DTC3181LE(DOMEX 436P) Command modprobe g_NCR5380 ncr_addr=0x280 dtc_3181e=1 Messages in boot time: isapnp: Scannig for PnP cards isapnp: Card 'DTC436E' isapnp: 1 Plug Play card detected total Terminal: Command: modprobe g_NCR5380 ncr_addr=0x280 dtc_3181e=1 Messages in the terminal: Scsi1: at port 0x240 irq 5 options CAN_QUEUE=16 CMD_PER_LUN=2 release=1 generic options AUTOPROBE_IRQ AUTOSENSE USLEEP USLEEP_POLL=1 USLEEP_SLEEP=20 generic release=7 Scsi1: Generic NCR5380/53C400 Driver AFTER THE SYSTEM IS HANG UP!!! Best Regard.
[sane-devel] Re: HP SJ5300C
At least with Mustek BearPaw 2400TA, there is a difference between using scanner.c or libusb: libusb is slower. Usually this does not matter - but at some resolutions scanning becomes unusably slow with libusb (lots of backtracking, even on Athlon XP 2000+), while the same settings with /dev/usb/scanner0 gives at most 2-3 backtrackings. This is because the GT68xx chips have a very small buffer - only 16KB. Looking at the code, I see that scanner.c uses 32KB buffer size for read, but devio.c (which is used by libusb) uses one-page buffers (4KB on x86). Given that USB 1.1 has a maximum payload of 64 bytes per bulk packet, I don't see a problem with 16kB or even 4kB buffers. Are you sure this is what causes the slowdown? At least with Linux this can be improved - even beyond the scanner.c capabilities. usbdevfs has USBDEVFS_SUBMITURB, which allow asynchronous URB submitting, and even seems to allow queueing more than one URB for the same pipe. (The Windows kernel driver for GT68xx seems to use this: the usbsnoop logs shows that it submits 5 URBs at once and then receives the scanned data using them as a buffer ring.) However, this feature is not currently supported by libusb. Good that you mention this -- I'm using libusb for another project where throughput is really important. I'll have to look into the way libusb chains URBs. Andras === Major Andras e-mail: and...@users.sourceforge.net www:http://andras.webhop.org/ ===
[sane-devel] Fujitsu fi-4120c, libusb removed on Redhat 9, using sane cvs, can't scan both sides using xscanimage
Hi, Finally I could send emails using plain text! As I said in last email, I installed Redhat 9 and removed libusb, installed sane cvs, now it's working as before. But I could not use xscanimage to scan both sides of the document, it showed 'invalid argument', is it not supported in Fujitsu fi-4120c's driver? Thanks, Peter
[sane-devel] Fujitsu fi-4120c under Redhat 9: kernel driver or libusb?
Hi, On Mon, Apr 07, 2003 at 11:11:32AM -0500, Peter Chen wrote: Then I ran sane-find-scanner, and it showed: Found USB scanner at /dev/usb/scanner0 Found USB scaner at libusb:001 002 I'm pretty sure that this is not the verbatim output of sane-find-scanner :-) Anyway: Then I ran scanimage -L but could not locate the scanner. Did you do the setup of fujitsu.conf? What did you change in comparison to your working setup? Should I remove libusb? No. If it still doesn't work, run SANE_DEBUG_FUJITSU=255 scanimage -L and show us the output. Have you solved your IRQ problem? How? Bye, Henning
[sane-devel] g_NCR5380.o is hang up
Hi, On Mon, Apr 07, 2003 at 06:50:36PM +, José López Ruiz wrote: Messages in boot time: isapnp: Scannig for PnP cards isapnp: Card 'DTC436E' isapnp: 1 Plug Play card detected total Nice. PnP never actually worked for my DTC cards. But it's long time ago... Terminal: Command: modprobe g_NCR5380 ncr_addr=0x280 dtc_3181e=1 Messages in the terminal: Scsi1: at port 0x240 irq 5 options CAN_QUEUE=16 CMD_PER_LUN=2 release=1 generic options AUTOPROBE_IRQ AUTOSENSE USLEEP USLEEP_POLL=1 USLEEP_SLEEP=20 generic release=7 Scsi1: Generic NCR5380/53C400 Driver Looks like the driver didn't accept the address and instead used 0x240. Maybe that one is already used by something else? And I would be really surprised if the IRQ works at all. Try to disable it with ncr_irq=255. Is there another SCSI controller or the idescsi module installed? AFTER THE SYSTEM IS HANG UP!!! These cards are crap. Even if they work, they are pretty slow with most scanners. But at least for me, all of them worked (when I had ISA slots). But I didn't use PnP. Bye, Henning
[sane-devel] Re: HP SJ5300C
Hi, On Mon, Apr 07, 2003 at 08:07:36PM +0400, Sergey Vlasov wrote: At least with Mustek BearPaw 2400TA, there is a difference between using scanner.c or libusb: libusb is slower. Usually this does not matter - but at some resolutions scanning becomes unusably slow with libusb (lots of backtracking, even on Athlon XP 2000+), while the same settings with /dev/usb/scanner0 gives at most 2-3 backtrackings. This is because the GT68xx chips have a very small buffer - only 16KB. Enabling the fork code may also help (gt68xx.c, near the top). Bye, Henning
[sane-devel] Fujitsu fi-4120c, libusb removed on Redhat 9, using sane cvs, can't scan both sides using xscanimage
Hi, On Mon, Apr 07, 2003 at 12:08:54PM -0500, Peter Chen wrote: As I said in last email, I installed Redhat 9 and removed libusb, installed sane cvs, now it's working as before. I would be surprised if there was a direct connection to the removal of libusb. But I could not use xscanimage to scan both sides of the document, it showed 'invalid argument', is it not supported in Fujitsu fi-4120c's driver? I guess you didn't remove the old SANE installation before installing the new one. configure even explicitely warns about this problem. So the graphical frontends still use the old sane-backends which doesn't have support for your scanner. For details on your options, please search the archive. It's explained quite often on this list. Bye, Henning
[sane-devel] Is it ok to remove libusb? Still can not scan both sides with fi-4120c
Hi, Is it ok to remove libusb? And I checked the doc: 4.14 about doing a clean installation and getting rid of all the older versions. I found anything with 'sane' in their file names and removed them, still I could not scan both sides with fi-4120c. Thanks, Peter