Re: [sane-devel] improve scanbd for Debian

2014-12-11 Thread Simon Matter
> On 12.12.2014 05:07, Wilhelm wrote:
>> I must admit, actually I have no idea whar ist going wrong here. I see
>> that the scanner and all options are recognized as in the
>> call-from-shell case.
>
> Wilhelm, thank you for having a look.  I must admit that the logs were
> gotten a few weeks ago.  It is quite possible that my memory of what I
> was doing at what point in time was faulty.  My apologies about that. I
> am only starting to learn how to decipher the logs on my own (totally
> impossible feat at log level 7, hahaha).
>
> Given that you were unable to see any difference I started a re-run and
> inserted some markers into syslog with the logger command to make sure I
> will be able to gather what happened when this time.  From what I
> understand now, it seems that the scanner is indeed NOT recognized.  How
> can that come about, especially given that on a call from the
> command-line things work just fine with the same configuration?

That sounds like a kind of permission problem. Is there something like
udev granting access to the device for locally logged in users which does
not happen when started iva init?

Simon

>
> FTR, I started scandbd from the command-line, waited a few seconds and
> then pressed each button once.  This seems to have been successful.  In
> the case of init, I started the program via the services command,
> realized the scanner was NOT recognized, unplugged and replugged it and
> then pressed all buttons (even though apparently the scanner had not
> been recognized).
>
> Regards
>
> Rolf
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-requ...@lists.alioth.debian.org



-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] improve scanbd for Debian

2014-12-11 Thread Wilhelm
Am 12.12.2014 um 03:27 schrieb Rolf Leggewie:
> On 12.12.2014 05:07, Wilhelm wrote:
>> I must admit, actually I have no idea whar ist going wrong here. I see
>> that the scanner and all options are recognized as in the
>> call-from-shell case.
> 
> Wilhelm, thank you for having a look.  I must admit that the logs were
> gotten a few weeks ago.  It is quite possible that my memory of what I
> was doing at what point in time was faulty.  My apologies about that. I
> am only starting to learn how to decipher the logs on my own (totally
> impossible feat at log level 7, hahaha).
> 
> Given that you were unable to see any difference I started a re-run and
> inserted some markers into syslog with the logger command to make sure I
> will be able to gather what happened when this time.  From what I
> understand now, it seems that the scanner is indeed NOT recognized.  How
> can that come about, especially given that on a call from the
> command-line things work just fine with the same configuration?

Be sure that scanbd uses the correct location of libsane config files
(see ReadMe). In most cases this will be a seperate directory (e.g.
/etc/scanbd) where all configs and dll.conf are. This dll.conf must not
contain the net-backend.

On the other hand the standard libsane config location (/etc/sane) has
to contain a dll.conf with only the net backend.

I changed trunk to include an additional debug output to log the env-var
SANE_CONFIG_DIR. Please check the startup-script if the right dir ist
set ...

> 
> FTR, I started scandbd from the command-line, waited a few seconds and
> then pressed each button once.  This seems to have been successful.  In
> the case of init, I started the program via the services command,
> realized the scanner was NOT recognized, unplugged and replugged it and
> then pressed all buttons (even though apparently the scanner had not
> been recognized).
> 
> Regards
> 
> Rolf
> 
> 
> 


-- 
Wilhelm
w.me...@unix.net

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] improve scanbd for Debian

2014-12-11 Thread Rolf Leggewie
On 12.12.2014 05:07, Wilhelm wrote:
> I must admit, actually I have no idea whar ist going wrong here. I see
> that the scanner and all options are recognized as in the
> call-from-shell case.

Wilhelm, thank you for having a look.  I must admit that the logs were
gotten a few weeks ago.  It is quite possible that my memory of what I
was doing at what point in time was faulty.  My apologies about that. I
am only starting to learn how to decipher the logs on my own (totally
impossible feat at log level 7, hahaha).

Given that you were unable to see any difference I started a re-run and
inserted some markers into syslog with the logger command to make sure I
will be able to gather what happened when this time.  From what I
understand now, it seems that the scanner is indeed NOT recognized.  How
can that come about, especially given that on a call from the
command-line things work just fine with the same configuration?

