droidzoneub
April 24th, 2017, 07:30 PM
First let's get the unpleasantness out of the way. Yes, it's the fault of Canon that they don't release open source or binary drivers for many of their printers. But I ended up buying a Canon anyway before realizing that it didnt have a Linux driver.
What have I done to solve this?
1. I have tried installing PPDs of models that appeared similiar to the G1000. The printer did not print. There werent any errors in cups. It finished printing according to the printer monitor, but there wasnt any print.
2. I found out that Canon had released OSX drivers, so I tried to "port" the PPD over to Linux. I've uploaded the ppd to github (https://github.com/droidzone/canong1000).
To port this driver, the steps I did include extracting the PPD file from the Mac OSX .dng file by mounting the dng as an iso, inflating a .pkg file, gunziping it etc. Then I extracted it into a .drv file:
ppdi -o canong1000.drv CanonIJG1000series.ppd
I then removed osx specific entries including Attribute "APPrinterPreset". I changed filters from MacOSX versions to rastertocanonij and cmdtocanonij2. I then compiled the .ppd with:
ppdc canong1000.drv
and compiled and installed filters from the cnijfilter2 source (https://github.com/dbnicholson/cnijfilter2).
Added a printer using this ppd, restarted cups.
Unfortunately the error message that cups shows is "filter does not work". On setting the loglevel of cups at debug, I found the following errors:
D [24/Apr/2017:23:22:40 +0530] [Job 38] 4 filters for job:
D [24/Apr/2017:23:22:40 +0530] [Job 38] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
I [24/Apr/2017:23:22:40 +0530] [Job 38] Started filter /usr/lib/cups/filter/bannertopdf (PID 26026)
I [24/Apr/2017:23:22:40 +0530] [Job 38] Started filter /usr/lib/cups/filter/pdftopdf (PID 26027)
I [24/Apr/2017:23:22:40 +0530] [Job 38] Started filter /usr/lib/cups/filter/gstoraster (PID 26028)
I [24/Apr/2017:23:22:40 +0530] [Job 38] Started filter /usr/lib/cups/filter/rastertocanonij (PID 26029)
D [24/Apr/2017:23:22:40 +0530] [Job 38] PID 26029 (/usr/lib/cups/filter/rastertocanonij) stopped with status 255 (Unknown error 155)
D [24/Apr/2017:23:22:40 +0530] [Job 38] PID 26026 (/usr/lib/cups/filter/bannertopdf) exited with no errors.
D [24/Apr/2017:23:22:40 +0530] [Job 38] PID 26027 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [24/Apr/2017:23:22:40 +0530] [Job 38] envp[9]=\"PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin\"
D [24/Apr/2017:23:22:40 +0530] [Job 38] PID 26028 (/usr/lib/cups/filter/gstoraster) exited with no errors.
E [24/Apr/2017:23:22:40 +0530] [Job 38] Job stopped due to filter errors; please consult the error_log file for details.
D [24/Apr/2017:23:22:42 +0530] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [24/Apr/2017:23:22:42 +0530] [CGI] cgiSetArray: job_printer_state_message[0]=\"Filter failed\"
There were no compiler errors during make of the cups filters. I'm not sure where the error is in the filters, or whether this printer is incompatible with these filters, or whether there is an issue in the ppd file.
How would I proceed to get my printer working in Ubuntu? Please dont comment asking me to request Canon to support it. I've already contacted them through Support and twitter. They dont seem inclined to. Unfortunately I cant exchange this printer and am stuck with it for the next couple of years.
I would very much like your help solving it.
I'm on Linux Mint 18.1 Serena 64 bit.
What have I done to solve this?
1. I have tried installing PPDs of models that appeared similiar to the G1000. The printer did not print. There werent any errors in cups. It finished printing according to the printer monitor, but there wasnt any print.
2. I found out that Canon had released OSX drivers, so I tried to "port" the PPD over to Linux. I've uploaded the ppd to github (https://github.com/droidzone/canong1000).
To port this driver, the steps I did include extracting the PPD file from the Mac OSX .dng file by mounting the dng as an iso, inflating a .pkg file, gunziping it etc. Then I extracted it into a .drv file:
ppdi -o canong1000.drv CanonIJG1000series.ppd
I then removed osx specific entries including Attribute "APPrinterPreset". I changed filters from MacOSX versions to rastertocanonij and cmdtocanonij2. I then compiled the .ppd with:
ppdc canong1000.drv
and compiled and installed filters from the cnijfilter2 source (https://github.com/dbnicholson/cnijfilter2).
Added a printer using this ppd, restarted cups.
Unfortunately the error message that cups shows is "filter does not work". On setting the loglevel of cups at debug, I found the following errors:
D [24/Apr/2017:23:22:40 +0530] [Job 38] 4 filters for job:
D [24/Apr/2017:23:22:40 +0530] [Job 38] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
I [24/Apr/2017:23:22:40 +0530] [Job 38] Started filter /usr/lib/cups/filter/bannertopdf (PID 26026)
I [24/Apr/2017:23:22:40 +0530] [Job 38] Started filter /usr/lib/cups/filter/pdftopdf (PID 26027)
I [24/Apr/2017:23:22:40 +0530] [Job 38] Started filter /usr/lib/cups/filter/gstoraster (PID 26028)
I [24/Apr/2017:23:22:40 +0530] [Job 38] Started filter /usr/lib/cups/filter/rastertocanonij (PID 26029)
D [24/Apr/2017:23:22:40 +0530] [Job 38] PID 26029 (/usr/lib/cups/filter/rastertocanonij) stopped with status 255 (Unknown error 155)
D [24/Apr/2017:23:22:40 +0530] [Job 38] PID 26026 (/usr/lib/cups/filter/bannertopdf) exited with no errors.
D [24/Apr/2017:23:22:40 +0530] [Job 38] PID 26027 (/usr/lib/cups/filter/pdftopdf) exited with no errors.
D [24/Apr/2017:23:22:40 +0530] [Job 38] envp[9]=\"PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin\"
D [24/Apr/2017:23:22:40 +0530] [Job 38] PID 26028 (/usr/lib/cups/filter/gstoraster) exited with no errors.
E [24/Apr/2017:23:22:40 +0530] [Job 38] Job stopped due to filter errors; please consult the error_log file for details.
D [24/Apr/2017:23:22:42 +0530] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [24/Apr/2017:23:22:42 +0530] [CGI] cgiSetArray: job_printer_state_message[0]=\"Filter failed\"
There were no compiler errors during make of the cups filters. I'm not sure where the error is in the filters, or whether this printer is incompatible with these filters, or whether there is an issue in the ppd file.
How would I proceed to get my printer working in Ubuntu? Please dont comment asking me to request Canon to support it. I've already contacted them through Support and twitter. They dont seem inclined to. Unfortunately I cant exchange this printer and am stuck with it for the next couple of years.
I would very much like your help solving it.
I'm on Linux Mint 18.1 Serena 64 bit.