You are not logged in.
I looked at several packages and found my PKGBUILD below to be working for printing.
After installing brscan4 from the AUR for scanning, the printer stopped working, though. (lpinfo -v didn't show the printer anymore. scanimage -L showed the scanner, but Simple Scan didn't work iirc.)
At the moment both printing and scanning do work as user, but I am not sure why as I changed several things:
Added me as user to groups "lp" and "scanner".
Added /etc/udev/rules.d/99-brother-printer.rules as per Conflict_with_SANE:
ATTRS{idVendor}=="04f9", ATTR{idProduct}=="02d1", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
Removed /etc/udev/rules.d/brscan4.rules which basically contained:
ATTRS{idVendor}=="04f9", ATTR{idProduct}=="02d1", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
PKGBUILD:
pkgname=brother-mfc1810
pkgver=3.0.1_1
pkgrel=1
pkgdesc="Brother cups and lpr driver for MFC-1810"
arch=('i686' 'x86_64')
url="http://support.brother.com/g/s/id/linux/en/index.html"
license=('custom:Brother' 'GPL')
depends=('cups')
depends_x86_64=('lib32-glibc')
optdepends=('brscan4: scanner support')
source=(
http://www.brother.com/pub/bsc/linux/dlf/mfc1810lpr-3.0.1-1.i386.rpm
http://www.brother.com/pub/bsc/linux/dlf/mfc1810cupswrapper-3.0.1-1.i386.rpm
)
md5sums=(
'bdf1d648ba91d31b1a3f79412eb202f3'
'0a9213315655e75b548da87256cfa378'
)
package() {
cp -rv ${srcdir}/opt ${pkgdir}/
cp -rv ${srcdir}/var ${pkgdir}/
mkdir -p ${pkgdir}/usr/share/cups/model
mkdir -p ${pkgdir}/usr/lib/cups/filter
ln -sv /opt/brother/Printers/MFC1810/cupswrapper/brother-MFC1810-cups-en.ppd ${pkgdir}/usr/share/cups/model
ln -sv /opt/brother/Printers/MFC1810/cupswrapper/brother_lpdwrapper_MFC1810 ${pkgdir}/usr/lib/cups/filter
}
Edited to add:
Depending on the udev-rule in place, the owner of the according USB device in /dev/bus/usb/*/* becomes "root scanner" or "root lp". Do I need a symlink in the udev-rule to have both?
Last edited by post (2016-07-16 08:45:37)
Offline