| | 1 | ===== USB Printers - CUPS Printing ===== |
| | 2 | |
| | 3 | Plugged in Star SK1-311 roll tape printer used in Satellite enclosures |
| | 4 | |
| | 5 | dmesg response |
| | 6 | {{{ |
| | 7 | [ 7953.117705] usb 1-1.4: new full-speed USB device number 8 using xhci-hcd |
| | 8 | [ 7953.326192] usblp 1-1.4:1.0: usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x0519 pid 0x004D |
| | 9 | [ 7953.326307] usbcore: registered new interface driver usblp |
| | 10 | }}} |
| | 11 | |
| | 12 | Verified it does work to print text to /dev/usb/lp0 |
| | 13 | |
| | 14 | 825gen2 has CUPS (Common Unix Printing System) |
| | 15 | |
| | 16 | lpinfo does show it |
| | 17 | |
| | 18 | {{{ |
| | 19 | card825gen2:/mnt/nfs/arm825_nand/bin$ /usr/sbin/lpinfo -v |
| | 20 | network socket |
| | 21 | network lpd |
| | 22 | network ipp |
| | 23 | network http |
| | 24 | direct usb://SANEI/SK1-311%20Presenter%20(STR-001) |
| | 25 | network dnssd://Canon%20TX-3000._ipp._tcp.local/?uuid=00000000-0000-1000-8000-001832104e5a |
| | 26 | network dnssd://Canon%20iPR%20Svr%20G250%20V2.1%20US(64%3A59%3AA5)._printer._tcp.local/ |
| | 27 | network dnssd://HP%20Designjet%20T520%2024in%20%5BD50233%5D._ipp._tcp.local/?uuid=abcd9e8e-4886-85c2-2167-b143d1c2344a |
| | 28 | network dnssd://HP%20LaserJet%20P2055dn%20%5B82FCF4%5D._pdl-datastream._tcp.local/ |
| | 29 | network dnssd://Lexmark%20C2240._ipp._tcp.local/?uuid=584bdd81-d230-49f3-a210-d39ac56492d0 |
| | 30 | }}} |
| | 31 | |
| | 32 | To just show usb printers |
| | 33 | |
| | 34 | {{{ |
| | 35 | card825gen2:/mnt/nfs/arm825_nand/bin$ /usr/sbin/lpinfo --include-schemes usb -v |
| | 36 | direct usb://SANEI/SK1-311%20Presenter%20(STR-001) |
| | 37 | }}} |
| | 38 | |
| | 39 | {{{ |
| | 40 | card825gen2:/mnt/nfs/arm825_nand/bin$ lpstat -p STAR |
| | 41 | printer STAR disabled since Mon Jan 8 12:01:45 2024 - |
| | 42 | reason unknown |
| | 43 | }}} |
| | 44 | |
| | 45 | {{{ |
| | 46 | card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK311 -v "usb://SANEI/SK1-311%20Presenter%20(STR-001)" -m sk1-311_presenter.ppd |
| | 47 | lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS. |
| | 48 | }}} |
| | 49 | |
| | 50 | {{{ |
| | 51 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /usr/images/kytare.bmp |
| | 52 | lp: Destination "STARSK311" is not accepting jobs. |
| | 53 | }}} |
| | 54 | |
| | 55 | {{{ |
| | 56 | card825gen2:/usr/libexec/cups/filter$ lpstat -v |
| | 57 | device for STARSK311: usb://SANEI/SK1-311%20Presenter%20(STR-001) |
| | 58 | }}} |
| | 59 | |
| | 60 | |
| | 61 | card825gen2:/usr/libexec/cups/filter$ cat /var/log/cups/error_log |
| | 62 | E [28/Apr/2022:12:42:31 -0500] Filter \"gstopdf\" not found. |
| | 63 | E [28/Apr/2022:12:42:31 -0500] Filter \"gstoraster\" not found. |
| | 64 | E [28/Apr/2022:12:42:31 -0500] Filter \"gstoraster\" not found. |
| | 65 | E [28/Apr/2022:12:42:31 -0500] Filter \"gstoraster\" not found. |
| | 66 | E [10/Jan/2024:15:51:56 -0600] Filter \"gstopdf\" not found. |
| | 67 | E [10/Jan/2024:15:51:56 -0600] Filter \"gstoraster\" not found. |
| | 68 | E [10/Jan/2024:15:51:56 -0600] Filter \"gstoraster\" not found. |
| | 69 | E [10/Jan/2024:15:51:56 -0600] Filter \"gstoraster\" not found. |
| | 70 | E [10/Jan/2024:15:53:31 -0600] [Client 11] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost |
| | 71 | E [10/Jan/2024:15:59:36 -0600] [CGI] ippfind (PID 1245) stopped with status 2! |
| | 72 | E [10/Jan/2024:15:59:36 -0600] [cups-deviced] PID 1238 (driverless) stopped with status 2! |
| | 73 | 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 |
| | 74 | 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 |
| | 75 | E [10/Jan/2024:16:01:16 -0600] copy_model: empty PPD file |
| | 76 | 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. |
| | 77 | 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 |
| | 78 | 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 |
| | 79 | 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. |
| | 80 | E [10/Jan/2024:16:08:27 -0600] [CGI] ippfind (PID 1383) stopped with status 2! |
| | 81 | E [10/Jan/2024:16:08:27 -0600] [cups-deviced] PID 1375 (driverless) stopped with status 2! |
| | 82 | 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. |
| | 83 | card825gen2:/usr/libexec/cups/filter$ |
| | 84 | |
| | 85 | |
| | 86 | card825gen2:/usr/libexec/cups/filter$ lpstat -a |
| | 87 | STARSK311 not accepting requests since Wed Jan 10 16:06:30 2024 - |
| | 88 | reason unknown |
| | 89 | |
| | 90 | |
| | 91 | card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK311 -u allow:all |
| | 92 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /home/admin/test.txt |
| | 93 | lp: Destination "STARSK311" is not accepting jobs. |
| | 94 | |
| | 95 | card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK311 -U admin |
| | 96 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /home/admin/test.txt |
| | 97 | lp: Destination "STARSK311" is not accepting jobs. |
| | 98 | |
| | 99 | |
| | 100 | card825gen2:/usr/libexec/cups/filter$ /usr/sbin/cupsaccept STARSK311 |
| | 101 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /home/admin/test.txt |
| | 102 | request id is STARSK311-1 (1 file(s)) |
| | 103 | |
| | 104 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /usr/images/kytare.bmp |
| | 105 | request id is STARSK311-2 (1 file(s)) |
| | 106 | |
| | 107 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK311 /usr/images/startup.png |
| | 108 | request id is STARSK311-3 (1 file(s)) |
| | 109 | |
| | 110 | card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK1_311 -v usb://SANEI/SK1-311%20Presenter%20\(STR-001\) |
| | 111 | -m sk1-311_presenter.ppd |
| | 112 | lpadmin: Printer drivers are deprecated and will stop working in a future version of CUPS. |
| | 113 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/startup.png |
| | 114 | lp: Destination "STARSK1_311" is not accepting jobs. |
| | 115 | card825gen2:/usr/libexec/cups/filter$ /usr/sbin/cupsaccept STARSK1_311 |
| | 116 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/startup.png |
| | 117 | request id is STARSK1_311-4 (1 file(s)) |
| | 118 | |
| | 119 | card825gen2:/usr/libexec/cups/filter$ lpstat -W not-completed |
| | 120 | STARSK311-1 admin 1024 Wed Jan 10 16:25:01 2024 |
| | 121 | STARSK311-2 admin 3072 Wed Jan 10 16:25:55 2024 |
| | 122 | STARSK311-3 admin 115712 Wed Jan 10 16:27:30 2024 |
| | 123 | STARSK1_311-4 admin 115712 Wed Jan 10 16:30:21 2024 |
| | 124 | |
| | 125 | card825gen2:/usr/libexec/cups/filter$ lpstat -t |
| | 126 | scheduler is running |
| | 127 | no system default destination |
| | 128 | device for STARSK1_311: usb://SANEI/SK1-311%20Presenter%20(STR-001) |
| | 129 | device for STARSK311: usb://SANEI/SK1-311%20Presenter%20(STR-001) |
| | 130 | STARSK1_311 accepting requests since Wed Jan 10 16:29:32 2024 |
| | 131 | STARSK311 accepting requests since Wed Jan 10 16:06:30 2024 |
| | 132 | printer STARSK1_311 disabled since Wed Jan 10 16:29:32 2024 - |
| | 133 | reason unknown |
| | 134 | printer STARSK311 disabled since Wed Jan 10 16:06:30 2024 - |
| | 135 | reason unknown |
| | 136 | STARSK311-1 admin 1024 Wed Jan 10 16:25:01 2024 |
| | 137 | STARSK311-2 admin 3072 Wed Jan 10 16:25:55 2024 |
| | 138 | STARSK311-3 admin 115712 Wed Jan 10 16:27:30 2024 |
| | 139 | STARSK1_311-4 admin 115712 Wed Jan 10 16:30:21 2024 |
| | 140 | |
| | 141 | card825gen2:/usr/libexec/cups/filter$ /usr/sbin/lpadmin -p STARSK1_311 -E |
| | 142 | |
| | 143 | card825gen2:/usr/libexec/cups/filter$ lpstat -t |
| | 144 | scheduler is running |
| | 145 | no system default destination |
| | 146 | device for STARSK1_311: usb://SANEI/SK1-311%20Presenter%20(STR-001) |
| | 147 | device for STARSK311: usb://SANEI/SK1-311%20Presenter%20(STR-001) |
| | 148 | STARSK1_311 accepting requests since Wed Jan 10 16:34:59 2024 |
| | 149 | STARSK311 accepting requests since Wed Jan 10 16:06:30 2024 |
| | 150 | printer STARSK1_311 is idle. enabled since Wed Jan 10 16:34:59 2024 |
| | 151 | Sending data to printer. |
| | 152 | printer STARSK311 disabled since Wed Jan 10 16:06:30 2024 - |
| | 153 | reason unknown |
| | 154 | STARSK311-1 admin 1024 Wed Jan 10 16:25:01 2024 |
| | 155 | STARSK311-2 admin 3072 Wed Jan 10 16:25:55 2024 |
| | 156 | STARSK311-3 admin 115712 Wed Jan 10 16:27:30 2024 |
| | 157 | STARSK1_311-4 admin 115712 Wed Jan 10 16:30:21 2024 |
| | 158 | |
| | 159 | |
| | 160 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /home/admin/test.txt |
| | 161 | request id is STARSK1_311-5 (1 file(s)) |
| | 162 | |
| | 163 | Printed successfully - "test 123" |
| | 164 | |
| | 165 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/icon_keyboard.bmp |
| | 166 | request id is STARSK1_311-6 (1 file(s)) |
| | 167 | |
| | 168 | Printed successfully but rotated and enlarged |
| | 169 | |
| | 170 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/startup.png |
| | 171 | request id is STARSK1_311-7 (1 file(s)) |
| | 172 | |
| | 173 | Small blank ticket printed |
| | 174 | |
| | 175 | card825gen2:/usr/libexec/cups/filter$ lp -d STARSK1_311 /usr/images/cardinal_logo.bmp |
| | 176 | request id is STARSK1_311-9 (1 file(s)) |
| | 177 | |
| | 178 | cardinal_logo.bmp |