You are not logged in.

#1 2019-01-07 04:00:02

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

[SOLVED] Unable to Use Brother Scanner with SANE

I am trying to use my Brother HL-2280DW scanner on Arch. It's a WiFi printer/scanner and I have no problem printing with it using CUPS/Avahi, but I've not had any luck getting the scanner to work. Here is what I've done so far...

I installed brscan4 from AUR (https://aur.archlinux.org/packages/brscan4) - the Brother web page says brscan4 is the correct driver for the HL-2280DW (see https://support.brother.com/g/s/id/linu … _scn.html).

I checked the scanner to see that its local IP address is 192.168.000.008.

I ran the configuration tool for the scanner:

brsaneconfig4 -a name=Brother model=HL-2280DW ip=192.168.000.008

Now I can locate the scanner successfully:

[tony@linux ~]$ scanimage -L
device `brother4:net1;dev0' is a Brother Brother HL-2280DW
device `v4l:/dev/video0' is a Noname HD WebCam: HD WebCam virtual device

But if I try to actually use it, I get an "Invalid argument" error...

[tony@linux ~]$ scanimage --device "brother4:net1;dev0" --format=tiff > test.tiff
scanimage: open of device brother4:net1;dev0 failed: Invalid argument

Same issue if I even just try to determine the available options...

[tony@linux ~]$ scanimage --device "brother4:net1;dev0" -A
scanimage: open of device brother4:net1;dev0 failed: Invalid argument

If I run the above commands as root, I get the same errors, so it's not a permissions issue.

The Arch wiki page for SANE (https://wiki.archlinux.org/index.php/SANE) says the issue could be firmware-related, but I bought the scanner in 2015 and the Brother website (see https://support.brother.com/g/b/downloa … w_us&os=7) only has a firmware update from 2013, so I think my scanner must have the latest firmware already.

The Brother-specific section of the Arch wiki article on scanner-specific problems (see https://wiki.archlinux.org/index.php/SA … s#Brother) notes that the dll.conf file needs to include the correct brotherX (where X stands for the relevant brscan version) indicated, but it already does...

[tony@linux ~]$ grep brother /etc/sane.d/dll.conf
brother4

That same page also suggests checking the IP address in the config file, but this also appears to be correct already...

[tony@linux ~]$ more /etc/opt/brother/scanner/brscan4/brsanenetdevice4.cfg
DEVICE=Brother , "HL-2280DW" , 0x4f9:0x272 , IP-ADDRESS=192.168.000.008

Finally, that same page also suggests running "brsaneconfig4 -d" and looking through the output. I see it pinging the correct IP address, but then no returned packets... I've included the output below. Wondering if anyone has any tips/ideas; I've spent so much time on this and out of ideas...

[tony@linux ~]$ brsaneconfig4 -d
-----------------------------
cat /etc/fstab
# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# UUID=e61e203c-e35e-4fe4-8b26-51019045fc99
/dev/sda5               /               ext4            rw,relatime,data=ordered        0 1

# UUID=63b8459f-be15-4b76-a1ab-3ab621804cc9
/dev/sda6               /home           ext4            rw,relatime,data=ordered        0 2

# UUID=2d8a1531-8571-4a60-bba3-840deefc7861
/dev/sda3               /boot           ext2            rw,relatime,block_validity,barrier,user_xattr,acl        0 2

-----------------------------
sane-find-scanner

  # sane-find-scanner will now attempt to detect your scanner. If the
  # result is different from what you expected, first make sure your
  # scanner is powered up and properly connected to your computer.

  # No SCSI scanners found. If you expected something different, make sure that
  # you have loaded a kernel SCSI driver for your SCSI adapter.

could not open USB device 0x8087/0x0024 at 004:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x04f2/0xb336 at 001:004: Access denied (insufficient permissions)
could not open USB device 0x8087/0x07dc at 001:003: Access denied (insufficient permissions)
could not open USB device 0x8087/0x0024 at 001:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 003:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
  # No USB scanners found. If you expected something different, make sure that
  # you have loaded a kernel driver for your USB host controller and have setup
  # the USB system correctly. See man sane-usb for details.

  # Not checking for parallel port scanners.

  # Most Scanners connected to the parallel port or other proprietary ports
  # can't be detected by this program.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.
-----------------------------
ls -R -all /proc/bus/usb
ls: cannot access '/proc/bus/usb': No such file or directory
-----------------------------
cat /proc/bus/usb/devices
cat: /proc/bus/usb/devices: No such file or directory
-----------------------------
scanimage -L
device `brother4:net1;dev0' is a Brother Brother HL-2280DW
device `v4l:/dev/video0' is a Noname HD WebCam: HD WebCam virtual device
-----------------------------
-----------------------------
/etc/opt/brother/scanner/brscan4//brsanenetdevice4.cfg:
-----------------------------
/etc/opt/brother/scanner/brscan4//Brsane4.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_11.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_15.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_12.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_18.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_17.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_14.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_9.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_19.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_21.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_3.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_6.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_8.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_22.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_7.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_20.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_10.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_5.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_16.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_4.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_2.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_13.ini:
-----------------------------
/etc/opt/brother/scanner/brscan4//models4/ext_1.ini:
-----------------------------
-----------------------------
ping
test Brother
ping 192.168.000.008 -w 10

PING 192.168.000.008 (92.242.140.2) 56(84) bytes of data.

--- 192.168.000.008 ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 120ms

Last edited by tony5429 (2022-10-19 19:29:26)

Offline

#2 2019-01-07 11:45:31

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [SOLVED] Unable to Use Brother Scanner with SANE

PING 192.168.000.008 (92.242.140.2) 56(84) bytes of data.

Weird to see a public ip adress (92.242.140.2) being used to connect to a private one.
What kind of network are you on ?


post output of

$ ip link
$ ip address
$ ip route

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2019-01-07 12:47:41

tony5429
Member
Registered: 2006-03-28
Posts: 1,017

Re: [SOLVED] Unable to Use Brother Scanner with SANE

Actually just figured it out. For whatever reason, I had to use 192.168.0.8 instead of 192.168.000.008 (which the scanner had reported as its IP address). It's ironically the exact opposite of what this page says to do: http://neithere.net/2013/02/18/archlinu … _7860.html. Anyway, everything works fine now.

Last edited by tony5429 (2019-01-07 13:06:59)

Offline

Board footer

Powered by FluxBB