User avatar
lhinderberger
Posts: 18
Joined: Thu Jan 21, 2016 10:32 am
Location: Dresden, Germany

Re: Struggling to share a Brother HL-L2300D over network

Fri Feb 05, 2016 8:58 pm

My printer switches into sleep mode after some time but it wakes up when a print job arrives. So no, no switching on by hand for me.
Maybe this will help you: http://support.brother.com/g/b/faqend.a ... 000110_023

PhotonX
Posts: 59
Joined: Sun Nov 29, 2015 4:13 pm

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 06, 2016 2:22 pm

Is the green LED on in your case? For me it is bright while printing, then is dimmed after a few minutes and then switched off completely after about half an hour. As long as it's on (dimmed or not) printing works, however, once it's completely off, I need to press the on/off button first.

User avatar
lhinderberger
Posts: 18
Joined: Thu Jan 21, 2016 10:32 am
Location: Dresden, Germany

Re: Struggling to share a Brother HL-L2300D over network

Sun Feb 07, 2016 4:20 pm

The LED on my printer does not switch off completely, but it does go dim when the printer is idling for a couple of minutes.

PhotonX
Posts: 59
Joined: Sun Nov 29, 2015 4:13 pm

Re: Struggling to share a Brother HL-L2300D over network

Sun Feb 07, 2016 7:45 pm

So, even after several hours without usage the LED is still on (but dimmed)? I now tried to use the printer on my PC with the official drivers regularly installed and have the same behavior: The printer goes to idle after two minutes and switches off completely after about half an hour or an hour. It then needs to be switched on in order to print, CUPS reports: Paused - Unplugged or turned off. I think, this isn't a RasPi problem, will try to get some support from Brother with this.

User avatar
lhinderberger
Posts: 18
Joined: Thu Jan 21, 2016 10:32 am
Location: Dresden, Germany

Re: Struggling to share a Brother HL-L2300D over network

Sun Feb 07, 2016 8:05 pm

Jap, that's true. I haven't used the printer all day today and the LED is still on.
Unfortunately, I have no idea what my roommate and I might have changed in the printer's configuration (if at all) as that dates many many months. I also very much doubt that this is a Pi problem, so I guess Brother support will be the way to go here ;)

PhotonX
Posts: 59
Joined: Sun Nov 29, 2015 4:13 pm

Re: Struggling to share a Brother HL-L2300D over network

Tue Feb 09, 2016 10:09 am

I got a reply from Brother's tech support. The automatic power off can be switched on and off by opening the front cover and pressing the Go button for 4 seconds.

A more Linux like solution: :D

It's a setting in the printer which seems to be impossible to make through CUPS, so they sent me a file, powerdown_off.prn, which disables automatic power down. It can be sent to the printer with

Code: Select all

 sudo lpr /path/to/powerdown_off.prn
or

Code: Select all

 sudo cat /path/to/powerdown_off.prn > /dev/usb/lp0
Analogously, to revert the setting, the same needs to be done with powerdown_on.prn (which I edited myself but it should work, I hope :D ). Both files attached with kind permission from the Brother tech support.

off: http://photon.homenet.org/owncloud/publ ... RwcalsE96N
on: http://photon.homenet.org/owncloud/publ ... OnN8Pg3k22[/size]

User avatar
lhinderberger
Posts: 18
Joined: Thu Jan 21, 2016 10:32 am
Location: Dresden, Germany

Re: Struggling to share a Brother HL-L2300D over network

Thu Feb 11, 2016 1:29 pm

Ah, I remember we did the power button thing to reset the toner counter last year. Didn't know it disabled the auto poweroff as well :)
By the way very helpful reply by Brother indeed, I'm impressed!

fixer
Posts: 9
Joined: Fri Feb 12, 2016 9:03 am

Re: Struggling to share a Brother HL-L2300D over network

Fri Feb 12, 2016 9:10 am

Hi, I used lhinderberger's tutorial https://www.lhinderberger.de/pi/2016/01 ... ivers.html , but no luck. Everything is installed correctly, but I can't even print test page ... I don't know where should I start looking for a problem. After sending test page or print from macbook job is marked as finished in cups, but the printer do nothing (not even the LED starts blinking).. Thanks for the help.

User avatar
lhinderberger
Posts: 18
Joined: Thu Jan 21, 2016 10:32 am
Location: Dresden, Germany

Re: Struggling to share a Brother HL-L2300D over network

