13 Comments

  1. Michél

    Hallo Sebastian,
    vielen Dank für diesen ausführlichen Beitrag und die Anpassung der Scripte. Ich bin von Windows auf Linux Mint 20 umgestiegen und versuche nun die Funktion „Scannen zum PC“ für unserem Brother-MFC-L2710DW umzusetzen.
    Ich kenne mich mit Linux nicht besonders gut aus und bräuchte deshalb noch (etwas) Hilfe.
    Drucken und scannen vom PC aus funktioniert tadellos.
    Für die Funktion „Scannen zum PC“ habe ich das aktuelle Tool „brscan-skey“ installiert (ich fand leider nur die aktuelle Version „brscan-skey-0.3.1-2.amd64.deb“ wie Peter schon beschrieben hat).
    Nach dem Anpassen mit deinen Scripts erhalte ich leider auch nur leere pdf-Dokumente und folgende Meldung im Terminal:

    michel@esther:~$ brscan-skey
    michel@esther:~$ scanimage: rounded value of br-x from 210 to 209.981
    scanimage: rounded value of br-y from 295 to 294.973
    Scanning infinity pages, incrementing by 1, numbering from 1
    Scanning page 1
    Scanned page 1. (scanner status = 5)
    Scanning page 2
    scanimage: sane_start: Document feeder out of documents
    Batch terminated, 1 page scanned
    convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF‘ @ error/constitute.c/IsCoderAuthorized/408.
    Error loading document: File type Leeres Dokument (application/x-zerosize) is not supported

    Könntest Du mir eventuell helfen?
    Vielen Dank im Voraus
    Michél

    • Hi Michél,

      hm, da kann ich im Moment selber leider gar nichts dazu sagen. Ich hab zwar letztens selber erst bei meiner Mutter die Linux Mint Version auf 20 geupdatet, allerdings das Scankey Tool nicht eingerichtet, da sie es die letzten 5 Jahre nicht einmal genutzt hat. Wenn ich Zeit hab werd ich mir das mal anschauen und eventuell ein Update dazu veröffentlichen.

      VG Sebastian

      • Ralf

        Carsten hat am 5.7.20 die Lösung gepostet. Eine Zeile in der

        /etc/ImageMagick/policy.xml

        auskommentieren reicht:

        zu
        <!– –>

        ändern und das Scantofile Script funktioniert wieder.

        Danke für die Scripte und Danke an Carsten für die Lösung.

        Ralf

  2. Carsten

    Danke für die Scripte, hat fast alles auf Anhieb funktioniert. Ich musste nur die policy.xml in /etc/ImageMagick-6 anpassen, damit die pdf-Generierung klappt. Habt dazu einfach auskommentiert.

    VG Carsten

  3. Peter

    Hi Sebastian, great BLOG (and the only one I found!)
    Wit Corona lock-down, I had time to experiment with my OpenSuSE Tumbleweed:

    Brother published new tools for MFC scanners in early 2020. A lot has changed: brscan-skey invokes a binary „brscan-skey-exe“ that keeps looking for data from the scanner buttons. It then starts the corresponding script, which in turn runs the new binary „skey-scanimage.“ (Previously, SANE’s „scanimage“ was used.) However, skey-scanimage produces only empty files on my linux Tumbleweed, and since there is no documentation or other „–help“, I needed to revert to editing the scripts back to „scanimage.“ Point is, that scanimage’s options are fewer, and the output must be directed with “ > outputfile“.

  4. Wade

    Hello Sebastian
    I like some of your scripts. Yes Brother’s scripts have a lot to be desired. I’ve also been modifying them on my end to provide the type of files I need.
    Did you ever get past the „Document feeder out of documents“ on the flatbed.
    I had purchased and returned the flatbed HL-L2395DW and then picked up an ADF MFC-L2750DW. To my surprise the ADF scanner/printer had the same script for the flatbed and wouldn’t work with the ADF. I found a script almost perfect on the internet using scanadf and it worked fine (then later I found that Brother wrote it and had it down deep in the support area). This fixes the ADF but doesn’t fix the flatbed. Scan button starts scan of first page, then shows Continue and Finish. Pressing Continue does nothing and fails.
    I have 15 cases with Brother and little by little I’m getting somewhere. I have told them that I spec’ed out their scanner and that there was nothing saying that linux users couldn’t use it. I’ve been pushing for a fix and have been told that the flatbed issue has been sent via Brother case to their Linux engineers in Japan. I’ve also spoken with the Brother Support supervisor and have sent a letter (certified) to the Executive Liaison manager at Brother USA headquarters explaining everything about the problem with the flatbed scanner issue and Brother’s support (in the US anyhow) of differing support for Windows/Apple users and linux users, i.e. no phone or email support for linux users – only cases (hence 15 cases). My take is that I am supporting users and that the scan to file/image/ocr is critical.
    I believe the biggest problem I’ve/we’ve got thus far is that brscan-skey is largely undocumented (compiled binary – no source code) and because of that we don’t have much available. For example, what is the Continue button waiting on waiting on. I’m thinking perhaps if the script passes the right variable, then scanimage should continue running until the Finish button is pressed.
    I like the Brother line of printers — they just have to get the brscan-skey issues resolved or allow us to at least understand what it does so we can find a fix. I’ve told Brother I don’t mind helping as I want me printer/scanner to operate properly.
    Please let me know if you’ve found anything on your end.
    Thank You
    Wade

    • Hi Wade,

      sorry that I didn’t answer your comment. I didn’t investigate any further on this topic, since my mothers didn’t use this feature at all. But I would like to thank you for your effort to inform Brother about the problems!

      Thanks a lot!
      Sebastian

  5. Biggaeh

    Hallo Sebastian,
    nachdem ich die mitgelieferten Skripte schon selber ein bisschen verbessert hatte, haben mir Deine Skripte zum Durchbruch verholfen. Besten Dank dafür. Einen kleinen Verbesserungsvorschlag habe ich noch: das convert für die PDF-Erzeugung rufe ich mit der Option „-compress jpeg“ auf. Das reduziert z.B. eine 3-Seiten-Datei von 95MB auf 2MB.
    VIele Grüße, Biggaeh

  6. Hallo! Ich habe deinen Blog gerade erst entdeckt! Schade, eigentlich, er hätte mir glaube ich schon eher behilflich sein können^^ …auf jedenfall werde ich wohl nun häufiger mal vorbei schauen^^…Danke für deine Erklärungen und viele Grüße aus schenna südtirol ! Maren

Schreibe einen Kommentar zu Sebastian Antworten abbrechen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert