[sane-devel] CVS freeze ?

2003-06-04 Thread Henning Meier-Geinitz
Hi,

On Wed, Jun 04, 2003 at 09:57:27PM +0200, Thomas Soumarmon wrote:
> Sorry for the silly question but I have been a bit SANE-offline for a while, 
> and I didn't find quickly the answer in the mail archive.

Search for "release" and/or freeze in the archive. Or check the
Changelog in CVS for messages like this:

**  Release of sane-backends 1.0.12. End of code freeze **
 
> I wanted to commit into CVS some changes about the hp5400 backend.
> Is there a CVS freeze at the moment or may I do it ?

You can commit whatever you want :-) By the way, I changed
backend/Makefile.in to not link hp5400 to sanei_config2.lo. That
shouldn't affect your backend because you don't use that code at all.

> And before that, is there a compile farm or some kind of, to verify
> at least it compiles ok on various platforms before commiting it ?

If you like, you can use the Hewlett Packard test drive at
testdrive.hp.com. They have several Linux, *BSD, Tru64, and HP/UX
machines. But setting this up to work at least semi-automatically
requires quite some work and some non-linux Unix knowledge :-/

So if you don't want to invest some time into learning how
crappy^h^h^h^h^h^h differnt from Linux some systems are, compiling
with Linux (and maybe a BSD if you have it) is ok. I'm using the
testdrive from time to time and will complain if something doesn't work.

> PS2: I have been messing around a lot before finding the DEBUG_NOT_STATIC 
> trick to avoid the missing symbol sane_debug_hp5400_call !!!

The debug macros ARE complex if you use more than one compilation unit.

Bye,
  Henning


[sane-devel] CVS freeze ?

2003-06-04 Thread Julien BLACHE
Thomas Soumarmon  wrote:

> I wanted to commit into CVS some changes about the hp5400 backend.
> Is there a CVS freeze at the moment or may I do it ?

The freeze is over :)

> And before that, is there a compile farm or some kind of, to verify at least 
> it compiles ok on various platforms before commiting it ?

SF.net has a compile farm (never used it), otherwise there's the
HP/Compaq testdrive (http://testdrive.hp.com) but Henning knows more
about this one than I do :)

JB.

-- 
Julien BLACHE    
 


[sane-devel] CVS freeze ?

2003-06-04 Thread Thomas Soumarmon
Hi everybody,

Sorry for the silly question but I have been a bit SANE-offline for a while, 
and I didn't find quickly the answer in the mail archive.


I wanted to commit into CVS some changes about the hp5400 backend.
Is there a CVS freeze at the moment or may I do it ?

And before that, is there a compile farm or some kind of, to verify at least 
it compiles ok on various platforms before commiting it ?



Thomas.


PS : changes are not functional, they are "only" to make a synchronization 
between hp5400backend sourceforge CVS project and SANE CVS project.

PS2: I have been messing around a lot before finding the DEBUG_NOT_STATIC 
trick to avoid the missing symbol sane_debug_hp5400_call !!!


[sane-devel] Please test sane-backends (and sane-frontends) on non-mainstream os and platforms

2003-06-04 Thread Henning Meier-Geinitz
Hi,

I'd like to update the list of platforms SANE can be compiled and used
on. There is a temporary file with the latest updates here:

http://www.meier-geinitz.de/sane/tmp/sane-support.html

If you've successfully compiled and/or tested sane-backends 1.0.12
and/or sane-frontends-1.0.11 on any of the mentioned platforms that
isn't up-to-date yet, please contact us. Also if the platform is
mentioned, but there is a question mark for SCSI or USB support,
please tell us if you were able to actually scan with a real scanner.
If you have access to a platform but it has no scanner please try at
least the test backend: "scanimage -d test -T".

Any other corrections or additions are also welcome.

Thanks,
  Henning


[sane-devel] Canon Lide 30 backend

2003-06-04 Thread Henning Meier-Geinitz
Hi,

On Wed, Jun 04, 2003 at 09:49:00AM +, Michael Rasile wrote:
> Am trying to get my USB canon Lide 30 scanner to work under Gentoo.

The Lide 30 is supported by the plustek backend.

> USB has been compiled into the kernel and when I do
> sane-find-scanner, the scanner is found. However, when I do scanimage
> -L the scanner is not found and therefore I am unable to use xsane.

Try "SANE_DEBUG_PLUSTEK=255 scanimage -L" to find out what's wrong.

> I
> was wondering what backend I should be using for this scannerand how
> should this be setup in /etc/sane.d/

The plustek backend is the right one. You can find out about which
scanner is supported by which backend by using the scanner search
engine: http://sane.informatik.uni-freiburg.de/cgi-bin/driver.pl

The setup of the config file is explained in man sane-plustek. But
ususally this should work without manual intervention. Also check that
"plustek" is in dll.conf.

Bye,
  Henning


[sane-devel] compile 1.0.12 on OS/2

2003-06-04 Thread Henning Meier-Geinitz
Hi,

On Tue, Jun 03, 2003 at 11:20:04PM +0200, Franz Bakan wrote:
> >USB isn't supported?
> 
> There is some support.

Thanks for the information. I'll add links and update the list.

> >What about
> >dynamic loading of shared libraries?
> 
> I don't know, I don't exactly know what this means.
> 
> Can DLLs (_dynamic_ linked libraries) be loaded _static_?

The dll backend can either load other backends dynamically (on demand)
or all the backends are linked into sane-dll (preloading).

Last but not least sane-dll can be linked statically to the frontends
(inclusing all the preloaded backends).

> On OS/2 we have just one (big) libsane.dll that contains all backends-code
> and works together with (small) scanimage.exe xscanimage.exe xsane.exe etc.

That's shared but not dynamic.

Bye,
  Henning


[sane-devel] Mustek BearPaw 2400 CU plus: now I'm totally confused (was: suddenly problems opening /dev/usbscanner0)

2003-06-04 Thread Christoph Bier
Henning Meier-Geinitz schrieb:

[. . .]

> Oh well. Either a hardware problem (too slow to react?) or a kernel
> bug. Check the linux-usb-users mailing list for this one, I remeber

I did so.

> that other people had similar problems, but not with scanners. Maybe
> that's a problem with your USB chipset, but I don't remeber the
> details. It doesn't seem to be an issue of the scanner module or sane.

Ok.

[. . .]

>>Is there a possibility to turn such "hotplugging 
>>magic" off?
> 
> Yes :-) For the details, consult your distribution's documentation. A

Ok, thanks :-).

> rather drasti way is to renam the /sbin/hotplug program to something
> else.

Thanks again for your help!

Greetings,

Christoph
-- 
Christoph Bier, Dipl.Oecotroph., Email: b...@wiz.uni-kassel.de
Universitaet Kassel, FG Oekologische Lebensmittelqualitaet und
Ernaehrungskultur \\ Postfach 12 52 \\ 37202 Witzenhausen
Tel.: +49 (0) 55 42 / 98 -17 21, Fax: -17 13



[sane-devel] ScanJet 4100C

2003-06-04 Thread Lee Morgan
Hello,

I have RedHat 8.0 installed, when I run scanimage I get the following result:

[root@shodan sane.d]# scanimage -d hp:/dev/usb/scanner0
scanimage: open of device hp:/dev/usb/scanner0 failed: Invalid argument

I have compiled and installed sane-backends-1.0.12 and used the 
sane-1.0.9.hp.1.01 source.

The scanner is detected at /dev/usb/scanner0:

[root@shodan sane.d]# sane-find-scanner
# Note that sane-find-scanner will find any scanner that is connected
# to a SCSI bus and some scanners that are connected to the Universal
# Serial Bus (USB) depending on your OS. It will even find scanners
# that are not supported at all by SANE. It won't find a scanner that
# is connected to a parallel or proprietary port.

# If your scanner uses SCSI, you must have a driver for your SCSI
# adapter and support for SCSI Generic (sg) in your Operating System
# in order for the scanner to be used with SANE. If your scanner is
# NOT listed above, check that you have installed the drivers.

sane-find-scanner: found USB scanner (vendor = 0x03f0, product = 0x0101) at 
device /dev/usb/scanner0

But the product string is not reported when i cat /proc/bus/usb/devices:

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=0101 Rev= 1.00
S:  SerialNumber=00MY8BH535KN
C:* #Ifs= 1 Cfg#= 1 Atr=60 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=usbscanner
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=   1 Ivl=250ms

The scanner is a ScanJet4100C.

Where am I going wrong?  Is this a problem with the scanimage?

Regards,

Lee






[sane-devel] Canon Lide 30 backend

2003-06-04 Thread Michael Rasile
Greetings!
Am trying to get my USB canon Lide 30 scanner to work under Gentoo. USB has 
been compiled into the kernel and when I do sane-find-scanner, the scanner is 
found. However, when I do scanimage -L the scanner is not found and therefore I 
am unable to use xsane. I was wondering what backend I should be using for this 
scannerand how should this be setup in /etc/sane.d/ I have tried everything, 
editing the canon.conf and the plustek.conf. I know the scanner works because 
when I was using Mandrake 9.1 I didn't have a problem setting it up. I would 
like to continue to use it under Gentoo. Any suggestions will be greatly 
appreciated. I've read a great deal about this, but nothing seems to help.  
Thanks for anything.


-- 
Regards,
Mike
kee...@neo.rr.com
"Don't Fear The Penguin."


[sane-devel] Analysis of saned CPU utilization

2003-06-04 Thread Jay Guerette
>> I've experienced, and seen a few references to similar experiences on
>> the web, saned consuming all available CPU when in use.
>>
>> After running a strace while it was doing this, and examining the
>> source to saned, it appears that it is locked in a tight select loop
>> with no timeout.
>
> Could you give some more details ? select() is only used once in the
> code (not counting the poll() in main(), or the select() that's used
> instead on platforms where poll() doesn't exist -- that's for 1.0.12).
>
> A testcase would be nice.

I'll play with the code a bit, and come up with more detail.