LinuxQuestions.org
Register a domain and help support LQ
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-14-2013, 03:19 AM   #16
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled

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.
 
Old 01-14-2013, 09:38 PM   #17
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 01-15-2013, 01:54 AM   #18
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
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...
 
Old 01-15-2013, 08:04 AM   #19
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,433

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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
 
Old 01-15-2013, 08:19 PM   #20
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by DuskGlow View Post
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

Last edited by Ztcoracat; 01-15-2013 at 08:21 PM. Reason: Website
 
Old 01-15-2013, 08:25 PM   #21
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Rep: Reputation: Disabled
Allend:

Thanks for joining the thread.

Would gscan help at this point?
 
Old 01-15-2013, 09:38 PM   #22
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Rep: Reputation: Disabled
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
 
Old 01-15-2013, 11:54 PM   #23
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,433

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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.
 
1 members found this post helpful.
Old 01-16-2013, 01:06 AM   #24
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Rep: Reputation: Disabled
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?
 
Old 01-16-2013, 02:23 AM   #25
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
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?
 
Old 01-16-2013, 02:30 AM   #26
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,054
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by DuskGlow View Post
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-
 
Old 01-16-2013, 02:40 AM   #27
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
Aren't Brother drivers closed-source? How can I build one without the source code?
 
Old 01-16-2013, 07:59 AM   #28
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,433

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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?

Last edited by allend; 01-16-2013 at 08:03 AM.
 
Old 01-16-2013, 08:14 AM   #29
DuskGlow
LQ Newbie
 
Registered: Jan 2013
Location: Warsaw, Poland
Distribution: Debian Sid
Posts: 24

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-16-2013, 08:22 AM   #30
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,433

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 01:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration