Changes between Initial Version and Version 1 of Docs/825gen2/Dev/Devices/USB/PrintersCUPS


Ignore:
Timestamp:
01/12/24 12:09:37 (10 months ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/825gen2/Dev/Devices/USB/PrintersCUPS

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