LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-26-2017, 09:40 AM   #1
skrotnisse
LQ Newbie
 
Registered: Dec 2014
Location: Sweden
Distribution: Linux Mint, Slackware, Debian
Posts: 8

Rep: Reputation: Disabled
Problems detecting scanner: brother dcp-j315w


I've installed KDE Neon (based on Ubuntu 16.04 LTS (kernel 4.8.0-49)) and installed the drivers for Brother dcp-j315w. The printer works fine, but I cannot find the scanner with "scanimage -L" nor with "sane-find-scanner" I've got the following outputs:

Code:
:~$ lsusb Bus 001 Device 005: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 002: ID 04f9:0254 Brother Industries, Ltd  Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 003: ID 0461:0010 Primax Electronics, Ltd HP PR1101U / Primax PMX-KPR1101U Keyboard Bus 003 Device 002: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button) Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Code:
$ sudo dpkg -l | grep Brother
[sudo] password for jonas: 
ii  brscan-skey                                       0.2.4-1                                    amd64        Brother Linux scanner S-KEY tool
ii  brscan3                                           0.2.13-1                                   amd64        Brother Scanner Driver
ii  dcpj315wcupswrapper:i386                          1.1.3-1                                    i386         Brother CUPS Inkjet Printer Definitions
ii  dcpj315wlpr:i386                                  1.1.3-1                                    i386         Brother lpr Inkjet Printer Definitions
ii  libsane-dsseries                                  1.0.5-1                                    amd64        Brother DS-series scanners driver
ii  printer-driver-brlaser                            3-5~ubuntu1                                amd64        printer driver for (some) Brother laser printers
ii  printer-driver-ptouch                             1.4-1                                      amd64        printer driver Brother P-touch label printers
As far as I can see I've installed every driver (+uninstalled and reinstalled several times...), I've added the brother printer to /lib/udev/rules.d/60-libsane.rules . Restarted the computer etc.

The scanner has previously worked very well with Debian, Slackware, Linux Mint, and Crunchbang.

Last edited by skrotnisse; 04-26-2017 at 09:41 AM.
 
Old 04-26-2017, 09:35 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Check that /etc/sane.d/dll.conf has an uncommented 'brother3' entry present. This should help with getting this device recognised.
 
Old 04-26-2017, 10:34 PM   #3
skrotnisse
LQ Newbie
 
Registered: Dec 2014
Location: Sweden
Distribution: Linux Mint, Slackware, Debian
Posts: 8

Original Poster
Rep: Reputation: Disabled
I have brother3 uncommented in /etc/sane.d/dll.conf. Still no success
 
Old 04-27-2017, 12:42 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Does your udev rule assign a group, and is the user a member of that group?
 
Old 04-27-2017, 12:52 AM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Is the scanner detected if sane-find-scanner run as root?
Code:
sudo sane-find-scanner
Open a terminal and monitor kernel messages with
Code:
dmesg -wH
then plug in the multifunction device and capture the output.
 
Old 04-27-2017, 01:52 AM   #6
skrotnisse
LQ Newbie
 
Registered: Dec 2014
Location: Sweden
Distribution: Linux Mint, Slackware, Debian
Posts: 8

Original Poster
Rep: Reputation: Disabled
The output of

Code:
sudo sane-find scanner
is (I had to shorten the output, but I hope it includes necessary information):

Code:
  # 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.

  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.
  # SANE has been built without libusb support. This may be a reason
  # for not detecting USB scanners. Read README for more details.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.
The output of
Code:
 dmesg -wH
is

Code:
[apr27 06:59] Linux version 4.8.0-49-generic (buildd@lcy01-26) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #52~16.04.1-Ubuntu SMP Thu Apr 20 10:55:59 UTC 2017 (Ubuntu 4.8.0-49.52~16.04.1-generic 4.8.17)
[apr27 08:47] usb 4-1: new full-speed USB device number 6 using uhci_hcd
[  +0,199992] usb 4-1: New USB device found, idVendor=04f9, idProduct=0254
[  +0,000005] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  +0,000003] usb 4-1: Product: DCP-J315W
[  +0,000003] usb 4-1: Manufacturer: Brother
[  +0,000003] usb 4-1: SerialNumber: BROC1F273255
[  +0,007736] usblp 4-1:1.0: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0254
[  +0,000377] usb-storage 4-1:1.2: USB Mass Storage device detected
[  +0,000331] scsi host4: usb-storage 4-1:1.2
[  +1,041557] scsi 4:0:0:0: Direct-Access     Brother  DCP-J315W        1.00 PQ: 0 ANSI: 2
[  +0,000639] sd 4:0:0:0: Attached scsi generic sg2 type 0
[  +0,071369] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[  +4,073150] usblp0: removed
[  +0,016889] usblp 4-1:1.0: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0254

