macOS and USB printer reset issue

Stupid! Stupid! Stupid! as in the letter from an insurance company in The Rainmaker, except in this case it's completely justified. I have an HP Laser Jet 5 printer (superior print quality) connected via USB to my MacBook Pro (9,2., mid 2012) running High Sierra 10.13.6. After each print job I must disconnect and reconnect the USB cable from the machine in order to print the next job. I discovered that this actually works quite by accident after many hours of troubleshooting failed print jobs. If I simply attempted to print a subsequent job the printer halted before anything emerged from the printer. The messages varied from such as: "8% of page finished", or "waiting for printer to become available", but nothing I could do would get it to complete the print task. I tried pause and restart ad nauseam, to no effect. Deleting the job from the queue didn't really delete the entry from the hidden queue buffer deep inside macOS (more on that below). Resetting the print system and re-adding the printer also did not work as even after doing these and re-initiating the job, the print system reported either the printer was offline or the job appeared in the queue waiting for the printer to become available even though the printer itself reported it was ready to print. I suspect the previous job was still in the hidden buffer in a paused state and thus was blocking the job waiting in the visible queue. And to add insult to injury, if I rebooted the machine the stalled print job resumed correctly after reboot completed. Go figure... The only thing that works, and it works perfectly every time is to unplug the USB printer cable and reinsert it. So, pending the arrival of a new Brother wi-fi printer, I unplug and re-plug between print tasks. Man, when you are printing client tax returns during tax season, that is a real pain. I used to have this printer attached to a Windows machine running XP as a print server, until a recent lightning strike fried that machine and a wi-fi router, and it never failed to print from my MBP or my wife's Windows laptop. It would appear that Apple in macOS HS just does not know how to effectively manage USB printers, perhaps not in any version of macOS using a USB connection, since Apple and USB just do not mix well (the ubiquitous and unwelcome improper disk eject problems).


That was background: now my question; beneath every GUI application is the macOS API. There must be a tool or a set of API commands available from the command line that can be used to manage printers and print jobs. If I knew what commands macOS uses to manage printers I could probably write a shell or Perl script to do the equivalent of unplugging and re-plugging my printer; something like umount and mount for printer devices; maybe that's it - umount and mount! Or, perhaps a command to empty the internal buffer. Have any of you experienced this problem and solved it in a different way? Or, do any of you know what command or commands would be appropriate from the command line? Thanks in advance for any help offered.




MacBook Pro 13″, macOS 10.13

Posted on Apr 8, 2023 10:54 AM

Reply

Similar questions

9 replies

Apr 11, 2023 8:07 PM in response to perlboy_emeritus

Problem solved!!! I kick myself for not thinking of this sooner. macOS comes from NeXTSTEP; in fact, we would not have macOS as we know it without the brilliant work done at NeXT, and Preview was part of that platform, back to 1989. So, I simply changed the default application for opening .pdf from Adobe Reader to Preview. I tested several IRS forms and the only thing I will miss, until I get used to not having it, is the purple background associated with editable widgets. I can live without purple now that printing works correctly. I would have tried to fix the issue by upgrading Adobe reader, but I am already at the latest release for High Sierra, and the last thing I will do is switch out HS. The one good thing that came out of this dialogue with the "community" was learning about CUPS admin port 631.

Apr 11, 2023 2:53 PM in response to BDAqua

I have CUPS 2.2.5 and am not in a position to compile 2.2.9 since no binary version is available to download. Besides, basic printing with vanilla macOS with the CUPS that came with the system ought to be a given, except...


I just received and configured a brand new Brother MFC-L2750DW printer. Configuration on macOS and Windows 10 and 11 was trivial. Test prints worked as did printing from LibreOffice and MS Word in VirtualBox. But...drum role... it is impossible to print a filled in tax form with Adobe Reader. That is about as basic a printing task as it gets. The printer queue reports "stopped - "Filter" failed." This is always the result when I attempt to print from Reader to my USB connected HP Laser Jet 5, and now it is exactly what happens with this new mega$$$ printer. This really sucks. The only way I can print tax forms from macOS is to do it from Preview, Apple's proprietary PDF enabled utility. I turned on debug in CUPS and this is all I can find re that particular job, to wit:


D [11/Apr/2023:15:30:02 -0500] [Job 13] BRWAC50DE7FD2C8.local.=[v1.fe80::ae50:deff:fe7f:d2c8+en0]
D [11/Apr/2023:15:30:02 -0500] [Job 13] backendWaitLoop(snmp_fd=8, addr=0x7fbe99f01088, side_cb=0x109875b81)
D [11/Apr/2023:15:30:02 -0500] [Job 13] PID 49911 (/usr/libexec/cups/backend/dnssd) exited with no errors.
D [11/Apr/2023:15:30:02 -0500] Discarding unused job-state-changed event...
E [11/Apr/2023:15:30:02 -0500] [Job 13] Job stopped due to filter errors; please consult the error_log file for details.
D [11/Apr/2023:15:30:02 -0500] cupsdMarkDirty(---J-)


There is a humungous amount of debug info re 15:30:02, so there may be additional useful information above these lines, but alas, my knowledge of CUPS is inadequate. Is it possible that I require some Adobe plug-in to print from their utility that is already enabled in Preview? The fact that Preview always works correctly is comforting but this situation with Adobe and standard IRS fill-in-the-blank forms is appalling especially since Adobe PDF tax forms print perfectly from my wife's laptop running Windows 10 to this Brothers printer via wi-fi.


Have I finally discovered something in Windows that is superior to macOS, that we can't make Adobe Reader print correctly? Apple should be ashamed. What a sorry state of affairs... Any suggestions?

Apr 11, 2023 3:59 PM in response to perlboy_emeritus

Hi,


Just a thought, since the Brother MFC-L2750DW is listed in About AirPrint - Apple Support as a model supporting the AirPrint technology, any change if you try printing via AirPrint? That is, without making use of any drivers, provided that the printer is connected to the same network (Wi-Fi router) as the MacBook Pro?


AirPrint works with wireless (Wi-Fi) or wired (Ethernet) network connections, so the printer and/or the MacBook Pro could be wired to the LAN ports of the router instead of using Wi-Fi, if you so wish.


Add a printer on Mac – Apple Support (UK)

Apr 11, 2023 4:27 PM in response to Jan Hedlund

Interesting and worth a try! Here is queue message:


completed at

Tue Apr 11 18:19:30 2023 

"ERROR: /AppleBraille-Outline6Dot"


Form contained 3 pages. CUPS skipped the first page, but did correctly print pages 2 and 3. If that is the best it can do I'll stick to Preview. In the meantime, I'm learning as much as I can about CUPS so more debug messages are meaningful. Thanks for the suggestion.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

macOS and USB printer reset issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.