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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
01-07-2013, 03:20 PM
|
#1
|
|
LQ Newbie
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24
Rep: 
|
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.
|
|
|
|
01-08-2013, 12:27 AM
|
#2
|
|
Senior Member
Registered: Dec 2011
Location: Columbia , MD
Distribution: Fedora & Black Opal 64
Posts: 1,585
Rep: 
|
|
|
|
|
01-08-2013, 02:08 AM
|
#3
|
|
LQ Newbie
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24
Original Poster
Rep: 
|
Quote:
Originally Posted by Ztcoracat
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.
|
|
|
|
01-08-2013, 10:06 PM
|
#4
|
|
Senior Member
Registered: Dec 2011
Location: Columbia , MD
Distribution: Fedora & Black Opal 64
Posts: 1,585
Rep: 
|
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.
|
01-08-2013, 10:21 PM
|
#5
|
|
Senior Member
Registered: Dec 2011
Location: Columbia , MD
Distribution: Fedora & Black Opal 64
Posts: 1,585
Rep: 
|
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
|
|
|
|
01-09-2013, 01:01 AM
|
#6
|
|
Senior Member
Registered: Dec 2011
Location: Columbia , MD
Distribution: Fedora & Black Opal 64
Posts: 1,585
Rep: 
|
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
|
|
|
|
01-09-2013, 01:33 AM
|
#7
|
|
LQ Newbie
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24
Original Poster
Rep: 
|
Quote:
Originally Posted by Ztcoracat
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.
|
|
|
|
01-09-2013, 03:21 PM
|
#8
|
|
LQ Newbie
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24
Original Poster
Rep: 
|
Sadly, linux-image-3.7-trunk-amd64 doesn't change anything.
|
|
|
|
01-09-2013, 07:27 PM
|
#9
|
|
Senior Member
Registered: Dec 2011
Location: Columbia , MD
Distribution: Fedora & Black Opal 64
Posts: 1,585
Rep: 
|
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-
|
|
|
|
01-09-2013, 07:54 PM
|
#10
|
|
Senior Member
Registered: Dec 2011
Location: Columbia , MD
Distribution: Fedora & Black Opal 64
Posts: 1,585
Rep: 
|
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.
|
|
|
|
01-09-2013, 08:24 PM
|
#11
|
|
Senior Member
Registered: Dec 2011
Location: Columbia , MD
Distribution: Fedora & Black Opal 64
Posts: 1,585
Rep: 
|
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
|
|
|
|
01-11-2013, 03:08 PM
|
#12
|
|
LQ Newbie
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24
Original Poster
Rep: 
|
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.
|
|
|
|
01-11-2013, 06:44 PM
|
#13
|
|
Senior Member
Registered: Dec 2011
Location: Columbia , MD
Distribution: Fedora & Black Opal 64
Posts: 1,585
Rep: 
|
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.
|
01-12-2013, 01:55 AM
|
#14
|
|
LQ Newbie
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24
Original Poster
Rep: 
|
Quote:
Originally Posted by Ztcoracat
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...
|
|
|
|
01-12-2013, 06:36 PM
|
#15
|
|
Senior Member
Registered: Dec 2011
Location: Columbia , MD
Distribution: Fedora & Black Opal 64
Posts: 1,585
Rep: 
|
Quote:
Originally Posted by DuskGlow
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
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:04 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|