LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-24-2012, 05:59 PM   #1
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
Scanner not working in Ubuntu 12.04


Hello all. I have been working on this problem for hours now. I had a 32bit Ubuntu 10 system and my Brother MFC-J625DW scanner was working flawlessly. I then get a new 64bit system and installed Ubuntu 12.04 LTS. Now the same scanner WILL NOT work. I have been trying things for hours now (with the help of Google) and still no luck. My printer prints and works fine. I have installed brscan4 and brscan-skey from Brother (plus the cups drivers). I have also followed Brother's advice and copied /usr/lib64/saned/* to /usr/lib and /usr/lib/saned/. Please see below for an output of my terminal (I tried to post all needed info):

Code:
anncarol@anncarol:~$ scanimage >test.pnm
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
scanimage: sane_start: Invalid argument
Code:
anncarol@anncarol:~$ scanimage -L
device `brother4:bus2;dev1' is a Brother MFC-J625DW USB scanner
Code:
anncarol@anncarol:~$ scanimage -d "brother4:bus2;dev1" -v >test.pnm
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
scanimage: sane_start: Invalid argument
Code:
anncarol@anncarol:~$ cat /var/log/syslog | grep 'sane'
Jun 24 13:39:22 anncarol saned[4318]: saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up
Jun 24 13:39:22 anncarol saned[4318]: check_host: getpeername failed: Socket operation on non-socket
Jun 24 13:39:22 anncarol saned[4318]: init: access by host [error] denied
Jun 24 13:39:22 anncarol saned[4318]: saned exiting
Jun 24 14:14:57 anncarol kernel: [  632.528707] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:15:02 anncarol kernel: [  637.760308] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:15:02 anncarol kernel: [  637.760330] usb 8-1: usbfs: process 2388 (xsane) did not claim interface 1 before use
Jun 24 14:19:03 anncarol kernel: [  879.153675] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:19:09 anncarol kernel: [  884.634656] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:19:09 anncarol kernel: [  884.634678] usb 8-1: usbfs: process 2935 (xsane) did not claim interface 1 before use
Jun 24 14:24:44 anncarol saned[2040]: saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up
Jun 24 14:24:44 anncarol saned[2040]: check_host: getpeername failed: Socket operation on non-socket
Jun 24 14:24:44 anncarol saned[2040]: init: access by host [error] denied
Jun 24 14:24:44 anncarol saned[2040]: saned exiting
Jun 24 14:24:47 anncarol saned[2041]: saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up
Jun 24 14:24:47 anncarol saned[2041]: check_host: getpeername failed: Socket operation on non-socket
Jun 24 14:24:47 anncarol saned[2041]: init: access by host [error] denied
Jun 24 14:24:47 anncarol saned[2041]: saned exiting
Jun 24 14:29:39 anncarol kernel: [  124.582215] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:29:45 anncarol kernel: [  130.316753] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:29:45 anncarol kernel: [  130.316796] usb 8-1: usbfs: process 2416 (xsane) did not claim interface 1 before use
Jun 24 14:37:51 anncarol kernel: [  616.592343] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:37:54 anncarol kernel: [  619.641378] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:37:54 anncarol kernel: [  619.641414] usb 8-1: usbfs: process 2810 (xsane) did not claim interface 1 before use
Jun 24 14:56:12 anncarol kernel: [  379.959940] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:56:15 anncarol kernel: [  383.870299] usb 8-1: usbfs: interface 3 claimed by usb-storage while 'xsane' sets config #1
Jun 24 14:56:15 anncarol kernel: [  383.870319] usb 8-1: usbfs: process 3009 (xsane) did not claim interface 1 before use
Jun 24 15:04:58 anncarol xinetd[1005]: Reading included configuration file: /etc/xinetd.d/saned [file=/etc/xinetd.d/saned] [line=26]
Jun 24 15:27:27 anncarol xinetd[975]: Reading included configuration file: /etc/xinetd.d/saned [file=/etc/xinetd.d/saned] [line=26]
Jun 24 15:32:39 anncarol xinetd[965]: Reading included configuration file: /etc/xinetd.d/saned [file=/etc/xinetd.d/saned] [line=26]
Code:
anncarol@anncarol:~$ ls /etc/udev/rules.d/
10-cups-printer.rules  70-persistent-cd.rules  70-persistent-net.rules  README
Code:
anncarol@anncarol:~$ ls /etc/sane.d/*brother*
ls: cannot access /etc/sane.d/*brother*: No such file or directory
Code:
anncarol@anncarol:~$ saned -a -d128
anncarol@anncarol:~$ scanimage >test.pnm
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
scanimage: sane_start: Invalid argument
Code:
anncarol@anncarol:~$ scanimage -v >test.pnm
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
scanimage: sane_start: Invalid argument
Code:
anncarol@anncarol:~$ cat /etc/udev/rules.d/10-cups-printer.rules 
# Brother scanners
ATTRS{idVendor}=="04f9", ATTR{idProduct}=="0282", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
This file (40-libsane.rules) WAS in /etc/udev/rules.d... however I removed it to see if removing it would help... it didn't.

Code:
anncarol@anncarol:~$ cat 40-libsane.rules 
# Brother scanners
ATTRS{idVendor}=="04f9", ATTR{idProduct}=="0282", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
Code:
anncarol@anncarol:~$ groups
anncarol adm lp cdrom sudo dip plugdev scanner lpadmin sambashare
Code:
anncarol@anncarol:~$ cat /etc/sane.d/saned.conf 
# saned.conf
# Configuration for the saned daemon

## Daemon options
# Port range for the data connection. Choose a range inside [1024 - 65535].
# Avoid specifying too large a range, for performance reasons.
#
# ONLY use this if your saned server is sitting behind a firewall. If your
# firewall is a Linux machine, we strongly recommend using the
# Netfilter nf_conntrack_sane connection tracking module instead.
#
# data_portrange = 10000 - 10100


## Access list
# A list of host names, IP addresses or IP subnets (CIDR notation) that
# are permitted to use local SANE devices. IPv6 addresses must be enclosed
# in brackets, and should always be specified in their compressed form.
#
# The hostname matching is not case-sensitive.

#scan-client.somedomain.firm
192.168.0.1
192.168.0.1/29
#[2001:7a8:185e::42:12]
#[2001:7a8:185e::42:12]/64

# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and
# /etc/services must also be properly configured to start
# the saned daemon as documented in saned(8), services(4)
# and inetd.conf(4) (or xinetd.conf(5)).
Code:
anncarol@anncarol:~$ uname -a
Linux anncarol 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Please please help. I am pulling my hair out!

Last edited by The_Nerd; 06-24-2012 at 06:01 PM.
 
Old 06-25-2012, 01:46 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Does the scanner show up if you run the command 'sane-find-scanner' ( without the quotes ).

Have you got xsane installed? It is a graphical front end for scanners.

Did you install the 32 bit version or the 64 bit version of brscan4 and scan-key-tool?
 
Old 06-25-2012, 04:01 PM   #3
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
I haven't tried that command but scanimage -L lists the scanner (as I posted). Xsane is installed but gives the exact same error as scanimage. I installed the 64bit versions of brscan4 and brscan-skey. I tried removing them and installing the 32bit drivers but they needed a whole ton of 32bit dependencies (including libc6) so I aborted and reinstalled the 64bit drivers.
 
Old 06-25-2012, 04:10 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Another question,

did you follow this procedure for 12.04?

Quote:
Ubuntu 9.10, 10.04, 10.10, 11.4, 11.10, 12.04
1. Open "/lib/udev/rules.d/40-libsane.rules" file.
2. Add the following two lines to the end of the device list. (Before the line "# The following rule will disable ..."):


The lines to be added---------------------------


# Brother scanners
ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"


3. Restart the OS.
 
Old 06-25-2012, 10:14 PM   #5
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Yes, I did that with no avail...
 
Old 06-26-2012, 09:03 AM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I did some googling, on the error message you are getting. I think the driver is working at this point. It appears the error
Quote:
scanimage: sane_start: Invalid argument
is being caused by the backend ( the Brother driver ) not supplying default information.

I'm going to suggest you take a read through this thread

-->http://old.nabble.com/umax1220u:-san...d21060893.html

There is some very good help information there. For example, you can find out what you can pass scanimage by running 'scanimage --help' > On my scanner it gives you a ton of information.

Give it a try, and see what happens.
 
Old 06-26-2012, 10:10 PM   #7
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Original Poster
Rep: Reputation: 32
Thank you for the replies! I haven't fixed it yet and haven't had a chance to try what you suggest camorri. I am going on vacation in two days and have been too busy. Please subscribe to this thread (if you would please) and I will start it back up in 10 or so days. Thank you again for all the replies!
 
Old 06-27-2012, 03:54 PM   #8
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,217

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
No problem, I am subscribed.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Still trying to get a flat bed scanner working in Ubuntu 10.04 wa3fkg Linux - Hardware 3 01-14-2011 02:04 AM
using Ubuntu 9.10 and trying to get scanner working for a canon PIXMA MX310 --ARRRR ballermark Linux - Hardware 2 12-01-2009 02:05 PM
LXer: Writing UDEV rules to get a SCSI scanner working on Ubuntu LXer Syndicated Linux News 1 09-15-2009 11:15 AM
Has anyone got a flat bed scanner working with Ubuntu 9.04? wa3fkg Linux - Hardware 5 06-29-2009 01:46 PM
Brother MFC-8670DN -- Scanner Not Working in Ubuntu 9.04 noobwifi Linux - Hardware 3 05-22-2009 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:30 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration