Detected scanner fails to open device, "Invalid Argument"

Bug #913938 reported by TomTasche
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
sane-backends (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Hello,

I've installed the latest drivers from the Brother support website for my Brother DCP-165C. Printing works fine, but I can't get scanning working... I have followed all instructions provided by the Brother support website (udev rules, etc). I'm running Ubuntu Server 11.10.

No matter whether I'm running scanimage (or xsane) as sudo or not, I'm getting the same error message:
"scanimage: open of device brother3:bus2;dev1 failed: Invalid argument"

You can find a strace attached (ran with sudo).

Some more outputs:
scanimage -L
device `brother3:bus2;dev1' is a Brother DCP-165C USB scanner

sane-find-scanner
  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04f9, product=0x0204) at libusb:007:002
found USB scanner (vendor=0x0bda, product=0x8187) at libusb:002:003
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.

sudo sane-find-scanner # note: there is a minor difference to the output of the command ran without sudo...
[sudo] password for tom:

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04f9 [Brother], product=0x0204 [DCP-165C]) at libusb:007:002
found USB scanner (vendor=0x0bda, product=0x8187 [RTL8187B_WLAN_Adapter]) at libusb:002:003
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program

brscan-skey -l
 DCP-165C : brother3:bus2;dev1 : USB Active

Thanks for your help and have a great day
Tom

Revision history for this message
TomTasche (tomtasche) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sane-backends (Ubuntu):
status: New → Confirmed
Revision history for this message
effell (effell) wrote :

This looks like duplicate of https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/478761.

Using a suggestion there, I worked around this by adding myself to group lp and then restarting.
To do this using the command line:
groups yourusername
usermod -G allyourgroups,commaseparated,lp yourusername

Revision history for this message
Thomas Lau (thomas3003) wrote :

Download drivers from Brother website both for printer and scanner and my model is DCP-L2540DW
http://support.brother.com/g/b/downloadtop.aspx?c=sg&lang=en&prod=dcpl2540dw_us_as
Choose Linux and deb to download. After downloading its very likely the file is found in Download file .
Open terminal and type

thomas@thomas-H81MHV3 ~ $ cd Downloads
thomas@thomas-H81MHV3 ~/Downloads $ sudo dpkg -i dcpl2540dwlpr-3.2.0-1.i386.deb
[sudo] password for thomas: (Type in your own password )

thomas@thomas-H81MHV3 ~/Downloads $ scanimage -L
device `brother4:bus2;dev4' is a Brother DCP-L2540DW USB scanner
thomas@thomas-H81MHV3 ~/Downloads $ sudo dpkg -i brscan4-0.4.3-3.amd64.deb

thomas@thomas-H81MHV3 ~/Downloads $ scanimage -L
device `brother4:bus2;dev4' is a Brother DCP-L2540DW USB scanner
thomas@thomas-H81MHV3 ~/Downloads $ scanimage --test
scanimage: open of device brother4:bus2;dev4 failed: Invalid argument
thomas@thomas-H81MHV3 ~ $ lsusb
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0b05:1786 ASUSTek Computer, Inc. USB-N10 802.11n Network Adapter [Realtek RTL8188SU]
Bus 003 Device 004: ID 04f9:0328 Brother Industries, Ltd
Bus 003 Device 009: ID 046d:c31c Logitech, Inc. Keyboard K120
Bus 003 Device 008: ID 04d9:1135 Holtek Semiconductor, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

(The bus is 003 and Device is 004 for my brother printer you need to change to yours accordingly)

thomas@thomas-H81MHV3 ~ $ sudo chmod a+w /dev/bus/usb/003/004
[sudo] password for thomas:
thomas@thomas-H81MHV3 ~ $ scanimage -L
device `brother4:bus2;dev4' is a Brother DCP-L2540DW USB scanner

Revision history for this message
penalvch (penalvch) wrote :

TomTasche, thank you for reporting this and helping make Ubuntu better.

As per https://wiki.ubuntu.com/Releases 11.10 reached EOL on May 9, 2013.

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

Changed in sane-backends (Ubuntu):
status: Confirmed → Invalid
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.