FTR, I started scandbd from the command-line, waited a few seconds and
then pressed each button once.  This seems to have been successful.  In
the case of init, I started the program via the services command,
realized the scanner was NOT recognized, unplugged and replugged it and
then pressed all buttons (even though apparently the scanner had not
been recognized).

Regards

Rolf


scanbd.new-log.tar.bz2
Description: application/bzip
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org

Re: [sane-devel] sane to work with USB 3.0

2014-12-11 Thread m. allan noah
On Thu, Dec 11, 2014 at 2:21 AM, Olaf Meeuwissen
 wrote:
>
> m. allan noah writes:
>
>> I have just pushed your patches to git. They don't seem to help with
>> any scanner that I have, but I doubt they will hurt anything.
>
> Thanks!
>
>> It appears that we also have USB3 issues with Canon scanners as well-
>> they do use clear_halt frequently, and it seems that maybe the Linux
>> kernel is not passing them down to the scanner in some cases.
>
> Do they halt/stall that frequently?  If there's no stall, clear_halt
> should not be used, IIUC.  Hmm, it doesn't look like sanei_usb allows
> you to find out about that ...

Yeah, the Canon machines halt at the drop of a hat. I added
sanei_usb_clear_halt specifically for them.

But, no matter. Based on the threads linked from this post:
http://www.spinics.net/lists/linux-usb/msg105515.html I have come up
with a workaround that fixes both the Canon and the Fujitsu machines I
have access to. It seems the xhci controller refuses to transmit a
clear_halt to the device or reset the data 0/1 toggle in the host when
the ehci controller would. However, sending a set_interface command
for the interface that is already selected, seems to do both of those
things. So, I added a call to

sanei_usb_set_altinterface (s->fd, 0);

right before the calls to sanei_usb_close() or sanei_usb_clear_halt()
in those two backends, and everything suddenly seems to work.

I need to do some further testing, and see if these changes should be
moved up to sanei_usb instead of the backends.

allan
-- 
"well, I stand up next to a mountain- and I chop it down with the edge
of my hand"

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] improve scanbd for Debian

2014-12-11 Thread Wilhelm
Hi Rolf,

Am 11.12.2014 um 12:47 schrieb Rolf Leggewie:
> On 11.12.2014 15:39, Wilhelm wrote:
>> Well, I see for in syslog.log
>>
>> Nov 15 19:08:43 localhost scanbd: scanbd: exec for
>> /usr/share/scanbd/scripts/copy.script
>> Nov 15 19:08:43 localhost scanbd: scanbd: execlp: No such file or directory
>>
>> which meens that your script isn't found ... but the action is triggered
>> from the scanner (once in this log).
> 
> 
> Hello Wilhelm,
> 
> thank you for the quick response.  Like I said, the binary package and
> my installation still has many rough edges.  They will need to be dealt
> with one at a time, in the proper order.
> 
> The part you refer to is the one that is "actually working", where the
> call to the script at least happens.  Maybe the script does not exist
> but that is irrelevant at this time because I want to start scanbd from
> init but it doesn't even try to call any script (existing or
> non-existing).  It only does that when I call it from the command-line.
> 
> Lines 71 to 503 are the ones that show the call where button presses do
> not trigger any kind of response.
> 

I must admit, actually I have no idea whar ist going wrong here. I see
that the scanner and all options are recognized as in the
call-from-shell case. So, the buttons presses (value changes) should be
recognized as well ...

On my system (arch linux) there are no problems ...

Wilhelm

-- 
Wilhelm
w.me...@unix.net

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] Support of Mustek A3 2400S

2014-12-11 Thread Jehan Pagès
Hi,

On Wed, Dec 10, 2014 at 10:41 PM, Troels Thomsen
 wrote:
> m. allan noah once wrote:
>
> "You might
> also want to investigate Fujitsu scanners, they are pricey, but they
> give me protocol documentation for most of their models, and so are
> fairly easy to support"
>
> /T

