LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   brother DS-740 config. (https://www.linuxquestions.org/questions/linux-newbie-8/brother-ds-740-config-4175702836/)

prizm02 10-30-2021 09:11 AM

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.

hazel 10-30-2021 09:28 AM

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.

prizm02 10-30-2021 12:28 PM

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 ?

hazel 10-30-2021 01:27 PM

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.

prizm02 10-30-2021 06:00 PM

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.

hazel 10-31-2021 07:49 AM

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.

prizm02 11-10-2021 07:26 PM

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 ?

allend 11-10-2021 11:54 PM

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).

prizm02 11-11-2021 07:53 AM

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


allend 11-11-2021 08:26 AM

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

prizm02 11-11-2021 02:36 PM

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/

prizm02 11-11-2021 04:41 PM

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.

shruggy 11-11-2021 05:27 PM

Quote:

Originally Posted by prizm02 (Post 6300490)
Did cat /proc/bus/pci/devices
...
Don't see my scanner

Why would a USB scanner be shown on PCI bus?

prizm02 11-11-2021 06:02 PM

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


allend 11-11-2021 08:43 PM

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.


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