Canon LBP3000 и Simply Linux
Было Подключается через USB. Работает нестабильно. Понять причину нестабильности.
Драйвер https://github.com/agalakhov/captdriver
https://git.altlinux.org/tasks/302081/
Сначала ставится пакет printer-driver-foo2capt, потом драйвер (ppd) отдаётся CUPS'у при добавлении принтера в систему.
Чтобы распечатать файл,
https://openprinting.github.io/cups/doc/overview.html
https://openprinting.github.io/cups/doc/options.html
cups запускает фильтр печати https://github.com/OpenPrinting/cups/blob/master/scheduler/cupsfilter.c#L848 преобразование .ps в формат принтера Этот код - часть /usr/sbin/cupsfilter
Запуск печати файла
lp /tmp/1.ps
фильтр печати запускает сервис, отображающийся в списке процессов как
/usr/sbin/cupsd -l
Кроме фильтра печати, запускается еще и
4 S root 2399 1 0 80 0 - 5809 - 21:33 ? 00:00:00 /usr/sbin/cupsd -l 4 S lp 6944 2399 0 80 0 - 6867 - 22:22 ? 00:00:00 Pantum-P2200-series 93 keremet abiword задание №1 1 PageSize=A4 noImageRotation MediaType=Plain Density=2 number-up=1 noDPI1200 noNegativePrint noTonerMode noCollate noManualDuplex job-uuid=urn:uuid:82d6e01f-cc1c-3b65-6489-953ec5cf101d job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1688757759 time-at-processing=1688757759 4 S lp 6945 2399 0 80 0 - 1694 - 22:22 ? 00:00:00 /bin/bash /usr/lib/cups/filter/pt2500Filter 93 keremet abiword задание №1 1 PageSize=A4 noImageRotation MediaType=Plain Density=2 number-up=1 noDPI1200 noNegativePrint noTonerMode noCollate noManualDuplex job-uuid=urn:uuid:82d6e01f-cc1c-3b65-6489-953ec5cf101d job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1688757759 time-at-processing=1688757759 4 S root 6946 2399 0 80 0 - 26341 - 22:22 ? 00:00:00 usb://Pantum/P2200%20series?serial=CA3H024420 93 keremet abiword задание №1 1 PageSize=A4 noImageRotation MediaType=Plain Density=2 number-up=1 noDPI1200 noNegativePrint noTonerMode noCollate noManualDuplex job-uuid=urn:uuid:82d6e01f-cc1c-3b65-6489-953ec5cf101d job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1688757759 time-at-processing=1688757759 0 S lp 6952 6944 0 80 0 - 12068 - 22:22 ? 00:00:00 /usr/bin/gs -dQUIET -dSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -dShowAcroForm -sstdout=%stderr -sOutputFile=%stdout -sDEVICE=cups -sMediaType=Plain -r600x600 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=842 -dcupsMediaType=1 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=0 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c <</.HWMargins[14.170000 14.170000 14.169983 14.169983] /Margins[0 0]>>setpagedevice -f -_
[keremet@sl10 cups]$ rpm -qf /usr/sbin/cupsd cups-2.4.2-alt3.x86_64 [keremet@sl10 cups]$ sudo apt-get install cups-debuginfo
set follow-fork-mode child set detach-on-fork off
запуск процессов выполняется через /usr/lib/cups/daemon/cups-exec