[sane-devel] sane and xsane-win32 crash

2002-05-27 Thread Andrei B.
Odd behaviour with Xsane-win32 build:

sane-1.0.6 on a linux machine with a scsi Tamarack 6000 scanner.
On the linux side xsane works (like xscanimage, scanimage, etc)

saned configured as suggested in inetd.conf, access granted accordingly
xsane-win32-0.86 installed as instructed on a Win95 machine.

running xsane results in it crashing and it creates a stackdump in a
file :
Exception: STATUS_ACCESS_VIOLATION at eip=6108179C
eax=10061DD0 ebx=FFFC ecx=3374 edx= esi=10065000
edi=10064FFC
ebp=00B1F63C esp=00B1F630 program=C:\SANE\XSANE.EXE
cs=016F ds=0177 es=0177 fs=3BC7 gs= ss=0177
Stack trace:
Frame Function  Args
00B1F63C  6108179C  (10061DD0, 10061DD4, FFFC, 6108CFD8)
00B1F66C  004669B8  (10061D74, 0004, 0011, 00B1F694)
00B1F69C  0046783D  (10061D74, 00B1F798, 10061D74, 00466BBE)
00B1F6BC  00466BA2  (10061D74, 00B1F798, 00B1F6FC, 00466607)
00B1F6FC  00466611  (10061D74, 00B1F794, 00B1F73C, 0046703F)
00B1F73C  0046704C  (10061D74, , 004665BC, 00B1F79C)
00B1F7AC  00464F37  (10061D58, 7FFF, 00B1F7DC, 0058092F)
00B1F7FC  00465666  (0046B448, , 00B1FA8C, 00462076)
00B1FA8C  00462089  (0001, 10060B18, 78037118, 00B1FAD8)
00B1FBCC  0046227C  (0001, 10060B18, 00B1FBFC, 00462452)
00B1FBFC  004629DA  (0001, 10060B18, 10060008, )
00B1FD88  6100401E  (, , , 00B1FF68)
00B1FDB8  6100421D  (00462444, , , )
00B1FDD8  6100425C  (, , , )
00B1FE08  00467A3F  (00462444, BFF7CC72, BFFC1470, 00B1FF78)
00B1FE38  0040103D  (, 819F01FC, 0091, 6E617358)
End of stack trace (more stack frames may be present)

Logs on the linux machine simply show an accepted connect from the win
machine, then saned says "Exiting"

If saned is run as saned -d128 as suggested for debugging, no debugging
information is printed at all. But xsane on the windows machine does
not crash, even more, it works fine.

Only thing not tried yet is to start saned -d128 from inetd...

Please, if anyone has a suggestion it would be most welcome.
Thank you.



=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


[sane-devel] only selected backends

2002-05-29 Thread Andrei B.
 With the latest sane-1.0.8, how do I configure it only to compile and
install the backends that I want, instead of all (default) ?

 I tried configure --without-v4l for example (because I have a DVB card
which also uses v4l for it's TV display and sane annoyingly looks for
v4l and loads the modules for DVB even if not wanted), but configure
still reported 
"enabling v4l backend"
and v4l support was installed and probed every time I started a
scanning frontend (xsane)

 I also tried to edit backend/Makefile.in and from the define 
PRELOADABLE_BACKENDS = tamarack @NET@ 
and the running configure again, it still compiled and installed ALL
the backends.

Thank you.



=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


[sane-devel] sanetwain hicups

2002-05-29 Thread Andrei B.
 Just reporting some apparent bugs :

sane-1.0.8 on a linux machine, saned running.
latest twain_32 installed on a win95 system.
sanetwain (dl yesterday)
tamarack 6000C scanner.

I don't know what resolution is used for preview by  it's windows
software, xscanimage or xsane. however:

If in preferences, Preview is set to "use minimum resolution",
sanetwain GUI always returns "Device busy" error.
Same if resolution set to 100dpi in preferences.