Thanks. I had a look and indeed they are *very* pricey. That's even a
completely different range of price. While Mustek scanners are in the
hundreds of EUR range, the Fujitsu are in the thousands range.
Maybe they are a lot better though, and if they give documentation are
FLOSS-friendly, but my current wallet would not allow me to buy these.

For information, I contacted Mustek, and they confirmed me that all
their scanners are compatible with Linux, even A3 2400S, which is not
written as such.
They also told me that the front button won't be supported on Linux
right now though, so the advantage of models such as A3F1200N/A3F2400N
is lessened.

I sent another email asking about the 32/64 bit part, since I hadn't
noticed this when I first sent the email.

Jehan

> 2014-12-10 21:49 GMT+01:00 Jehan Pagès :
>>
>> Hi,
>>
>> On Wed, Dec 10, 2014 at 8:54 PM, Bob Gustafson  wrote:
>> > There is a nicer model -
>> > http://www.mustek.com/products/large-a3-scanner/9-a3f2400n.html
>> > In the specifications under 'System Requirements' it shows:
>> >
>> >   Windows 8 / 7 / Vista / XP (Service Pack 3)
>> >
>> >   Mac OS X 10.7~10.10
>> >
>> >   Linux Ubuntu12.04 kernel 3.11 32bit / Fedora 20 kernel 3.15 32bit
>>
>> Yes after sending this email to the Sane mailing list, I checked other
>> scanners and discovered as well that some had announced Linux support,
>> which is nice.
>>
>> Rather than the A3F2400N though, the A3 1200 HS looks interesting by
>> being faster, which I prefer to having buttons on the scanner, as long
>> as this does not affect the scan quality (there is also a A3 2400 HS
>> in their webshop, apparently so recently released that it is not even
>> in the main website, but honestly I think 1200 dpi is more than
>> enough). Now they don't really give much information on how faster it
>> would be (only comparison point is A3 200 dpi in 2.3 s for the HS, and
>> 3 s for the N model, no info for higher resolutions).
>>
>> > Perhaps they are not really that serious about the Linux 32 bit?
>>
>> Oh I didn't realize the 32 bit part. This is indeed annoying!
>> Maybe I'll send an email and ask.
>>
>> > In their Support Drivers Downloads they don't specify bit size for Linux
>> >
>> > Driver A3F2400N NA Sep 19, 2014Linux
>> >
>> > Technical Support is tsupp...@mustek.com
>> >
>> > --
>> >
>> > I have been looking at Mustek for awhile - more or less limited by the
>> > same
>> > software driver issues.
>>
>> Do you know of other good brands which make A3 scanners? Good quality
>> but reasonable price is what I am looking for.
>> Thanks!
>>
>> Jehan
>>
>> > Bob G
>> >
>> >
>> > On 12/10/2014 01:17 PM, Jehan Pagès wrote:
>> >
>> > Hello,
>> >
>> > I've been interested into a A3 scanner, found the Mustek A3 2400S on
>> > Amazon (http://www.amazon.fr/Mustek-A3-2400-Scanner-Plat/dp/B00A1K9M2Q)
>> > but I just can't figure out whether or not it is supported on Linux
>> > (and to which level of support).
>> >
>> > I used the scanner Search Engine:
>> > http://www.sane-project.org/cgi-bin/driver.pl?manu=mustek
>> > But no model seems to be exactly named "2400S" (there are a lot of
>> > 2400 CU|CS|TA (PLUS)? and so on, but no "S", and they all seem to have
>> > an additional naming like BearPaw, ScanExpress, etc. but such names
>> > are not used for this mustek product).
>> >
>> > Would anyone know if that is actually a different naming for another
>> > scanner in the Sane list, or is it simply not in the list? And if it
>> > is not, would anyone know if it would work anyway, has any experience
>> > with it or something?
>> > Also what seems to be the officiel spec:
>> > http://www.mustek.com/products/large-a3-scanner/12-a3-2400s.html
>> >
>> > Thanks.
>> >
>> > Jehan
>> >
>> >
>> >
>> > --
>> > sane-devel mailing list: sane-devel@lists.alioth.debian.org
>> > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>> > Unsubscribe: Send mail with subject "unsubscribe your_password"
>> >  to sane-devel-requ...@lists.alioth.debian.org
>>
>> --
>> sane-devel mailing list: sane-devel@lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>  to sane-devel-requ...@lists.alioth.debian.org
>
>
>
> --
> sane-devel mailing list: sane-devel@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>  to sane-devel-requ...@lists.alioth.debian.org

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman

Re: [sane-devel] improve scanbd for Debian

2014-12-11 Thread Rolf Leggewie
On 11.12.2014 21:00, Wilhelm wrote:
> Did you try all buttons or only option[34] "file"?

During the time of recording the log I sent previously I did not try all
buttons.  But in the numerous previous troubleshooting sessions I tried
every single button at least once. None of them would ever give me any
reaction at times when scanbd had been started from init.


-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] improve scanbd for Debian

