Failed to open device `brother3:bus1;dev1': Invalid argument

Bug #578620 reported by Brian J. Murrell
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
xsane (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: xsane

When I try to run xsane as a regular use, a dialog pops up with "Failed to open device `brother3:bus1;dev1': Invalid argument" in it and the only option is to close it.

If I run xsane as root (i.e. sudo xsane) everything works properly.

Of course, having to run xsane as root is just a dangerous hack and should not be necessary.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: xsane 0.996-2ubuntu1.1
ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Mon May 10 23:14:16 2010
ProcEnviron:
 PATH=(custom, user)
 LANG=en_CA.utf8
 SHELL=/bin/bash
SourcePackage: xsane

Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :
Revision history for this message
joshyg6 (josheg) wrote :

Bump.. Anyone know?

Revision history for this message
robbychen (robbychen2008) wrote :

I also wrote a post about it: http://blog.robbychen.com/2010/03/25/brother-scanner-driver-installation-in-ubuntu/. However, the solution in the post only works on Ubuntu 9.10. I tried similar steps on Ubuntu 10.04 with no success. It still shows "Invalid argument" error when I run it in the non-root environment. The warning message displayed each time I run xsane in the root account is a good explanation why we shouldn't run xsane as root. Hope this bug will fix soon.

Revision history for this message
joshyg6 (josheg) wrote : Re: [Bug 578620] Re: Failed to open device `brother3:bus1; dev1': Invalid argument

Why hasn't anyone come up with the solution for this yet?

On Tue, Aug 31, 2010 at 11:58 PM, robbychen <email address hidden>wrote:

> I also wrote a post about it: http://blog.robbychen.com/2010/03/25
> /brother-scanner-driver-installation-in-ubuntu/. However, the solution
> in the post only works on Ubuntu 9.10. I tried similar steps on Ubuntu
> 10.04 with no success. It still shows "Invalid argument" error when I
> run it in the non-root environment. The warning message displayed each
> time I run xsane in the root account is a good explanation why we
> shouldn't run xsane as root. Hope this bug will fix soon.
>
> --
> Failed to open device `brother3:bus1;dev1': Invalid argument
> https://bugs.launchpad.net/bugs/578620
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “xsane” package in Ubuntu: New
>
> Bug description:
> Binary package hint: xsane
>
> When I try to run xsane as a regular use, a dialog pops up with "Failed to
> open device `brother3:bus1;dev1': Invalid argument" in it and the only
> option is to close it.
>
> If I run xsane as root (i.e. sudo xsane) everything works properly.
>
> Of course, having to run xsane as root is just a dangerous hack and should
> not be necessary.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 10.04
> Package: xsane 0.996-2ubuntu1.1
> ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
> Uname: Linux 2.6.32-22-generic i686
> NonfreeKernelModules: nvidia
> Architecture: i386
> Date: Mon May 10 23:14:16 2010
> ProcEnviron:
> PATH=(custom, user)
> LANG=en_CA.utf8
> SHELL=/bin/bash
> SourcePackage: xsane
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/578620/+subscribe
>

Revision history for this message
Alastair Callum (alastair-callum) wrote :

I had the same problem with my Brother DCP-145C on Ubuntu 10.04 when I upgraded and I just found a SOLUTION.

The post referred to by robbychen (http://blog.robbychen.com/2010/03/25/brother-scanner-driver-installation-in-ubuntu/) almost works, but the lines of coded needed to be added are slightly different, and I found the solution at http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/instruction_scn1c.html#u9.10

SOLUTION for Ubuntu 10.04 (despite it referring to 9.10 with the same solution) is the following (taken from the page I just linked to):
"
    1. Open "/lib/udev/rules.d/40-libsane.rules" file.
    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 scanners
    ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes"

    3. Restart the OS. "

Hope this helps.

Revision history for this message
rowez (info-rowez) wrote :

Alastair: look on https://bugs.launchpad.net/bugs/72321 for the real solution. You need GROUP and MODE.

Revision history for this message
Denis Walrave (deniswalrave) wrote :

I tried everything without success until:
sudo adduser <user> lp

Then it worked again.

Denis

Ubuntu 10.10
Brother DCP7010L Printer/Scanner

Revision history for this message
Hans Deragon (deragon) wrote :

I confirm having this problem with Ubuntu 08.04 Hardy Heron. However, none of the solution proposed apply to 08.04 and therefore running xsane from root remains the only solution.

tags: added: 08.04 heron
Revision history for this message
Jeruvy (jeruvy) wrote :

I'm going to update this to confirmed as many folks have reported it and I can confirm it also.

Changed in xsane (Ubuntu):
status: New → Confirmed
Revision history for this message
joshyg6 (josheg) wrote :

Check the brother website itself for linux directions.. They WORK!

On Mon, Feb 7, 2011 at 2:31 PM, Jeruvy <email address hidden> wrote:

> I'm going to update this to confirmed as many folks have reported it and
> I can confirm it also.
>
>
> ** Changed in: xsane (Ubuntu)
> Status: New => Confirmed
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/578620
>
> Title:
> Failed to open device `brother3:bus1;dev1': Invalid argument
>
> Status in “xsane” package in Ubuntu:
> Confirmed
>
> Bug description:
> Binary package hint: xsane
>
> When I try to run xsane as a regular use, a dialog pops up with
> "Failed to open device `brother3:bus1;dev1': Invalid argument" in it
> and the only option is to close it.
>
> If I run xsane as root (i.e. sudo xsane) everything works properly.
>
> Of course, having to run xsane as root is just a dangerous hack and
> should not be necessary.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 10.04
> Package: xsane 0.996-2ubuntu1.1
> ProcVersionSignature: Ubuntu 2.6.32-22.33-generic 2.6.32.11+drm33.2
> Uname: Linux 2.6.32-22-generic i686
> NonfreeKernelModules: nvidia
> Architecture: i386
> Date: Mon May 10 23:14:16 2010
> ProcEnviron:
> PATH=(custom, user)
> LANG=en_CA.utf8
> SHELL=/bin/bash
> SourcePackage: xsane
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/578620/+subscribe
>

Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :

On Mon, 2011-02-07 at 19:50 +0000, joshyg6 wrote:
> Check the brother website itself for linux directions.. They WORK!

For various (and less than satisfactory) values of "WORK". The Brother
implementation is a total hack. They clearly lack any understanding of
filesystem standards and general operation of real-world Linux systems.

Additionally, my next printer purchase will preclude vendors which give
me difficult to follow, half-baked recipes to making their printer work
and any new printer will be chosen from a vendor that officially
supports the open printing standards.

Once this printer I have stops working, I am soooooo done with Brother.
I just wish I'd have taken it back while I had the chance instead of
wasting a piece of my life I will never get back on it.

Revision history for this message
Michel Briand (michelbriand) wrote :

On Debian squeeze I've found something interesting :

# ls -dl /usr/lib64
drwxr-x--- 4 root root 4096 Oct 31 16:48 /usr/lib64

The permissions are too restrictive for non-root user to load the libsane.so backend.

Something went wrong when the package brscan3 was installed ????

Revision history for this message
Jayneil Dalal (jayneil-dalal) wrote :

I am still having this problem in Xubuntu 13.04. Any solutions? Tried everything but no luck

Revision history for this message
penalvch (penalvch) wrote :

Brian J. Murrell, thank you for reporting this and helping make Ubuntu better.

As per https://wiki.ubuntu.com/Releases your release is EOL.

If you have an issue in a supported release (ex. 16.04) please file a new report, and feel free to subscribe me to it.

Changed in xsane (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :

And yet another Ubuntu bug that has zero activity for 3 years only be closed EOL. No wonder I don't use Ubuntu any more. Seems there is zero interested in fixing any bug that doesn't affect a phone.

Revision history for this message
penalvch (penalvch) wrote :

Brian J. Murrell:

>"And yet another Ubuntu bug that has zero activity for 3 years only be closed EOL."

You didn't make a comment since 2011 (and didn't even mention what specific printer model you were using) and expect folks to be motivated and rush to investigate this?

>"No wonder I don't use Ubuntu any more. Seems there is zero interested in fixing any bug that doesn't affect a phone."

I'm not sure how you came to this conclusion, when I asked you to file a new report if the issue (on your computer, not phone) is still present.

Revision history for this message
Hans Deragon (deragon) wrote :

To be fair, since 14.04 and including 16.04, my Brother MFC-J615W multi-function printer works fine using Brother's device drivers. They are not as easy as they could be to install, but they work and all the functionality except maybe fax (I never tried) it work. Printing and scanning work well.

And that model of printer is great because the ink cartridges do not have any chips; they can be refilled easily and cheaply.

Revision history for this message
Hans Deragon (deragon) wrote :

So to complete my previous comment, for me, the problem has gotten away.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.