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 - 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
  Search this Thread
Old 01-07-2013, 03:20 PM   #1
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Rep: Reputation: Disabled
Brother DCP7030 scanner: Invalid argument


Hello,

I am using 64-bit Debian Sid with 3.2.0-4-amd64 kernel. I had no problems installing Brother DCP7030 printer with official drivers from Brother's page, but I can't find any way to get scanner working. I've installed sane and libsane-1.0.22-7.4, brscan3-0.2.11-5.amd64 and brscan-skey-0.2.4-0.amd64 packages, copied the lib64 libraries mentioned in the Brother's FAQ.

I've modified /lib/udev/rules.d/60-libsane.rules adding
Code:
# Brother DCP-7030
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01ea", MODE="666", GROUP="scanner",  ENV{libsane_matched}="yes"

# The following rule will disable USB autosuspend for the device
ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'"

LABEL="libsane_usb_rules_end"
User pawel is in groups ld and scanner.
At the very end of /etc/sane.d/dll.conf, there's "brother3" line.

Now when I plug in my printer I can see dmesg:
Code:
[ 8695.435420] usb 2-2: new full-speed USB device number 4 using xhci_hcd
[ 8695.470593] usb 2-2: New USB device found, idVendor=04f9, idProduct=01ea
[ 8695.470598] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=3
[ 8695.470600] usb 2-2: SerialNumber: 000M9N675233
lsusb:
Code:
Bus 002 Device 004: ID 04f9:01ea Brother Industries, Ltd DCP-7030
Code:
root@autumn:~# ls -l /dev/bus/usb/002/
crw-rw-r-T  1 root root 189, 128 sty  6 21:15 001
crw-rw-r-T+ 1 root lp   189, 131 sty  6 23:40 004
Code:
pawel@autumn:~$ scanimage -L
WARNING: gnome-keyring:: couldn't connect to: /home/pawel/.cache/keyring-TtMqOV/pkcs11: No such file or directory
device `brother3:bus4;dev1' is a Brother DCP-7030 USB scanner
device `v4l:/dev/video0' is a Noname Laptop_Integrated_Webcam_HD virtual device
But after all, after every first plugging in, scanimage -T gives me:
Code:
pawel@autumn:~$ SANE_DEBUG_BROTHER3=255 scanimage -T
[sanei_debug] Setting debug level of brother3 to 255.
[brother3] brother init
[brother3] brother version: 1000001
[brother3] starting bus scan
[brother3] scanning bus 004
[brother3] found dev 8087/0024
[brother3] found dev 1D6B/0002
[brother3] scanning bus 001
[brother3] found dev 0C45/6441
[brother3] found dev 8086/0189
[brother3] found dev 8087/0024
[brother3] found dev 1D6B/0002
[brother3] scanning bus 003
[brother3] found dev 1D6B/0003
[brother3] scanning bus 002
[brother3] found dev 04F9/01EA
[brother3] found dev 1D6B/0002
WARNING: gnome-keyring:: couldn't connect to: /home/pawel/.cache/keyring-TtMqOV/pkcs11: No such file or directory
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
[brother3] cancel called...
And after every another try:
Code:
pawel@autumn:~$ SANE_DEBUG_BROTHER3=255 scanimage -T
[sanei_debug] Setting debug level of brother3 to 255.
[brother3] brother init
[brother3] brother version: 1000001
[brother3] starting bus scan
[brother3] scanning bus 004
[brother3] found dev 8087/0024
[brother3] found dev 1D6B/0002
[brother3] scanning bus 001
[brother3] found dev 0C45/6441
[brother3] found dev 8086/0189
[brother3] found dev 8087/0024
[brother3] found dev 1D6B/0002
[brother3] scanning bus 003
[brother3] found dev 1D6B/0003
[brother3] scanning bus 002
[brother3] found dev 04F9/01EA
[brother3] found dev 1D6B/0002
WARNING: gnome-keyring:: couldn't connect to: /home/pawel/.cache/keyring-TtMqOV/pkcs11: No such file or directory
scanimage: open of device brother3:bus4;dev1 failed: Invalid argument
The same happens with xsane and simple-scan, and when giving commands from root account. Switching to kernel 2.6.32-5-amd64 doesn't help, either.

I know there are a few similar problems out there on the forums, but for me simply changing the access rights and groups does not work. As far as I know, gnome-keyring warning is irrevelant.
 
Old 01-08-2013, 12:27 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Hi:

Are you sure the keyring is irrelevant?
http://crunchbang.org/forums/viewtopic.php?id=19541

http://hongouru.blogspot.com/2012/07...g-couldnt.html

Maybe a cups driver will help.
http://packages.debian.org/sid/printer-driver-ptouch

Check in the booklet that came with your printer; more details on troubleshooting might be in there.
http://www.brother-usa.com/support/#.UOu9Edd_Z8c

Hope this helps
 
Old 01-08-2013, 02:08 AM   #3
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Are you sure the keyring is irrelevant?
It seems so - I've tried this on a Crunchbang liveCD without gnome-keyring problem, and it was the same.
I repaired it on my present one using your suggestions, and still, nothing changed.

Printer driver didn't work, either, and I have no idea what should I look for in a Brother booklet. I remember scanner working flawlessly under Arch and Ubuntu some months ago, so it is possible, and I suspect some newer version of... sane? kernel? broke the compatibility.
 
Old 01-08-2013, 10:06 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I gave thought to moving forward to a newer version of the kernel; generally does the job.
Even sometimes rolling back to an older version of the kernel too- But I know; you already did that-