If in preferences, Preview is set to "Use the following resolution" and
resolution set to 50 or 25 dpi, then sanetwain scans a preview, after
scanning complete, it shows "Device busy" error, then, after pressing
OK, the preview image appears correctly in sanetwain preview area.



 Changing scanning resolution setting in sanetwain window, then
changing scan mode will reset the resolution setting to the default
100dpi.

all textboxes holding resolution in sanetwain behave annoyingly
considering the following:
- normally text is alligned to the right.
- a click in the box to edit the text will delete the "100 dpi" text
and replace it with only "100", but now it is aligned to the left.
- trying to click and select a digit which to change cannot be easily
accomplished, since the text contents of the box is changed upon
clicking into it.

Suggested behaviour of these textboxes:
- keep a consistent aligning of the text. Do not change aligning when
editing the textbox
- keep entire text in the text box when editing. Changing it upon edit
confuses the user.
- handle the contents of the textbox to read the entire text in it when
changed, consider only the first sequence of digits as the resolution.
Convert it into a number, check to be in a valid range. place it back
into the box and add "dpi" after it (since it will always be dpi). 

Also, the scan resolution textbox retains focus (cursor in it) if there
is a mouse click outside it, on the preview, or options tabs. I managed
to make focus leave it by trying to change scan mode.



=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


[sane-devel] xsane-win32 error handling

2002-05-29 Thread Andrei B.
 Thank you, Oliver, I followed your advice and installed sane-1.0.8,
configured and started saned, and tried again.

- first result was the same. (stack dump)
- after digging a little more, I found in the logs that tcpd reported
"file /usr/sbin/saned not found".
(my inetd.conf line contained /usr/sbin/tcpd saned)
I changed it so it contained the full path name to saned, and it
worked.

I'd suggest to add some more error handling to the network
communication layer in xsane, so that connection loss, inability to
find a valid saned at the other end does not crash xsane

Also, I'd suggest to the maintainer of saned.man the following:
I used the example shown for inetd.conf using tcpd directly, but it did
not work because tcpd expected to find saned in /usr/sbin, while it was
installed in /usr/local/sbin.
I'd suggest to change the example for this case to reflect this by
using the full pathname for saned.


Great frontend, Oliver!


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


[sane-devel] saned.man

2002-05-29 Thread Andrei B.
Related to some problems using xsane-win32 over the network on a
Slackware 7.0 system:

I'd like to suggest to the maintainer of saned.man:

I used the example shown for inetd.conf using tcpd directly, but it did
not work because tcpd expected to find saned in /usr/sbin, while it was
installed in /usr/local/sbin.

I'd suggest to change the example for this case to reflect this by
using the full pathname for saned.


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


[sane-devel] Client only installation of sane

2002-05-29 Thread Andrei B.
How can one install a client only installation of sane?

No backends needed, as all scanning would happen over the network.
saned is not needed

Possibly libraries and headers of sane would be needed to compile other
frontends (not sure, so far I always compiled frontends having
sane-backends already installed).

Thank you.


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


[sane-devel] winsane-0.9

2002-05-29 Thread Andrei B.
In the following situation:

sane-1.0.8, linux slackware 7.0, tamarack 6000C scanner.
Win95 client, latest twain_32, winsane-0.9, attempted scan from
photoshop 4.

Scanning at 300dpi, color resulted in scanimage crashing upon
completion of the scanning, also bringing down photoshop with it.



=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


[sane-devel] http://panda.mostang.com/sane/sane-frontends.html

2002-05-30 Thread Andrei B.
In this page, the line 

saned - SANE network daemon for remote scanning (included in
sane-backends) (more information and documentation) 

"more information and documentation") points to
http://home.arcor.de/jochen.eisinger/saned/ which in turn returns 404
NOT FOUND.


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


[sane-devel] To: Mailing list admin

2002-06-02 Thread Andrei B.
The mailing list manager sends out once a month a reminder:

Subject : www.mostang.com mailing list memberships reminder
>From : mailman-owner@localhost.localdomain
^^^


