LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-30-2021, 09:11 AM   #1
prizm02
Member
 
Registered: Mar 2015
Location: USA
Distribution: Solydx
Posts: 72

Rep: Reputation: Disabled
brother DS-740 config.


I,m still trying to install a ds-740 scanner I get

Code:
found USB scanner (vendor=0x04f9 [Brother], product=0x0469 [DS-740D]) at libusb:001: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.
Code:
scanimage -L

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
I'm stuck.
 
Old 10-30-2021, 09:28 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,496
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
Have you downloaded the driver? I found a .deb package at https://www.brother.co.uk/support/ds-740d/downloads. You'd have to unpack this by hand to install it in PCLinuxOS or Slackware but it can be done.

The most essential parts of the driver are the configuration file, which goes into /etc/sane.d and the SANE backend, which goes into one of the library trees (Slackware puts them in /usr/lib64/sane but I don't know where RedHat distros put them). You also need to edit the name of the configuration file into /etc/sane.d/dll.conf, but it's quite possible that the package contains a script which does all that for you.

Have a look at the man page for sane. It describes how to run scanimage with debugging active so that you can see where the holdup is.
 
Old 10-30-2021, 12:28 PM   #3
prizm02
Member
 
Registered: Mar 2015
Location: USA
Distribution: Solydx
Posts: 72

Original Poster
Rep: Reputation: Disabled
Hi,

I converted the 64bit RPM from the brother website
Code:
brscan5-1.2.6-1.x86_64.rpm to  brscan5-1.2.7-x86_64-0.txz
I don't see an entry for brscan in /etc/sane.d only an empty bh.conf file.

Do I unpack the txz before installing ?

You suggest the .deb vs. the .rpm driver ?

Last edited by prizm02; 10-30-2021 at 01:08 PM.
 
Old 10-30-2021, 01:27 PM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,496
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
I didn't see an rpm when I looked, which surprised me. Usually manufacturers provide both. Obviously I didn't look hard enough.

The txz file that you have made (I assume you used rpm2tgz to convert it) should be directly installable in Slackware using installpkg. Afterwards you should find all the files you need in their proper locations. You may need to put your usb vendor and device numbers into the config file provided but sometimes just uncommenting the usb option is enough. And you definitely need to check if the driver name has been edited into dll.conf by the installer. If you're lucky, the thing will just work. If not, debug it as described in the man page.
 
Old 10-30-2021, 06:00 PM   #5
prizm02
Member
 
Registered: Mar 2015
Location: USA
Distribution: Solydx
Posts: 72

Original Poster
Rep: Reputation: Disabled
I checked the dll.config and found Brother5 uncomented , I read the man-sane

scanimage -L only works as root but group command gives:

users lp wheel floppy audio video cdrom plugdev power netdev scanner.

Last edited by prizm02; 10-30-2021 at 06:38 PM.
 
Old 10-31-2021, 07:49 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,496
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
Check in /lib/udev/rules.d. There should be a file of rules for scanners; in Slackware it's called 80-libsane.rules. I don't know what Debian calls it. If there isn't a line there for your scanner, add one, using the existing lines as a model. Then unplug the scanner and plug it in again. udev needs to transfer group ownership of the usb port that your scanner uses to the scanner group in order for you to find it without being root.
 
Old 11-10-2021, 07:26 PM   #7
prizm02
Member
 
Registered: Mar 2015
Location: USA
Distribution: Solydx
Posts: 72

Original Poster
Rep: Reputation: Disabled
Hello again,

after adding:
# Brother-DS740D
ATTR{idVendor}=="0x04f9", ATTR{idProduct}=="0x0469", MODE="0660", GROUP="lp", ENV{libsane_matched}="yes"

Hplip gives a warning, and scanimage --l still does not detect scanner. I would like to try and reinstall sane but the 15 mirrors are not available yet. OR maybe remove hplip ?

Last edited by prizm02; 11-10-2021 at 08:29 PM. Reason: mistake
 
Old 11-10-2021, 11:54 PM   #8
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,357

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
Quote:
I converted the 64bit RPM from the brother website
There is no indication of the actual command used.
Quote:
but it's quite possible that the package contains a script which does all that for you
Indeed there is.

I suggest running
Code:
rpm2txz -c -S -n -d brscan5-1.2.7-0.x86_64.rpm
(the -S option extracts the install scripts in the rpm) to rebuild the package, and then run
Code:
upgradepkg --reinstall brscan5-1.2.7-x86_64-0.txz
The doinst.sh script will run, adding the supporting libraries, followed by running the script '/opt/brother/scanner/brscan5/setupSaneScan5' with the -i option (this adds an entry to /etc/sane.d/dll.conf) and then '/opt/brother/scanner/brscan5/udev-rules/udev_install' (to set up udev rules).
 
Old 11-11-2021, 07:53 AM   #9
prizm02
Member
 
Registered: Mar 2015
Location: USA
Distribution: Solydx
Posts: 72

Original Poster
Rep: Reputation: Disabled
Thanks

Followed your instructions: output is :
Code:
Upgrading brscan5-1.2.7-x86_64-0 package using ./brscan5-1.2.7-x86_64-0.txz
+==============================================================================
Pre-installing package brscan5-1.2.7-x86_64-0...
Removing package: brscan5-1.2.7-x86_64-0-upgraded-2021-11-11,08:50:14
Verifying package brscan5-1.2.7-x86_64-0.txz.
Installing package brscan5-1.2.7-x86_64-0.txz:
PACKAGE DESCRIPTION:
# brscan5 (Brother Scanner Driver brscan5)
# 
# Brother sane backend Driver
# 
Executing install script for brscan5-1.2.7-x86_64-0.txz.
This software is based in part on the work of the Independent JPEG Group.
ln: failed to create symbolic link '/usr/lib//libLxBsDeviceAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsDeviceAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsDeviceAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsNetDevAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsNetDevAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsNetDevAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsScanCoreApi.so.3.2.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsScanCoreApi.so.3.2': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsScanCoreApi.so.3': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsUsbDevAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsUsbDevAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib//libLxBsUsbDevAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib64//sane/libsane-brother5.so.1.0.7': File exists
ln: failed to create symbolic link '/usr/lib64//sane/libsane-brother5.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib64//sane/libsane-brother5.so.1': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsDeviceAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsDeviceAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsDeviceAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsNetDevAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsNetDevAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsNetDevAccs.so.1': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsScanCoreApi.so.3.2.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsScanCoreApi.so.3.2': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsScanCoreApi.so.3': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsUsbDevAccs.so.1.0.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsUsbDevAccs.so.1.0': File exists
ln: failed to create symbolic link '/usr/lib64//libLxBsUsbDevAccs.so.1': File exists
ln: failed to create symbolic link '/etc/opt/brother/scanner/brscan5/brscan5.ini': File exists
ln: failed to create symbolic link '/etc/opt/brother/scanner/brscan5/brsanenetdevice.cfg': File exists
ln: failed to create symbolic link '/etc/opt/brother/scanner/brscan5/models/models': File exists
ln: failed to create symbolic link '/usr/bin/brsaneconfig5': File exists
Package brscan5-1.2.7-x86_64-0.txz installed.
Package brscan5-1.2.7-x86_64-0 upgraded with new package ./brscan5-1.2.7-x86_64-0.txz.
Dmesg :
Code:
  290.858551] usb 1-4: New USB device found, idVendor=04f9, idProduct=0469, bcdDevice= 4.06
[  290.858564] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  290.858570] usb 1-4: Product: DS-740D
[  290.858574] usb 1-4: Manufacturer: Brother
[  290.858577] usb 1-4: SerialNumber: U65748A1X117440
[  899.020522] usb 1-4: USB disconnect, device number 3
[  908.509301] usb 1-4: new high-speed USB device number 4 using ehci-pci
[  914.089337] usb 1-4: device descriptor read/64, error -110
[  914.324885] usb 1-4: New USB device found, idVendor=04f9, idProduct=0469, bcdDevice= 4.06
[  914.324899] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  914.324904] usb 1-4: Product: DS-740D
[  914.324908] usb 1-4: Manufacturer: Brother
[  914.324911] usb 1-4: SerialNumber: U65748A1X117440
[  951.986824] usb 1-4: USB disconnect, device number 4

Last edited by prizm02; 11-11-2021 at 08:08 AM.
 
Old 11-11-2021, 08:26 AM   #10
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,357

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
Looks like progress. What is the output of 'scanimage -L'? Does the output of 'scanimage --help' show options specific to your device?

Last edited by allend; 11-11-2021 at 08:31 AM.
 
Old 11-11-2021, 02:36 PM   #11
prizm02
Member
 
Registered: Mar 2015
Location: USA
Distribution: Solydx
Posts: 72

Original Poster
Rep: Reputation: Disabled
scanimage -L:

Code:
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages)
scanimage -p
Code:
root@condor:~# scanimage -p
Output format is not set, using pnm as a default.
scanimage: no SANE devices found
sane-find-scanner

Code:
found USB scanner (vendor=0x04f9 [Brother], product=0x0469 [DS-740D]) at libusb:001:004
  # Your USB scanner was (probably) detected. It may or may not be supported by
  # SANE. Try scanimage -L and read the backend's manpage.
Found this page:
https://www.linux.org/threads/solved...scanner.35516/

Last edited by prizm02; 11-11-2021 at 03:34 PM.
 
Old 11-11-2021, 04:41 PM   #12
prizm02
Member
 
Registered: Mar 2015
Location: USA
Distribution: Solydx
Posts: 72

Original Poster
Rep: Reputation: Disabled
Did cat /proc/bus/pci/devices

Code:
  GNU nano 5.9                        devices                                   
0000    10221422        0                      0                       0       >
0008    10021315        25              c000000c                       0       >
0009    10021308        21              fe264004                       0       >
0010    10221424        0                      0                       0       >
0011    10221425        18                     0                       0       >
0018    10221424        0                      0                       0       >
0019    10221426        19                     0                       0       >
0020    10221424        0                      0                       0       >
0080    10227814        12              fe268004                       0       >
0088    10227800        13                  f141                    f131       >
0090    10227807        12              fe26e000                       0       >
0092    10227808        11              fe26d000                       0       >
0098    10227807        12              fe26c000                       0       >
009a    10227808        11              fe26b000                       0       >
00a0    1022780b        0                      0                       0       >
00a2    1022780d        10              fe260004                       0       >
00a3    1022780e        0                      0                       0       >
00a4    1022780f        0                      0                       0       >
00a5    10227809        12              fe26a000                       0       >
00c0    1022141a        0                      0                       0       >
                        [ File 'devices' is unwritable ]
^G Help      ^O Write Out ^W Where Is  ^K Cut       ^T Execute   ^C Location
^X Exit      ^R Read File ^\ Replace   ^U Paste     ^J Justify   ^/ Go To Line
Don't see my scanner, Time to give up.
 
Old 11-11-2021, 05:27 PM   #13
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by prizm02 View Post
Did cat /proc/bus/pci/devices
...
Don't see my scanner
Why would a USB scanner be shown on PCI bus?
 
Old 11-11-2021, 06:02 PM   #14
prizm02
Member
 
Registered: Mar 2015
Location: USA
Distribution: Solydx
Posts: 72

Original Poster
Rep: Reputation: Disabled
My NEWBIE mistake, sorry.

According to Archwiki brother DS series needs libsane-dsseries 1.0.5_1-2 package to work with brother DS scanners. I did not find it in slackbuilds repo.

also
Code:
/opt/brother/scanner/brscan5/models
is empty.

output of brsaneconfig5
Code:
/opt/brother/scanner/brscan5/brscan_gnetconfig: error while loading shared libraries: libavahi-client.so.3: cannot open shared object file: No such file or directory
/opt/brother/scanner/brscan5/brscan_cnetconfig: error while loading shared libraries: libavahi-client.so.3: cannot open shared object file: No such file or directory

Last edited by prizm02; 11-11-2021 at 06:16 PM.
 
Old 11-11-2021, 08:43 PM   #15
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,357

Rep: Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739Reputation: 2739
Does the device show in the output of 'lsusb'? What is the output of 'groups'?

The way I read it, the libsane-dsseries 1.0.5_1 is the driver for the DS-620.

I see eight files in /opt/brother/scanner/brscan5/models
Quote:
brscan5ext_0.ini
brscan5ext_1.ini
brscan5ext_2.ini
brscan5ext_3.ini
brscan5ext_4.ini
brscan5ext_5.ini
brscan5ext_6.ini
brscan5ext_7.ini
brscan5ext_8.ini
As I understand it, brsaneconfig5 is used for setting up ethernet connections.

Running 'for f in br*config* lib*; do echo $f; ldd $f | grep not; done' in /opt/brother/scanner/brscan5 shows that brscan_cnetconfig, brscan_gnetconfig and libsane-brother5.so.1.0.7 all have a dependency on avahi.

The use case for network discovery of a portable scanner defeats me, so I would not expect this to be a hard dependency.

You can get the SlackBuild for avahi here.
 
  


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
Install brother printer - Brother printer support smithk Linux - Software 3 10-07-2020 03:30 PM
[SOLVED] Brother printer HL-2270DW driver - Brother solutions offer four - which one? juneymoon Linux - Software 9 06-15-2013 04:52 PM
[SOLVED] installation of a brother hl2170w from brother francois.e Slackware 24 10-17-2011 09:44 PM
epson 740 SUSE config. MAGOVIA Linux - Distributions 0 05-08-2004 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:27 AM.

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