not detecting CUPS URI correctly in Gutsy

Bug #150219 reported by Christof Kaser
6
Affects Status Importance Assigned to Milestone
hal-cups-utils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I only use "gutenprint" drivers ("hplip" is not installed).

When my "HP LaserJet 1010" is connected to USB, the printer is added with the wrong URI: "usb://HP/hp%20LaserJet%201010". It should be "usb://HP/LaserJet%201010".

With this in change in "/usr/lib/hal/scripts/hal_lpadmin" it works:

    def get_cups_uris(self, removed=False):
             .
             .
             if vendor == "hewlett-packard":
                make = "HP"
            elif vendor == "lexmark international":
                make = "Lexmark"
            #### if model.startswith (make):
            if model.lower().startswith(make.lower()):
                model = model[len (make):]
                model = model.lstrip ()
            model = model.rstrip ()

Changed in hal-cups-utils:
status: New → Fix Committed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

hal-cups-utils (0.6.13+svn86-0ubuntu1) hardy; urgency=low

  * New upstream release
     o Subversion snapshot r86
     o Use "lsusb" and "hp-makeuri" instead of "hp-probe" and "hp-info", this
       needs less I/O.
     o Fork the creation of the print queue into a sub-process. This is
       needed as on detection of an HP LaserJet 1018/1020 HPLIP loads
       (triggered by UDEV) the firmware into the printer and this uncouples
       the printer from the usblp kernel module. This lets HAL assume that
       the printer got disconnected and HAL kills the hal_lpadmin process
       which creates the queue. The child process does not get killed so
       that this is the only solution to get a queue automatically created
       for these printers.
     o Do only one notification at the tray icon when a new printer got set
       up, also if it needs two queues (printer and fax). Otherwise the tray
       icon will disappear on clicking the first notification and the second
       one appears without icon.
     o Replaced a wrong "os.exit()" by "sys.exit()" (LP: #160386).
     o Made check for removal of manufacturer name from model name
       case-insensitive (LP: #150219).
     o Let hal_admin not fail if "lsusb" or "hp-makeuri" are not installed.
       Simply do not use HPLIP URIs then.
  * debian/patches/01_interpreter_path.patch: Regenerated.
  * debian/control: Added dependency on python-cups (LP: #144586).
  * debian/control: Added "Recommends: hplip, usbutils". These are needed
    to automatically set up print queues with HPLIP.

 -- Till Kamppeter <email address hidden> Fri, 07 Dec 2007 20:49:31 +0000

Changed in hal-cups-utils:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.