SafeQ and Minolta PCL only

Just two steps to nirvana after fight with RIP inside Minolta printer:

First hints started at howto-account-tracking-konica-minolta-c220-under-linux, but while the system has resisted for a while and ended up in taking Minolta drivers (use the UX = unix one not the Linux as CUPS reports an error for that). Then tak the PPD and add


*cupsFilter: "application/vnd.cups-raw 0 minolta"
*cupsFilter: "application/vnd.cups-command 0 commandtops"
*cupsFilter: "application/vnd.cups-postscript 0 minolta"

be careful with quotes these are standard text mode quotes.

Actually minolta at the end of these lines points to the file /usr/lib/cups/filter/minolta, where you have to actually do two things, first convert postscript input into pcl language which is done by /usr/lib/cups/filter/gstopxl (PCL XL or PCL 6) which is part of the installation.

cat - >$FN-raw

/usr/lib/cups/filter/gstopxl <$FN-raw >$FN-pxl

The you you have some some accounting, the have to cut header of that file up to 


@PJL ENTER LANGUAGE = PCLXL

including that line, the replace the cut header with your own, best way is to capture using wireshark the working header from windows (ip and port filter is your friend, then follow tcp flow from cotext menu to get the print file transfer). You can make it actually pretty flexible but fixed values are good for testing.

concatenate with the output of gstopxl as:

tail -n+4 $FN-pxl

and add:

echo -en "@PJL EOJ\015\012"
echo -en "\033%-12345X"


for debug purposes you can wrap add into brackets and save result to temp file together with stdout.
For further development also contents of environment vars via "set > /tmp/some-file" can help develop better and user specific things...

echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind

Comments

Unknown said…
Hi,
thanks for your post. I'm stuck at the same problem. Could you post the content of your minolta script?
I can't get it to work and I'm not sure whether I wrote the bash script correctly...

Popular Posts