The strange thing here is that the device IDs reported by "lpinfo -l -v" are different for the "hp:/..." and the "usb:/..." URIs. This explains why with the "usb:/..." URI the correct model gets chosen and with the "hp:/..." URI not. The device ID for the "usb:/..." URI seems to match the ID in the Foomatic database entry exactly. The only difference for the manufacturer and model parts of the IDs is the lower-case "hp" versus the upper-case "HP", so a case-insensitive matching would probably already help here.
How well does the matching by the CUPS web interface work? Go to http://localhost:631/ with a browser, then choose "Administration" and then "Add printer". Follow the steps of the wizard. Once choose the USB URI in the "Device" step and see whether CUPS chooses the right model in the following step. Then choose the HP URI in the "Device" step and see what CUPS chooses in the next step. If asked for user name and password enter your user name and password. ** Changed in: gnome-cups-manager (Ubuntu) Status: Confirmed => Needs Info -- Wrong printer model is preselected when adding a HPLIP printer https://launchpad.net/bugs/54362 -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs