Kyocera KX Printer drivers

New features which should be implemented in Porteus Kiosk Edition and the kiosk wizard.
Post Reply
lordcrash2000
White ninja
White ninja
Posts: 4
Joined: 03 Jul 2018, 20:13
Distribution: Porteus Kiosk

Kyocera KX Printer drivers

Post#1 by lordcrash2000 » 09 Jul 2018, 14:11

I am working on getting two Kiosk computers set up with printers. The printers that I have are Kyocera Ecosys P2235dw printers that use the Kyocera KX universal printer driver. I have tried to set up a custom ISO with the drivers, but still cannot get it to work. Any chance on this being added soon?

Thanks

User avatar
fanthom
Site Admin
Site Admin
Posts: 4885
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Kyocera KX Printer drivers

Post#2 by fanthom » 09 Jul 2018, 17:09

Hello lordcrash2000,

These drivers are proprietary and obviously are problematic.

I have reached as far as that:

Code: Select all

W [09/Jul/2018:16:59:32 +0000] [Job 1] temp file: can\'t find PDF header
W [09/Jul/2018:16:59:32 +0000] [Job 1] temp file: file is damaged
W [09/Jul/2018:16:59:32 +0000] [Job 1] temp file: can\'t find startxref
W [09/Jul/2018:16:59:32 +0000] [Job 1] temp file: Attempting to reconstruct cross-reference table
E [09/Jul/2018:16:59:32 +0000] [Job 1] loadFile failed: temp file: unable to find trailer dictionary while recovering damaged file
E [09/Jul/2018:17:00:11 +0000] [Job 1] Job stopped due to filter errors; please consult the error_log file for details.
D [09/Jul/2018:17:00:11 +0000] [Job 1] The following messages were recorded from 04:59:32 PM to 05:00:11 PM
D [09/Jul/2018:17:00:11 +0000] [Job 1] Applying default options...
D [09/Jul/2018:17:00:11 +0000] [Job 1] Adding start banner page "none".
D [09/Jul/2018:17:00:11 +0000] [Job 1] Adding end banner page "none".
D [09/Jul/2018:17:00:11 +0000] [Job 1] File of type application/pdf queued by "guest".
D [09/Jul/2018:17:00:11 +0000] [Job 1] hold_until=0
D [09/Jul/2018:17:00:11 +0000] [Job 1] Queued on "kiosk-printer" by "guest".
D [09/Jul/2018:17:00:11 +0000] [Job 1] time-at-processing=1531155572
D [09/Jul/2018:17:00:11 +0000] [Job 1] 3 filters for job:
D [09/Jul/2018:17:00:11 +0000] [Job 1] pdftopdf (application/pdf to application/vnd.cups-pdf, cost 66)
D [09/Jul/2018:17:00:11 +0000] [Job 1] pdftops (application/vnd.cups-pdf to application/vnd.cups-postscript, cost 100)
D [09/Jul/2018:17:00:11 +0000] [Job 1] /usr/libexec/cups/filter/kyofilter_E (application/vnd.cups-postscript to printer/kiosk-printer, cost 0)
D [09/Jul/2018:17:00:11 +0000] [Job 1] job-sheets=none,none
D [09/Jul/2018:17:00:11 +0000] [Job 1] argv[0]="kiosk-printer"
D [09/Jul/2018:17:00:11 +0000] [Job 1] argv[1]="1"
D [09/Jul/2018:17:00:11 +0000] [Job 1] argv[2]="guest"
D [09/Jul/2018:17:00:11 +0000] [Job 1] argv[3]="The Linux Kernel Archives"
D [09/Jul/2018:17:00:11 +0000] [Job 1] argv[4]="1"
D [09/Jul/2018:17:00:11 +0000] [Job 1] argv[5]="noWren Wsze=72 Wtxt=Confidential Wtrans=watermark JobDate Tmed=PrnDef number-up=1 Wang=50 Email=off Ecop=Off InputSlot=Auto noCollate CvrM=PrnDef Duplex=None Resolution=601dpi Wtyp=Solid Coll MediaType=PrnDef Pmed=PrnDef JobName=off noWflg Wfnt=Arial-BoldMT PageSize=Letter Smoothing job-uuid=urn:uuid:44e5f7df-18e7-33f5-6e9d-9a5d40fec6b5 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1531155572 time-at-processing=1531155572"
D [09/Jul/2018:17:00:11 +0000] [Job 1] argv[6]="/var/spool/cups/d00001-001"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[2]="CUPS_DOCROOT=/usr/share/cups/html"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[5]="CUPS_SERVERBIN=/usr/libexec/cups"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[7]="CUPS_STATEDIR=/run/cups"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[8]="HOME=/var/spool/cups/tmp"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[9]="PATH=/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[10]="SERVER_ADMIN=root@kiosk"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[11]="SOFTWARE=CUPS/2.2.7"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[13]="USER=root"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[14]="CUPS_MAX_MESSAGE=2047"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[15]="CUPS_SERVER=/run/cups/cups.sock"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[17]="IPP_PORT=631"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[18]="CHARSET=utf-8"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[19]="LANG=en_US.UTF-8"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[20]="PPD=/etc/cups/ppd/kiosk-printer.ppd"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[21]="RIP_MAX_CACHE=128m"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[22]="CONTENT_TYPE=application/pdf"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[23]="DEVICE_URI=lpd://192.168.0.8/queue"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[24]="PRINTER_INFO=kiosk-printer"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[25]="PRINTER_LOCATION="
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[26]="PRINTER=kiosk-printer"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[27]="PRINTER_STATE_REASONS=none"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[28]="CUPS_FILETYPE=document"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[29]="FINAL_CONTENT_TYPE=application/vnd.cups-postscript"
D [09/Jul/2018:17:00:11 +0000] [Job 1] envp[30]="AUTH_I****"
D [09/Jul/2018:17:00:11 +0000] [Job 1] Started filter /usr/libexec/cups/filter/kyofilter_pre_E (PID 1374)
D [09/Jul/2018:17:00:11 +0000] [Job 1] Started filter /usr/libexec/cups/filter/pdftopdf (PID 1375)
D [09/Jul/2018:17:00:11 +0000] [Job 1] Started filter /usr/libexec/cups/filter/pdftops (PID 1376)
D [09/Jul/2018:17:00:11 +0000] [Job 1] Started filter /usr/libexec/cups/filter/kyofilter_E (PID 1378)
D [09/Jul/2018:17:00:11 +0000] [Job 1] Started backend /usr/libexec/cups/backend/lpd (PID 1379)
D [09/Jul/2018:17:00:11 +0000] [Job 1] PID 1374 (/usr/libexec/cups/filter/kyofilter_pre_E) stopped with status 127 (File too large)
D [09/Jul/2018:17:00:11 +0000] [Job 1] Hint: Try setting the LogLevel to "debug" to find out more.
D [09/Jul/2018:17:00:11 +0000] [Job 1] env: can\'t execute \'python\': No such file or directory
D [09/Jul/2018:17:00:11 +0000] [Job 1] pdftopdf: Last filter determined by the PPD: kyofilter_E; FINAL_CONTENT_TYPE: application/vnd.cups-postscript => pdftopdf will not log pages in page_log.
D [09/Jul/2018:17:00:11 +0000] [Job 1] PID 1375 (/usr/libexec/cups/filter/pdftopdf) stopped with status 1.
D [09/Jul/2018:17:00:11 +0000] [Job 1] Hint: Try setting the LogLevel to "debug" to find out more.
D [09/Jul/2018:17:00:11 +0000] [Job 1] pdftops - copying to temp print file \"/var/spool/cups/tmp/005605b4db712\"
D [09/Jul/2018:17:00:11 +0000] [Job 1] Printer make and model: Kyocera ECOSYS P2235dn
D [09/Jul/2018:17:00:11 +0000] [Job 1] Running command line for pstops: pstops 1 guest \'The Linux Kernel Archives\' 1 \'noWren Wsze=72 Wtxt=Confidential Wtrans=watermark JobDate Tmed=PrnDef number-up=1 Wang=50 Email=off Ecop=Off InputSlot=Auto noCollate CvrM=PrnDef Duplex=None Resolution=601dpi Wtyp=Solid Coll MediaType=PrnDef Pmed=PrnDef JobName=off noWflg Wfnt=Arial-BoldMT PageSize=Letter Smoothing job-uuid=urn:uuid:44e5f7df-18e7-33f5-6e9d-9a5d40fec6b5 job-originating-host-name=localhost date-time-at-creation= date-time-at-processing= time-at-creation=1531155572 time-at-processing=1531155572\'
D [09/Jul/2018:17:00:11 +0000] [Job 1] Using image rendering resolution 601 dpi
D [09/Jul/2018:17:00:11 +0000] [Job 1] Running command line for pdftops: pdftops -level3 -origpagesizes -nocenter -r 601 /var/spool/cups/tmp/005605b4db712 -
D [09/Jul/2018:17:00:11 +0000] [Job 1] Started filter pdftops (PID 1380)
D [09/Jul/2018:17:00:11 +0000] [Job 1] Started filter pstops (PID 1381)
D [09/Jul/2018:17:00:11 +0000] [Job 1] STATE: +connecting-to-device
D [09/Jul/2018:17:00:11 +0000] [Job 1] Looking up \"192.168.0.8\"...
D [09/Jul/2018:17:00:11 +0000] [Job 1] STATE: -connecting-to-device
D [09/Jul/2018:17:00:11 +0000] [Job 1] 192.168.0.8=192.168.0.8
D [09/Jul/2018:17:00:11 +0000] [Job 1] backendWaitLoop(snmp_fd=5, addr=0x5625c89238e8, side_cb=0x5625c70db652)
D [09/Jul/2018:17:00:11 +0000] [Job 1] Syntax Warning: May not be a PDF file (continuing anyway)
D [09/Jul/2018:17:00:11 +0000] [Job 1] Syntax Error: Couldn\'t find trailer dictionary
D [09/Jul/2018:17:00:11 +0000] [Job 1] Syntax Error: Couldn\'t find trailer dictionary
D [09/Jul/2018:17:00:11 +0000] [Job 1] Syntax Error: Couldn\'t read xref table
D [09/Jul/2018:17:00:11 +0000] [Job 1] The print file is empty.
D [09/Jul/2018:17:00:11 +0000] [Job 1] PID 1380 (pdftops) stopped with status 1!
D [09/Jul/2018:17:00:11 +0000] [Job 1] PID 1381 (pstops) stopped with status 1!
D [09/Jul/2018:17:00:11 +0000] [Job 1] PID 1376 (/usr/libexec/cups/filter/pdftops) stopped with status 1.
D [09/Jul/2018:17:00:11 +0000] [Job 1] Hint: Try setting the LogLevel to "debug" to find out more.
D [09/Jul/2018:17:00:11 +0000] [Job 1] hrDeviceDesc=\"Unknown\"
D [09/Jul/2018:17:00:11 +0000] [Job 1] prtGeneralCurrentLocalization type is 0, expected 2!
D [09/Jul/2018:17:00:11 +0000] [Job 1] PID 1378 (/usr/libexec/cups/filter/kyofilter_E) was terminated normally with signal 15.
D [09/Jul/2018:17:00:11 +0000] [Job 1] PID 1379 (/usr/libexec/cups/backend/lpd) exited with no errors.
D [09/Jul/2018:17:00:11 +0000] [Job 1] End of messages
D [09/Jul/2018:17:00:11 +0000] [Job 1] printer-state=3(idle)
D [09/Jul/2018:17:00:11 +0000] [Job 1] printer-state-message="loadFile failed: temp file: unable to find trailer dictionary while recovering damaged file"
D [09/Jul/2018:17:00:11 +0000] [Job 1] printer-state-reasons=none

After that the filter process eats 100% CPU.
Maybe some files are missing in kiosk or maybe this filter needs full bash package. Hard to guess ...

Anyway - I see no chance for them being added to kiosk system by default. Custom build is your only chance i believe.

Added in 12 hours 56 minutes 55 seconds:
I have tried simplified driver from following zip archive (name generated by Kyocera website):

Code: Select all

Linux_8.1606_EC...P2x35~40dnw.zip
and it seems to work ok. Does not even need a filter - just PPD.
Try it.
Please add [Solved] to your thread title if the solution was found.

lordcrash2000
White ninja
White ninja
Posts: 4
Joined: 03 Jul 2018, 20:13
Distribution: Porteus Kiosk

Kyocera KX Printer drivers

Post#3 by lordcrash2000 » 12 Jul 2018, 13:46

I downloaded these drivers and rolled up the correct one in the ISO. Problem is, I get to the enable printing selection on the Wizard and it just locks up. Sometimes the windows just comes up blank with no options. Sometimes I am able to select a driver and hit the print test page button, but it always locks up at that point in one way or another. If I get to select the printer and skip printing the test page, when I install it gets hung up on installing the printer module. I don't understand what is going on. This is a brand new system with 4gb of RAM. I have tried multiple systems and they all repeat the same issue. I have rebooted and restarted the Wizard countless times at this point. Not sure where to go at this point. I was hoping to get this straightened out soon. If there is anything you can help me with, that would be greatly appreciated.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4885
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Kyocera KX Printer drivers

Post#4 by fanthom » 12 Jul 2018, 17:42

I cant recreate your issue. Maybe its hardware specific.

Do you get the same problems when you use unmodified kiosk ISO?
If yes then please generate short debug log in the wizard and send it to support@porteus-kiosk.org.

Thanks
Please add [Solved] to your thread title if the solution was found.

lordcrash2000
White ninja
White ninja
Posts: 4
Joined: 03 Jul 2018, 20:13
Distribution: Porteus Kiosk

Kyocera KX Printer drivers

Post#5 by lordcrash2000 » 12 Jul 2018, 18:15

I just ran through the Wizard with the unmodified ISO. It again froze when trying to set up printers. I have forwarded the short log to the email address you specify above. Thank you for your help.

Post Reply