[sane-devel] [RFC, PATCH] Re: Bug#420193: libsane on sparc64 with SCSI scanner
Hi Julien Julien BLACHE schrieb: abel deuring adeur...@gmx.net wrote: Hi, are you sure that the 32/64 bit problem is _not_ fixed for the read/write interface, but only for the ioctl? If so, we should indeed Yes; I've read the code in sg.c and in the ioctl compat layer, and sg.c doesn't do anything to fixup the 32/64bit issue. use the ioctl call in sanei_scsi. But if we do so, we should at the same time get rid of all the queue management. If you compare the Linux part of sanei_scsi with that for other operation systems, you will note that the code is much simpler, mostly due to the fact that these OSes all use Ohhh yes... that would greatly simplify sanei_scsi. It's been fun to workaround the async code to get the ioctl in sanei_scsi :] ;) a simple ioctl instead of the write/read logic. OK, this would also mean to change a bit more in sanei_scsi, especially it would mean that the check for the availability of the SG_IO ioctl would be moved from run time to compile time. I think we can even get rid of the old SG interface entirely. SG_IO exists in Linux 2.4 too, so it should be safe. I must admit that I am one of these persons who cannot throw away anything... But you are right: Doug Gilbert wrote the SG3 interface in the late 90ies (IIRC, the first versions were available even for 2.2.x kernels), so keeping the old interface would be useful for very few people, if any. But I am quite surprised that your Microtek scanner is so much faster with the ioctl is than the current implementation. When Doug Gilbert had It can be due to changes in the microtek2 backend too. Honestly, I haven't bothered to check :) implemented command queuing for the SG driver, I noticed a considerable performance gain for the Sharp JX250 scanner. The latency between the end of a SCSI command and the start of the next command (from the viewpoint of the scanner) is lower, if the command has already been issued by the application, so the kernel can start the next command immediately, without a context switch to the application. On the other hand, this was at a time, when processors had clock speeds of 200 or 300 MHz. With modern processors, the latency is small enough even if kernel level queueing is not used. The latency here seems low enough, and this machine is an SGI Indigo2 R4400SC 200 MHz w/256 MB RAM and an asthmatic SCSI controller (under Linux, at least, because we don't have the specs ...) The effects of longer latency times seem to depend heavily on the scanner models. The Sharp JX250, a moderately fast model, probably with only a tiny internal buffer, seems to suffer more than many other devices... Abel
[sane-devel] Pixma Backend Compile Error
Hi everyone, I have managed to compile Sane 1.0.18 on Cygwin successfully. The only backend that does not compile is the Pixma backend. I have attached the output of the compile error. If anyone has any ideas on this... Hugh Output: pixma.c: In function 'map_error': pixma.c:132: error: 'ECANCELED' undeclared (first use in this function) pixma.c:132: error: (Each undeclared identifier is reported only once pixma.c:132: error: for each function it appears in.) pixma.c: In function 'cleanup_device_list': pixma.c:173: warning: passing arg 1 of 'free' discards qualifiers from pointer target type pixma.c:174: warning: passing arg 1 of 'free' discards qualifiers from pointer target type pixma.c:175: warning: passing arg 1 of 'free' discards qualifiers from pointer target type pixma.c: In function 'reader_loop': pixma.c:716: error: 'ECANCELED' undeclared (first use in this function) make[1]: *** [pixma.lo] Error 1 make[1]: Leaving directory '/home/User/sane-backends-1.0.18/backend' make: *** [all-recursive] Error 1
[sane-devel] gt68xx backend problems
Quoting Vishal Shah visha...@gmail.com: Hello, I am trying to get my OpticSlim M12 scanner from Plustek to run using the sane-gt68xx backend. sane-find-scanner returns: found USB scanner (vendor=0x07b3, product=0x0412 [600dpi USB Scanner], chip=GT-6816) at libusb:003:005 I am not able to get my scanner to scan pages. When I do scanimage 1.pnm (with export SANE_DEBUG_GT68XX=255) the debug output is: Check the options of scanimage and your scanner backend. (dpi value, size paper (sheetfed so mostly A4) Maybe try first some scans with xscanimage With regards Gerard Klaver
[sane-devel] [RFC, PATCH] Re: Bug#420193: libsane on sparc64 with SCSI scanner
abel deuring adeur...@gmx.net wrote: Hi, I think we can even get rid of the old SG interface entirely. SG_IO exists in Linux 2.4 too, so it should be safe. I must admit that I am one of these persons who cannot throw away anything... But you are right: Doug Gilbert wrote the SG3 interface in the late 90ies (IIRC, the first versions were available even for 2.2.x kernels), so keeping the old interface would be useful for very few people, if any. According to http://sg.torque.net/sg/ SG3 was first released in a stable kernel with Linux 2.4.0 in 2001. It's unclear to me whether it's been available in Linux 2.2 before that. (are there really people here still running SANE on a 2.2 kernel ?) The latency here seems low enough, and this machine is an SGI Indigo2 R4400SC 200 MHz w/256 MB RAM and an asthmatic SCSI controller (under Linux, at least, because we don't have the specs ...) The effects of longer latency times seem to depend heavily on the scanner models. The Sharp JX250, a moderately fast model, probably with only a tiny internal buffer, seems to suffer more than many other devices... It'd be nice to gather some feedback on my patch with a couple of different scanners, that'd set the record straight as far as latency goes :) JB. -- Julien BLACHE http://www.jblache.org j...@jblache.org GPG KeyID 0xF5D65169
[sane-devel] Saned Service
Hi Julien, On 29/04/07, Julien BLACHE wrote: Hugh McMaster wrote: Here is some output from 'saned -d': [saned] main: starting debug mode (level 2) [saned] main: could not find `sane' service (Operation not permitted) [saned] main: using default port 6566 [saned] saned from sane-backends 1.0.18 ready [saned] check_host: access by remote host: my.ip.address.here [saned] init: access granted to u...@my.ip.address.here [saned] quit: exiting When it says 'could not find 'sane' service', does this mean that the path to the executable file is incorrect? No, it means that saned couldn't do a lookup in /etc/services to determine the port number associated to the saned-port service. Getting EPERM here is quite interesting. I have fixed this issue, by adding the sane-port to /etc/services. Now 'saned -d128' shows the port and allows remote access, but normal 'saned' just closes down as before. Any ideas? Hugh
[sane-devel] Re: [RFC, PATCH] Re: Bug#420193: libsane on sparc64 with SCSI scanner
BERTRAND Jo?l joel.bertr...@systella.fr wrote: Hi, Bertrand, feel free to try this patch on your sparc64; as I said, it works fine here (at least as long as nothing goes wrong ;), but better keep your finger on the scanner's power button just in case. Tell us how it goes. I have tried on my U2. This patch works fine for me. Great. How's the scan speed ? JB. -- Julien BLACHE jbla...@debian.org | Debian, because code matters more Debian GNU/Linux Developer| http://www.debian.org Public key available on http://www.jblache.org - KeyID: F5D6 5169 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169
[sane-devel] Saned Service
Hugh McMaster dasjour...@gmail.com wrote: I have fixed this issue, by adding the sane-port to /etc/services. Now 'saned -d128' shows the port and allows remote access, but normal 'saned' just closes down as before. Are you running saned via inetd (or xinetd) ? saned without arguments uses stdin/stdout for the network connection. JB. -- Julien BLACHE http://www.jblache.org j...@jblache.org GPG KeyID 0xF5D65169
[sane-devel] Saned Service
Hi Julien, On 30/04/07, Julien BLACHE wrote: Hugh McMaster wrote: I have fixed this issue, by adding the sane-port to /etc/services. Now 'saned -d128' shows the port and allows remote access, but normal 'saned' just closes down as before. Are you running saned via inetd (or xinetd) ? saned without arguments uses stdin/stdout for the network connection. I am running saned via inetd. When you say that Saned uses the Standard Input/Standard Output, what do you mean? On a side note, I also created a Win32 binary of saned, and managed to run it using the -d(number)/-s flags. Thankyou for your help. Hugh
[sane-devel] Formulardaten
=== == Neuer Eintrag === --- -- Formular: 'adddev' --- 1. Your email address: 'f.k...@jpberlin.de' 2. Manufacturer (e.g. Mustek): 'plustek' 3. Model name (e.g. ScanExpress 1200UB): 'PL 806' 4. Bus type: 'USB' 5. Vendor id (e.g. 0x001): '07b3' 6. Product id (e.g. 0x0002): '0c0c' 7. Chipset (e.g. lm9831): 'GL841 (?)' 8. Comments (e.g. similar to Mustek 1234): 'Windows driver CD is also for PL 812' 9. Data (e.g. sane-find-scanner -v -v): 'trying libusb: device descriptor of 0x07b3/0x0c0c at 005:003 bLength 18 bDescriptorType 1 bcdUSB2.00 bDeviceClass 255 bDeviceSubClass 255 bDeviceProtocol 255 bMaxPacketSize0 64 idVendor 0x07B3 idProduct 0x0C0C bcdDevice 5.00 iManufacturer 10 ((null)) iProduct 11 ((null)) iSerialNumber 12 ((null)) bNumConfigurations1 configuration 0 bLength 9 bDescriptorType 2 wTotalLength 39 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 () bmAttributes 192 (Self-powered) MaxPower 10 mA interface 0 altsetting 0 bLength9 bDescriptorType4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass255 bInterfaceSubClass 255 bInterfaceProtocol 255 iInterface 0 () endpoint 0 bLength 7 bDescriptorType 5 bEndpointAddress 0x81 (in 0x01) bmAttributes 2 (bulk) wMaxPacketSize512 bInterval 0 ms bRefresh 0 bSynchAddress 0 endpoint 1 bLength 7 bDescriptorType 5 bEndpointAddress 0x02 (out 0x02) bmAttributes 2 (bulk) wMaxPacketSize512 bInterval 0 ms bRefresh 0 bSynchAddress 0 endpoint 2 bLength 7 bDescriptorType 5 bEndpointAddress 0x83 (in 0x03) bmAttributes 3 (interrupt) wMaxPacketSize1 bInterval 8 ms bRefresh 0 bSynchAddress 0 trying to find out which USB chip is used checking for GT-6801 ... this is not a GT-6801 (bcdUSB = 0x200) checking for GT-6816 ... this is not a GT-6816 (bDeviceClass = 255, bInterfaceClass = 255) checking for GT-8911 ... this is not a GT-8911 (check 1, bDeviceClass = 255, bInterfaceClass = 255) checking for MA-1017 ... this is not a MA-1017 (bDeviceClass = 255, bInterfaceClass = 255) checking for MA-1015 ... this is not a MA-1015 (bcdUSB = 0x200) checking for MA-1509 ... this is not a MA-1509 (bcdUSB = 0x200) checking for LM983[1,2,3] ... this is not a LM983x (bcdUSB = 0x200) checking for GL646 ... this is not a GL646 (bDeviceClass = 255, bInterfaceClass = 255) checking for GL646_HP ... this is not a GL646_HP (bcdUSB = 0x200) checking for GL660+GL646 ... this is not a GL660+GL646 (bDeviceClass = 255, bInterfaceClass = 255) checking for GL841 ... Couldn't set configuration: could not set config 1: Operation not permitted This USB chip looks like a GL841? (result from sane-backends 1.0.18) found USB scanner (vendor=0x07b3, product=0x0c0c, chip=GL841?) at libusb:005:003 device descriptor of 0x/0x at 005:001 bLength 18 bDescriptorType 1 bcdUSB2.00 bDeviceClass 9 bDeviceSubClass 0 bDeviceProtocol 1 bMaxPacketSize0 64 idVendor 0x idProduct 0x bcdDevice 2.06 iManufacturer 3 ((null)) iProduct 2 ((null)) iSerialNumber 1 ((null)) bNumConfigurations1 configuration 0 bLength 9 bDescriptorType 2 wTotalLength 25 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 () bmAttributes 224 (Self-poweredRemote Wakeup) MaxPower 0 mA interface 0 altsetting 0 bLength9 bDescriptorType4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 1 bInterfaceClass9 bInterfaceSubClass 0 bInterfaceProtocol 0 iInterface 0 () endpoint 0 bLength 7 bDescriptorType 5 bEndpointAddress 0x81 (in 0x01) bmAttributes 3 (interrupt) wMaxPacketSize4 bInterval 12 ms bRefresh 0 bSynchAddress 0 device descriptor of 0x/0x at 004:001 bLength 18 bDescriptorType 1 bcdUSB1.10 bDeviceClass 9 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x idProduct 0x bcdDevice 2.06 iManufacturer 3 ((null)) iProduct 2 ((null)) iSerialNumber
[sane-devel] Saned Service
Hugh McMaster dasjour...@gmail.com wrote: I am running saned via inetd. When you say that Saned uses the Standard Input/Standard Output, what do you mean? When run through inetd, inetd will pass the TCP connection over to saned on stdout (fd 1). JB. -- Julien BLACHE http://www.jblache.org j...@jblache.org GPG KeyID 0xF5D65169
[sane-devel] Canon FB630u Scanner
Hi Ralf, On 29/04/07, Dr. Ralf Wepler wrote: I try to get to work a Canon FB630u Scanner. ERROR: I tried to call sane_start but it returned the following error message: Device busy. I think that's a bug in the canon630u backend. Have you tried running the test backend/programme as the root/system admin user? Hugh
[sane-devel] Re: [RFC, PATCH] Re: Bug#420193: libsane on sparc64 with SCSI scanner
Julien BLACHE a ?crit : Bertrand, feel free to try this patch on your sparc64; as I said, it works fine here (at least as long as nothing goes wrong ;), but better keep your finger on the scanner's power button just in case. Tell us how it goes. Hello, I have tried on my U2. This patch works fine for me. That's a saturday afternoon well spent. ;-) Thanks, JKB
[sane-devel] Re: [RFC, PATCH] Re: Bug#420193: libsane on sparc64 with SCSI scanner
Julien BLACHE a ?crit : BERTRAND Jo?l joel.bertr...@systella.fr wrote: Hi, Bertrand, feel free to try this patch on your sparc64; as I said, it works fine here (at least as long as nothing goes wrong ;), but better keep your finger on the scanner's power button just in case. Tell us how it goes. I have tried on my U2. This patch works fine for me. Great. How's the scan speed ? I don't see any difference... Regards, JKB
[sane-devel] Firmware for Epson Stylus CX-1500?
Hi everybody, I'm using an Epson Stylus CX-1500. I can scan image from it with snapscan backend. However, the image is green, no red, no blue. It seems that I need to specify a firmware to upload to the scanner. I look in Windows installation and there are many .bin files installed. They are C:\WINDOWS\system32\epscan6\1500\211bv040.bin, c:\windows\system32\twain_32\cmt1500.bin, c:\windows\system32\twain_32\cmt1500t.bin, c:\windows\system32\twain_32\sat121.bin. Which is the firmware file to upload? Thanks all, LE Hong Boi Homepage: http://lhboi.homelinux.net - H?y gh? qua trang ch? Yahoo! Vi?t Nam! -- next part -- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20070430/44bd1b90/attachment.htm From yellow.peng...@edpnet.be Mon Apr 30 19:34:15 2007 From: yellow.peng...@edpnet.be (Y P) Date: Mon Apr 30 20:41:04 2007 Subject: [sane-devel] problem while found SCSI scanner AGFA SNAPSCAN 1236 1.50 at /dev/sg0 Message-ID: 20070430193415.GB2961@starfish Hi Sane-devel team, a friend of mine is trying to get work an Agfa Snapscan 1236 SCSI on its Debian 4.0 Etch distrib. I asked him to add sane-utils and he sended me its sane-find-scanner output (see further): as you will see, the scanner is found/recognized, but xsane seems to find his Logitech QuickCam and doesn't give him the choice to tell that's his intensions are to scan, not to webcam :-) He also did tried to add ln -s /dev/sg0 /dev/scanner but the scanner symlink is removed at each reboot. Finally, he also read some info found on the sane archive, but it still doesn't work. Suggestions are welcome, and I will translate and send it fwd to him. Here is its output: # sane-find-scanner will now attempt to detect your scanner. If the # result is different from what you expected, first make sure your # scanner is powered up and properly connected to your computer. found SCSI scanner AGFA SNAPSCAN 1236 1.50 at /dev/sg0 # Your SCSI scanner was detected. It may or may not be supported by SANE. Try # scanimage -L and read the backend's manpage. Grtnx, YP
[sane-devel] Canon FB630u Scanner
Hi Ralf, On 30/04/07, Dr. Ralf Wepler wrote: I just tried to run the test-programm and xsane as root user. Both worked. Running the same as user xx fails. Is it a problem of rights? And, if so, in which files? This is a result of user rights not being allowed. I am not sure how to change these for OpenSuse though. Perhaps someone else on this list could help you? Hugh
[sane-devel] [RFC, PATCH] Re: Bug#420193: libsane on sparc64 with SCSI scanner
Hi Julien, Julien BLACHE wrote: abel deuring adeur...@gmx.net wrote: Hi, I think we can even get rid of the old SG interface entirely. SG_IO exists in Linux 2.4 too, so it should be safe. I must admit that I am one of these persons who cannot throw away anything... But you are right: Doug Gilbert wrote the SG3 interface in the late 90ies (IIRC, the first versions were available even for 2.2.x kernels), so keeping the old interface would be useful for very few people, if any. According to http://sg.torque.net/sg/ SG3 was first released in a stable kernel with Linux 2.4.0 in 2001. It's unclear to me whether it's been available in Linux 2.2 before that. (are there really people here still running SANE on a 2.2 kernel ?) It seems that my memory it not very well functioning ;) Perhaps there were some some beta versions available earlier, but never mind. The latency here seems low enough, and this machine is an SGI Indigo2 R4400SC 200 MHz w/256 MB RAM and an asthmatic SCSI controller (under Linux, at least, because we don't have the specs ...) The effects of longer latency times seem to depend heavily on the scanner models. The Sharp JX250, a moderately fast model, probably with only a tiny internal buffer, seems to suffer more than many other devices... It'd be nice to gather some feedback on my patch with a couple of different scanners, that'd set the record straight as far as latency goes :) It could be that the JX250 is much more sensistive to latency problems than other scanners... I'll test your patch during the next days (sorry, I can't make at present a more precise and honest promise...). But I already made some test scans with sane-backends 1.0.18 and a modified sharp.conf file that disables queueing on the SG level: No performance problems with a 1.6 GHZ Athlon mainboard and a SCSI controller for the sym53c8xx driver. (I don't have a slower system available...) Abel
[sane-devel] help
--- sane-devel-requ...@lists.alioth.debian.org wrote: Send sane-devel mailing list submissions to sane-devel@lists.alioth.debian.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.alioth.debian.org/mailman/listinfo/sane-devel or, via email, send a message with subject or body 'help' to sane-devel-requ...@lists.alioth.debian.org You can reach the person managing the list at sane-devel-ow...@lists.alioth.debian.org When replying, please edit your Subject line so it is more specific than Re: Contents of sane-devel digest... Today's Topics: 1. Re: Saned Service (Julien BLACHE) 2. Re: Canon FB630u Scanner (Hugh McMaster) -- Message: 1 Date: Mon, 30 Apr 2007 12:55:55 +0200 From: Julien BLACHE j...@jblache.org Subject: Re: [sane-devel] Saned Service To: Hugh McMaster dasjour...@gmail.com Cc: Sane-Devel sane-devel@lists.alioth.debian.org Message-ID: 87bqh69lms@sonic.technologeek.org Content-Type: text/plain; charset=us-ascii Hugh McMaster dasjour...@gmail.com wrote: I am running saned via inetd. When you say that Saned uses the Standard Input/Standard Output, what do you mean? When run through inetd, inetd will pass the TCP connection over to saned on stdout (fd 1). JB. -- Julien BLACHE http://www.jblache.org j...@jblache.org GPG KeyID 0xF5D65169 -- Message: 2 Date: Mon, 30 Apr 2007 21:34:29 +1000 From: Hugh McMaster dasjour...@gmail.com Subject: Re: [sane-devel] Canon FB630u Scanner To: Dr. Ralf Wepler r...@wepler.de Cc: sane-devel@lists.alioth.debian.org Message-ID: 813e5f920704300434p72143c56la718d7b42b6c...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Ralf, On 29/04/07, Dr. Ralf Wepler wrote: I try to get to work a Canon FB630u Scanner. ERROR: I tried to call sane_start but it returned the following error message: Device busy. I think that's a bug in the canon630u backend. Have you tried running the test backend/programme as the root/system admin user? Hugh -- ___ sane-devel mailing list sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/sane-devel End of sane-devel Digest, Vol 22, Issue 46 ** __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com