Skip to content

Instantly share code, notes, and snippets.

@rudiservo
Last active June 9, 2020 10:22
Show Gist options
  • Save rudiservo/d2db81df1bdde87d91d6676af4343d97 to your computer and use it in GitHub Desktop.
Save rudiservo/d2db81df1bdde87d91d6676af4343d97 to your computer and use it in GitHub Desktop.
Brother printer fix for 2018
#This is some instructions and atempts to fix brother DCP-150C printer to work with sane and cups.
First rule, google is your friend, but logs gives you context and tips
So tail -f on that syslog or journalctl -f
1st problem I encounter, things where not in cups after I installed Brother drivers
For 64bit Users: Command : sudo cp /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane
For 32bit Users: Command : sudo cp /usr/lib/sane/libsane-brother* /usr/lib/i386-linux-gnu/sane
2nd problem somehow usblp got installed, and it takes over the printer whenever you try to print or scan,
usbfs: interface 0 claimed by usblp while 'scanimage' sets config #1
a bit of a bummer so we have to blacklist it, dont know how this will work out but...
# echo "blacklist usblp" > /etc/modprobe.d/cups-blacklist-usblp.conf
3rd problem... multifunction printers have something called storage for usb and microSd, so the usb_storage grabs it
a hole new range of problems come from this
So the fix is probably something like this.
# ln -sfr /usr/lib64/libbr* /usr/lib/x86_64-linux-gnu
# ln -sfr /usr/lib64/sane/libsane-brother* /usr/lib/x86_64-linux-gnu/sane
# echo 'ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="*", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"' > /etc/udev/rules.d/59-udev-local.rules
resources:
https://help.ubuntu.com/community/sane_Troubleshooting
https://fitzcarraldoblog.wordpress.com/2015/07/20/the-problem-of-scanning-using-usb-multi-function-printers-in-linux/
https://fitzcarraldoblog.wordpress.com/2015/07/24/the-problem-of-scanning-using-usb-multi-function-printers-in-linux-continued-2/
https://raspberrypi.stackexchange.com/questions/3487/editing-quirks-for-a-usb-driver
https://libdlo.freedesktop.org/wiki/DeviceQuirks/
http://www.neutron.in.th/content/kernel-driver-hack-add-blacklist-some-printers-usblp
https://forums.opensuse.org/showthread.php/527332-Brother-MFC-7220-Scanner-allergic-to-Linux/page8
https://wiki.archlinux.org/index.php/SANE#Multiple_backends_claim_scanner
https://aur.archlinux.org/packages/brscan2/
https://askubuntu.com/questions/968699/problems-ubuntu-17-10-and-scanner
https://help.ubuntu.com/community/SaneDaemonTutorial
https://ubuntuforums.org/showthread.php?t=590793&page=50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment