You are not logged in.

#1 2009-11-10 16:29:09

ctarwater
Member
Registered: 2009-02-05
Posts: 300

[SOLVED] Brother MFC 7340 - Xsane failed to open device.

I just bought an MFC-7340 (it was on sale and I know they have at least some linux support).

I've managed to get the printer working rather easily since they offer .deb and .rpm drivers on their website.

Now the problem is getting the scanner setup. 
Again, they offer drivers on their website and I've followed this http://wiki.archlinux.org/index.php/Brother_MFC-420CN wiki entry for a similar model but without success.

I'm running a 64 bit system.
My specific model uses the brscan3 drivers.

lsusb shows: Bus 002 Device 002: ID 04f9:01e7 Brother Industries, Ltd
sane-find-scanner shows: found USB scanner (vendor=0x04f9, product=0x01e7) at libusb:002:002

xsane says it can't find a device.

any ideas?

Last edited by ctarwater (2009-11-19 19:47:45)

Offline

#2 2009-11-10 20:12:33

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

Probably the new CUPS is the culprit. It interferes with the multi device devices and I couldn't figure out to get a my otherwise working scanner to work with cups 1.4. Try downgrading to CUPS 1.3.* (see downgrade section in the wiki) and then I think the problem would be solved automatically.


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#3 2009-11-10 23:42:21

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

Thanks, I've compiled and downgraded cups but now I can't get the printer instaled so I haven't been able to test the scanner yet.

I think I need to fix the device url: section of Cups...how do I find that for a usb device?

Offline

#4 2009-11-11 04:45:25

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

I had to reinstall cups 1.4* since I couldn't even get 1.3* to work with my printer. 

Still trying to get the damned scanner to work. 

I'm confused as to why sane-find-scanner sees the thing but xsane refuses to.

Offline

#5 2009-11-11 07:02:19

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

Because CUPS 1.4 sets in UDEV permissions for using the printer device, which is sets /dev/bus/usb/00X/000Y ownership to root and lp and it can't be accessed by SANE.
What do you mean you can't get your printer working with the older CUPS? Did you try reinstalling the linux drivers? Did you try modprobe usblp with the older CUPS?


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#6 2009-11-12 17:28:11

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

Thanks for your help, I tried 1.3.11 again and had to reset my /dev/bus/usb/00x/00y group to root instead of lp.

So far the printer works so hopefully the scanner is next.

NOPE.
Installed sane and followd the directions of a similar model here http://wiki.archlinux.org/index.php/Bro … CN#Scanner, but xsane still finds nothing.

Last edited by ctarwater (2009-11-12 17:36:43)

Offline

#7 2009-11-12 18:58:44

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

Do you have the libsane needed for your scanner installed?
At usr/lib/sane you have to have (for example) libsane-brother.so.1.0.20 and two symlinks to it at the same location - libsane-brother.so.1 and libsane-brother.so
That's what I had to do to get my samsung scanner to work, and I didn't see that step at the wiki.


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#8 2009-11-12 21:01:26

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

yep.  I have:

libsane-brother.so (has the arrow in the top left corner - so I guess it's a symlink?)
libsane-brother.so.1 (same as above)
libsane-brother.so.1.0.20

Last edited by ctarwater (2009-11-15 13:23:39)

Offline

#9 2009-11-13 07:18:08

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

I'm quite puzzled... Did you do everything according to sane wiki?

Last edited by Dheart (2009-11-13 07:18:38)


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#10 2009-11-13 18:06:56

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

i did.

My only guess is that something is sticking around somewhere from all the times I installed/removed/reinstalled the two various versions of cups and perhaps permissions or something are screwed up somewhere and are somehow affecting sane?

Oh well, it's almost time for the annual reinstall that I have a bad habit of doing regardless of what os I use so mebbe I'll do that this weekend and try it again.

Offline

#11 2009-11-15 02:43:47

bdillahu
Member
Registered: 2009-10-12
Posts: 2

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

I'm still not quite there, but found one thing that helped in my case... I am running in x86_64 (64 bin mode), but I found that xsane was only looking in /usr/lib/sane for the libsane-brother3.* libraries needed for the scanner. The package I had used put them in /usr/lib64/sane. I made a symbolic link and suddenly it sees the scanner.

Looks like this is at the bottom of this Wiki page:

http://wiki.archlinux.org/index.php/Bro … cal_USB.29

I had problems with it still getting errors with an "invalid device". Finally found that I had some brscan2 files around, and all the links between /usr/lib/libbr* and /usr/lib64/libbr* weren't right. Got that straight and I think its working.

Last edited by bdillahu (2009-11-15 03:31:07)

Offline

#12 2009-11-15 14:06:50

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

Thanks, we're making some progress here.  I'd originally seen that step, but with all the installing, removing, getting pissed, and trying again I guess I skipped it last time.

Anyway, sane is trying but now I get this error: "failed to open device: 'brother3:bus1;dev2': Invalid Argument"

lsusb gives me this:
Bus 002 Device 003: ID 045e:00f9 Microsoft Corp. Wireless Desktop Receiver 3.1
Bus 002 Device 002: ID 04f9:01e7 Brother Industries, Ltd
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 154b:0016 PNY
Bus 001 Device 003: ID 1737:0071 Linksys
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

So shouldn't sane be trying to open bus2;dev2 not bus1;dev2?

How do I change that?

Offline

#13 2009-11-18 20:41:29

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

Ok, still trying to get this damned thing to work.

Dmesg shows this right after I attempt to run xsane:

usb 2-1: usbfs: interface 0 claimed by usblp while 'xsane' sets config #1
usb 2-1: usbfs: process 3994 (xsane) did not claim interface 1 before use

Also, I've noticed that I have no /etc/sane.d/brother.conf file.  I'm not sure where if the drivers should install that file or what but I'm betting that could be the issue or at least part of it.

Thoughts?  Help?

Offline

#14 2009-11-19 06:13:54

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

Well... It seems that the lack of conf file is your problem. The drivers should've supplied one. Look over the web for such file, because my samsung printer (smfp.conf) came with a huuuuuuge config file and I really doubt it'd work without it.


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#15 2009-11-19 19:47:27

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

oddly enough, there is no brother.conf.

Anyway, I removed sane, brscan3, and xsane, reinstalled, created the symlinks mentioned in the wiki, and it works now!

Thanks for your help along the way Dheart!

Offline

#16 2009-11-19 20:06:42

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

One last question. You're using CUPS 1.3, right?
'cause I couldn't figure out a way to make it work with 1.4.


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#17 2009-11-19 20:09:02

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: [SOLVED] Brother MFC 7340 - Xsane failed to open device.

yep, once I finally got the printer working with CUPS 1.3 like you suggested I never screwed with it.  I mean, the interface isn't as pretty as 1.4 but how often do you really need to login to it once it's set up?

Offline

Board footer

Powered by FluxBB