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

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sane-backends in Ubuntu.
https://bugs.launchpad.net/bugs/913938

Title:
  Detected scanner fails to open device, "Invalid Argument"

Status in sane-backends package in Ubuntu:
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/913938/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to