Last edited by skrotnisse; 04-27-2017 at 01:53 AM.
 
Old 04-27-2017, 03:27 AM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
See if the advice in this thread helps...

https://ubuntuforums.org/showthread....8#post13494168
 
Old 04-27-2017, 03:42 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Similar advice given here...
https://askubuntu.com/questions/7915...iver-installed

FWIW, I note that you mentioned this in your opening post
Quote:
I've added the brother printer to /lib/udev/rules.d/60-libsane.rules
What does your udev rule look like? I note that there is a 'brother-udev-rule-type1-1.0.2-0.all.deb' package that needs to be installed to provide the appropriate rule automatically. Refer Scanner Setting file (deb package)...

http://support.brother.com/g/b/downl...w_eu_as&os=128
 
Old 04-27-2017, 03:55 AM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I downloaded that rule to inspect if further...

Code:
#
#   udev rules sample for Brother MFP
#         version 1.0.0-1
#
#   Copyright (C) 2012 Brother. Industries, Ltd.
#
#   copy to /etc/udev/rules.d or /lib/udev/rules.d
#

ACTION!="add", GOTO="brother_mfp_end"

SUBSYSTEM=="usb", GOTO="brother_mfp_udev_1"
SUBSYSTEM!="usb_device", GOTO="brother_mfp_end"
LABEL="brother_mfp_udev_1"


SYSFS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
ATTRS{idVendor}=="04f9", GOTO="brother_mfp_udev_2"
GOTO="brother_mfp_end"
LABEL="brother_mfp_udev_2"

#  ATTRS{bInterfaceNumber}=="01", GOTO="brother_mfp_udev_3"
#  ATTRS{bInterfaceNumber}=="02", GOTO="brother_mfp_udev_3"
#  ATTRS{bInterfaceNumber}=="03", GOTO="brother_mfp_udev_3"
#  GOTO="brother_mfp_end"
#  LABEL="brother_mfp_udev_3"

ATTRS{bInterfaceClass}!="0ff", GOTO="brother_mfp_end"
ATTRS{bInterfaceSubClass}!="0ff", GOTO="brother_mfp_end"
ATTRS{bInterfaceProtocol}!="0ff", GOTO="brother_mfp_end"

#MODE="0666"
#GROUP="scanner"
ENV{libsane_matched}="yes"
#SYMLINK+="scanner-%k"


LABEL="brother_mfp_end"
 
Old 04-27-2017, 09:30 AM   #10
skrotnisse
LQ Newbie
 
Registered: Dec 2014
Location: Sweden
Distribution: Linux Mint, Slackware, Debian
Posts: 8

Original Poster
Rep: Reputation: Disabled
Smile

Thank you for you time!
I still don't know what went wrong, but I think the problem was related to the distribution. Even if KDE Neon is based on Ubuntu they are probably not equivalent. I had no problem getting the scanner working in Linux Mint.
However, I learned a lot during my attempts
 
Old 04-27-2017, 02:54 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,803

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Yes, any situation like this that forces you to get under the hood will make you learn!
 
  


Reply



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
DCP-J315W scanner wireless connection. Missing download of driver. Printer works fine eslmbl Linux - Newbie 2 12-24-2014 07:10 AM
Scanner Brother DCP-7055W Mario Blunk Linux - Hardware 6 07-14-2014 08:23 AM
Brother DCP J125 scanner does not work with Ubuntu 11.4 techniphobe Linux - Newbie 6 09-05-2012 05:23 PM
problems installing dcp-7030 brother scanner zenbo Linux - Newbie 1 02-15-2012 04:53 PM
Installing Brother DCP-7040 printer/scanner under CUPS wufo Slackware 4 11-27-2011 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:50 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration