[sane-devel] Brother DCP7030: invalid argument with Sane 1.0.14-9

Pawel Chojnacki chojnacki.pawel at gmail.com
Tue Jan 15 07:52:24 UTC 2013


Hello,

I am using 64-bit Debian Sid with 3.2.0-4-amd64 kernel. I had no problems
installing Brother DCP7030 printer with official drivers from Brother's
page, but I can't find any way to get scanner working. I've installed sane
1.0.14-9 and libsane-1.0.22-7.4, brscan3-0.2.11-5.amd64 and
brscan-skey-0.2.4-0.amd64 packages, copied the lib64 libraries mentioned in
the Brother's FAQ.

I've modified /lib/udev/rules.d/60-libsane.rules adding
# Brother DCP-7030
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01ea", MODE="666",
GROUP="scanner",  ENV{libsane_matched}="yes"
# The following rule will disable USB autosuspend for the device
ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'if test -e
/sys/$env{DEVPATH}/power/control; then echo on >
/sys/$env{DEVPATH}/power/control; elif test -e
/sys/$env{DEVPATH}/power/level; then echo on >
/sys/$env{DEVPATH}/power/level; fi'"
LABEL="libsane_usb_rules_end"

Default user pawel is in groups ld and scanner.
At the very end of /etc/sane.d/dll.conf, there's "brother3" line.

Now when I plug in my printer I can see dmesg:
[ 8695.435420] usb 2-2: new full-speed USB device number 4 using xhci_hcd
[ 8695.470593] usb 2-2: New USB device found, idVendor=04f9, idProduct=01ea
[ 8695.470598] usb 2-2: New USB device strings: Mfr=0, Product=0,
SerialNumber=3
[ 8695.470600] usb 2-2: SerialNumber: 000M9N675233

lsusb:
Bus 002 Device 004: ID 04f9:01ea Brother Industries, Ltd DCP-7030

root at autumn:~# ls -l /dev/bus/usb/002/
crw-rw-r-T  1 root root 189, 128 sty  6 21:15 001
crw-rw-r-T+ 1 root lp   189, 131 sty  6 23:40 004

pawel at autumn:~$ scanimage -L
device `brother3:bus4;dev1' is a Brother DCP-7030 USB scanner
device `v4l:/dev/video0' is a Noname Laptop_Integrated_Webcam_HD virtual
device

But after all, after every first plugging in, scanimage -T gives me:
pawel at autumn:~$ SANE_DEBUG_BROTHER3=255 scanimage -T
[sanei_debug] Setting debug level of brother3 to 255.
[brother3] brother init
[brother3] brother version: 1000001
[brother3] starting bus scan
[brother3] scanning bus 004
[brother3] found dev 8087/0024
[brother3] found dev 1D6B/0002
[brother3] scanning bus 001
[brother3] found dev 0C45/6441
[brother3] found dev 8086/0189
[brother3] found dev 8087/0024
[brother3] found dev 1D6B/0002
[brother3] scanning bus 003
[brother3] found dev 1D6B/0003
[brother3] scanning bus 002
[brother3] found dev 04F9/01EA
[brother3] found dev 1D6B/0002
scanimage: rounded value of br-x from 215.9 to 215.88
scanimage: rounded value of br-y from 355.6 to 355.567
scanimage: sane_start: Invalid argument
[brother3] cancel called...

And after first try until I replug the printer/scanner:
pawel at autumn:~$ SANE_DEBUG_BROTHER3=255 scanimage -T
[sanei_debug] Setting debug level of brother3 to 255.
[brother3] brother init
[brother3] brother version: 1000001
[brother3] starting bus scan
[brother3] scanning bus 004
[brother3] found dev 8087/0024
[brother3] found dev 1D6B/0002
[brother3] scanning bus 001
[brother3] found dev 0C45/6441
[brother3] found dev 8086/0189
[brother3] found dev 8087/0024
[brother3] found dev 1D6B/0002
[brother3] scanning bus 003
[brother3] found dev 1D6B/0003
[brother3] scanning bus 002
[brother3] found dev 04F9/01EA
[brother3] found dev 1D6B/0002
scanimage: open of device brother3:bus4;dev1 failed: Invalid argument

The same happens with xsane and simple-scan, and when giving commands from
root account. Switching to kernel 2.6.32-5-amd64, 3.5.0 or 3.7.1 doesn't
help, either. Installing cups-driver-gutenprint and
printer-driver-gutenprint changes nothing.

I know there are a few similar problems out there on the forums, but for me
simply changing the access rights and groups does not work. Last time I got
this scanner working was two months ago under freshly-updated Ubuntu 12.10.
Now it doesn't want to start under the same Ubuntu LiveUSB, even though
Sane and Sane-Utils versions are up-to-date.

Thanks in advance,

Pawel Chojnacki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130115/c07a9ae2/attachment.html>


More information about the sane-devel mailing list