Fri Feb 12, 2016 5:28 pm

Hi, sorry to hear that, but let's track down the problem together :) Which Pi (original / Pi 2 / Model A/B) do you use and which OS is it running?
I assume you're using the Brother HL-L2300D, right? If so, make sure you have set the correct USB device path (usually starts with something like /dev/usb) during installation. In my case, it was auto-detected wrong on the first attempt.
Also make sure your physical USB connection is working properly, especially that enough power is available for all devices attached to the pi (for example, an external HDD could draw so much power that the Pi just can't keep up).
If everything is fine so far, try to directly print a test page on the Pi's command line (not via remote printing, just to narrow down the problem).

fixer
Posts: 9
Joined: Fri Feb 12, 2016 9:03 am

Re: Struggling to share a Brother HL-L2300D over network

Fri Feb 12, 2016 6:49 pm

lhinderberger wrote:Hi, sorry to hear that, but let's track down the problem together :) Which Pi (original / Pi 2 / Model A/B) do you use and which OS is it running?
I assume you're using the Brother HL-L2300D, right? If so, make sure you have set the correct USB device path (usually starts with something like /dev/usb) during installation. In my case, it was auto-detected wrong on the first attempt.
Also make sure your physical USB connection is working properly, especially that enough power is available for all devices attached to the pi (for example, an external HDD could draw so much power that the Pi just can't keep up).
If everything is fine so far, try to directly print a test page on the Pi's command line (not via remote printing, just to narrow down the problem).
Pi2 B with clean install raspbian jessie. My steps:
- install clean jessie
- follow tutorial on your site
- setup cups & sudo usermod -a -G lpadmin pi

Code: Select all

# Only listen for connections from the local machine.
#Listen localhost:631
#Listen /var/run/cups/cups.sock
Port 631

# Restrict access to the server…
<Location />
Order allow,deny
Allow all
</Location>

# Restrict access to the admin pages…
<Location /admin>
Order allow,deny
Allow all
</Location>

# Restrict access to configuration files…
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow all
</Location>
- cups restart
- install deb driver for Brother hl-l2300d with connected printer
- printer is installed like this by the deb installer (it seems ok) usb://Brother/HL-L2300D%20series?serial=E73860J5N217690 and lsusb shows this:

Code: Select all

lsusb
Bus 001 Device 006: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
Bus 001 Device 005: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 007: ID 04f9:0061 Brother Industries, Ltd 
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
- after trying to print from command line lp -d HLL2300D test.txt printer says:

Code: Select all

lpstat -p -d
printer HLL2300D is idle.  enabled since Fri 12 Feb 2016 18:40:17 UTC
	Sending data to printer.
and nothing happens after that

User avatar
lhinderberger
Posts: 18
Joined: Thu Jan 21, 2016 10:32 am
Location: Dresden, Germany

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 9:58 am

Okay, that all looks good so far. I guess we'll have to take a look at the CUPS logs to try to find out what's going on after issuing the print job.

This page describes how to get Debug information from CUPS: http://hplipopensource.com/node/225

Greetings, Lucas

fixer
Posts: 9
Joined: Fri Feb 12, 2016 9:03 am

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 12:17 pm

Here's the log:
D [13/Feb/2016:12:13:39 +0000] [Client 17] Accepted from localhost (Domain)
D [13/Feb/2016:12:13:39 +0000] [Client 17] Waiting for request.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Client 17] POST / HTTP/1.1
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [13/Feb/2016:12:13:39 +0000] [Client 17] No authentication data provided.
D [13/Feb/2016:12:13:39 +0000] [Client 17] 2.0 Get-Printer-Attributes 1
D [13/Feb/2016:12:13:39 +0000] Get-Printer-Attributes ipp://localhost:631/printers/HLL2300D
D [13/Feb/2016:12:13:39 +0000] [Client 17] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost:631/printers/HLL2300D) from localhost
D [13/Feb/2016:12:13:39 +0000] [Client 17] Content-Length: 1129
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Client 17] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=1129, response=0x55f10cc8(IPP_IDLE), pipe_pid=0, file=-1
D [13/Feb/2016:12:13:39 +0000] [Client 17] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
D [13/Feb/2016:12:13:39 +0000] [Client 17] bytes=0, http_state=0, data_remaining=0
D [13/Feb/2016:12:13:39 +0000] [Client 17] Waiting for request.
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Client 17] POST /printers/HLL2300D HTTP/1.1
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [13/Feb/2016:12:13:39 +0000] [Client 17] No authentication data provided.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Client 17] 2.0 Create-Job 2
D [13/Feb/2016:12:13:39 +0000] Create-Job ipp://localhost:631/printers/HLL2300D
D [13/Feb/2016:12:13:39 +0000] cupsdMarkDirty(---J-)
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients"
D [13/Feb/2016:12:13:39 +0000] add_job: requesting-user-name="pi"
I [13/Feb/2016:12:13:39 +0000] [Job 12] Adding start banner page "none".
D [13/Feb/2016:12:13:39 +0000] Discarding unused job-created event...
I [13/Feb/2016:12:13:39 +0000] [Job 12] Queued on "HLL2300D" by "pi".
D [13/Feb/2016:12:13:39 +0000] [Client 17] Returning IPP successful-ok for Create-Job (ipp://localhost:631/printers/HLL2300D) from localhost
D [13/Feb/2016:12:13:39 +0000] [Client 17] Content-Length: 182
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Client 17] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=182, response=0x55f136a0(IPP_IDLE), pipe_pid=0, file=-1
D [13/Feb/2016:12:13:39 +0000] [Client 17] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
D [13/Feb/2016:12:13:39 +0000] [Client 17] bytes=0, http_state=0, data_remaining=0
D [13/Feb/2016:12:13:39 +0000] [Client 17] Waiting for request.
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Client 17] POST /printers/HLL2300D HTTP/1.1
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [13/Feb/2016:12:13:39 +0000] [Client 17] No authentication data provided.
D [13/Feb/2016:12:13:39 +0000] [Client 17] 2.0 Send-Document 3
D [13/Feb/2016:12:13:39 +0000] Send-Document ipp://localhost:631/printers/HLL2300D
D [13/Feb/2016:12:13:39 +0000] cupsdIsAuthorized: requesting-user-name="pi"
D [13/Feb/2016:12:13:39 +0000] [Job 12] Auto-typing file...
D [13/Feb/2016:12:13:39 +0000] [Job 12] Request file type is text/plain.
D [13/Feb/2016:12:13:39 +0000] cupsdMarkDirty(---J-)
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
I [13/Feb/2016:12:13:39 +0000] [Job 12] File of type text/plain queued by "pi".
I [13/Feb/2016:12:13:39 +0000] [Job 12] Adding end banner page "none".
D [13/Feb/2016:12:13:39 +0000] cupsdMarkDirty(---J-)
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [13/Feb/2016:12:13:39 +0000] [Job 12] time-at-processing=1455365619
D [13/Feb/2016:12:13:39 +0000] cupsdMarkDirty(---J-)
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [13/Feb/2016:12:13:39 +0000] Discarding unused printer-state-changed event...
D [13/Feb/2016:12:13:39 +0000] [Job 12] 3 filters for job:
D [13/Feb/2016:12:13:39 +0000] [Job 12] texttopdf (text/plain to application/pdf, cost 32)
D [13/Feb/2016:12:13:39 +0000] [Job 12] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [13/Feb/2016:12:13:39 +0000] [Job 12] brother_lpdwrapper_HLL2300D (application/vnd.cups-pdf to printer/HLL2300D, cost 0)
D [13/Feb/2016:12:13:39 +0000] [Job 12] job-sheets=none,none
D [13/Feb/2016:12:13:39 +0000] [Job 12] argv[0]="HLL2300D"
D [13/Feb/2016:12:13:39 +0000] [Job 12] argv[1]="12"
D [13/Feb/2016:12:13:39 +0000] [Job 12] argv[2]="pi"
D [13/Feb/2016:12:13:39 +0000] [Job 12] argv[3]="test"
D [13/Feb/2016:12:13:39 +0000] [Job 12] argv[4]="1"
D [13/Feb/2016:12:13:39 +0000] [Job 12] argv[5]="finishings=3 number-up=1 job-uuid=urn:uuid:d7ec8c00-228a-3afc-5ebb-ff81210f4b47 job-originating-host-name=localhost time-at-creation=1455365619 time-at-processing=1455365619"
D [13/Feb/2016:12:13:39 +0000] [Job 12] argv[6]="/var/spool/cups/d00012-001"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[8]="HOME=/var/spool/cups/tmp"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[10]="SERVER_ADMIN=root@remoto"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[11]="SOFTWARE=CUPS/1.7.5"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[13]="USER=root"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[14]="CUPS_MAX_MESSAGE=2047"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[17]="IPP_PORT=631"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[18]="CHARSET=utf-8"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[19]="LANG=en_GB.UTF-8"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[20]="PPD=/etc/cups/ppd/HLL2300D.ppd"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[21]="RIP_MAX_CACHE=128m"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[22]="CONTENT_TYPE=text/plain"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[23]="DEVICE_URI=usb://Brother/HL-L2300D%20series?serial=E73860J5N217690"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[24]="PRINTER_INFO=Brother HL-L2300D series"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[25]="PRINTER_LOCATION=Pracovna"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[26]="PRINTER=HLL2300D"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[27]="PRINTER_STATE_REASONS=none"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[28]="CUPS_FILETYPE=document"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-pdf"
D [13/Feb/2016:12:13:39 +0000] [Job 12] envp[30]="AUTH_I****"
I [13/Feb/2016:12:13:39 +0000] [Job 12] Started filter /usr/lib/cups/filter/texttopdf (PID 1897)
I [13/Feb/2016:12:13:39 +0000] [Job 12] Started filter /usr/lib/cups/filter/pdftopdf (PID 1898)
I [13/Feb/2016:12:13:39 +0000] [Job 12] Started filter /usr/lib/cups/filter/brother_lpdwrapper_HLL2300D (PID 1899)
I [13/Feb/2016:12:13:39 +0000] [Job 12] Started backend /usr/lib/cups/backend/usb (PID 1900)
D [13/Feb/2016:12:13:39 +0000] Discarding unused job-state-changed event...
D [13/Feb/2016:12:13:39 +0000] [Client 17] Returning IPP successful-ok for Send-Document (ipp://localhost:631/printers/HLL2300D) from localhost
D [13/Feb/2016:12:13:39 +0000] [Client 17] Content-Length: 174
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Client 17] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=174, response=0x55f126c8(IPP_IDLE), pipe_pid=0, file=-1
D [13/Feb/2016:12:13:39 +0000] [Client 17] Writing IPP response, ipp_state=DATA, old wused=0, new wused=0
D [13/Feb/2016:12:13:39 +0000] [Client 17] bytes=0, http_state=0, data_remaining=0
D [13/Feb/2016:12:13:39 +0000] [Client 17] Waiting for request.
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients and dirty files"
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Client 17] HTTP_STATE_WAITING Closing on EOF
D [13/Feb/2016:12:13:39 +0000] [Client 17] Closing connection.
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] Page = 595x842; 12,12 to 583,830
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] Loading USB quirks from "/usr/share/cups/usb".
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] Loaded 113 quirks.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] Printing on printer with URI: usb://Brother/HL-L2300D%20series?serial=E73860J5N217690
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] libusb_get_device_list=4
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] STATE: +connecting-to-device
D [13/Feb/2016:12:13:39 +0000] cupsdMarkDirty(---J-)
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Dirty files", busy="Printing jobs and dirty files"
D [13/Feb/2016:12:13:39 +0000] Discarding unused printer-state-changed event...
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] STATE: -connecting-to-device
D [13/Feb/2016:12:13:39 +0000] cupsdMarkDirty(---J-)
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Dirty files"
D [13/Feb/2016:12:13:39 +0000] Discarding unused printer-state-changed event...
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] Device protocol: 2
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
I [13/Feb/2016:12:13:39 +0000] [Job 12] Sending data to printer.
D [13/Feb/2016:12:13:39 +0000] cupsdMarkDirty(---J-)
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [13/Feb/2016:12:13:39 +0000] [Job 12] Set job-printer-state-message to "Sending data to printer.", current level=INFO
D [13/Feb/2016:12:13:39 +0000] Discarding unused job-progress event...
D [13/Feb/2016:12:13:39 +0000] Discarding unused printer-state-changed event...
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] PID 1897 (/usr/lib/cups/filter/texttopdf) exited with no errors.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] cp: cannot stat ‘/opt/brother/Printers/HLL2300D//inf/brHLL2300Drc’: No such file or directory
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] PID 1898 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] sh: 1: /opt/brother/Printers/HLL2300D//lpd/filter_HLL2300D: not found
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] mv: cannot stat ‘/tmp/brHLL2300Drc_1899’: No such file or directory
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] Sent 0 bytes...
D [13/Feb/2016:12:13:39 +0000] [Job 12] PID 1899 (/usr/lib/cups/filter/brother_lpdwrapper_HLL2300D) exited with no errors.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] Waiting for read thread to exit...
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] PID 1900 (/usr/lib/cups/backend/usb) exited with no errors.
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:39 +0000] [Job 12] time-at-completed=1455365619
D [13/Feb/2016:12:13:39 +0000] Discarding unused job-completed event...
I [13/Feb/2016:12:13:39 +0000] [Job 12] Job completed.
D [13/Feb/2016:12:13:39 +0000] cupsdMarkDirty(---J-)
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [13/Feb/2016:12:13:39 +0000] Discarding unused printer-state-changed event...
D [13/Feb/2016:12:13:39 +0000] cupsdMarkDirty(---J-)
D [13/Feb/2016:12:13:39 +0000] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [13/Feb/2016:12:13:39 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:12:13:41 +0000] [Job 12] Unloading...
D [13/Feb/2016:12:13:41 +0000] cupsd is not idle any more, canceling shutdown.
I [13/Feb/2016:12:14:10 +0000] Saving job.cache...
D [13/Feb/2016:12:14:10 +0000] cupsdSetBusyState: newbusy="Not busy", busy="Printing jobs and dirty files"
D [13/Feb/2016:12:14:10 +0000] Report: clients=0
D [13/Feb/2016:12:14:10 +0000] Report: jobs=2
D [13/Feb/2016:12:14:10 +0000] Report: jobs-active=0
D [13/Feb/2016:12:14:10 +0000] Report: printers=1
D [13/Feb/2016:12:14:10 +0000] Report: stringpool-string-count=1049
D [13/Feb/2016:12:14:10 +0000] Report: stringpool-alloc-bytes=7400
D [13/Feb/2016:12:14:10 +0000] Report: stringpool-total-bytes=19584
D [13/Feb/2016:12:14:10 +0000] cupsd is not idle any more, canceling shutdown.

