LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 05-03-2006, 09:49 PM   #1
NosLycn
Member
 
Registered: Oct 2004
Posts: 41

Rep: Reputation: 15
USB Brother MFC 420CN Scanner - sane/scanimage/error i/o issues


Thank you in advance to anyone I forget to thank.

Here's the deal. I installed Debian Etch (apparently) using the business card boot cd with linux kernel 2.6.15-686. Everything works fine. I have my ATI card working, sound working (and it is Intel HD Audio, thank you alsa). I got the printer working. The problem is the scanner. Now, the printer and the scanner are one and the same unit. It is a Brother MFC 420CN. I have it attached through USB. The problem is that I continually get awkward errors when running sane/xsane/scanimage, et cetera.

I have the proper drivers installed, and I followed the instructions on the Brother website down to the very last character for installing these on Debian. They didn't generate a brother.conf (or brother2.conf) file in /etc/sane.d/. I tried to make one myself, as described at http://www.linuxprinting.org/piperma...q1/000933.html , while making modifications for my specific printer vendor and product. I didn't do this until just recently. It was the last thing I tried to do. The first thing I tried to do was open up the /dev/usbscanner as 777 and open it up to dave:users. This didn't work, so I reset it to what it was (root:scanner with 666). I tried the same for /proc/bus/usb/004/001 and 004, same thing.

If I run (xsane, for example) as user, I get (immediately after hitting accept):

Quote:
Failed to open device `Brother2:bus4;dev1'
Error during device I/O
If I run it as root, I get no error immediately. Instead, I go to press "acquire preview" and I get the following error:

Quote:
Failed to start scanner: Error during device I/O
When running scanimage -L to find my bloody scanner, as user, I get:

Quote:
device `brother2:bus4;dev1' is a Brother MFC-420CN USB scanner
When running scanimage -L to find my scanner as root, I get the same thing.

When running sane-find-scanner as user, I get:

Quote:
# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x04f9, product=0x0162) at libusb:004:004
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.
As root, I get the same. I can't help but notice that 004:004 doesn't match 004:001, but that isn't quite to the point of this yet.

Not sure that anyone cares by this point, but dmesg output:

Quote:
21da50 still in use (map_count=1)
[fglrx:firegl_free_buffer_queue] *ERROR* buffer qeue 0xdf21da40 still mapped
[fglrx:firegl_rmmap] *ERROR* map 0xdf21da50 still in use (map_count=1)
[fglrx:firegl_free_buffer_queue] *ERROR* buffer qeue 0xdf21da40 still mapped
[fglrx:firegl_rmmap] *ERROR* map 0xdf21da50 still in use (map_count=1)
[fglrx:firegl_free_buffer_queue] *ERROR* buffer qeue 0xdf21da40 still mapped
And, it went on like that for a LONG TIME

Quote:
[fglrx:firegl_rmmap] *ERROR* map 0xde0d94d0 still in use (map_count=1)
[fglrx:firegl_free_buffer_queue] *ERROR* buffer qeue 0xde0d94c0 still mapped
[fglrx:firegl_rmmap] *ERROR* map 0xde0d90d0 still in use (map_count=1)
[fglrx:firegl_free_buffer_queue] *ERROR* buffer qeue 0xde0d90c0 still mapped
e100: eth0: e100_watchdog: link down
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
usb 4-1: usbfs: interface 0 claimed by usblp while 'xsane' sets config #1
usb 4-1: usbfs: interface 0 claimed by usblp while 'xsane' sets config #1
usb 4-1: usbfs: interface 0 claimed by usblp while 'xsane' sets config #1
usb 4-1: usbfs: interface 0 claimed by usblp while 'xsane' sets config #1
usb 4-1: usbfs: interface 0 claimed by usblp while 'xsane' sets config #1
usb 4-1: usbfs: interface 0 claimed by usblp while 'xsane' sets config #1
To properly describe everything I have tried, I will tell you that I have exhaused every option I could find short of recompiling my kernel. I have spent the past two days reading every tutorial for scanners and every brother troubleshooting site. I have changed the entire operating system to 777 (disastrous results and reformat ensued). Nothing worked. I have reformatted since chmodding everything to 777.

The only other info I have is that the module "scanner" doesn't exist, according to modprobe scanner.

Quote:
suna:/home/dave# modprobe scanner
FATAL: Module scanner not found.
suna:/home/dave#
Can anybody help me get my scanner working?
 
Old 05-04-2006, 09:43 AM   #2
Changeling
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 55
Blog Entries: 1

Rep: Reputation: 15
I don't think I can help you with your problem, but I have the exact same printer running on Debian Sid and everything works. Just make sure you get the correct scanner driver and follow the directions on the Brother web site. I believe there's two different scanner drivers listed on the web site. I also got this mfc running on Ubuntu without any problems.
 
Old 05-04-2006, 10:48 AM   #3
NosLycn
Member
 
Registered: Oct 2004
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks. You say you're running Sid? It could be a problem with SANE then. I should probably change my sources to unstable and see what happens if I upgrade. Thanks.
 
Old 05-04-2006, 11:55 AM   #4
Changeling
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 55
Blog Entries: 1

Rep: Reputation: 15
If I remember correctly, I had to upgrade Xsane and Sane before installing the scanner driver from Brother
 
Old 05-05-2006, 04:07 AM   #5
NosLycn
Member
 
Registered: Oct 2004
Posts: 41

Original Poster
Rep: Reputation: 15
My only problem with upgrading sane and xsane is that I'm afraid it will somehow destroy the known universe of my computer. (I'm not using ubuntu, but I did just fight for 3 days to get xgl working and it wasn't easy, so I don't want apt-get install sane xsane, with unstable, to accidentally remove x-window-system-core, which is what it wanted to do.)

I suppose I could try to compile it from source. I'm not afraid of doing that. It's just that most things work better in Debian if they are apt-getted.
 
Old 05-08-2006, 03:31 AM   #6
NosLycn
Member
 
Registered: Oct 2004
Posts: 41

Original Poster
Rep: Reputation: 15
Okay. I had a major X11 problem, so I figured it would be less time-consuming to just reboot. Then, my iPod went nuts and killed that installation. Anyway, I am now running a Sid installation. It has had several dist-upgrades and upgrades. and I am running kernel 2.6.15-1-686. Fun fun fun. The scanner still won't work. I've worked on it for a long time now and I am starting to think it would work better if I were to network the printing functions, remove the usb drivers for the printers, and let the scanner take over entirely. Then again, without the printer drivers installed, the scanner still didn't work. I have no idea what's going on.
 
Old 05-10-2006, 03:07 AM   #7
NosLycn
Member
 
Registered: Oct 2004
Posts: 41

Original Poster
Rep: Reputation: 15
Good news. It's fixed. The problem was simpler than one would expect. Brother updated their drivers recently. The driver didn't work with my setup. Brother sent me an older driver and it works just peachy.
 
Old 03-14-2007, 01:42 AM   #8
ouellettesr
LQ Newbie
 
Registered: Feb 2007
Posts: 14

Rep: Reputation: 0
Hello it seems i am having the same problem as you were, could you somehow get me a link to those older drivers?
 
Old 03-14-2007, 02:51 AM   #9
NosLycn
Member
 
Registered: Oct 2004
Posts: 41

Original Poster
Rep: Reputation: 15
Sure! I probably should have done that a while ago.

http://www.chumpco.com/~dave/brscan2-0.2.1-0.i386.deb

http://www.chumpco.com/~dave/brscan2-0.2.1-0.i386.deb

If you have any problems with the printer, I have a rather colourful personal walkthrough on my livejournal account.

http://heavyd.livejournal.com/37004.html

http://heavyd.livejournal.com/37004.html

Once again, good luck!
 
Old 05-20-2007, 08:38 PM   #10
zBrain
LQ Newbie
 
Registered: Jun 2005
Posts: 2

Rep: Reputation: 0
The solution

I had the exact same problem in Kubuntu 6.10. I have solved it after much ripping out of the hair.

If you run libusb 0.1.12 (to check run libusb-config --version) the entry in your fstab should change to:

none /dev/bus/usb usbfs auto,devmode=0666 0 0

More details are here:
http://gentoo-wiki.com/Brother_MFC_4...re_MFC_for_USB
 
Old 05-20-2007, 08:54 PM   #11
NosLycn
Member
 
Registered: Oct 2004
Posts: 41

Original Poster
Rep: Reputation: 15
Nice! I'll have to try it out if I ever get that machine again. I have a friend who has one. Maybe I'll get him to try it.
 
Old 11-14-2009, 10:58 PM   #12
johnzoet
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
Network printer avoids USB issues.

To avoid USB problems buy a Brother network printer.
You can print and scan from your network and do not have these nasty USB issues.Just follow the simple instructions for network printing and scanning from the Brother web site.
 
  


Reply

Tags
brother, debian, error, etch, sane, scanner, usb, xsane


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
scanimage sane xsane inetd gimp scanner situation davearnt Linux - Hardware 2 04-15-2006 08:31 PM
sane: scanimage refuses to use hp sj 2300c Simon Bridge Fedora 3 10-08-2005 11:53 PM
Brother DCP-110C Printer/Scanner Installation Issues Maxwell Rain Mandriva 4 08-08-2005 03:09 PM
Brother Printer/Scanner DCP-110C Installation Issues Maxwell Rain Linux - Hardware 1 10-31-2004 05:17 AM
scanimage hangs talking to usb scanner TSloth Linux - Hardware 1 04-07-2004 02:29 AM


All times are GMT -5. The time now is 06:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration