[sane-devel] Frustrated with making saned work
maccody at tx.rr.com
Sun Apr 22 04:01:06 UTC 2007
Thanks for the response! Your basic questions hit right on the
m. allan noah wrote:
> random thoughts from someone who does not use saned much...
> 1. does it work with an unmodified version of the backend?
Yes. I decided to revert back to the original umax1220u
backend code. I renamed umax1220u.c to psc_umax2100u.c and
umax1220u-common.c to psc_umax2100u-common.c. I then changed
the appropriate #include statement in umax1220u.c to source
psc_umax2100u-common.c into psc_umax2100u.c. I also changed
#define BACKEND_NAME from umax1220u to psc_umax2100u
#define UMAX_CONFIG_FILE from "umax1220u.conf" to
"psc_umax2100u.conf". After the compile and install, I get the
same authentication problem as before. This is very strange and
I don't understand how such trivial changes can cause this
problem. I may have to contact the author of the umax1220u
backend code to gain some insight if I can't figure this out.
> 2. does it work with scanimage instead of xsane over saned?
Question 2 is now moot.
> On 4/21/07, Mac Cody <maccody at tx.rr.com> wrote:
>> I am trying to get saned working with my scanner (a UMAX 2100U).
>> I am using SANE backends 1.0.18, SANE fronends 1.0.14, and xsane
>> 0.994. The backend I am using is a modified version of the
>> umax1220u, which I call psc_umax2100u. It is essentially the same
>> backend with all of the non-2100U support stripped out. The driver
>> works without problem directly with scanimage and xsane. When I
>> try to use the backend through saned, I encounter authentication
>> I have read throughly the SANE Network Daemon at
>> http://penguin-breeder.org/sane/saned/, the saned manpage, and the
>> sane-net manpage without a resolution of the problem.
>> I set up the file saned.conf as follows
>> I set up the file saned.users as follows:
>> When I start xsane, the first dialog window that is displayed shows:
>> Authorization required for net:192.168.0.41:psc_umax2100u
>> Password transmission is secure
>> I type in the user name "xyzzy" and the password "fubar", which are
>> accepted. The xsane windows are then displayed. When the "Scan" or
>> "Preview" buttons are pressed, a second dialog window is displayed:
>> Authorization required for net:192.168.0.41:sane_start(handle=%p)
>> Backend requests plain-text password
>> It doesn't matter what I type in for the user name and password, as
>> nothing appears to be accepted. After one or two tries, xsane aborts
>> with the message
>> *** glibc detected *** free(): invalid pointer: 0x4001a7e6 ***
>> I tried setting up a psc_umax2100u.users file, following the same
>> format as saned.users, but that didn't work. Probably not a valid
>> file anyway.
>> I don't know what else to do. It seems like I'm very close, but I'm
>> missing something. Thanks in advance for your help!
>> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>> to sane-devel-request at lists.alioth.debian.org
More information about the sane-devel