HL2030 (Default Printer) "/usr/local/libexec/cups/filter/brlpdwrapperHL2030

Hallo,

ich versuche meinen drucker, einen Brother HL-2030 unter FreeBSD zum laufen zu bekommen.

nun bekomme ich wenn ich eine testseite über die cups-weboberfläche drucken möchet die volgende meldung:


HL2030 (Default Printer) "/usr/local/libexec/cups/filter/brlpdwrapperHL2030 failed"

den filter habe ich aus der rpm extrahiert, die Brother als linux treiber bereitstellt.

darin habe ich einen pfad angepasst der, das brint aber auch nix.

so, was kenn ich machen damit das genze leuft?

/usr/local/libexec/cups/filter/brlpdwrapperHL2030
Code:
#! /bin/sh
#
# Brother Print filter  >>  $brotherlpdwrapper
# Copyright (C) 2005 Brother. Industries, Ltd.
#                                    Ver1.00

# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2 of the License, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA  02111-1307  USA
#
LOGFILE="/dev/null"
LOGCLEVEL="7"
DEBUG=0
NUPENABLE=1
ENABLECOPY=0
LOG_LATESTONLY=1
errorcode=0

set +o noclobber
if [ "\`echo \$5 | grep 'debug-noprint=1'\`" != '' ]; then
    DEBUG=1
fi
if [ "\`echo \$5 | grep 'debug-noprint=2'\`" != '' ]; then
    DEBUG=2
fi
if [ "\`echo \$5 | grep 'debug-noprint=3'\`" != '' ]; then
    DEBUG=3
fi
if [ \$DEBUG != 0 ]; then
    LOGFILE=/tmp/br_cupsfilter_debug_log
fi

PRINTER=HL2030


if [ "\$PPD" = "" ]; then
    PPD="/usr/local/share/cups/model/HL2030.ppd"
fi


if [ \$LOGFILE != "/dev/null" ]; then
  if [ \$LOG_LATESTONLY == "1" ]; then
    rm -f \$LOGFILE
    date                                                           >\$LOGFILE
  else
    if [ -e \$LOGFILE ]; then
	    date                                                        >>\$LOGFILE
    else
	    date                                                        >\$LOGFILE
    fi
  fi
    echo "arg0 = \$0"                                           >>\$LOGFILE
    echo "arg1 = \$1"                                           >>\$LOGFILE
    echo "arg2 = \$2"                                           >>\$LOGFILE
    echo "arg3 = \$3"                                           >>\$LOGFILE
    echo "arg4 = \$4"                                           >>\$LOGFILE
    echo "arg5 = \$5"                                           >>\$LOGFILE
    echo "arg6 = \$6"                                           >>\$LOGFILE
    echo "PPD  = \$PPD"                                         >>\$LOGFILE
fi

INPUT_TEMP_PS=\`mktemp /tmp/br_input_ps.XXXXXX\`

nup="cat"
if [ "\`echo \$5 | grep 'Nup='\`" != '' ] && [ \$NUPENABLE != 0 ]; then

	if   [ "\`echo \$5 | grep 'Nup=64'\`" != '' ]; then
		nup="psnup -64"
	elif [ "\`echo \$5 | grep 'Nup=32'\`" != '' ]; then
		nup="psnup -32"
	elif [ "\`echo \$5 | grep 'Nup=25'\`" != '' ]; then
		nup="psnup -25"
	elif [ "\`echo \$5 | grep 'Nup=16'\`" != '' ]; then
		nup="psnup -16"
	elif [ "\`echo \$5 | grep 'Nup=8'\`" != '' ]; then
		nup="psnup -8"
	elif [ "\`echo \$5 | grep 'Nup=6'\`" != '' ]; then
		nup="psnup -6"
	elif [ "\`echo \$5 | grep 'Nup=4'\`" != '' ]; then
		nup="psnup -4"
	elif [ "\`echo \$5 | grep 'Nup=2'\`" != '' ]; then
		nup="psnup -2"
	elif [ "\`echo \$5 | grep 'Nup=1'\`" != '' ]; then
		nup="cat"
	fi
	echo   "NUP=\$nup"                                      >>\$LOGFILE
   if [ -e /usr/bin/psnup ]; then
       if [ \$# -ge 7 ]; then
	       cat \$6  | \$nup > \$INPUT_TEMP_PS
       else
	       cat       | \$nup > \$INPUT_TEMP_PS
       fi
   else
       if [ \$# -ge 7 ]; then
	       cp \$6  \$INPUT_TEMP_PS
       else
	       cat    > \$INPUT_TEMP_PS
       fi
   fi
else
   if [ \$# -ge 7 ]; then
      cp \$6  \$INPUT_TEMP_PS
   else
      cat    > \$INPUT_TEMP_PS
   fi
fi

if [ "\$ENABLECOPY" != 0 ];then
  if [ "\$4" -ge 2 ];then
     options="\$5"" ""Copies=\$4"
  else
     options="\$5"
  fi
else
  options="\$5"
fi


if [ -e "/usr/local/Brother/lpd/filter\$PRINTER" ]; then
       :
else
    echo "ERROR: /usr/local/Brother/lpd/filter\$PRINTER does not exist"   >>\$LOGFILE
    errorcode=30
    exit $errorcode
fi

if [ -e "/usr/local/Brother/cupswrapper/brcupsconfig3" ]; then
  if [ \$DEBUG = 0 ]; then
     /usr/local/Brother/cupswrapper/brcupsconfig3  \$PRINTER  \$PPD 0 "\$options" >> /dev/null
  else
     /usr/local/Brother/cupswrapper/brcupsconfig3  \$PRINTER  \$PPD \$LOGCLEVEL "\$options" >>\$LOGFILE
  fi
fi


if [ \$DEBUG -le 2 ]; then
    cat    \$INPUT_TEMP_PS | /usr/local/Brother/lpd/filter\$PRINTER
fi

if [ \$DEBUG -ge 2 ];  then
	   if [ \$LOGFILE != "/dev/null" ]; then
	     echo ""                                                >>\$LOGFILE
	     echo "    ------PostScript Data-------"                >>\$LOGFILE
	     cat    \$INPUT_TEMP_PS                                  >>\$LOGFILE
	   fi
fi
rm -f  \$INPUT_TEMP_PS

exit \$errorcode

mfg Gabriel
 
Also laut OpenPrinting.org wird der Drucker von den offenen Treibern fast vollständig unterstützt, aber eben nur fast. Siehe dazu die entsprechende Treiberseite:

http://www.openprinting.org/show_printer.cgi?recnum=Brother-HL-2030

Empfohlen wird hier der Treiber hl1250. Du kannst dir dort ein PPD-File generieren lassen. Der HL-2030 wird leider nicht mit aufgeführt, aber du kannst ein ähnliches Modell testen, zB den HL-2060. Das sollte klappen.

Du kannst auch schauen, ob Brother ein PPD-File zur Verfügung stellt.

Wie du mit deinem Lösungsansatz weiter kommst, kann ich dir leider nicht sagen. Sorry.
 
Hi

Kann dein 2030 HP Laserjet Emulation?

Ich habe seit kurzem den Brother 2070N, der hat HP Laserjet Emulation, das habe ich im Webfrontend von dem Drucker eingestellt, und in cups dann eingestellt, dass er als Treiber halt den für HP Laserjet benutzen sollte. Noch DPI Zahl eingestellt, und alles funktionierte reibungslos.

Wäre das vllt eine Alternative?
 
Zurück
Oben