LinuxQuestions.org

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

DuskGlow 01-14-2013 03:19 AM

Update: I've checked Ubuntu 12.10 LiveUSB, and it seems that scanner doesn't work on live medium, either. Last time I managed to get it running was on freshly-updated 12.10 two months ago, but as far as I can see, the versions of cups, sane and sane-utils on LiveUSB are up-to-date.

Ztcoracat 01-14-2013 09:38 PM

Not sure what to make of this.
Certainly is challenging to say the least-

I'll see what the Ubuntu members have to say about this hardware issue.
http://ubuntuforums.org/forumdisplay.php?f=332

DuskGlow 01-15-2013 01:54 AM

Ztcoracat: should I post there personally, or have you done it already?

This morning I've mailed sane-devel list. Maybe they have some ideas...

allend 01-15-2013 08:04 AM

I have a Brother MFC-J825DW working in Slackware (64bit and 32bit). With this device, the scanning fails if the scanner application (xsane and skanlite tested) has the scan mode set to 24bit Color(Fast). All is OK for scan mode 24bit Color.

I can also report that 'scanimage -T' fails for me.
Code:

root@Magpie:/home/david/Desktop/srcpkgs/mfc-j825dw# scanimage -T
No log handling enabled - using stderr logging
Created directory: /var/lib/net-snmp/mib_indexes
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: scanning image of size 1648x2314 pixels at 24 bits/pixel
scanimage: acquiring RGB frame, 8 bits/sample
scanimage: reading one scanline, 4944 bytes...  FAIL Error: Out of memory


Ztcoracat 01-15-2013 08:19 PM

Quote:

Originally Posted by DuskGlow (Post 4870316)
Ztcoracat: should I post there personally, or have you done it already?

This morning I've mailed sane-devel list. Maybe they have some ideas...

You could post personally if you'd like. In the meantime I am going through their advanced searches to see if anyone has SOLVED this.

These links are Ubuntu Members that solved their Brother Printer issues. But not all are the same as yours.
http://ubuntuforums.org/showthread.p...rinter+DCP7030

http://ubuntuforums.org/showthread.p...rinter+DCP7030

http://ubuntuforums.org/showthread.p...rinter+DCP7030

This Ubuntu member has the same printer that you have. Hope this helps.
http://ubuntuforums.org/showthread.p...rinter+DCP7030

http://ubuntuforums.org/showthread.p...rinter+DCP7030

This thread suggest's running xsane as root but there will most likely be a
warning.http://ubuntuforums.org/showthread.p...rinter+DCP7030
http://ubuntuforums.org/showthread.p...rinter+DCP7030

http://welcome.solutions.brother.com.../en/index.html

Ztcoracat 01-15-2013 08:25 PM

Allend:

Thanks for joining the thread.

Would gscan help at this point?

Ztcoracat 01-15-2013 09:38 PM

Based on this invalid agrument:
Quote:

sane_start: Invalid argument
I did a little more digging just to see if there are other possible solutions.

Try running:
Code:

scanimage --help
I read that the backend does not set default values for the
width and height (-x and -y)
So, in order to make a scan, you must specify them.

http://sane.10972.n7.nabble.com/umax...t-td12539.html

http://forum.kde.org/viewtopic.php?f=19&t=90437

allend 01-15-2013 11:54 PM

Quote:

Would gscan help at this point?
I do not know, as gscan is not included with default Slackware.

I tried 'scanimage --help' and got the following:
Code:

Options specific to device `brother4:net1;dev0':
  Mode:
    --mode Black & White|Gray[Error Diffusion]|True Gray|24bit Color|24bit Color[Fast] [24bit Color[Fast]]
        Select the scan mode
    --resolution 100|150|200|300|400|600|1200|2400|4800|9600dpi [200]
        Sets the resolution of the scanned image.
    --source FlatBed|Automatic Document Feeder(left aligned)|Automatic Document Feeder(centrally aligned) [Automatic Document Feeder(left aligned)]
        Selects the scan source (such as a document-feeder).
    --brightness -50..50% (in steps of 1) [inactive]
        Controls the brightness of the acquired image.
    --contrast -50..50% (in steps of 1) [inactive]
        Controls the contrast of the acquired image.
  Geometry:
    -l 0..215.9mm (in steps of 0.0999908) [0]
        Top-left x position of scan area.
    -t 0..355.6mm (in steps of 0.0999908) [0]
        Top-left y position of scan area.
    -x 0..215.9mm (in steps of 0.0999908) [215.88]
        Width of scan-area.
    -y 0..355.6mm (in steps of 0.0999908) [355.567]
        Height of scan-area.

Scanning using 'scanimage' works for me with this. The --mode option is required for success.
Code:

scanimage  --mode "24bit Color" > out1.pnm
I should also note this device is using a network connection rather than a USB connection.

Ztcoracat 01-16-2013 01:06 AM

If gscan supports usb DuskGlow's Brother printer should be good to go-
Trying to find that out.

Crunchbang is Debian based right?
If so this may work:

Debian 6
1. Open "/lib/udev/rules.d/60-libsane.rules" as a super-user
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 scanner
ATTRS{idVendor}=="04f9", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

3. Restart the OS.
http://welcome.solutions.brother.com...n1c.html#u9.10


"Troubleshooting is eliminating possible sources of trouble one at a time with certainty".
Written by Mr. Frankbell; another one of our amazing Senior Members-

What sources of trouble have we missed? A library?

I have pondered the idea of starting from source and build a driver from scratch to aid this printer.
However I have never built a driver from scratch; I'd have to learn how-

Dusk Glow could you build your own driver?

DuskGlow 01-16-2013 02:23 AM

Thank you for your suggestions.

None of Ubuntu threads mentioned do cover my problem or provide a solution.

Changing color mode in xsane isn't helpful, either.

When I try
Code:

pawel@autumn:~$ scanimage --help -d brother3:bus3:dev1
(...)
scanimage: open of device brother3:bus3:dev1 failed: Invalid argument
Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
    brother3:bus3;dev1 v4l:/dev/video0

And what do you mean by building a driver? Compiling sane? Or Brother?

Ztcoracat 01-16-2013 02:30 AM

Quote:

Originally Posted by DuskGlow (Post 4871126)
Thank you for your suggestions.

None of Ubuntu threads mentioned do cover my problem or provide a solution.

Changing color mode in xsane isn't helpful, either.

When I try
Code:

pawel@autumn:~$ scanimage --help -d brother3:bus3:dev1
(...)
scanimage: open of device brother3:bus3:dev1 failed: Invalid argument
Type ``scanimage --help -d DEVICE'' to get list of all options for DEVICE.

List of available devices:
    brother3:bus3;dev1 v4l:/dev/video0

And what do you mean by building a driver? Compiling sane? Or Brother?

By building a driver I mean compiling from source code and make/build your own driver for the Brother printer.

Quote:

open of device brother3:bus3:dev1 failed: Invalid argument
I will think on this output and look for results in the morning. It's very late-

DuskGlow 01-16-2013 02:40 AM

Aren't Brother drivers closed-source? How can I build one without the source code?

allend 01-16-2013 07:59 AM

Yes, the Brother drivers are closed source. The driver packages you installed contain compiled binaries, so there is no need to build. The driver packages also contain install scripts that should do the necessary setup. As you are using a Debian distribution, then there should be no problem using .deb packages.

Quote:

List of available devices:
brother3:bus3;dev1 v4l:/dev/video0
It appears that there is a video device in your system. Is this a device (perhaps a webcam) that could be disconnected or disabled to see if a conflict is causing your problem?

DuskGlow 01-16-2013 08:14 AM

I've removed the kernel module responsible for the webcam, and it still doesn't change anything.
Code:

pawel@autumn:~$ scanimage -L
device `brother3:bus3;dev1' is a Brother DCP-7030 USB scanner
pawel@autumn:~$ scanimage -T
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
pawel@autumn:~$ scanimage -T
scanimage: open of device brother3:bus3;dev1 failed: Invalid argument

Scanner works well under Windows, so I have no idea what's wrong.

allend 01-16-2013 08:22 AM

Have you seen this? http://forums.debian.net/viewtopic.php?f=7&t=74892


All times are GMT -5. The time now is 03:21 AM.