2014-12-11 Thread Rolf Leggewie
On 11.12.2014 21:00, Wilhelm wrote:
> Actually I have no debian system at hand ...
> 
> Did you try all buttons or only option[34] "file"?

Wilhelm, thank you for the quick response again.

I wonder if this is Debian-specific and you'd need access to a Debian
system.  Other Debian users did report the same symptoms, though.

I can crank up the debug-logging to level 7 and rerun the test, but I
felt it was giving me too much.  Currently there is nothing in the log
to give any clue as to what is going wrong in one case but not the
other? What could I do to get that information?  Any hunch as to what
might be the problem?  The scanner is actually being recognized by
scanbd in both cases.


-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] improve scanbd for Debian

2014-12-11 Thread Wilhelm
Am 11.12.2014 um 12:47 schrieb Rolf Leggewie:
> On 11.12.2014 15:39, Wilhelm wrote:
>> Well, I see for in syslog.log
>>
>> Nov 15 19:08:43 localhost scanbd: scanbd: exec for
>> /usr/share/scanbd/scripts/copy.script
>> Nov 15 19:08:43 localhost scanbd: scanbd: execlp: No such file or directory
>>
>> which meens that your script isn't found ... but the action is triggered
>> from the scanner (once in this log).
> 
> 
> Hello Wilhelm,
> 
> thank you for the quick response.  Like I said, the binary package and
> my installation still has many rough edges.  They will need to be dealt
> with one at a time, in the proper order.
> 
> The part you refer to is the one that is "actually working", where the
> call to the script at least happens.  Maybe the script does not exist
> but that is irrelevant at this time because I want to start scanbd from
> init but it doesn't even try to call any script (existing or
> non-existing).  It only does that when I call it from the command-line.

Ok, understand.

Actually I have no debian system at hand ...

Did you try all buttons or only option[34] "file"?

> 
> Lines 71 to 503 are the ones that show the call where button presses do
> not trigger any kind of response.
> 
> Regards
> 
> Rolf
> 
> 


-- 
Wilhelm
w.me...@unix.net

-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org


Re: [sane-devel] improve scanbd for Debian

2014-12-11 Thread Rolf Leggewie
On 11.12.2014 15:39, Wilhelm wrote:
> Well, I see for in syslog.log
> 
> Nov 15 19:08:43 localhost scanbd: scanbd: exec for
> /usr/share/scanbd/scripts/copy.script
> Nov 15 19:08:43 localhost scanbd: scanbd: execlp: No such file or directory
> 
> which meens that your script isn't found ... but the action is triggered
> from the scanner (once in this log).


Hello Wilhelm,

thank you for the quick response.  Like I said, the binary package and
my installation still has many rough edges.  They will need to be dealt
with one at a time, in the proper order.

The part you refer to is the one that is "actually working", where the
call to the script at least happens.  Maybe the script does not exist
but that is irrelevant at this time because I want to start scanbd from
init but it doesn't even try to call any script (existing or
non-existing).  It only does that when I call it from the command-line.

Lines 71 to 503 are the ones that show the call where button presses do
not trigger any kind of response.

Regards

Rolf


-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
 to sane-devel-requ...@lists.alioth.debian.org