You are not logged in.

#1 2025-02-25 16:33:02

freezerboy
Member
Registered: 2025-02-25
Posts: 7

Setting up Brother HL-2270DW

I am having a heck of a time getting my Brother HL2270DW Printer working with cups through a usb connection. For some background, I used to use Gnome and setup this printer through the gui printer setup there, it was really easy and worked fine. I followed the wiki at the time to find out what to install, I think it was just cups and cups-pdf. Since then I have switched over to Plasma and I am no longer able to print. When I first tried, my printer was showing up as normal from when I set it up through Gnome, it just didn't actually print. I tried going through the wiki and reinstalling cups and cups-pdf, as well as the aur package for my printer drivers (which I did not have to install to get it working in Gnome). My printer is detected over usb and by cups. Anytime I try to print, the jobs get stuck in processing. I have been trying to go through everything I can find that's relevant in the wiki related to cups and nothing is helping. I'll put some of my logs below with context to show where I'm at and what I've tried.

When I run /usr/lib/cups/backend/usb right after adding my printer through cups and before trying to print

DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 120 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=11
DEBUG2: iSerialNumber="B3N744526"
DEBUG2: Printer found with device ID: MFG:Brother;CMD:PJL,PCL,PCLXL;MDL:HL-2270DW series;CLS:PRINTER;CID:Brother Laser Type1; Device URI: usb://Brother/HL-2270DW%20series?serial=B3N744526
direct usb://Brother/HL-2270DW%20series?serial=B3N744526 "Brother HL-2270DW series" "Brother HL-2270DW series" "MFG:Brother;CMD:PJL,PCL,PCLXL;MDL:HL-2270DW series;CLS:PRINTER;CID:Brother Laser Type1;" ""

After I attempt to print something here's the new output:

DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 120 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=11
DEBUG: Failed to detach "usblp" module from 04f9:0042

That led me to find the section on the wiki about unloading and blacklisting the usblp module. Which I did, and verified that it is no longer loaded, but /usr/lib/cups/backend/usb still shows that message about failing to detach the usblp module.

Similarly running lpinfo -v before printing shows my printer as a direct usb connection. But after attempting to print, it's no longer listed there.

My jobs are always stuck in processing with this state:

processing since
Tue 25 Feb 2025 11:24:17 AM EST 
"cfFilterChain: pdftops (PID 7476) exited with no errors."

With debug turned on, here's a tail of my cups error log:

