Package Details: brscan5 1.2.11_0-2

Git Clone URL: https://aur.archlinux.org/brscan5.git (read-only, click to copy)
Package Base: brscan5
Description: SANE drivers from Brother for compatible models
Upstream URL: http://support.brother.com
Keywords: printer scanner
Licenses: GPL, custom:brother
Submitter: razerei
Maintainer: razerei
Last Packager: razerei
Votes: 21
Popularity: 1.26
First Submitted: 2019-04-17 14:30 (UTC)
Last Updated: 2022-09-16 14:43 (UTC)

Latest Comments

1 2 3 4 Next › Last »

cmsigler commented on 2022-11-17 14:49 (UTC) (edited on 2022-11-17 14:50 (UTC) by cmsigler)

@razerei and @wounc78,

Thank you for this AUR pkg/driver :D It works as expected with my Brother DS740-D portable scanner -- except for the duplex functionality, which I personally didn't expect to work after doing my pre-buy research. The xsane GUI has an option to select duplex operation, but it doesn't seem to do anything/be wired up 8\

But your driver pkg works perfectly well! Thank you!!! :)

Clemmitt Sigler

Baerbeisser commented on 2022-09-19 19:11 (UTC) (edited on 2022-09-19 19:12 (UTC) by Baerbeisser)

Thanks for checking, but i gave up asking them and got a scanner with full support in SANE (Fujitsu ScanSnap S1300i). My neighbour is Windows-Admin, so i gave it them.

razerei commented on 2022-09-16 14:46 (UTC) (edited on 2022-09-16 15:03 (UTC) by razerei)

Thanks @wounc78. Patch published to AUR. The udev rule came from brother; thanks for catching the deprecated SYSFS setting. I've removed it now. The improper file permission was my fault so I've fixed that now as well.

@Baerbeisser you might check with Brother support. Their support site is confusing for DS-740D because they supply the brscan5 driver, but then tell you configure it using brsaneconfig4, so it's not clear to me which should work. If you're using a USB hub, I'd also suggest trying to plug directly into your computer to avoid buggy hubs just in case.

wounc78 commented on 2022-09-15 18:23 (UTC) (edited on 2022-09-15 18:26 (UTC) by wounc78)

So for my earlier comment here is my suggested fix.

As the SYSFS key is deprecated it can be safely removed from the udev rules and this can be done with a patch with the following content:

--- a/opt/brother/scanner/brscan5/udev-rules/NN-brother-mfp-brscan5-1.0.2-2.rules
+++ b/opt/brother/scanner/brscan5/udev-rules/NN-brother-mfp-brscan5-1.0.2-2.rules
@@ -14,7 +14,6 @@
 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"

The PKGBUILD should be modified to include this new patch and also the permission when installing the udev rule should be set to 644 instead of 755 to avoid issue with it being executable:

# Maintainer: David Bernheisel <david+aur at bernheisel dot com>
# Based on the brscan4 PKGBUILD by Harey

pkgname=brscan5
pkgver=1.2.11_0
pkgrel=1
pkgdesc='SANE drivers from Brother for compatible models'
arch=('i686' 'x86_64')
license=('GPL' 'custom:Brother')
url="http://support.brother.com"
depends=('sane' 'libusb-compat')
optdepends=('gtk2: for running brscan_gnetconfig')
source=(sysfs.patch)
md5sums=('628bb19291913b225608b0f59253c7e2')
md5sums_i686=('dca083bd72991c0d87ec43698721cd65')
md5sums_x86_64=('b4eacf7266b791ef6c8f76238e96378a')
source_x86_64=("https://download.brother.com/welcome/dlf104036/${pkgname}-${pkgver/_/-}.x86_64.rpm")
source_i686=("https://download.brother.com/welcome/dlf104035/${pkgname}-${pkgver/_/-}.i386.rpm")
install="brscan5.install"

prepare() {
    cd "$srcdir"
    patch --strip=1 --input="../sysfs.patch"
}

build() {
  mkdir -p usr/lib/udev/rules.d
  mkdir -p etc/sane.d/dll.d
}

package() {
  cp -r "$srcdir/etc" "$pkgdir"
  cp -r "$srcdir/opt" "$pkgdir"
  cp -r "$srcdir/usr" "$pkgdir"

  install -D -m644 "$srcdir/opt/brother/scanner/brscan5/doc/LICENSE_ENG.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_ENG.txt"
  install -D -m644 "$srcdir/opt/brother/scanner/brscan5/doc/LICENSE_JPN.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE_JPN.txt"

  echo "brother5" > "$pkgdir/etc/sane.d/dll.d/brother5.conf"
  chmod 644 "$pkgdir/etc/sane.d/dll.d/brother5.conf"

  install -D -m644 "$srcdir/opt/brother/scanner/brscan5/udev-rules/NN-brother-mfp-brscan5-1.0.2-2.rules" "$pkgdir/usr/lib/udev/rules.d/40-${pkgname}.rules"

  mkdir -p "$pkgdir/usr/lib/sane"
  cd "$pkgdir/usr/lib/sane" || exit 1
  mv "$pkgdir/opt/brother/scanner/brscan5/libsane-brother5.so.1.0.7" "$pkgdir/usr/lib/sane"
  ln -sf libsane-brother5.so.1.0.7 libsane-brother5.so.1
  ln -sf libsane-brother5.so.1 libsane-brother5.so

  cd "$pkgdir/usr/lib" || exit 1
  mv "$pkgdir/opt/brother/scanner/brscan5/libLxBsScanCoreApi.so.3.2.0" "$pkgdir/usr/lib"
  ln -sf "libLxBsScanCoreApi.so.3.2.0" "libLxBsScanCoreApi.so.3"
  ln -sf "libLxBsScanCoreApi.so.3" "libLxBsScanCoreApi.so"

  libs=(libLxBsNetDevAccs libLxBsDeviceAccs libLxBsUsbDevAccs)
  for lib in "${libs[@]}"; do
    mv "$pkgdir/opt/brother/scanner/brscan5/${lib}.so.1.0.0" "$pkgdir/usr/lib"
    ln -sf "$lib.so.1.0.0" "$lib.so.1"
    ln -sf "$lib.so.1" "$lib.so"
  done
}

Not sure if this is the correct way to do the PKGBUILD but it works.

hias commented on 2022-09-13 18:48 (UTC)

i get the same messages as @wounc78 after upgraded brscan5 (1.2.10_0-0 -> 1.2.11_0-1) Scanner works with xsane via Network (USB never testet).

Baerbeisser commented on 2022-09-13 11:35 (UTC) (edited on 2022-09-13 14:04 (UTC) by Baerbeisser)

Mine is a Brother DSmobile DS-740D. About two months ago, it didn't got detected by Simple-Scan anymore, but by Xsane.

Since about a month ago, it causes xHCI to crash, if plugged in USB-3. It's not usable in USB-2.

brscan4 works partially, pages get scanned, but the resulting image only has the first half of the page.

Some way to get kernel.log to persist after reboot (non-Systemd), since input doesn't work afterwards? I tried to copy to Home in a loop, but this overwrites with empty after the crash.

wounc78 commented on 2022-09-13 10:09 (UTC) (edited on 2022-09-13 10:11 (UTC) by wounc78)

I'm getting two messages in my journal after installing this package:

Sep 13 12:04:36 arch systemd-udevd[566]: Configuration file /usr/lib/udev/rules.d/40-brscan5.rules is marked executable. Please remove executable permission bits. Proceeding anyway. Sep 13 12:04:36 arch systemd-udevd[566]: /usr/lib/udev/rules.d/40-brscan5.rules:17 Invalid key 'SYSFS'

Is this something from Brother causing this or is the package not being installed correctly? It works just fine but these message should still be dealt with if anyone else gets them too?

hias commented on 2022-08-29 17:48 (UTC) (edited on 2022-08-29 17:51 (UTC) by hias)

Just in case: After Upgrade I miss my Network scanner (brother-dcpj152w) every time. so i have to check configured scanners whit: brsaneconfig5 -q and add my device neu if necessary: brsaneconfig5 -a name=FRIENDLY-NAME model=MODEL-NAME ip=xx.xx.xx.xx ..as root ;-)

blackout commented on 2022-08-11 10:43 (UTC)

ADS-1700W via WIFI works perfectly fine.

razerei commented on 2022-08-04 14:22 (UTC)

@baudneo you might have missed the postinstall message, which doesn't print when reinstalling the package (fully uninstall and then install). The postinstall message shows how to use brsaneconfig5. tldr use the absolute path and as root

@MrWhiskers thanks for the report. I see that Brother also directs folks to download brscan5.

@DocileNewbie thanks for the report. I've edited my comment to remove that model. I see that Brother directs folks to download brscan4 for that model on their website.

Generally, looking again at how I detect supported models, it seems inaccurate and includes commented-out lines in Brother's INI files. I also see that Brother includes a udev rule file in the source RPM. Therefore, I will switch to using their udev rule file instead of grepping for models and making my own. The way Brother does it is by matching on the idVendor of 04f9, so hopefully this will be more accurate.