Hmm...Not sure what this compatibility issue is.

Since your printer did perform under Arch and Ubuntu I suspect that this compatibility is of some sort of configuration. I'm wondering if re-configuring the 'printing' config file would make any difference.
However; I'm not sure how to change that file for the printer to comply.

I'll continue a little re-search and see if I find anything else you could try.

As crazy as it sounds; (this may be the answer) what is it that Arch and Ubuntu have (if anything) that Crunchbang lacks?
 
1 members found this post helpful.
Old 01-08-2013, 10:21 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Is your Brother printer wireless?


Here is the manual for your printer. Maybe there is something in the manual for 'Troubleshooting' that might be helpful-
http://www.brother-usa.com/SiteSearc...0#.UO0Qp9d_Z8e

Last edited by Ztcoracat; 01-09-2013 at 12:38 AM. Reason: Webpage for printer manual
 
Old 01-09-2013, 01:01 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Found Brother Help Pages:
http://welcome.solutions.brother.com...n/faq_prn.html

If you haven't tried this cmd already give it a go-
Code:
sudo /etc/init.d/cups restart
 
Old 01-09-2013, 01:33 AM   #7
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
As crazy as it sounds; (this may be the answer) what is it that Arch and Ubuntu have (if anything) that Crunchbang lacks?
They have some other libraries, and different defaults in the configs. I've tried, hovewer, running Ubuntu 12.04.1 LiveCD and installing my Brother - and what's interesting, it didn't work. The last time it did was on installed Ubuntu 12.10 though, and I'm gonna try it again.

My printer isn't wireless, I connect it to my laptop via USB.

Also, restarting cups didn't help.

My best guess is that some sane libraries can work only with the newest kernels. I'll try upgrading to absolutely bleeding edge one.
 
Old 01-09-2013, 03:21 PM   #8
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
Sadly, linux-image-3.7-trunk-amd64 doesn't change anything.
 
Old 01-09-2013, 07:27 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
The latest stable kernel (3.7.1) didn't help either?
http://www.kernel.org/

This is rare.

Sitting back and thinking more on this at the moment-
 
Old 01-09-2013, 07:54 PM   #10
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
As you know Sane defines the programming interface (API) that's used to communicate between frontends and backends.

Wonder if there is something incorrect in the sane-utilities file?
/usr/share/doc/sane-backends-1.0.9/sane.ps?

http://linux.about.com/gi/dynamic/of...er-geinitz.de/


The new Sane backend tar.balls have been divided into multiple parts. Directions are in the "Read Me" file
http://linux.about.com/gi/dynamic/of...tang.com/sane/.

Hope this helps; I'm running out of ideas.
If needed I'll ask a Moderator to help-

Last edited by Ztcoracat; 01-09-2013 at 08:28 PM.
 
Old 01-09-2013, 08:24 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Found this at crunchbang.org
http://crunchbang.org/forums/viewtopic.php?id=15104

[SOLVED]

Problem solved:

Installed a few gutenprint utils - it seems that these are necessary for cups to communicate with some printers, but are not included in the printing-support script.
Quote:
open of device brother3:bus4;dev1 failed: Invalid argument
I think this might be your answer.
Might be a permission problem like this man (Luctor) in a Fedora forum said-
http://forums.fedoraforum.org/showthread.php?t=229311

Last edited by Ztcoracat; 01-09-2013 at 08:49 PM. Reason: Additional webpage found
 
Old 01-11-2013, 03:08 PM   #12
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
Ztcoracat, thanks for all your help, but sadly, none of this works.

Kernel 3.7.1 only breaks the graphic and wifi drivers (installed it from package without non-free modules).

I don't have sane-backends package in my Debian, only sane-utils. Should I compile SANE manually?

Gutenprint brought nothing new. I lacked cups-driver-gutenprint, but it didn't change how sane behaves.

As I said, priviliges are okay, as root can't scan, either.

And I tried rmmoding usblp. Nothing changes.
 
Old 01-11-2013, 06:44 PM   #13
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
I'm sorry DuskGlow:

I have told you everything that I know to try.

Would you like me to get another Senior Member or Moderator involved?
 
1 members found this post helpful.
Old 01-12-2013, 01:55 AM   #14
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ztcoracat View Post
Would you like me to get another Senior Member or Moderator involved?
If that's not a problem. I've been thinking about everything I could do and found nothing. I'm sure I'm missing something obvious, I jusy don't know, what...
 
Old 01-12-2013, 06:36 PM   #15
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by DuskGlow View Post
If that's not a problem. I've been thinking about everything I could do and found nothing. I'm sure I'm missing something obvious, I jusy don't know, what...
Done
In this new thread in 'General' you'll find where I have requested for a Moderator or Senior Member to come and help you in this thread.
http://www.linuxquestions.org/questi...ng-4175445322/

Hang in there. I believe that others will find or know what it is that we may have overlooked or just don't know ourselves what else to try.

Last edited by Ztcoracat; 01-12-2013 at 06:37 PM. Reason: Include new thread
 
  


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
BROTHER DCP7030 does not work with UBUNTU 11.04 vadsca Linux - Newbie 10 09-02-2012 10:35 AM
[SOLVED] xsane networked scanner returns "invalid argument" wufo Linux - Hardware 2 04-22-2011 05:25 PM
[SOLVED] Failed to start scanner: Invalid argument HPc6380 theAdmiral Linux - Hardware 4 06-24-2010 11:37 PM
Invalid Argument for Scanner in Ubuntu ~zoey~ Linux - Newbie 5 03-10-2009 04:35 PM
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:05 PM.

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