D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] CGI data ready to be sent.
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 33] POST / HTTP/1.1
D [25/Feb/2025:11:24:51 -0500] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Active clients, printing jobs, and dirty files"
D [25/Feb/2025:11:24:51 -0500] [Client 33] Read: status=200, state=6
D [25/Feb/2025:11:24:51 -0500] [Client 33] No authentication data provided.
D [25/Feb/2025:11:24:51 -0500] [Client 33] 2.0 Get-Jobs 1
D [25/Feb/2025:11:24:51 -0500] Get-Jobs ipp://localhost/
D [25/Feb/2025:11:24:51 -0500] [Client 33] Returning IPP successful-ok for Get-Jobs (ipp://localhost/) from localhost.
D [25/Feb/2025:11:24:51 -0500] [Client 33] Content-Length: 412
D [25/Feb/2025:11:24:51 -0500] [Client 33] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 33] con->http=0x5f81ea6eeb00
D [25/Feb/2025:11:24:51 -0500] [Client 33] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=412, response=0x5f81ea6ba420(IPP_STATE_DATA), pipe_pid=0, file=-1
D [25/Feb/2025:11:24:51 -0500] [Client 33] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [25/Feb/2025:11:24:51 -0500] [Client 33] bytes=0, http_state=0, data_remaining=412
D [25/Feb/2025:11:24:51 -0500] [Client 33] Flushing write buffer.
D [25/Feb/2025:11:24:51 -0500] [Client 33] New state is HTTP_STATE_WAITING
D [25/Feb/2025:11:24:51 -0500] [Client 33] Waiting for request.
D [25/Feb/2025:11:24:51 -0500] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Active clients, printing jobs, and dirty files"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiClearVariables called.
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetVariable: SECTION=\"jobs\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetVariable: TOTAL=\"1\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetVariable: SERVER_NAME=\"localhost\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetVariable: REMOTE_USER=\"zac\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetVariable: CUPS_VERSION=\"CUPS v2.4.11\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: job_printer_name[0]=\"Brother-HL-2270DW\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: job_printer_uri[0]=\"/printers/Brother-HL-2270DW\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: time_at_completed[0]=\"novalue\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: time_at_creation[0]=\"Tue 25 Feb 2025 11:24:17 AM EST\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: time_at_processing[0]=\"Tue 25 Feb 2025 11:24:17 AM EST\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: job_id[0]=\"67\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: job_state[0]=\"5\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: job_impressions_completed[0]=\"0\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: job_k_octets[0]=\"1\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: job_hold_until[0]=\"no-hold\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetArray: job_printer_state_message[0]=\"cfFilterChain: pdftops (PID 7476) exited with no errors.\"
D [25/Feb/2025:11:24:51 -0500] [CGI] cgiSetVariable: THISURL=\"/jobs/\"
D [25/Feb/2025:11:24:51 -0500] [Client 30] CGI data ready to be sent.
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] CGI data ready to be sent.
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] CGI data ready to be sent.
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] CGI data ready to be sent.
D [25/Feb/2025:11:24:51 -0500] [Client 33] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [25/Feb/2025:11:24:51 -0500] [Client 33] Closing connection.
D [25/Feb/2025:11:24:51 -0500] cupsdSetBusyState: newbusy="Active clients, printing jobs, and dirty files", busy="Active clients, printing jobs, and dirty files"
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] CGI data ready to be sent.
D [25/Feb/2025:11:24:51 -0500] PID 7623 (/usr/lib/cups/cgi-bin/jobs.cgi) exited with no errors.
D [25/Feb/2025:11:24:51 -0500] [Client 30] con->http=0x5f81ea6c36c0
D [25/Feb/2025:11:24:51 -0500] [Client 30] cupsdWriteClient error=0, used=0, state=HTTP_STATE_GET_SEND, data_encoding=HTTP_ENCODING_CHUNKED, data_remaining=0, response=(nil)(), pipe_pid=7623, file=18
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for CGI data.
D [25/Feb/2025:11:24:51 -0500] [Client 30] Sending 0-length chunk.
D [25/Feb/2025:11:24:51 -0500] [Client 30] Flushing write buffer.
D [25/Feb/2025:11:24:51 -0500] [Client 30] New state is HTTP_STATE_WAITING
D [25/Feb/2025:11:24:51 -0500] [Client 30] Waiting for request.
D [25/Feb/2025:11:24:51 -0500] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Active clients, printing jobs, and dirty files"
D [25/Feb/2025:11:24:52 -0500] Expiring subscriptions...
D [25/Feb/2025:11:25:01 -0500] [Client 30] HTTP_STATE_WAITING Closing for error 32 (Broken pipe)
D [25/Feb/2025:11:25:01 -0500] [Client 30] Closing connection.
D [25/Feb/2025:11:25:01 -0500] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [25/Feb/2025:11:25:01 -0500] Expiring subscriptions...
D [25/Feb/2025:11:25:02 -0500] Expiring subscriptions...
I [25/Feb/2025:11:25:18 -0500] Saving subscriptions.conf...
D [25/Feb/2025:11:25:18 -0500] cupsdSetBusyState: newbusy="Printing jobs", busy="Printing jobs and dirty files"
D [25/Feb/2025:11:25:18 -0500] Expiring subscriptions...
D [25/Feb/2025:11:25:18 -0500] Report: clients=1
D [25/Feb/2025:11:25:18 -0500] Report: jobs=2
D [25/Feb/2025:11:25:18 -0500] Report: jobs-active=1
D [25/Feb/2025:11:25:18 -0500] Report: printers=1
D [25/Feb/2025:11:25:18 -0500] Report: stringpool-string-count=3707
D [25/Feb/2025:11:25:18 -0500] Report: stringpool-alloc-bytes=10128
D [25/Feb/2025:11:25:18 -0500] Report: stringpool-total-bytes=78392

I'm at a complete loss with this, I can't figure out why it was so easy to get working in Gnome and now seemingly nothing is letting me print. If anyone has any insight I would greatly appreciate it. Let me know if there's any other logs I can provide for more context.

Offline

#2 2025-02-25 18:20:09

xerxes_
Member
Registered: 2018-04-29
Posts: 904

Re: Setting up Brother HL-2270DW

What stops you from running utility from gnome to configure printer for printing? You only need to know it's name and you should be able to load it in kde. You removed whole gnome?

Offline

#3 2025-02-25 18:32:11

jonno2002
Member
Registered: 2016-11-21
Posts: 788

Re: Setting up Brother HL-2270DW

i have a very similar printer and the aur driver works for me, here is the one for yours: https://aur.archlinux.org/packages/brother-hl2270dw
its the official brother driver extracted from a rpm package.
its possible that gnome pulls in a driver package like gutenprint or similar , i dont use gnome so i dont know sorry

Offline

#4 2025-02-25 18:39:36

freezerboy
Member
Registered: 2025-02-25
Posts: 7

Re: Setting up Brother HL-2270DW

xerxes_ wrote:

What stops you from running utility from gnome to configure printer for printing? You only need to know it's name and you should be able to load it in kde. You removed whole gnome?

I guess I could try that. I did remove gnome completely after I switched fully to plasma. I never changed anything with the printer setup when I removed gnome, I only discovered this issue when I tried to print something for the first time yesterday since I got rid of gnome and it didn't work. Now any time I try to set it up I'm running into these issues. When I setup with gnome, I installed

cups
cups-pdf
print-manager
system-config-printer

All of which I have installed now. The rest I did through gnome's printer settings. Is there a way to access that outside of having the gnome shell installed? I'm not seeing a separate package.

I'm not even sure that it's related to my DE, I just know that I had no issues setting it up before and I didn't do anything special, just followed the wiki and the default options through the setup screen.

Last edited by freezerboy (2025-02-25 18:39:58)

Offline

#5 2025-02-25 18:45:59

freezerboy
Member
Registered: 2025-02-25
Posts: 7

Re: Setting up Brother HL-2270DW

jonno2002 wrote:

i have a very similar printer and the aur driver works for me, here is the one for yours: https://aur.archlinux.org/packages/brother-hl2270dw
its the official brother driver extracted from a rpm package.
its possible that gnome pulls in a driver package like gutenprint or similar , i dont use gnome so i dont know sorry

Yeah that's the one I have now, which isn't working, but all signs say that it should be. I did wonder if gnome was pulling in something else during it's setup, I wish I made a note of the driver before I reset things.

Offline

#6 2025-02-25 18:54:40

jonno2002
Member
Registered: 2016-11-21
Posts: 788

Re: Setting up Brother HL-2270DW

that'll teach me for not searching your 1st post for "aur" i read it all the way through and somehow missed that part....
try installing "gutenprint" package then it cant hurt to try...

Offline

#7 2025-02-25 21:22:07

freezerboy
Member
Registered: 2025-02-25
Posts: 7

Re: Setting up Brother HL-2270DW

jonno2002 wrote:

that'll teach me for not searching your 1st post for "aur" i read it all the way through and somehow missed that part....
try installing "gutenprint" package then it cant hurt to try...

I tried setting up with gutenprint, following the wiki instructions. There wasn't an exact match for my printer in the driver options so I picked the closest one, unfortunately it still ended up with the same issue. This is so weird, I might try doing it through gnome again if nothing else works, at least to see what was getting done differently with that setup process. Maybe I can replicate t myself once I know the difference.

Offline

#8 2025-02-26 09:21:04

seth
Member
Registered: 2012-09-03
Posts: 63,637

Re: Setting up Brother HL-2270DW

The tail you posted is all just the cgi, post the entire log, you can

cat  /var/log/cups/error_log | curl -F 'file=@-' 0x0.st

(maybe generate a clean one and attempt a print)
w/o even having read the thread at all, all brother drivers silently rely on whichcraft

No idea about "gnome" (again, tl;dr) or how that would be different from the currsent setup (because "gnome" hopefully doesn't just install printer drivers) but the printer isn't IPP everywhere compliant, so it seems you're gonna need https://aur.archlinux.org/packages/brother-hl2270dw and also see the posts there about build failures of missing lib32)

Offline

#9 2025-02-26 15:05:48

freezerboy
Member
Registered: 2025-02-25
Posts: 7

Re: Setting up Brother HL-2270DW

seth wrote:

The tail you posted is all just the cgi, post the entire log, you can

cat  /var/log/cups/error_log | curl -F 'file=@-' 0x0.st

(maybe generate a clean one and attempt a print)
w/o even having read the thread at all, all brother drivers silently rely on whichcraft

No idea about "gnome" (again, tl;dr) or how that would be different from the currsent setup (because "gnome" hopefully doesn't just install printer drivers) but the printer isn't IPP everywhere compliant, so it seems you're gonna need https://aur.archlinux.org/packages/brother-hl2270dw and also see the posts there about build failures of missing lib32)

Here's a clean cups error log starting from right before attempting a test print.

https://0x0.st/8ADG.txt

I do have that driver you linked from the aur, and also have the required lib32 package installed. This printer is older so I figured it's not IPP compliant which is why I've been trying to use the drivers. Briefly looking over the full logs above I see mention of IPP even though the printer is set up over usb.

Offline

#10 2025-02-26 15:38:00

seth
Member
Registered: 2012-09-03
Posts: 63,637

Re: Setting up Brother HL-2270DW

D [26/Feb/2025:09:45:24 -0500] [Job 74] ppdFilterPDFToPS: Switching to Poppler\'s pdftops instead of Ghostscript for Brother, Minolta, Konica Minolta, Dell, and Apple LaserWriter printers to work around bugs in the printer\'s PS interpreters

Uses poppler instead of ghostscript, so likely no whichcraft.

I [26/Feb/2025:09:45:24 -0500] [Job 74] Started filter /usr/lib/cups/filter/universal (PID 3902)
I [26/Feb/2025:09:45:24 -0500] [Job 74] Started filter /usr/lib/cups/filter/brlpdwrapperHL2270DW (PID 3903)
I [26/Feb/2025:09:45:24 -0500] [Job 74] Started backend /usr/lib/cups/backend/usb (PID 3904)
D [26/Feb/2025:09:45:25 -0500] [Job 74] PID 3902 (/usr/lib/cups/filter/universal) exited with no errors.

There's no record of PID 3903 or 3904 stopping in that log, are the processes still around?
Can you run /usr/lib/cups/filter/brlpdwrapperHL2270DW (it's probably gonna yell an error at you because it expects input, but is should not crash)

Offline

#11 2025-02-26 16:21:44

freezerboy
Member
Registered: 2025-02-25
Posts: 7

Re: Setting up Brother HL-2270DW

seth wrote:
D [26/Feb/2025:09:45:24 -0500] [Job 74] ppdFilterPDFToPS: Switching to Poppler\'s pdftops instead of Ghostscript for Brother, Minolta, Konica Minolta, Dell, and Apple LaserWriter printers to work around bugs in the printer\'s PS interpreters

Uses poppler instead of ghostscript, so likely no whichcraft.

I [26/Feb/2025:09:45:24 -0500] [Job 74] Started filter /usr/lib/cups/filter/universal (PID 3902)
I [26/Feb/2025:09:45:24 -0500] [Job 74] Started filter /usr/lib/cups/filter/brlpdwrapperHL2270DW (PID 3903)
I [26/Feb/2025:09:45:24 -0500] [Job 74] Started backend /usr/lib/cups/backend/usb (PID 3904)
D [26/Feb/2025:09:45:25 -0500] [Job 74] PID 3902 (/usr/lib/cups/filter/universal) exited with no errors.

There's no record of PID 3903 or 3904 stopping in that log, are the processes still around?
Can you run /usr/lib/cups/filter/brlpdwrapperHL2270DW (it's probably gonna yell an error at you because it expects input, but is should not crash)

I looks like they do hang around. I can see in the logs they stopped about an hour after, which was right when my PC went to sleep.

Running /usr/lib/cups/filter/brlpdwrapperHL2270DW seems to work fine, no crashes.

Offline

#12 2025-02-26 17:08:52

seth
Member
Registered: 2012-09-03
Posts: 63,637

Re: Setting up Brother HL-2270DW

/usr/lib/cups/filter/brlpdwrapperHL2270DW should be a bash script?

Add

exec 2>&1 1>/tmp/wtf.log
set -x

under the shebang, this will hopefully trace something meaningful into /tmp/wtf.log

Speaking of shebang, looks like /bin/sh - that symlinks bash for you?

Offline

#13 2025-02-26 17:37:33

freezerboy
Member
Registered: 2025-02-25
Posts: 7

Re: Setting up Brother HL-2270DW

seth wrote:

/usr/lib/cups/filter/brlpdwrapperHL2270DW should be a bash script?

Add

exec 2>&1 1>/tmp/wtf.log
set -x

under the shebang, this will hopefully trace something meaningful into /tmp/wtf.log

Speaking of shebang, looks like /bin/sh - that symlinks bash for you?

It is a sh script, here's the output written to the log file:

+ LOGFILE=/dev/null
+ LOGCLEVEL=7
+ DEBUG=0
+ NUPENABLE=1
+ ENABLECOPY=0
+ LOG_LATESTONLY=1
+ errorcode=0
+ set +o noclobber
++ echo
++ grep debug-noprint=1
+ '[' '' '!=' '' ']'
++ echo
++ grep debug-noprint=2
+ '[' '' '!=' '' ']'
++ echo
++ grep debug-noprint=3
+ '[' '' '!=' '' ']'
+ '[' 0 '!=' 0 ']'
+ PRINTER=HL2270DW
+ '[' '' = '' ']'
+ PPD=/usr/share/cups/model/HL2270DW.ppd
+ '[' /dev/null '!=' /dev/null ']'
++ mktemp /tmp/br_input_ps.XXXXXX
+ INPUT_TEMP_PS=/tmp/br_input_ps.Naqjd2
+ nup=cat
++ echo
++ grep Nup=
+ '[' '' '!=' '' ']'
+ '[' 0 -ge 7 ']'
+ cat

Not sure if anything here is useful. And yeah, /bin/sh does symlink bash for me.

Offline

#14 2025-02-26 21:02:15

seth
Member
Registered: 2012-09-03
Posts: 63,637

Re: Setting up Brother HL-2270DW

Ath te top of the script you should find

LOGFILE="/dev/null"

Make that

LOGFILE="/tmp/wtaf.log"

The log should then contain

arg6 = blafobar

"blafobar" is what cat should cat there - and apparently doesn't.

Offline

#15 2025-05-07 23:16:15

j8a
Member
Registered: 2024-02-19
Posts: 2

Re: Setting up Brother HL-2270DW

Hi,
I wonder whether you could install the brlaser package available


https://github.com/Owl-Maintain/brlaser

The only thing I changed in the instructions was the following:

sudo cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .

You could find more information in the following Arch Wiki page and the driver was updated recently, this year.

https://wiki.archlinux.org/title/CUPS/P … ms#Brother


Hope it helps, regards.

Last edited by j8a (2025-05-07 23:22:15)

Offline

Board footer

Powered by FluxBB