[sane-devel] [PATCH] undefined symbols in the qcam backend on GNU/kFreeBSD

2006-01-07 Thread Aurelien Jarno
Hi, 

Please find below a patch to the qcam backend to fix undefined symbols
at runtime when dlopening the symbols on GNU/kFreeBSD (GNU libc with a
FreeBSD kernel).

This platform uses a GNU libc, so sys/io.h is available. However the
check in the source code is done on __linux__ and not on __GLIBC__.

I would even change the line to 

#if defined(HAVE_SYS_IO_H) || defined(HAVE_ASM_IO_H) || defined(HAVE_SYS_HW_H)

but they may have systems where one of those is defined and the where
the associated functions inb and outb functions are not defined.

Thanks,
Aurelien


--- sane-backends-1.0.17.orig/backend/qcam.c.orig   2006-01-07 
04:29:14.0 +0100
+++ sane-backends-1.0.17/backend/qcam.c 2006-01-07 04:29:45.0 +0100
@@ -193,10 +193,10 @@
 static const SANE_Range bw_y_range = { 0, 241, 1 };
 static const SANE_Range odd_bw_y_range = { 1, 242, 1 };
 
-#if defined(__linux__) || defined (HAVE_SYS_HW_H)
+#if defined(__GLIBC__) || defined (HAVE_SYS_HW_H)
 
 #ifdef HAVE_SYS_IO_H
-# include sys/io.h   /* GNU libc based Linux */
+# include sys/io.h   /* GNU libc based OS */
 #elif HAVE_ASM_IO_H
 # include asm/io.h   /* older Linux */
 #elif HAVE_SYS_HW_H
@@ -209,7 +209,7 @@
 #define write_lpdata(d,v)  outb ((v), (d)-port)
 #define write_lpcontrol(d,v)   outb ((v), (d)-port + 2)
 
-#endif /* __linux__ */
+#endif /* __GLIBC__ */
 
 static SANE_Status
 enable_ports (QC_Device * q)


-- 
  .''`.  Aurelien Jarno | GPG: 1024D/F1BCDB73
 : :' :  Debian developer   | Electrical Engineer
 `. `'   aure...@debian.org | aurel...@aurel32.net
   `-people.debian.org/~aurel32 | www.aurel32.net


[sane-devel] require Hp2300C linux debug messages

2006-01-07 Thread Parag N(पराग़)
Hello,
   Is there anybody here with HP2300c? If anybody have it can you
please send me debug messages log that will come when you scan a
document.
Please send me that output of debug messages by enabling them
by exporting first environment variables  export
SANE_DEBUG_GENESYS=255
  export SANE_DEBUG_GENESYS_GL646=255
Regards,
Parag.


[sane-devel] more medium definitions?

2006-01-07 Thread robert grah
hallo together,

i am searching for more medium definitions, especialy for negativefilm 
scans.
i hope i am right here with my question.
diafilm scanning works great but all my negative scans are verry green 
or yellow.

i am using xsane with my epson 4990 photo unter debian testing.

are there any resources to get mor medium definitions?
i didnt find any in google and my eyes are not good enough to do my own.

maybe someone can give me a hint how i get this green under control.

thanks for sane...

best
regards
robert grah




[sane-devel] Trust Office Scanner USB 19200

2006-01-07 Thread Paul van Maaren
Hi,

I have a Trust Office Scanner USB 19200 which I submitted yesterday as not
supported. On IRC I was pointed an URL:

19:02  gekl paul_: check this email about your scanner
http://lists.alioth.debian.org/pipermail/sane-devel/2005-April/013431.html

This indeed more or less solved my problem. At least I can scan, only the
resulting image is mirrored. This can be fixed with xsane, but it would be
nicer to have it working the right way. To sum things up, I did the following:

Changed the following in backend/niash_xfer.c
{Hewlett-Packard, ScanJet 4300C, 0x47b,0x1002, eHp4300c}

to

{Silitek Corp., HP ScanJet 4300c, 0x47b, 0x1000, eHp3400c}

and the same in tools/hotplug/libsane.usermap and recompile.

If someone wants me to do some more testing to get this scanner included,
please let me know.

Ps. I am not subscribed to this list.


[sane-devel] Microtek Film Scan 35

2006-01-07 Thread Andrei V. Toutoukine
Dear SANE developers,

