You are not logged in.

#1 2012-04-22 23:06:07

tmun52
Member
Registered: 2009-08-11
Posts: 2

Problem with Brother DCP7040 printer

I'm having trouble printing out a test page to a remote Brother DCP 7040 printer, whose driver isn't readily available in the repositories or AUR. Whenever I try to print the test page (from the system-config-printer tool), cups gives me the error:

 /usr/lib/cups/filter/brlpdwrapperDCP7040 failed 

.

Here is the diagnostic output

Page 1 (Scheduler not running?):
{'cups_connection_failure': False}
Page 2 (Is local server publishing?):
{'local_server_exporting_printers': False}
Page 3 (Choose printer):
{'cups_dest': <cups.Dest DCP7040 (default)>,
 'cups_instance': None,
 'cups_queue': 'DCP7040',
 'cups_queue_listed': True}
Page 4 (Check printer sanity):
{'cups_device_uri_scheme': u'smb',
 'cups_printer_dict': {'device-uri': u'smb://WORKGROUP/CYNTHIA-PC/Brother%20DCP-7040%20Printer',
                       'printer-info': u'DCP7040',
                       'printer-is-shared': True,
                       'printer-location': u'',
                       'printer-make-and-model': u'Brother DCP7040 for CUPS',
                       'printer-state': 3,
                       'printer-state-message': u'/usr/lib/cups/filter/brlpdwrapperDCP7040 failed',
                       'printer-state-reasons': [u'none'],
                       'printer-type': 8523780,
                       'printer-uri-supported': u'ipp://localhost:631/printers/DCP7040'},
 'cups_printer_remote': False,
 'is_cups_class': False,
 'local_cups_queue_attributes': {'auth-info-required': u'none',
                                 'charset-configured': u'utf-8',
                                 'charset-supported': [u'us-ascii', u'utf-8'],
                                 'color-supported': False,
                                 'compression-supported': [u'none', u'gzip'],
                                 'copies-default': 1,
                                 'copies-supported': (1, 9999),
                                 'cups-version': u'1.5.2',
                                 'device-uri': u'smb://WORKGROUP/CYNTHIA-PC/Brother%20DCP-7040%20Printer',
                                 'document-format-default': u'application/octet-stream',
                                 'document-format-supported': [u'application/octet-stream',
                                                               u'application/pdf',
                                                               u'application/postscript',
                                                               u'application/vnd.cups-banner',
                                                               u'application/vnd.cups-command',
                                                               u'application/vnd.cups-postscript',
                                                               u'application/vnd.cups-raw',
                                                               u'application/x-cshell',
                                                               u'application/x-csource',
                                                               u'application/x-perl',
                                                               u'application/x-shell',
                                                               u'image/gif',
                                                               u'image/jpeg',
                                                               u'image/png',
                                                               u'image/tiff',
                                                               u'image/x-bitmap',
                                                               u'image/x-photocd',
                                                               u'image/x-portable-anymap',
                                                               u'image/x-portable-bitmap',
                                                               u'image/x-portable-graymap',
                                                               u'image/x-portable-pixmap',
                                                               u'image/x-sgi-rgb',
                                                               u'image/x-sun-raster',
                                                               u'image/x-xbitmap',
                                                               u'image/x-xpixmap',
                                                               u'text/css',
                                                               u'text/html',
                                                               u'text/plain'],
                                 'finishings-default': 3,
                                 'finishings-supported': [3],
                                 'generated-natural-language-supported': [u'en'],
                                 'ipp-versions-supported': [u'1.0',
                                                            u'1.1',
                                                            u'2.0',
                                                            u'2.1'],
                                 'ippget-event-life': 15,
                                 'job-creation-attributes-supported': [u'copies',
                                                                       u'finishings',
                                                                       u'ipp-attribute-fidelity',
                                                                       u'job-hold-until',
                                                                       u'job-name',
                                                                       u'job-priority',
                                                                       u'job-sheets',
                                                                       u'media',
                                                                       u'media-col',
                                                                       u'multiple-document-handling',
                                                                       u'number-up',
                                                                       u'output-bin',
                                                                       u'output-mode',
                                                                       u'orientation-requested',
                                                                       u'page-ranges',
                                                                       u'print-quality',
                                                                       u'printer-resolution',
                                                                       u'sides'],
                                 'job-hold-until-default': u'no-hold',
                                 'job-hold-until-supported': [u'no-hold',
                                                              u'indefinite',
                                                              u'day-time',
                                                              u'evening',
                                                              u'night',
                                                              u'second-shift',
                                                              u'third-shift',
                                                              u'weekend'],
                                 'job-ids-supported': True,
                                 'job-k-limit': 0,
                                 'job-k-octets-supported': (0, 268464580),
                                 'job-page-limit': 0,
                                 'job-priority-default': 50,
                                 'job-priority-supported': [100],
                                 'job-quota-period': 0,
                                 'job-settable-attributes-supported': [u'copies',
                                                                       u'finishings',
                                                                       u'job-hold-until',
                                                                       u'job-name',
                                                                       u'job-priority',
                                                                       u'media',
                                                                       u'media-col',
                                                                       u'multiple-document-handling',
                                                                       u'number-up',
                                                                       u'output-bin',
                                                                       u'output-mode',
                                                                       u'orientation-requested',
                                                                       u'page-ranges',
                                                                       u'print-quality',
                                                                       u'printer-resolution',
                                                                       u'sides'],
                                 'job-sheets-default': (u'none', u'none'),
                                 'job-sheets-supported': [u'none',
                                                          u'classified',
                                                          u'confidential',
                                                          u'secret',
                                                          u'standard',
                                                          u'topsecret',
                                                          u'unclassified'],
                                 'jpeg-k-octets-supported': (0, 268464580),
                                 'jpeg-x-dimension-supported': (0, 65535),
                                 'jpeg-y-dimension-supported': (1, 65535),
                                 'marker-change-time': 0,
                                 'media-bottom-margin-supported': [423],
                                 'media-col-supported': [u'media-bottom-margin',
                                                         u'media-left-margin',
                                                         u'media-right-margin',
                                                         u'media-size',
                                                         u'media-source',
                                                         u'media-top-margin',
                                                         u'media-type'],
                                 'media-default': u'na_letter_8.5x11in',
                                 'media-left-margin-supported': [635],
                                 'media-right-margin-supported': [635,
                                                                  599,
                                                                  1270],
                                 'media-source-supported': [u'manual',
                                                            u'tray1'],
                                 'media-supported': [u'na_letter_8.5x11in',
                                                     u'na_legal_8.5x14in',
                                                     u'na_executive_7.25x10.5in',
                                                     u'iso_a4_210x297mm',
                                                     u'iso_a5_148x210mm',
                                                     u'iso_a6_105x148mm',
                                                     u'na_number-10_4.125x9.5in',
                                                     u'na_monarch_3.875x7.5in',
                                                     u'iso_dl_110x220mm',
                                                     u'iso_c5_162x229mm',
                                                     u'om_env-isob5_176.03x250.11mm',
                                                     u'om_env-isob6_124.88x176.03mm'],
                                 'media-top-margin-supported': [423],
                                 'multiple-document-handling-supported': [u'separate-documents-uncollated-copies',
                                                                          u'separate-documents-collated-copies'],
                                 'multiple-document-jobs-supported': True,
                                 'multiple-operation-time-out': 300,
                                 'natural-language-configured': u'en',
                                 'notify-attributes-supported': [u'printer-state-change-time',
                                                                 u'notify-lease-expiration-time',
                                                                 u'notify-subscriber-user-name'],
                                 'notify-events-default': [u'job-completed'],
                                 'notify-events-supported': [u'job-completed',
                                                             u'job-config-changed',
                                                             u'job-created',
                                                             u'job-progress',
                                                             u'job-state-changed',
                                                             u'job-stopped',
                                                             u'printer-added',
                                                             u'printer-changed',
                                                             u'printer-config-changed',
                                                             u'printer-deleted',
                                                             u'printer-finishings-changed',
                                                             u'printer-media-changed',
                                                             u'printer-modified',
                                                             u'printer-restarted',
                                                             u'printer-shutdown',
                                                             u'printer-state-changed',
                                                             u'printer-stopped',
                                                             u'server-audit',
                                                             u'server-restarted',
                                                             u'server-started',
                                                             u'server-stopped'],
                                 'notify-lease-duration-default': 86400,
                                 'notify-lease-duration-supported': (0,
                                                                     2147483647),
                                 'notify-max-events-supported': [100],
                                 'notify-pull-method-supported': [u'ippget'],
                                 'notify-schemes-supported': [u'dbus',
                                                              u'mailto',
                                                              u'rss'],
                                 'number-up-default': 1,
                                 'number-up-supported': [1, 2, 4, 6, 9, 16],
                                 'operations-supported': [2,
                                                          4,
                                                          5,
                                                          6,
                                                          8,
                                                          9,
                                                          10,
                                                          11,
                                                          12,
                                                          13,
                                                          14,
                                                          16,
                                                          17,
                                                          18,
                                                          19,
                                                          20,
                                                          21,
                                                          22,
                                                          23,
                                                          24,
                                                          25,
                                                          26,
                                                          27,
                                                          28,
                                                          34,
                                                          35,
                                                          37,
                                                          38,
                                                          56,
                                                          57,
                                                          59,
                                                          16385,
                                                          16386,
                                                          16387,
                                                          16388,
                                                          16389,
                                                          16390,
                                                          16391,
                                                          16392,
                                                          16393,
                                                          16394,
                                                          16395,
                                                          16396,
                                                          16397,
                                                          16398,
                                                          16399,
                                                          16423],
                                 'orientation-requested-default': None,
                                 'orientation-requested-supported': [3,
                                                                     4,
                                                                     5,
                                                                     6],
                                 'output-bin-default': u'face-down',
                                 'output-bin-supported': [u'face-down'],
                                 'output-mode-default': u'monochrome',
                                 'output-mode-supported': [u'monochrome'],
                                 'page-ranges-supported': True,
                                 'pages-per-minute': 18,
                                 'pdf-k-octets-supported': (0, 268464580),
                                 'pdf-versions-supported': [u'adobe-1.2',
                                                            u'adobe-1.3',
                                                            u'adobe-1.4',
                                                            u'adobe-1.5',
                                                            u'adobe-1.6',
                                                            u'adobe-1.7',
                                                            u'iso-19005-1_2005',
                                                            u'iso-32000-1_2008',
                                                            u'pwg-5102.3'],
                                 'pdl-override-supported': [u'attempted'],
                                 'port-monitor': u'none',
                                 'port-monitor-supported': [u'none'],
                                 'print-color-mode-default': u'monochrome',
                                 'print-color-mode-supported': [u'monochrome'],
                                 'print-quality-default': 4,
                                 'print-quality-supported': [4],
                                 'printer-commands': [u'AutoConfigure',
                                                      u'Clean',
                                                      u'PrintSelfTestPage'],
                                 'printer-current-time': '(IPP_TAG_DATE)',
                                 'printer-dns-sd-name': None,
                                 'printer-error-policy': u'stop-printer',
                                 'printer-error-policy-supported': [u'abort-job',
                                                                    u'retry-current-job',
                                                                    u'retry-job',
                                                                    u'stop-printer'],
                                 'printer-icons': u'http://localhost:631/icons/DCP7040.png',
                                 'printer-info': u'DCP7040',
                                 'printer-is-accepting-jobs': True,
                                 'printer-is-shared': True,
                                 'printer-location': u'',
                                 'printer-make-and-model': u'Brother DCP7040 for CUPS',
                                 'printer-more-info': u'http://localhost:631/printers/DCP7040',
                                 'printer-name': u'DCP7040',
                                 'printer-op-policy': u'default',
                                 'printer-op-policy-supported': [u'authenticated',
                                                                 u'default'],
                                 'printer-resolution-default': (600, 600, 3),
                                 'printer-resolution-supported': [(300,
                                                                   300,
                                                                   3),
                                                                  (600,
                                                                   600,
                                                                   3),
                                                                  (1200,
                                                                   600,
                                                                   3)],
                                 'printer-settable-attributes-supported': [u'printer-info',
                                                                           u'printer-location'],
                                 'printer-state': 3,
                                 'printer-state-change-time': 1335134428,
                                 'printer-state-message': u'/usr/lib/cups/filter/brlpdwrapperDCP7040 failed',
                                 'printer-state-reasons': [u'none'],
                                 'printer-type': 8523780,
                                 'printer-up-time': 1335134437,
                                 'printer-uri-supported': [u'ipp://localhost:631/printers/DCP7040'],
                                 'printer-uuid': u'urn:uuid:8df86fec-e796-3a5b-41f6-cf5592eb3e8a',
                                 'queued-job-count': 2,
                                 'server-is-sharing-printers': False,
                                 'sides-default': u'one-sided',
                                 'sides-supported': [u'one-sided'],
                                 'uri-authentication-supported': [u'requesting-user-name'],
                                 'uri-security-supported': [u'none'],
                                 'which-jobs-supported': [u'completed',
                                                          u'not-completed',
                                                          u'aborted',
                                                          u'all',
                                                          u'canceled',
                                                          u'pending',
                                                          u'pending-held',
                                                          u'processing',
                                                          u'processing-stopped']},
 'nmblookup_output': (['querying CYNTHIA-PC on 192.168.1.255',
                       '192.168.1.5 CYNTHIA-PC<00>',
                       ''],
                      [''],
                      0),
 'remote_server_name': '192.168.1.5'}
Page 5 (Check PPD sanity):
{'cups_printer_ppd_defaults': {u'General': {u'BrMediaType': u'PLAIN',
                                            u'InputSlot': u'TRAY1',
                                            u'PageRegion': u'Letter',
                                            u'PageSize': u'Letter',
                                            u'Resolution': u'600dpi',
                                            u'Sleep': u'PrinterDefault',
                                            u'TonerSaveMode': u'Off'}},
 'cups_printer_ppd_valid': True,
 'missing_pkgs_and_exes': ([], [])}
Page 6 (Local or remote?):
{'printer_is_remote': False}
Page 7 (Check network server sanity):
{'remote_server_name_resolves': ['192.168.1.5', '192.168.1.5', '192.168.1.5'],
 'remote_server_try_connect': '192.168.1.5'}
Page 8 (Printer state reasons):
{'printer-state-message': u'/usr/lib/cups/filter/brlpdwrapperDCP7040 failed',
 'printer-state-reasons': [u'none']}
Page 9 (Error log checkpoint):
{'cups_server_settings': {'BrowseLocalProtocols': 'CUPS dnssd',
                          'DefaultAuthType': 'Basic',
                          'JobPrivateAccess': 'default',
                          'JobPrivateValues': 'default',
                          'MaxLogSize': '2000000',
                          'SubscriptionPrivateAccess': 'default',
                          'SubscriptionPrivateValues': 'default',
                          'SystemGroup': 'lp',
                          'WebInterface': 'Yes',
                          '_debug_logging': '0',
                          '_remote_admin': '0',
                          '_remote_any': '0',
                          '_remote_printers': '1',
                          '_share_printers': '0',
                          '_user_cancel_any': '0'},
 'error_log_checkpoint': 61750,
 'error_log_debug_logging_set': True}
Page 10 (Error log fetch):
{'error_log': ['D [22/Apr/2012:18:41:48 -0400] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"',
               'D [22/Apr/2012:18:41:48 -0400] cupsdReadClient: 12 POST / HTTP/1.1',
               'D [22/Apr/2012:18:41:48 -0400] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"',
               'D [22/Apr/2012:18:41:48 -0400] cupsdAuthorize: No authentication data provided.',
               'D [22/Apr/2012:18:41:48 -0400] cupsdReadClient: 12 1.1 Get-Jobs 1',
               'D [22/Apr/2012:18:41:48 -0400] Get-Jobs ipp://localhost/printers/',
               'D [22/Apr/2012:18:41:48 -0400] [Job 16] Loading attributes...',
               'D [22/Apr/2012:18:41:48 -0400] [Job 17] Loading attributes...',
               'D [22/Apr/2012:18:41:48 -0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost',
               'D [22/Apr/2012:18:41:48 -0400] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"',
               'D [22/Apr/2012:18:41:48 -0400] cupsdReadClient: 12 POST / HTTP/1.1',
               'D [22/Apr/2012:18:41:48 -0400] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"',
               'D [22/Apr/2012:18:41:48 -0400] cupsdAuthorize: No authentication data provided.',
               'D [22/Apr/2012:18:41:48 -0400] cupsdReadClient: 12 1.1 Get-Jobs 1',
               'D [22/Apr/2012:18:41:48 -0400] Get-Jobs ipp://localhost/printers/',
               'D [22/Apr/2012:18:41:48 -0400] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/) from localhost',
               'D [22/Apr/2012:18:41:48 -0400] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"',
               'D [22/Apr/2012:18:41:48 -0400] cupsdAcceptClient: 11 from localhost (Domain)',
               'D [22/Apr/2012:18:41:48 -0400] cupsdReadClient: 11 PUT /admin/conf/cupsd.conf HTTP/1.1',
               'D [22/Apr/2012:18:41:48 -0400] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"',
               'D [22/Apr/2012:18:41:48 -0400] cupsdAuthorize: No authentication data provided.',
               'D [22/Apr/2012:18:41:48 -0400] cupsdIsAuthorized: username=""',
               'D [22/Apr/2012:18:41:48 -0400] cupsdSendHeader: 11 WWW-Authenticate: Basic realm="CUPS", trc="y"',
               'D [22/Apr/2012:18:41:48 -0400] cupsdCloseClient: 11',
               'D [22/Apr/2012:18:41:48 -0400] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"',
               'D [22/Apr/2012:18:41:48 -0400] cupsdAcceptClient: 11 from localhost (Domain)',
               'D [22/Apr/2012:18:41:48 -0400] cupsdReadClient: 11 PUT /admin/conf/cupsd.conf HTTP/1.1',
               'D [22/Apr/2012:18:41:48 -0400] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"',
               'D [22/Apr/2012:18:41:48 -0400] cupsdAuthorize: Authorized as root using PeerCred',
               'D [22/Apr/2012:18:41:48 -0400] cupsdIsAuthorized: username="root"',
               'I [22/Apr/2012:18:41:48 -0400] Installing config file "/etc/cups/cupsd.conf"...',
               'D [22/Apr/2012:18:41:49 -0400] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"',
               'I [22/Apr/2012:18:41:49 -0400] Generating printcap /etc/printcap...',
               'D [22/Apr/2012:18:41:49 -0400] cupsdSetBusyState: newbusy="Not busy", busy="Dirty files"',
               'D [22/Apr/2012:18:41:49 -0400] cupsdCloseClient: 12',
               'D [22/Apr/2012:18:41:49 -0400] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"',
               'D [22/Apr/2012:18:41:49 -0400] cupsdCloseClient: 11',
               'D [22/Apr/2012:18:41:49 -0400] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"',
               'D [22/Apr/2012:18:41:49 -0400] cupsdDeregisterPrinter(p=0x7f542160dd70(DCP7040), removeit=1)'],
 'error_log_debug_logging_unset': True}