[sane-devel] sane port number

2002-07-03 Thread Andrei B.
 saned is recommended to be configured on TCP port 6566, called via
inetd.

 I assume this is the port reserved for sane as a network service.

Extract from http://www.iana.org/assignments/port-numbers

===
#   6559-6579  Unassigned
===

I have a small question : 
Will sane developers apply for an assigned port number for sane network
service on port 6566 at IANA?

Thank you.


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


[sane-devel] Plustek UT24 w/transparency advice

2002-07-05 Thread Andrei B.
 I am looking forward for an upgrade and the old Tamarack I have is
clearly not enough anymore. Prospecting the market in Bucharest gave me
2 choices. Sane support reduces this to one. 

 I was looking for a 1200x2400 dpi optical, USB (maybe SCSI), with
transparency adapter.
The answer came either as UMAX Astra 4500 (transparency adapter is an
extra), but this is apparently not supported by sane and the vendor is
unfriendly.

The other answer was Plustek OpticPro UT24. My research through sane
supported scanners showed that it is supported reasonably well. 
However, there is a potetial issue, regarding scanning of negatives.

If those using this scanner (Plustek UT24) can give me any advice on
aquiring it or not, pluses and minuses for it in it's future use, I
would be most grateful.

Thank you.


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com


[sane-devel] Tamarack 6000C slooow scanning

2002-01-21 Thread Andrei B.
Hi,

 I already put this question when sane was at version 1.0.3 
 Yesterday I upgraded to sane-1.0.6 and tried again. 
 I have a Tamarack 6000C scanner (branded ESCOM, but sane-find-scanner
sees it as Tamarack) with a g_NCR5380 ISA SCSI card. 
 As with previous versions of sane, the scanner works, but it works so
horribly slow that scanning a full A4 page at 300dpi greyscale takes
over an hour!!!
 The stepper motor moving the sensor cart moves about one step per
second instead of a continuos rapid succession of steps.

 Please advise me what can I do to improve scanning speed.
 
 Otherwise, system is much more stable then when scanning in windows
(where it takes about 3-5 minutes for a 3 pass 300dpi A4 full color
page). All functions work besides the speed.
 System is a Slackware 7.0 with 2.2.19 kernel. I checked and the SCSI
buffer is set at 128k. (found it in the docs). 
 


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/


[sane-devel] Tamarack 6000C slooow scanning

2002-01-23 Thread Andrei B.
--- Henning Meier-Geinitz  wrote:

> There are some tricks that may or may not help a little bit. Some of
> them are
> summarized at http://www.meier-geinitz.de/sane/docu.html#SCSI . They
> are
> related to Mustek scanners but they use the same SCSI adapters.

I looked at them and I'll try them this evening. 
A glance at the kernel source (g_NCR5380.c) tells a lot : 
USLEEP_POLL = 1
USLEEP_SLEEP = 20
USLEEP_WAITLONG = 500 

I'll try to play with them a bit.


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/


[sane-devel] Tamarack 6000C slooow scanning

2002-01-25 Thread Andrei B.
--- Henning Meier-Geinitz  wrote:

> > A glance at the kernel source (g_NCR5380.c) tells a lot : 
> > USLEEP_POLL = 1
> > USLEEP_SLEEP = 20
> > USLEEP_WAITLONG = 500 
> > 
> > I'll try to play with them a bit.
> 
> Be carefull. I had kenel lockups sometimes while playing with these
> values.

 I tried to play with these, first of all using the suggestion for
Mustek from the link you told me, then I played around with other
values as well, also I commeted out USLEEP.

 The results yielded a small increase in performance, but far from
satisfactory. Now the scanner sensor moves continuosly for some X cm
dependent on USLEEP_POLL and USLEEP_SLEEP, then waits a certain time,
longer (1.5-3 times longer) then the time it took for the motion.

 With the settings suggested for Mustek, it moves about 5cm first,
