[sane-devel] Epson, epson2 and epkowa

2008-11-18 Thread Kåre Särs
On Tuesday 18 November 2008 23:13:34 Alessandro Zummo wrote:
> On Tue, 18 Nov 2008 00:17:58 +0100
>
> Alessandro Zummo  wrote:
> >   can you enable epson2 only in your config and send
> >  me the whole debug output (privately if it's too big)?
>
>  fixed in cvs.

Thanks,
  K?re



[sane-devel] Epson, epson2 and epkowa

2008-11-18 Thread Kåre Särs
On Tuesday 18 November 2008 01:37:50 you wrote:
> K?re S?rs  writes:
> > I have a Epson RX500 scanner/printer and wonder what could be wrong
> > on Ubuntu Interpid when the scanner is only found with the epson
> > backend and not epson2 or epkowa.
>
> Weird.  Can you start a scan using the epson backend?
Yes I can.

> No clue.  Can you do the same exercise with the epkowa backend and
> attach the full log file.
>
-
sars at sars-laptop:~$ SANE_DEBUG_EPKOWA=127 scanimage -L
[sanei_debug] Setting debug level of epkowa to 127.
[epkowa] sane_init: sane-backends 1.0.19
[epkowa] sane_get_devices()

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[epkowa] sane_exit
-

I found a solution to the problem. There is no epkowa.conf in /etc/sane.d/ (or 
/etc/sane.d/dll.d/) Copying the default epcowa.conf file from the iscan sources 
made it work. Is this a Ubuntu bug or should the epkowa backend be able to 
work without the config file?

I can report it as a bug to Ubuntu if it is a Ubuntu bug.


Thanks,
K?re S?rs



[sane-devel] Epson, epson2 and epkowa

2008-11-18 Thread Alessandro Zummo
On Tue, 18 Nov 2008 00:17:58 +0100
Alessandro Zummo  wrote:

>   can you enable epson2 only in your config and send
>  me the whole debug output (privately if it's too big)?

 fixed in cvs.

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it




[sane-devel] problems with genesys and MD6228

2008-11-18 Thread stef
Le Tuesday 18 November 2008 12:41:59 Werner Holtfreter, vous avez ?crit?:
> Am Dienstag, 2008-08-26 20:45:01 schrieb stef:
...
>
> Hallo Stef,
>
> it would be wonderful, to have your fix in the next release :-)
> --
> Viele Gr??e
> Werner Holtfreter

Hello,

I haven't forgotten it. While cleaning code to add the XP200 and G2410, 
I 
found a couple of things that may help. Also while reworking my decoding 
scripts I found that they filtered some USB access. Need to dig it to find if 
it may fix something.

Regards,
Stef





[sane-devel] why is the permittion to sanei_usb_open denied?

2008-11-18 Thread Christian Wolf
Hi,

this did not work:
I've checked that the user saned should be in the group scanner as I read the 
tutorial.

I've just done a reboot to ensure, that the /etc/groups gets reread.

I would also be wondering, if I could start saned as user sane in a separate 
shell using the debug parameters, but nut start ist as sane using xinetd.

Any other ideas?

Christian

Am Dienstag, 18. November 2008 12:22 schrieb Julien BLACHE:
> Christian Wolf  wrote:
>
> HI,
>
> > At the server the user sane is able to find the scanner using `scanimage
> > -L`. Whenever I start the saned manually (using
> > `SANE_DEBUG_PLUSTEK=8 /usr/sbin/saned -d8`) the scanner can be found by
> > the remote client. When I start saned using xinet I get the message
> > mentioned above. Even if I start saned manually as user saned it works.
> > Can you tel me what's going wrong here?
>
> adduser saned scanner
>
> Reading /usr/share/doc/libsane/README.Debian.gz might also help.
>
> JB.
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20081118/2ef1714d/attachment.pgp
 


[sane-devel] problems with genesys and MD6228

2008-11-18 Thread Werner Holtfreter
Am Dienstag, 2008-08-26 20:45:01 schrieb stef:

> Le Wednesday 16 July 2008 16:39:18 Werner Holtfreter, vous avez 
?crit?:
> > Am Montag, 30. Juni 2008 06:53:34 schrieb stef:
> > >   the only difference I could spot is slightly different
> > > motor acceleration tables. The ones generated by the backend
> > > are very close to the ones in windows logs, but in case your
> > > scanner's motor is less tolerant (or failing ?), it might not
> > > like them. But I'd like to be sure at what point the trouble
> > > arise. Could you try to trigger the problem with scanning
> > > scanning script at 100 dpi and do a CTRL-C when there is a
> > > motor trouble ? The log will show us at what exact the
> > > problem is happening.
> >
> > Done!
> >
> > I hit CTRL-C in the first second after bad motor noise, but the
> > noise ended after 1/2 min and the prompt is back also after 1/2
> > min.
> >
> > Therefore, in the next test, I made a copy in the bad moment:
> > cp scan.log scan.copy
> > then, I hit CTRL-C.
> >
> > I send both files direct to you.
> > --
> > Viele Gr??e
> > Werner Holtfreter
>
>   Hello,
>
>   while moving scanner detection fron sane_init() to
> sane_get_devices(), I have reproduced the bug you encountered. I
> don't know how to fix it yet, but iti is related to scanner
> detection. I may be find something soon.
>
> Regards,
>   Stef

Hallo Stef,

it would be wonderful, to have your fix in the next release :-)
-- 
Viele Gr??e
Werner Holtfreter



[sane-devel] why is the permittion to sanei_usb_open denied?

2008-11-18 Thread Julien BLACHE
Christian Wolf  wrote:

HI,

> At the server the user sane is able to find the scanner using `scanimage -L`. 
> Whenever I start the saned manually (using 
> `SANE_DEBUG_PLUSTEK=8 /usr/sbin/saned -d8`) the scanner can be found by the 
> remote client. When I start saned using xinet I get the message mentioned 
> above. Even if I start saned manually as user saned it works.
> Can you tel me what's going wrong here?

adduser saned scanner

Reading /usr/share/doc/libsane/README.Debian.gz might also help.

JB.

-- 
Julien BLACHE    
  GPG KeyID 0xF5D65169



[sane-devel] why is the permittion to sanei_usb_open denied?

2008-11-18 Thread Christian Wolf
Hello,

I want to use my scanner over the network using sane (server and client are 
running debian etch).

I did everything mentioned at http://penguin-breeder.org/sane/saned/ . As it 
did not work I also passed all the steps in the FAQ there.

In short:
I get the folowing message in my "log" (files in /tmp:
<...>
[plustek] usbDev_open(auto,) - 0x806fb58
[plustek] sanei_usb_open failed: Operation not permitted (1)
[plustek] open failed: -1
[plustek] sane_get_devices (0xbff42fe8, 1)
[plustek] sane_exit

In long:
I found the following out:
At the server the user sane is able to find the scanner using `scanimage -L`. 
Whenever I start the saned manually (using 
`SANE_DEBUG_PLUSTEK=8 /usr/sbin/saned -d8`) the scanner can be found by the 
remote client. When I start saned using xinet I get the message mentioned 
above. Even if I start saned manually as user saned it works.
Can you tel me what's going wrong here?

Thank you in advance
Christian Wolf
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20081118/d18f44da/attachment.pgp
 


[sane-devel] [iscan] New release available

2008-11-18 Thread Julien BLACHE
Olaf Meeuwissen  wrote:

Hi,

> That thought has crossed my mind, but I'm behind a corporate firewall
> that won't let me use CVS.  If the code repository were reachable via
> HTTP(S) getting commit privileges would make sense but the way things
> are they would be useless.

Both svn and cvs go through ssh on alioth; svn is also accessible via
the svn protocol, but no http...

JB.

-- 
Julien BLACHE    
  GPG KeyID 0xF5D65169



[sane-devel] why is the permittion to sanei_usb_open denied?

2008-11-18 Thread m. allan noah
2008/11/18 Christian Wolf :
> Hi,
>
> this did not work:
> I've checked that the user saned should be in the group scanner as I read the
> tutorial.
>
> I've just done a reboot to ensure, that the /etc/groups gets reread.
>
> I would also be wondering, if I could start saned as user sane in a separate
> shell using the debug parameters, but nut start ist as sane using xinetd.
>
> Any other ideas?
>

perhaps you need

groups  = yes

in your saned xinetd conf?

allan

-- 
"The truth is an offense, but not a sin"



[sane-devel] Epson, epson2 and epkowa

2008-11-18 Thread Olaf Meeuwissen
K?re S?rs  writes:

> I have a Epson RX500 scanner/printer and wonder what could be wrong
> on Ubuntu Interpid when the scanner is only found with the epson
> backend and not epson2 or epkowa.

Weird.  Can you start a scan using the epson backend?

> The debug printout suggests that epson2 has found the driver but
> somehow the backend is not offered anyway.
>
> Debug output from running: scanimage -L:
>
> [sanei_debug] Setting debug level of epson2 to 255.
> [epson2] sane_epson2_init: sane-backends 1.0.19
> [epson2] sane_epson2_init: reading config file, epson2.conf
> [epson2]  scsi EPSON
> [epson2]  usb 0x04b8 0x0807
> [epson2] attach_one_usb: dev = libusb:002:004
> [epson2] SANE Epson 2 Backend v0.1.16 - 2007-12-30
> [epson2] attach: devname = libusb:002:004, type = 3
> [epson2] attach: opening libusb:002:004, type = 3
> [epson2] found valid EPSON scanner: 0x4b8/0x807 (vendorID/productID)
> [epson2] e2_set_model: model is 'generic'
> [epson2] esci_reset
> [epson2] e2_cmd_simple: size = 2
> [epson2] e2_send: size = 2, reply = 1
> ...
> [epson2] buf[40] 20
> [epson2] buf[41] 20

Well, at least the backend seems to be able to communicate with the
device.

> [epson2] main = 05, ADF = 00, TPU = 80, main 2 = c0
> [epson2]  net autodiscovery
> [epson2] attach_one_net: dev = autodiscovery
> [epson2] SANE Epson 2 Backend v0.1.16 - 2007-12-30
> [epson2] attach: devname = autodiscovery, type = 4
> [epson2] attach: opening autodiscovery, type = 4
> [epson2] e2_network_discovery, sent discovery packet
> [epson2] e2_network_discovery, end
> [epson2] close_scanner: fd = -1
> [epson2] sane_epson2_get_devices
> [sanei_debug] Setting debug level of epkowa to 255.
> [epkowa] sane_init: sane-backends 1.0.19
> [epkowa] sane_get_devices()
> device `test:0' is a Noname frontend-tester virtual device
> device `test:1' is a Noname frontend-tester virtual device
> device `epson:libusb:002:004' is a Epson RX500 flatbed scanner
> [epkowa] sane_exit

No clue.  Can you do the same exercise with the epkowa backend and
attach the full log file.

For iscan-2.12.0 and later:

  SANE_DEBUG_EPKOWA=HEX scanimage -L 2> rx500.log

For iscan-2.11.0 and before:

  SANE_DEBUG_EPKOWA=127 scanimage -L 2> rx500.log

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS Corporation
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962



[sane-devel] [iscan] New release available

2008-11-18 Thread Olaf Meeuwissen
Julien BLACHE  writes:

> Olaf Meeuwissen  wrote:
>
>> attached.  If some kind soul with commit privileges could add these
>> I'd be grateful.
>
> Maybe it'd be time to give you commit privileges, assuming you want
> them?

That thought has crossed my mind, but I'm behind a corporate firewall
that won't let me use CVS.  If the code repository were reachable via
HTTP(S) getting commit privileges would make sense but the way things
are they would be useless.

Hope this helps,
-- 
Olaf Meeuwissen, LPIC-2   FLOSS Engineer -- AVASYS Corporation
FSF Associate Member #1962   Help support software freedom
 http://www.fsf.org/jf?referrer=1962



[sane-devel] demo patch for SANE 1 / SANE 2 coexistence

2008-11-18 Thread stef
Hello,

here's a variant to make SANE 1/SANE 2 coexist in the case of dynamic 
linking. dll.c is modified to search for backend with a soname of 2 first, 
and in case of failure, it searches backend a a 1 soname. This way if an 
out-of-tree backend in installed, it will still be usable by a SANE 2, and 
automaticaly searched and found.
To allow SANE 1 frontends using SANE 2 backends, there is still a sane2 
meta 
backend that is linked and installed with a 1 soname by the SANE 2 build 
system. This meta backend takes care of the SANE 1/SANE 2 API differences. I 
have also tested that copying this libsane-sane2.so.1 library as  
libsane.so.1 (overwriting the one from sane-1.0.19) allowed a SANE 1 frontend 
to detect and use SANE 2 backends installed without prefixing the device name 
with 'sane2'. So by tweaking the install process of SANE 2, SANE 1 
installation would be able to use SANE 2 backends without any change.

Regards,
Stef


-- next part --
A non-text attachment was scrubbed...
Name: demo2.gz
Type: application/x-gzip
Size: 12163 bytes
Desc: not available
Url : 
http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20081118/18bb7ecc/attachment-0001.bin
 


[sane-devel] genesys/gl646 backend update

2008-11-18 Thread stef
Hello,

I'm currently progressing on adding support for the Strobe XP200. The 
latest 
development version now can do uncalibrated 75 dpi A4 color scans. The next 
steps are:
- handling of a scan area shorter than the document
- adding other dpi
- add a persistent calibration

On the G2410 side, I have coded registers setup for 300 and 600 dpi 
scans. So 
uncalibrated scan at these dpi should be doable. But since I don't have a 
device to test, issues are expected.

This unstable version is available at 
http://stef.dev.free.fr/sane/genesys .

Regards,
Stef



[sane-devel] Epson, epson2 and epkowa

2008-11-18 Thread Alessandro Zummo
On Mon, 17 Nov 2008 23:16:23 +0200
K?re S?rs  wrote:

> I have a Epson RX500 scanner/printer and wonder what could be wrong on Ubuntu 
> Interpid when the scanner is only found with the epson backend and not epson2 
> or epkowa. The debug printout suggests that epson2 has found the driver but 
> somehow the backend is not offered anyway.

 Hi,

  can you enable epson2 only in your config and send
 me the whole debug output (privately if it's too big)?

-- 

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it