HOWTO Account Tracking Konica Minolta C220 under linux

Posted on

I assume that you have your Konica Minolta Bizhub working fine under linux, but as soon as you enable account track, it stop working under linux (I am on Ubuntu 10.04). Looks like there is a problem on some PJL commands that the linux driver does not forward to the printer, so a solution to this problem is to create a filter that add those. You maybe have a config with at least those elements:

<Printer KONICA-MINOLTA-C360Series>
DeviceURI ipp://192.168.252.222/ipp
Filter application/vnd.cups-raw 0 –
Filter application/vnd.cups-command 0 commandtops
Filter application/vnd.cups-postscript 0 –
</Printer>

Change that to

<Printer KONICA-MINOLTA-C360Series>
DeviceURI ipp://192.168.252.222/ipp
Filter application/vnd.cups-raw 0 minolta
Filter application/vnd.cups-command 0 commandtops
Filter application/vnd.cups-postscript 0 minolta
</Printer>

Then create /usr/lib/cups/filter/minolta so it inject some PJL commands. And give it a execute permission chmod +x minolta :

#!/bin/bash

source /etc/cups/ppd/${PRINTER}.km

echo -en “\033%-12345X”
echo -en “@PJL JOB\015\012”
echo -en “@PJL SET KMSECTIONNAME = \”${ACCOUNT_NAME}\”\015\012”
echo -en “@PJL SET KMSECTIONKEY2 = \”${ACCOUNT_PASSWORD}\”\015\012”
echo -en “@PJL SET KMCOETYPE = ${ACCOUNT_COETYPE}\015\012”
echo -en “@PJL ENTER LANGUAGE = POSTSCRIPT\015\012”

cat –

echo -en “\004\033%-12345X\015\012@PJL EOJ\015\012”
echo -en “\033%-12345X”

Then create a file /etc/cups/ppd/KONICA-MINOLTA-C360Series.km and change name and password to match your setup

ACCOUNT_NAME=”user”
ACCOUNT_PASSWORD=”1234″
ACCOUNT_COETYPE=”0″

I do not take the credit of all this, just found it here:
problem installing driver for Konica Minolta Bizhub 222