User avatar
lhinderberger
Posts: 18
Joined: Thu Jan 21, 2016 10:32 am
Location: Dresden, Germany

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 12:22 pm

Seems like it cannot access some files of your printer driver:

Code: Select all

D [13/Feb/2016:12:13:39 +0000] [Job 12] cp: cannot stat ‘/opt/brother/Printers/HLL2300D//inf/brHLL2300Drc’: No such file or directory
[...]
D [13/Feb/2016:12:13:39 +0000] [Job 12] sh: 1: /opt/brother/Printers/HLL2300D//lpd/filter_HLL2300D: not found
Make sure the files exist and check your permissions recursively.

fixer
Posts: 9
Joined: Fri Feb 12, 2016 9:03 am

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 1:23 pm

Ok, so I removed printer from CUPS and reinstalled the driver using this file from Brother website hll2300dcupswrapper-3.2.0-1.i386.deb in GUI.

Same error this time:

Code: Select all

D [13/Feb/2016:13:02:50 +0000] [Job 17] cp: cannot stat ‘/opt/brother/Printers/HLL2300D//inf/brHLL2300Drc’: No such file or directory
D [13/Feb/2016:13:02:50 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:13:02:50 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:13:02:50 +0000] [Job 17] sh: 1: /opt/brother/Printers/HLL2300D//lpd/filter_HLL2300D: not found
D [13/Feb/2016:13:02:50 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:13:02:51 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:13:02:52 +0000] [Job 17] PID 3791 (/usr/lib/cups/filter/texttopdf) exited with no errors.
D [13/Feb/2016:13:02:52 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:13:02:53 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:13:02:53 +0000] [Job 17] mv: cannot stat ‘/tmp/brHLL2300Drc_3793’: No such file or directory
D [13/Feb/2016:13:02:53 +0000] cupsd is not idle any more, canceling shutdown.
D [13/Feb/2016:13:02:53 +0000] [Job 17] PID 3792 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [13/Feb/2016:13:02:53 +0000] [Job 17] PID 3793 (/usr/lib/cups/filter/brother_lpdwrapper_HLL2300D) exited with no errors.
What are those files, and why are they missing after instalation?