I've got six years old Microtek Film Scan 35 which nobody cares of at my 
work. Unfortunately I seen the mark unsupported at SANE web site.
Small remark made me confused 
[ http://www3.sane-project.org/sane-mfgs.html ] :


FilmScan 35

USB

unsupported

Probably unsupported. See link for details

unsupported
(2005-12-18)

?
-

What does Probably unsupported mean? Both links gave no hope of 
course...

If it means, that the scanner is somehow supported, could you explain how 
to make it working at my Linux box?

If it means, that the scanner is not supported, I'd like to know how much 
man-hours it would take to create some basic support. I have some free 
time, good knowledge of C and Linux. Could anyone to outline the procedure 
of creating (or extending) the SANE back-end?

sane-find-scanner says there is a device with vendor/model as expected. 
xscanimage pretends there's no available scanner however.

With the warmest regards,
Andrei.



[sane-devel] Benq 5150C / 5250C users: please test

2006-01-07 Thread Benjamin Greiner
 Hi all,

 I've added some basic support for the Benq 5150C / 5250C scanner to
 the snapscan backend. Anyone owning such a scanner is encouraged to
 test it and inform me of any problems.

Ok, I did some testing with my BenQ 5150C.

My first try was in 300dpi color mode (because this was default). There are no 
color stripes anymore. However, the scanned area was not very wide. Although 
the full available range ((0,0)x(216.0,297.0)mm^2) was selected in 
xscanimage. The resulting image had only 109 mm in width and approx. 145 mm 
in height (measured with millimetre graph paper)

This is independent of selected resolution and colour mode.

'Gray' doesn't work. It still results in very distorted Images. When doing 
'gray' with xsane there is a message box saying Backend sends more image 
data than it defined in parameters, after scanning in preview mode.

'Halftone' sends wrong colours, and sometimes the same patterns as gray. In 
xscanimage, preview crashes in this mode.

Lineart however sends correct data when not selecting quality scan (at first 
glance, no further investigation done).

At the beginning, I had some hangs, which required to hard reset the scanner, 
but this is not reproducible.

 At present the calibration algorithm for the 5150 / 5250 is unknown.
 The calibration data sent to the scanner is currently some static
 data which may or may not work for all scanners.

I'm not a hardware developer. But if you need any data, be free to ask. But as 
my attempt to sniff on the USB-bus in Windows fired up the whole system and I 
could not scan anymore until the next reinstall of W2K, I won't do that 
anymore.

Regards, Ben


[sane-devel] Microtek Film Scan 35

2006-01-07 Thread Henning Meier-Geinitz
Hi,

On 2006-01-07 19:48, Andrei V. Toutoukine wrote:
 What does Probably unsupported mean? Both links gave no hope of 
 course...

This means that someone told us that this scanner exists but there is
no obvious backend that could support it. But no in-depth analysis was
done, e.g. which chipset it uses and if it could be supported by an
existing backend.

When I get a report about a scanner which is not in our lists yet, I
usually list it with the comment Probably unsupported.

 If it means, that the scanner is somehow supported, could you explain how 
 to make it working at my Linux box?

If we knew some way, it would be documented in the lists.

 If it means, that the scanner is not supported, I'd like to know how much 
 man-hours it would take to create some basic support. I have some free 
 time, good knowledge of C and Linux. Could anyone to outline the procedure 
 of creating (or extending) the SANE back-end?

See SANE website, section Contributing. See also the archive of this
mailing list for similar questions about writing backends.

Bye,
  Henning



[sane-devel] (no subject)

2006-01-07 Thread Henning Meier-Geinitz
Hi,

On 2006-01-06 23:30, Ben Tasker wrote:
 Should mention I have no idea how long it will take me to create the backend
 as I havent really done much with SANE before, an interested browse through
 the source perhaps but little more. I assume if I use an existing backend as
 a template then I should still manage to create compatability with SANE.

Looking at the documentation (SANE standard and others) on our website
as well as the Contributing section may help :-)

Please also send the output of sane-find-scanner -v -v, so we can add
it to our scanner lists.

Bye,
  Henning


[sane-devel] dell1600n-net backend

2006-01-07 Thread Jon Chambers

Hi,

I have written a driver for network scanning using a Dell 1600n MFP.  It 
is implemented as a perl script and can be found here:
http://www.jon.demon.co.uk/dell1600n-net-scan/

I am currently in the process of figuring out how to write an equivalent 
SANE backend.  I have a couple of problems:

1. Hopefully trivial:  I have written a dummy backend and sym-linked it 
to /usr/lib/sane/libsane-dell1600n-net.so.  How can I get a SANE frontend 
to find it?

2. The Dell 1600n sends data back in CCITT Fax Group 4 or JPEG formats 
(for monochrome or colour scans respectively).  To convert this to an 
array of RGB data will require converstion via an external library (eg: 
libjpeg).  Is this extra link dependency acceptable for the SANE backends 
build?

cheers,
Jon

== Jon Chambers =
  http://www.jon.demon.co.uk, 020 8575 7097, 07969 956575
=