-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My iOS device is unable to print on double sides #102
Comments
My iPhone 13 does not have a duplex printing option, while my iPhone X does have the option but is unable to print. |
That link is interesting, because the answer links to a tutorial that basically shows how to install cups - exactly what this container does: https://discussions.apple.com/thread/255283321?answerId=259838859022&sortBy=rank#259838859022 So my best guess is to set duplex by default in the printer when setting it up with cups. Or have two printers configure (with same destination, if that works), one with duplex and one without? Does that help you? |
I think this issue is likely caused by the iOS 17 update. I've been using it for a long time without any problems before. My printer model is quite old; it's the HP LaserJet 1320 series. I've continued to use it because its automatic duplex printing feature works very well. It seems that the iOS 17 update has upgraded the version of AirPrint, which is incompatible with the old driver of the 1320 model. I've tried all the 1320 drivers in your software and set the default to duplex printing, but none of these solutions worked. After upgrading my iPhone 13 to iOS 17, the duplex printing option simply doesn't show up. However, it's quite strange that my iPhone X, which only supports up to iOS 16, can display the duplex printing option but still can't print. Do you know where I can find a newer printer driver? I'd like to try manually updating the printer driver. |
I no longer use my own creation, because I have a new printer that supports AirPrint directly. This one (Brother DCP-L3550CDW) does show duplex printing on an iPhone 12 with iOS 18. I fear it might be indeed the AirPrint support/version in this container. The script was taken from a dead repo, so we would need help from the community to understand and update it: https://github.com/tjfontaine/airprint-generate |
Thank you for your analysis and response. I believe you are correct. It is likely not due to a specific printer driver, but rather the version of AirPrint supported by the container, which makes it difficult for me to resolve. Do you have any solutions? Can you try to take action? |
Since I'm unable to test it, can you try an build an image with some adjustments to https://github.com/SickHub/docker-cups-airprint/blob/master/airprint/airprint-generate.py? Try adding If that works, we can figure out how to make it configurable. |
I really want to do this, but my ability is limited. I can hardly understand these codes, and I don't have the prerequisite knowledge to know how to build image. I only have a QNAP NAS, from which I can pull images from the hub for installation and testing. Thank you for your exploration. I look forward to you or other experts like you creating an image, and I can help with the testing. I believe this can help all users who are using iOS 16 and later versions. |
Would you like to do it together? Because it will be difficult if not impossible for me to test. |
OK,i'll try my best. |
I had an idea how you can test it easily. I built a docker image with If it does, I can open an issue with more detailed explanation and could start working on it when I find the time (or someone else). |
It still doesn't work. I can see the duplex printing option on my iPhone X, but after clicking print, there's no response both the iPhone X and the printer, and docker-->CUPS-->“Jobs” doesn't receive any tasks. If I don't select the duplex printing option, CUPS-->"Jobs" will receive task I searched online and it appears that after the iOS upgrade, a newer version of the printer driver is needed. I believe the problem is likely not with CUPS, but rather the printer driver hasn't been updated for quite some time and is no longer compatible. Unless CUPS can "translate" the printing requirements of the new iOS version into a format that the old printer driver can "accept". |
I'm sorry to hear that :( At the community out there: we would really appreciate your help to understand and improve the airprint-generate script. There seem to be a lot of forks with lots of improvements around, so maybe we'll get lucky and someone already has a patch fot this issue: https://github.com/tjfontaine/airprint-generate/forks?include=active&page=1&period=5y&sort_by=stargazer_counts |
Yes, these look promising, give me some time to figure out what to change and build a new image for you to test 🤞 Edit: the mime files are already part of this image, so that's already covered. |
Do you have a Linux host with graphical interface and can install and run You can also instead post the XML file generated that is in your cups container in Mine look like this, maybe that gets us a step closer to a solution
ref: documentation of the XML avahi.service format (man 5 avahi.service): https://man.developpez.com/man5/avahi.service/ |
OK I found this: “/etc/avahi/services/AirPrint-HP_LaserJet_1320_series.service"
|
great, thanks. We'll see if we get any closer. Just found the BonjourPrinting.pdf with details on what the records mean: http://devimages.apple.com/opensource/BonjourPrinting.pdf And yes, I wonder if the This links to a possibly newer Bonjour spec: https://developer.apple.com/bonjour/printing-specification/bonjourprinting-1.2.1.pdf (also not mentioning URF from what I saw) => I built and pushed a new image |
I don't know what went wrong, but this time I can't find the local printer. I've tried several versions of Docker, but none of them worked.I'll give it another try tomorrow. |
I have some good news to share: the issue has been resolved! Do you remember when I mentioned that I couldn't add my USB printer? I looked up some information online and found out that it was because I hadn't mapped the But suddenly, mapping only Furthermore, I conducted a series of tests, and the results are as follows:
I think your duplex version is still very effective!!!!! Additionally, when I check the jobs now, the status of each successful entry is "Failed to connect to system bus".
The following content is displayed in the log.How to remove these warnings?
|
Awesome! Luckily we did not go deep into debugging and just tested simple changes :) And besides, this thread may help others to resolve their issues. As for Concerning older iOS versions, I'm not sure if its worth investing the time to make this project compatible with them as they are end-of-life if I'm not mistaken. Alternatively, if anyone wants to invest the time to make this configurable in that I'm glad it works now for you, @master-ang , and also thank you for sharing your findings. I hope this will help others in the community. |
My printer supports automatic duplex printing, but I cannot achieve duplex printing with my iPhone 13 and iPhone X. In the iOS print settings, I can select "Double Sides Printing," but when I press the print button, nothing happens. However, if I cancel duplex printing, it prints successfully. Additionally, my Android phone, Windows computer, and Mac can all print on both sides successfully, only the iOS devices cannot. How can I resolve this issue?
The text was updated successfully, but these errors were encountered: