I’d like to print a document on a printer shared in a lab, configured at an address like http://printerurl:631/printername
. If I add this url as a new printer and use the generic IPP driver or a RAW queue, it works but then I’ve no access to advanced functionalities, in particular the staple. If I try to add a PPD corresponding to the printer (either downloaded from this address or using the universal driver provided by Lexmark (see how I packaged it below), I can’t see any error, the task appears even on the web interface http://printerurl:631/printername
but then nothing is printed.
Log:
avril 21 15:41:17 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:18 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:18 mycomputer cupsd[422598]: Adding start banner page "none".
avril 21 15:41:18 mycomputer cupsd[422598]: Queued on "Somewhere_UPD_4" by "myname".
avril 21 15:41:18 mycomputer cupsd[422598]: REQUEST localhost - - "POST /printers/Somewhere_UPD_4 HTTP/1.1" 200 615 Create-Job successful-ok
avril 21 15:41:18 mycomputer cupsd[422598]: File of type application/postscript queued by "myname".
avril 21 15:41:18 mycomputer cupsd[422598]: Adding end banner page "none".
avril 21 15:41:18 mycomputer cupsd[422598]: Started filter /nix/store/6p8c0yz4klqnqbxfc2pprxnavy1gn0yl-cups-progs/lib/cups/filter/pstops (PID 475441)
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed to processing." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed to processing." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:18 mycomputer cupsd[422598]: Started filter /nix/store/qmmk4jmy82acqcrg7mvmr3cg6xhar74h-lexmark-udp-globalppd-1.4/opt/upd/LexFaxPnHFilter (PID 475444)
avril 21 15:41:18 mycomputer cupsd[422598]: Started backend /nix/store/6p8c0yz4klqnqbxfc2pprxnavy1gn0yl-cups-progs/lib/cups/backend/http (PID 475445)
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer cupsd[422598]: REQUEST localhost - - "POST /printers/Somewhere_UPD_4 HTTP/1.1" 200 2158254 Send-Document successful-ok
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,connecting-to-device" true
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,connecting-to-device" true
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:18 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:19 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:20 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:21 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:22 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning" true
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:22 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:23 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:24 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:24 mycomputer dbus-daemon[2434]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.4' (uid=0 pid=2586 comm="/nix/store/vjylsny596i37y2520zsbqdmng382hhr-networ" label="kernel")
avril 21 15:41:24 mycomputer systemd[1]: Starting Network Manager Script Dispatcher Service...
avril 21 15:41:24 mycomputer dbus-daemon[2434]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
avril 21 15:41:24 mycomputer systemd[1]: Started Network Manager Script Dispatcher Service.
avril 21 15:41:25 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:26 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:26 mycomputer cupsd[422598]: Printer "25_26_103_MFP_LIP6_color_cups" stopped by "root".
avril 21 15:41:26 mycomputer cupsd[422598]: REQUEST localhost - root "POST /admin/ HTTP/1.1" 200 215 Pause-Printer successful-ok
avril 21 15:41:27 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:28 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed" true
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed" true
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed" true
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-processing" true
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed" true
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-processing" true
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:28 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:29 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:29 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:29 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:29 mycomputer xsession[7154]: ibkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-processing" true
avril 21 15:41:29 mycomputer xsession[201270]: ibkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-processing" true
avril 21 15:41:29 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:29 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:29 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:29 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:29 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:29 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-processing" true
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-processing" true
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-completed" true
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[7154]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-processing" true
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-processing" true
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 4 "media-empty-warning,cups-waiting-for-job-completed,cups-remote-completed" true
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:30 mycomputer xsession[201270]: libkcups: 4 "Somewhere_UPD_4"
avril 21 15:41:31 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:31 mycomputer cupsd[422598]: Somewhere_UPD_4 myname 39 [21/Apr/2022:15:41:31 +0200] total 1 1 localhost 0511228-1.pdf Letter two-sided-long-edge
avril 21 15:41:31 mycomputer cupsd[422598]: Job completed.
avril 21 15:41:31 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:31 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:31 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:31 mycomputer xsession[7154]: libkcups: 3 "Somewhere_UPD_4"
avril 21 15:41:31 mycomputer xsession[7154]: libkcups: "Printer \"Somewhere_UPD_4\" state changed to idle." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 3 "media-empty-warning" true
avril 21 15:41:31 mycomputer xsession[7154]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:31 mycomputer xsession[7154]: libkcups: 3 "Somewhere_UPD_4"
avril 21 15:41:31 mycomputer xsession[201270]: libkcups: 3 "Somewhere_UPD_4"
avril 21 15:41:31 mycomputer xsession[201270]: libkcups: "Printer \"Somewhere_UPD_4\" state changed to idle." "ipp://mycomputer:631/printers/Somewhere_UPD_4" "Somewhere_UPD_4" 3 "media-empty-warning" true
avril 21 15:41:31 mycomputer xsession[201270]: libkcups: Get-Printer-Attributes last error: 0 successful-ok
avril 21 15:41:31 mycomputer xsession[201270]: libkcups: 3 "Somewhere_UPD_4"
avril 21 15:41:32 mycomputer cupsd[422598]: Expiring subscriptions...
avril 21 15:41:35 mycomputer systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
services.printing.drivers = [
(pkgs.callPackage ./lexmark_upd.nix {})
];
services.colord.enable = true;
### Enable scanners
# https://nixos.wiki/wiki/Scanners
hardware.sane.enable = true;
hardware.sane.extraBackends = [
pkgs.sane-airscan # Apple AirScan and Microsoft WSD "driverless" scanners
];
# services.avahi.reflector = true;
users.users.leo.extraGroups = [ "scanner" "lp" ];
### Client: you can use printers shared by others
services.avahi.enable = true;
# Important to resolve .local domains of printers, otherwise you get an error
# like "Impossible to connect to XXX.local: Name or service not known":
services.avahi.nssmdns = true;
### Server: you can share your printer to others
services.avahi.publish.enable = true;
services.avahi.publish.userServices = true;
services.printing.browsing = true;
services.printing.listenAddresses = [ "*:631" ]; # Not 100% sure this is needed and you might want to restrict to the local network
services.printing.defaultShared = false; # If you want
networking.firewall.allowedUDPPorts = [ 631 ];
networking.firewall.allowedTCPPorts = [ 631 ];
lexmark_upd.nix
:
# No errors, appears in the list, but nothing is printed. At the end I just ended up using generic IPP (no staple)
{ stdenv, fetchurl, dpkg, autoPatchelfHook, cups, gawk, gnused, hostname }:
stdenv.mkDerivation rec {
name = "lexmark-udp-globalppd-${version}";
version = "1.4";
# Universal Printer Driver (there exists more specific drivers as well)
src = fetchurl {
url = "https://downloads.lexmark.com/downloads/drivers/Lexmark-UPD-PPD-Files-1.0-03042021.i386.deb";
sha512 = "sha512-qzIgHlmoH7amIvm24X/GdFrZKRbPR2PLYcW5r99Ugb6siib4byxfqhD/DvKoPh/Rs0bhN6opq9FBGUPBPu7jnA==";
};
buildInputs = [ dpkg autoPatchelfHook cups];
unpackPhase = ''
echo "Unpacking";
dpkg -x "$src" .
'';
# We follow the postscript-lexmark hierarchie
installPhase = ''
mkdir -p $out/share/cups/model/lexmark-universal-printer-driver
mkdir -p $out/opt/upd
cp usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/GlobalPPD_1.4/Lexmark_UPD_Series.ppd $out/share/cups/model/lexmark-universal-printer-driver/
cp usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/GlobalPPD_1.4/lib64/LexCommandFileFilterG2 $out/opt/upd/
cp usr/local/Lexmark/ppd/Lexmark-UPD-PPD-Files/GlobalPPD_1.4/LexFaxPnHFilter $out/opt/upd
substituteInPlace $out/share/cups/model/lexmark-universal-printer-driver/Lexmark_UPD_Series.ppd \
--replace "/usr/lib/cups/filter/" "$out/opt/upd/"
# The script tries to call /bin/sed etc...
substituteInPlace $out/opt/upd/LexFaxPnHFilter \
--replace "/bin/echo" "echo" \
--replace "/bin/sed" "${gnused}/bin/sed" \
--replace "/bin/hostname" "${hostname}/bin/hostname" \
--replace "awk" "${gawk}/bin/awk" # this would break AWK_CML, but anyway they don't use it. Other solution would be to add a wrapper... too lazy
'';
}