===== USB Printers - CUPS Printing ===== Plugged in Star SK1-311 roll tape printer used in Satellite enclosures dmesg response {{{ [ 7953.117705] usb 1-1.4: new full-speed USB device number 8 using xhci-hcd [ 7953.326192] usblp 1-1.4:1.0: usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x0519 pid 0x004D [ 7953.326307] usbcore: registered new interface driver usblp }}} Verified it does work to print text to /dev/usb/lp0 825gen2 has CUPS (Common Unix Printing System) lpinfo does show it {{{ card825gen2:/mnt/nfs/arm825_nand/bin$ /usr/sbin/lpinfo -v network socket network lpd network ipp network http direct usb://SANEI/SK1-311%20Presenter%20(STR-001) network dnssd://Canon%20TX-3000._ipp._tcp.local/?uuid=00000000-0000-1000-8000-001832104e5a network dnssd://Canon%20iPR%20Svr%20G250%20V2.1%20US(64%3A59%3AA5)._printer._tcp.local/ network dnssd://HP%20Designjet%20T520%2024in%20%5BD50233%5D._ipp._tcp.local/?uuid=abcd9e8e-4886-85c2-2167-b143d1c2344a network dnssd://HP%20LaserJet%20P2055dn%20%5B82FCF4%5D._pdl-datastream._tcp.local/ network dnssd://Lexmark%20C2240._ipp._tcp.local/?uuid=584bdd81-d230-49f3-a210-d39ac56492d0 }}} To just show usb printers {{{ card825gen2:/mnt/nfs/arm825_nand/bin$ /usr/sbin/lpinfo --include-schemes usb -v direct usb://SANEI/SK1-311%20Presenter%20(STR-001) }}} {{{ card825gen2:/mnt/nfs/arm825_nand/bin$ lpstat -p STAR printer STAR disabled since Mon Jan 8 12:01:45 2024 - reason unknown }}} {{{ card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK311 -v "usb://SANEI/SK1-311%20Presenter%20(STR-001)" -m sk1-311_presenter.ppd lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS. }}} {{{ card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /usr/images/kytare.bmp lp: Destination "STARSK311" is not accepting jobs. }}} {{{ card825gen2:/usr/libexec/cups/filter$ lpstat -v device for STARSK311: usb://SANEI/SK1-311%20Presenter%20(STR-001) }}} card825gen2:/usr/libexec/cups/filter$ cat /var/log/cups/error_log E [28/Apr/2022:12:42:31 -0500] Filter \"gstopdf\" not found. E [28/Apr/2022:12:42:31 -0500] Filter \"gstoraster\" not found. E [28/Apr/2022:12:42:31 -0500] Filter \"gstoraster\" not found. E [28/Apr/2022:12:42:31 -0500] Filter \"gstoraster\" not found. E [10/Jan/2024:15:51:56 -0600] Filter \"gstopdf\" not found. E [10/Jan/2024:15:51:56 -0600] Filter \"gstoraster\" not found. E [10/Jan/2024:15:51:56 -0600] Filter \"gstoraster\" not found. E [10/Jan/2024:15:51:56 -0600] Filter \"gstoraster\" not found. E [10/Jan/2024:15:53:31 -0600] [Client 11] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost E [10/Jan/2024:15:59:36 -0600] [CGI] ippfind (PID 1245) stopped with status 2! E [10/Jan/2024:15:59:36 -0600] [cups-deviced] PID 1238 (driverless) stopped with status 2! E [10/Jan/2024:16:01:16 -0600] [cups-driverd] Unable to open \"/usr/share/cups/model/sk1-311_presenter.ppd\" - No such file or directory E [10/Jan/2024:16:01:16 -0600] [cups-driverd] Unable to open \"/usr/share/cups/model/sk1-311_presenter.ppd\" - No such file or directory E [10/Jan/2024:16:01:16 -0600] copy_model: empty PPD file E [10/Jan/2024:16:01:16 -0600] [Client 28] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/STARSK311) from localhost. W [10/Jan/2024:16:06:30 -0600] CreateProfile failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files W [10/Jan/2024:16:06:30 -0600] CreateDevice failed: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files E [10/Jan/2024:16:07:36 -0600] [Client 34] Returning IPP server-error-not-accepting-jobs for Create-Job (ipp://localhost/printers/STARSK311) from localhost. E [10/Jan/2024:16:08:27 -0600] [CGI] ippfind (PID 1383) stopped with status 2! E [10/Jan/2024:16:08:27 -0600] [cups-deviced] PID 1375 (driverless) stopped with status 2! E [10/Jan/2024:16:10:32 -0600] [Client 40] Returning IPP server-error-not-accepting-jobs for Create-Job (ipp://localhost/printers/STARSK311) from localhost. card825gen2:/usr/libexec/cups/filter$ card825gen2:/usr/libexec/cups/filter$ lpstat -a STARSK311 not accepting requests since Wed Jan 10 16:06:30 2024 - reason unknown card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK311 -u allow:all card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /home/admin/test.txt lp: Destination "STARSK311" is not accepting jobs. card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK311 -U admin card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /home/admin/test.txt lp: Destination "STARSK311" is not accepting jobs. card825gen2:/usr/libexec/cups/filter$ /usr/sbin/cupsaccept STARSK311 card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /home/admin/test.txt request id is STARSK311-1 (1 file(s)) card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /usr/images/kytare.bmp request id is STARSK311-2 (1 file(s)) card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /usr/images/startup.png request id is STARSK311-3 (1 file(s)) card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK1_311 -v usb://SANEI/SK1-311%20Presenter%20\(STR-001\) -m sk1-311_presenter.ppd lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS. card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/startup.png lp: Destination "STARSK1_311" is not accepting jobs. card825gen2:/usr/libexec/cups/filter$ /usr/sbin/cupsaccept STARSK1_311 card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/startup.png request id is STARSK1_311-4 (1 file(s)) card825gen2:/usr/libexec/cups/filter$ lpstat -W not-completed STARSK311-1 admin 1024 Wed Jan 10 16:25:01 2024 STARSK311-2 admin 3072 Wed Jan 10 16:25:55 2024 STARSK311-3 admin 115712 Wed Jan 10 16:27:30 2024 STARSK1_311-4 admin 115712 Wed Jan 10 16:30:21 2024 card825gen2:/usr/libexec/cups/filter$ lpstat -t scheduler is running no system default destination device for STARSK1_311: usb://SANEI/SK1-311%20Presenter%20(STR-001) device for STARSK311: usb://SANEI/SK1-311%20Presenter%20(STR-001) STARSK1_311 accepting requests since Wed Jan 10 16:29:32 2024 STARSK311 accepting requests since Wed Jan 10 16:06:30 2024 printer STARSK1_311 disabled since Wed Jan 10 16:29:32 2024 - reason unknown printer STARSK311 disabled since Wed Jan 10 16:06:30 2024 - reason unknown STARSK311-1 admin 1024 Wed Jan 10 16:25:01 2024 STARSK311-2 admin 3072 Wed Jan 10 16:25:55 2024 STARSK311-3 admin 115712 Wed Jan 10 16:27:30 2024 STARSK1_311-4 admin 115712 Wed Jan 10 16:30:21 2024 card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK1_311 -E card825gen2:/usr/libexec/cups/filter$ lpstat -t scheduler is running no system default destination device for STARSK1_311: usb://SANEI/SK1-311%20Presenter%20(STR-001) device for STARSK311: usb://SANEI/SK1-311%20Presenter%20(STR-001) STARSK1_311 accepting requests since Wed Jan 10 16:34:59 2024 STARSK311 accepting requests since Wed Jan 10 16:06:30 2024 printer STARSK1_311 is idle. enabled since Wed Jan 10 16:34:59 2024 Sending data to printer. printer STARSK311 disabled since Wed Jan 10 16:06:30 2024 - reason unknown STARSK311-1 admin 1024 Wed Jan 10 16:25:01 2024 STARSK311-2 admin 3072 Wed Jan 10 16:25:55 2024 STARSK311-3 admin 115712 Wed Jan 10 16:27:30 2024 STARSK1_311-4 admin 115712 Wed Jan 10 16:30:21 2024 card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /home/admin/test.txt request id is STARSK1_311-5 (1 file(s)) Printed successfully - "test 123" card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/icon_keyboard.bmp request id is STARSK1_311-6 (1 file(s)) Printed successfully but rotated and enlarged card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/startup.png request id is STARSK1_311-7 (1 file(s)) Small blank ticket printed card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/cardinal_logo.bmp request id is STARSK1_311-9 (1 file(s)) cardinal_logo.bmp