Page 11 (Locale issues):
{'printer_page_size': u'Letter',
 'system_locale_lang': None,
 'user_locale_ctype': 'en_US',
 'user_locale_messages': 'en_US'}

Here's the PKGBUILD I used, which I copied from this topic, and which is adapted from the PKGBUILD of Brother DCP7030 in the AUR:

pkgname=brother-dcp7040
pkgver=2.0.2
pkgrel=1
pkgdesc="brother cupd and lpd driver for DCP-7040"
arch=('i686' 'x86_64')
url="http://solutions.brother.com/linux/en_us/index.html"
license=('custom')
if [ "$(uname -m)" = "x86_64" ]
then
 depends=('lib32-glibc' 'psutils')
else
 depends=('psutils')
fi

source=(
http://www.brother.com/pub/bsc/linux/dlf/cupswrapperDCP7040-$pkgver-$pkgrel.i386.deb
http://www.brother.com/pub/bsc/linux/dlf/brdcp7040lpr-$pkgver-$pkgrel.i386.deb
brlpdwrapperDCP7040
DCP7040.ppd
)

md5sums=('b1f58e84be074df2203b7932e5b987d3'
         'ed50548260b23d4a61c4341fd72cda9a'
         '4d737771e44f599f52a15b0a822a90df'
         '5e26f4811bac78169f21516b4b88f415')

build()
{
 mkdir -p $startdir/src/unpack || return 1
 for i in $startdir/src/*.deb
 do
  cd $startdir/src/unpack
  ar -x $i || return 1
  cd $startdir/pkg
  bsdtar xf $startdir/src/unpack/data.tar.gz || return 1
 done
 cat <<END >>$startdir/pkg/usr/local/Brother/inf/brDCP7040func || return 1
[psconvert2]
pstops=/usr/bin/pstops
END
 cd $startdir/src
 install -d -m755 $startdir/pkg/usr/lib/cups/filter || return 1
 install -d -m755 $startdir/pkg/usr/share/cups/model || return 1
 install -D -m755 brlpdwrapperDCP7040 $startdir/pkg/usr/lib/cups/filter || return 1
 install -D -m644 DCP7040.ppd $startdir/pkg/usr/share/cups/model || return 1

if [ "$(uname -m)" = "x86_64" ];then
      mkdir $pkgdir/usr/lib32
      ln -s $pkgdir/usr/lib/libbrcomplpr2.so $pkgdir/usr/lib32/libbrcomplpr2.so
  fi
}

I, like the person in link, also ripped DCP7040.ppd and brlpdwrapperDCP7040 from $pkgdir/usr/local/Brother/cupswrapper/cupswrapperDCP7040-2.0.2, and I followed the advice on that thread, but still get the same error messages.

Since I'm trying to connect to a remote printer on a Windows computer via samba, the problem might also lay within that. I've noticed that whenever I try to add the printer from the system-config-printer dialog  and try the SAMBA option, sometimes my wireless adapter shuts down altogether, forcing me to restart, but that may be irrelevant.

Can anyone help me find out what's wrong? I may be too much of a novice to understand what's going on.

Offline

Board footer

Powered by FluxBB