waits, the moves about 2 cm, waits again and repeat in 2cm increments.
 With USLEEP commented, the behaviour is similar. 

 Playing around with these values I could only increse or decrease a
little the distance of one continous move, with a similar increase of
the waiting time.

 The machine was never dedicated completely to the scanner, not even
with USLEEP commented. I started xscanimage from a remote X server and
a ping in another window. It never lost packets. top command showed on
average >80% idle

 Overall, there is a slight improvement of speed (at least for the
preview), but still more the 3-4 times then under windows.
 Looks like I'm stuck with M$Win for using this scanner.

 Thanks for the suggestions.


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com


[sane-devel] Tamarack : scanning speed

2001-10-29 Thread Andrei B.
 I tried sane 1.0.4 yesterday (and an older version a few months ago)
with a dissapointing result.

 My setup is : 

 Pentium 200MMX, 64MB, NCR5380 SCSI controller (came with the scanner)
and a Tamarack 6000C scanner (actually branded ESCOM, but reported as
Tamarack on SCSI bus).
 System is Slackware 7.0, kernel 2.2.19.

 The NCR5380 which came with the scanner uses port access (0x240) and
DMA, no IRQ's. It is detected by the SCSI driver and with the scanner
on, it detects the scanner, no problems. 
 
 sane-find-scanner finds the scanner correctly on the SCSI bus.

 Trying to use xscanimage to scan an image, let's say 300dpi, color, a
full A4 page I got an excellent result, but it took 5 hours.

 Usually, a scan (300/color) with the windows drivers takes about 5
minutes. 
 xscanimage scanned it in 5 hours. I watched the scanner sensor, it
moved a step about one a second, instead of a continuos pass. 

  I read in the manuals about SG_BIG_BUFF and set it before compiling
sane, and rebuilt the kernel and modules before using it, as I
remembered it from the previous time I tried sane, an older version.
 I got the same result then, although I didn't have the patiance to let
it finish one scan... Changed the SG_BIG_BUFF then, with no result.
Same with sane-1.0.4

 If anybody can please suggest something to improve scanning speed..


 Thank you.
 


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


[sane-devel] Tamarack : scanning speed

2001-10-31 Thread Andrei B.
I tried sane 1.0.4 yesterday (and an older version a few months ago)
with a dissapointing result.

 My setup is : 

 Pentium 200MMX, 64MB, NCR5380 SCSI controller (came with the scanner)
and a Tamarack 6000C scanner (actually branded ESCOM, but reported as
Tamarack on SCSI bus).
 System is Slackware 7.0, kernel 2.2.19.

 The NCR5380 which came with the scanner uses port access (0x240) and
DMA, no IRQ's. It is detected by the SCSI driver and with the scanner
on, it detects the scanner, no problems. 
 
 sane-find-scanner finds the scanner correctly on the SCSI bus.

 Trying to use xscanimage to scan an image, let's say 300dpi, color, a
full A4 page I got an excellent result, but it took 5 hours.

 Usually, a scan (300/color) with the windows drivers takes about 5
minutes. 
 xscanimage scanned it in 5 hours. I watched the scanner sensor, it
moved a step about one a second, instead of a continuos pass. 

  I read in the manuals about SG_BIG_BUFF and set it before compiling
sane, and rebuilt the kernel and modules before using it, as I
remembered it from the previous time I tried sane, an older version.
 I got the same result then, although I didn't have the patiance to let
it finish one scan... Changed the SG_BIG_BUFF then, with no result.
Same with sane-1.0.4

 If anybody can please suggest something to improve scanning speed..


 Thank you.

=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com


[sane-devel] USB digital camera.

2001-11-07 Thread Andrei B.
 My brother has a Digital foto camera with USB interface which I am
wandering if it can be supported by sane : 

 Manufacturer seem to be called Plawa or Xion. Device is called "Spy
pen" 


 If anyone knows about this, please tell me.  Thank you.


=
ing. Andrei Boros
Centrul pt. Tehnologia Informatiei
Societatea Romana de Radiodifuziune

__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com