printer name changes when power cycled

Bug #1273905 reported by Kees Cook on 2014-01-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Undecided
Unassigned
hplip (Ubuntu)
Undecided
Unassigned

Bug Description

I have an HP LaserJet 1320. It's printer queue name is "LaserJet-1320". Prior to 13.10, things worked fine. Since 13.10, if I reboot the server or power cycle the printer, the printer queue name suddenly changes to "hp_LaserJet_1320" and all the network clients suddenly fail to print to it any more.

The printer Device URL is defined using serial number, so it seems like cups (or hplip?) is failing to notice it's the same printer and the same queue:

hp:/usb/hp_LaserJet_1320_series?serial=00JCPQ4D12RS

affects: cups (Ubuntu) → hplip (Ubuntu)
Till Kamppeter (till-kamppeter) wrote :

Nothing of CUPS or system-config-printer renames or removes queues automatically. Also cups-browsed does not do a renaming as described here, especially it does not touch local USB printers.

So my bet is HPLIP. It has a facility to automatically set up HP printers, probably badly competing with the USB printer auto setup of system-config-printer which we (and many other distros) are using for years. Therefore I am moving this bug to HPLIP. Also the queue names with lower-case "hp"and underscores look much like from HPLIP.

Kees, did you see a dialog of HPLIP popping up right after login, asking yo to create or re-configure HP printers? How did you answer this dialog?

To the HPLIP developers at HP, please avoid the following automatic actions:

- Do not rename existing queues or do not remove them and create a new queue with another name as replacement. This leads to problems with shared printers. Better simply replace the PPD of an existing queue by an updated version (but make sure user default settings do not get lost).

- Note that most distributions already automatically set up USB printers automatically, also PPDs are often automatically updated with the installation of a new version of the HPLIP package of the distribution. Please do not remove such queues and do only upgrade the PPD if it needs upgrading and upgrade the URI to hp:/... when it is not already hp:/... Downoad the HP plugin if needed by the printer or PPD. Pop up a dialog only if there is something which needs to be done.

Changed in hplip (Ubuntu):
status: New → Incomplete
Changed in hplip:
status: New → Incomplete

Hi Kees, Till,

Currently HPLIP removes the other local hp queues ,which are not configured by hp-setup, and creates using hp-setup.
Sorry for inconvenience caused. We are looking into this issue.

@Kees,
For a quick fix, please make following changes.

#--> take backup of /usr/share/hplip/config_usb_printer.py
$ sudo cp /usr/share/hplip/config_usb_printer.py /usr/share/hplip/config_usb_printer.py_backup

#-->replace cups.delPrinter command with pass in config_usb_printer.py
$ sed 's/cups.delPrinter.*$/pass/' /usr/share/hplip/config_usb_printer.py > /tmp/config_usb_printer.py
$ sudo mv /tmp/config_usb_printer.py /usr/share/hplip/config_usb_printer.py

Thanks & Regards,
Amarnath

Changed in hplip:
status: Incomplete → In Progress
Changed in hplip (Ubuntu):
status: Incomplete → Confirmed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hplip - 3.14.3-0ubuntu1

---------------
hplip (3.14.3-0ubuntu1) trusty; urgency=low

  * New upstream release
    - Added support for: HP Deskjet Ink Advantage 4640/4645/4646/4648
      e-All-in-One Printer, HP LaserJet Pro MFP M125/M126/M127 series.
    - printer name changes when power cycled (LP: #1273905).
    - hp-config_usb_printer is trying to configure HP keyboard and mouse
      (LP: #1266704).
    - "HP Device Manager" deletes other queues (LP: #1253432).
    - hpcups filter crash fix (LP: #1250806).
    - Error with 'hp-setup' (LP: #1273043).
    - Should run hp-firmware from udev separately (LP: #1255033).
    - Do not put static printer-independent strings like "Automatically setup
      by HPLIP" into the description field of a CUPS queue, remote clients use
      the description to identify network printers (LP: #1266011).
    - Fixed align functionality issue with HP OfficeJet 6100
    - Systray notification does not pop-up after configuring the device using
      'hp-setup' command
    - Unable to configure second fax queue in interactive mode
    - Fixed missing 'No 6 3/4 Envelope' media size for HP OfficeJet 7619 Series
    - Printer name does not change when navigate back and forward to change
      the printer queue
 -- Till Kamppeter <email address hidden> Tue, 11 Mar 2014 22:36:00 +0100

Changed in hplip (Ubuntu):
status: Confirmed → Fix Released

 This fix is released in HPLIP-3.14.3

Changed in hplip:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers