LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Brother DCP7030 scanner: Invalid argument (http://www.linuxquestions.org/questions/linux-hardware-18/brother-dcp7030-scanner-invalid-argument-4175444547/)

DuskGlow 01-07-2013 04:20 PM

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.

Ztcoracat 01-08-2013 01:27 AM

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

DuskGlow 01-08-2013 03:08 AM

Quote:

Originally Posted by Ztcoracat (Post 4865168)
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.

Ztcoracat 01-08-2013 11:06 PM

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?

Ztcoracat 01-08-2013 11:21 PM

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

Ztcoracat 01-09-2013 02:01 AM

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

DuskGlow 01-09-2013 02:33 AM

Quote:

Originally Posted by Ztcoracat (Post 4865856)
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.

DuskGlow 01-09-2013 04:21 PM

Sadly, linux-image-3.7-trunk-amd64 doesn't change anything.

Ztcoracat 01-09-2013 08:27 PM

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-

Ztcoracat 01-09-2013 08:54 PM

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-

Ztcoracat 01-09-2013 09:24 PM

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

DuskGlow 01-11-2013 04:08 PM

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.

Ztcoracat 01-11-2013 07:44 PM

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?

DuskGlow 01-12-2013 02:55 AM

Quote:

Originally Posted by Ztcoracat (Post 4868095)
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...

Ztcoracat 01-12-2013 07:36 PM

Quote:

Originally Posted by DuskGlow (Post 4868232)
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.


All times are GMT -5. The time now is 01:40 AM.