[cups.general] Change Driver CUPS assigns by default

Michael Sweet msweet at apple.com
Thu Sep 27 05:46:08 PDT 2012


Brad,

CUPS uses a variety of things to determine what the "best" driver is for a given printer, however I am not sure if system-config-printer (or any of the lower levels in the Linux distro) uses what CUPS provides for driver selection.

One way of getting a match is to make a copy of HL1250.PPD and change the occurrences of "1250" in the file to "2140".  However, that will involve remastering the CD image so I don't know if you want to go down that path.

If you want to use lpadmin, just use:

    lpadmin -p HL2140 -E -v 'device-uri' -m HL1250.PPD

The device URI can be found by running "lpstat -v" (when a printer has already been added) or "lpinfo -v" (basically at any time if the printer is connected via USB).

You might also need to specify more for the PPD filename; "lpinfo -m | grep 1250" will give you the path expected by lpadmin.

And if this is a USB printer that is created automatically on boot up, the printer name is probably the same each time so you can just "modify" the queue to use the proper driver with:

    lpadmin -p printername -m HL1250.PPD

Again, you might need to use a slightly different filename than "HL1250.PPD" for the "-m" option.


On 2012-09-27, at 5:02 AM, Brad <nomail at gmail.com> wrote:

> Any advice as to how I can set which driver CUPS assigns as default to a given printer type.
> 
> I need to support a Brother 2140, but want to use the HL1250.PPD driver(which works well), instead of the driver CUPS picks by default(which doesn't work).
> 
> I'm trying to remaster a CD iso of knoppix and cannot simply change it through system-config-printer. At reboot, CUPS again assigns it's default driver.
> 
> If I boot then change it manually and it works from the ramdisk, but if I copy across all of /etc/cups to the image, and then boot the image, it doesn't work (endless page feeds).
> 
> I could run lpadmin as part of a start-up script but I'm not sure what I would need to set.
> 
> Any advice greatly appreciated.
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

__________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list