ne3e
Posts: 10
Joined: Fri Apr 20, 2012 2:09 pm

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 3:39 pm

I cheated with this printer.
I got tired of having to mess with the HLL2300D and bought a USB to Ethernet to HP Jetdirect Print Server on E-bay.
I just set up CUPS to point to JETDIRECT TCP port 9100 and print away!

I paid about about $20.00 US for the Print Server.

Good luck to all

PhotonX
Posts: 59
Joined: Sun Nov 29, 2015 4:13 pm

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 4:01 pm

I'm a bit puzzled about the double slashes in the paths of the missing files. Should it be like this?

fixer
Posts: 9
Joined: Fri Feb 12, 2016 9:03 am

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 7:30 pm

PhotonX wrote:I'm a bit puzzled about the double slashes in the paths of the missing files. Should it be like this?
Based on what I read it should not be a problem, but not sure. On the other hand, if I remove the double slashes the file is not there: this does not exist on my disk /opt/brother/Printers/HLL2300D/inf/brHLL2300Drc and /opt/brother/Printers/HLL2300D/lpd/filter_HLL2300D... could you have a look (someone who has this printer running) if these files exists.

I am using CUPSwrapper printer driver (deb package) 02/04/2015 (3.2.0-1) from here http://support.brother.com/g/b/download ... _as&os=128

