PINE64
Printing from Mobian - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: Printing from Mobian (/showthread.php?tid=13873)



Printing from Mobian - johnd - 05-11-2021

What experiences have people here had with printing from Mobian (or any Pinephone
OS)?

I can print once only from Firefox-esr after a re-boot, then no printers show up
in Firefox or any other app. I have a RPi running a cups print server, which
at first allows any of 3 printers to be found, but after one print job, they are
not found.

I'd like to hear of any your ideas, or successes in printing.


John


RE: Printing from Mobian - johnd - 05-13-2021

Update:


I had better results by ignoring my CUPS print server and installing cups on

mobian to print directly to my wireless printer.

    sudo apt-get install cups cups-client lpr



Then adding my phone user to lpadmin

    sudo adduser mobian lpadmin

   

Then run CUPS from the browser

    http://localhost:631



Log in as mobian with phone passcode.



Go to Administration, Add Printer, and for me, choose ldp://<PrinterAddress>

To get this to work, I used the PrinterAddress from my other cups server, which

happens to be BrotherHL270-W/BINARY-P1.



This has allowed reliable printing from firefox-esr, Text Editor (gedit),

Image Viewer (eog) and Document Viewer (evince) but not Evolution or the command

line.


RE: Printing from Mobian - dukla2000 - 05-13-2021

(05-13-2021, 12:00 AM)johnd Wrote: ... installing cups on mobian to print directly to my wireless printer.

    sudo apt-get install cups cups-client lpr

Then adding my phone user to lpadmin

    sudo adduser mobian lpadmin

    Then run CUPS from the browser    http://localhost:631

Log in as mobian with phone passcode.

Go to Administration, Add Printer, and for me, choose ldp://<PrinterAddress>
...
Is how I do it. Yes have noticed evolution has a mind of its own.


RE: Printing from Mobian - PrinterSolvedTeam - 10-27-2026

Late to this, but in case it helps anyone landing here from search: the "printers disappear after the first job" pattern is usually cups-browsed/Avahi rather than the phone itself. The remote queues get discovered over mDNS, then dropped when the phone's Wi-Fi power saving makes it miss the next announcement.

What has worked for me on Mobian / Debian-based phones:

1. Use a permanent local queue instead of relying on discovered ones. With CUPS installed locally (as johnd described), add the printer once with a fixed URI, e.g.
sudo lpadmin -p office -E -v ipp://192.168.1.50/ipp/print -m everywhere
-m everywhere uses driverless IPP Everywhere, so no vendor driver is needed if the printer is AirPrint/IPP capable.
2. Make it the default, so command-line tools know where to send jobs:
lpoptions -d office and test with lp -d office /usr/share/cups/data/testprint (or any PDF).
3. If you still want the Pi print server, point the phone straight at it instead of browsing: ipp://<pi-address>:631/printers/<queue-name>, again with a fixed queue.
4. Give the printer a DHCP reservation on the router. Many home printers change address after sleep, which looks exactly like "found once, then gone". If it is a Canon and it keeps dropping off, the router-side steps in this guide on a Canon printer keeps going offline apply to Linux clients too.
5. If Wi-Fi power saving is the culprit, sudo iw dev wlan0 set power_save off (temporary) is a quick way to confirm it.

Evolution prints through GTK like the other apps, so once a fixed default queue exists it usually starts working as well.