PhotonX
Posts: 59
Joined: Sun Nov 29, 2015 4:13 pm

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 7:47 pm

In my case the files do exist. I'd suggest you to rerun the installer from the Brother homepage and watch careful for errors it might report. In worst case post the complete output of the installer.

fixer
Posts: 9
Joined: Fri Feb 12, 2016 9:03 am

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 7:51 pm

PhotonX wrote:In my case the files do exist. I'd suggest you to rerun the installer from the Brother homepage and watch careful for errors it might report. In worst case post the complete output of the installer.
I installed only hll2300dcupswrapper-3.2.0-1.i386.deb? I installed from GUI, should I install it via terminal?
Last edited by fixer on Sat Feb 13, 2016 8:07 pm, edited 1 time in total.

fixer
Posts: 9
Joined: Fri Feb 12, 2016 9:03 am

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 8:02 pm

Ok, guys this was my mistake .. I didn't install the LPR printer driver (deb package) file. Those are those missing file... I am printing ok now. Thanks for your time and patience.

One question. No I am getting this status (the printing works)...

Code: Select all

Idle - "ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored."

PhotonX
Posts: 59
Joined: Sun Nov 29, 2015 4:13 pm

Re: Struggling to share a Brother HL-L2300D over network

Sat Feb 13, 2016 10:22 pm

I am also getting this error, but printing still works.

User avatar
lhinderberger
Posts: 18
Joined: Thu Jan 21, 2016 10:32 am
Location: Dresden, Germany

Re: Struggling to share a Brother HL-L2300D over network

Sun Feb 14, 2016 11:57 am

Great to hear it works now :)
(Jap, the error message you mentioned is present for me as well, but it does no harm so far.)

fixer
Posts: 9
Joined: Fri Feb 12, 2016 9:03 am

Re: Struggling to share a Brother HL-L2300D over network

Sun Feb 14, 2016 5:26 pm

lhinderberger wrote:Great to hear it works now :)
(Jap, the error message you mentioned is present for me as well, but it does no harm so far.)
Thanks for help. One more question, does installing this i386 architecture on RPi have any negative effects? I would also like to use this RPi for some home automation..

User avatar
lhinderberger
Posts: 18
Joined: Thu Jan 21, 2016 10:32 am
Location: Dresden, Germany

Re: Struggling to share a Brother HL-L2300D over network

Mon Feb 15, 2016 12:07 pm

I have not encountered any negative effects so far with Debian Jessie.
I currently have the printer driver / CUPS server, a Samba share and mpd running on my Pi2B with no problems whatsoever.
In Debian Wheezy they had a quite bodgy workaround in one of their system packages which basically made everything fail due to package conflicts, but I don't think that you might run into this kind of problems with Jessie.

fixer
Posts: 9
Joined: Fri Feb 12, 2016 9:03 am

Re: Struggling to share a Brother HL-L2300D over network

Tue Feb 16, 2016 7:25 am

lhinderberger wrote:I have not encountered any negative effects so far with Debian Jessie.
I currently have the printer driver / CUPS server, a Samba share and mpd running on my Pi2B with no problems whatsoever.
In Debian Wheezy they had a quite bodgy workaround in one of their system packages which basically made everything fail due to package conflicts, but I don't think that you might run into this kind of problems with Jessie.
So far so good also on my side. I am running CUPS server and Home-assistant + Homebridge and everything seems to work fine.

Return to “Troubleshooting”