HP printers are disabled for some reason

Bug #439652 reported by Alex_xxx
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hal-cups-utils (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: hal-cups-utils

I have "HP Deskjet 5900 series" and "HEWLETT-PACKARD DESKJET 970C" connected to the box. Both of them are added to cups, but the both are disabled:

$ cups-printers
Found printer "Brother_MFC_9840CDW", "(null)"
        Option "copies"="1"
        Option "job-hold-until"="no-hold"
        Option "job-priority"="50"
        Option "number-up"="1"
        Option "auth-info-required"="none"
        Option "printer-info"="Brother MFC-9840CDW"
        Option "printer-is-accepting-jobs"="1"
        Option "printer-is-shared"="0"
        Option "printer-location"="Location Unknown"
        Option "printer-make-and-model"="Brother MFC-9840CDW CUPS on 10.0.1.194"
        Option "printer-state"="3"
        Option "printer-state-change-time"="1254344834"
        Option "printer-state-reasons"="none"
        Option "printer-type"="18919518"
Found printer "CUPS-PDF", "(null)"
        Option "media"="A4"
        Option "finishings"="3"
        Option "copies"="1"
        Option "job-hold-until"="no-hold"
        Option "job-priority"="50"
        Option "number-up"="1"
        Option "auth-info-required"="none"
        Option "job-sheets"="none,none"
        Option "printer-info"="Virtual PDF Printer"
        Option "printer-is-accepting-jobs"="1"
        Option "printer-is-shared"="1"
        Option "printer-location"="Local Printer"
        Option "printer-make-and-model"="Generic CUPS-PDF Printer"
        Option "printer-state"="3"
        Option "printer-state-change-time"="1251885588"
        Option "printer-state-reasons"="none"
        Option "printer-type"="61516"
Found printer "Deskjet-5900-series", "(null)"
        Option "media"="A4"
        Option "sides"="one-sided"
        Option "finishings"="3"
        Option "copies"="1"
        Option "job-hold-until"="no-hold"
        Option "job-priority"="50"
        Option "number-up"="1"
        Option "auth-info-required"="none"
        Option "job-sheets"="none,none"
        Option "printer-info"="HP Deskjet 5900 series"
        Option "printer-is-accepting-jobs"="0"
        Option "printer-is-shared"="1"
        Option "printer-location"="host"
        Option "printer-make-and-model"="HP Deskjet 5900 series Foomatic/hpijs, hpijs 2.8.6b"
        Option "printer-state"="5"
        Option "printer-state-change-time"="1254344820"
        Option "printer-state-reasons"="paused"
        Option "printer-type"="528412"
Found printer "DESKJET-970C", "(null)"
        Option "media"="A4"
        Option "sides"="one-sided"
        Option "finishings"="3"
        Option "copies"="1"
        Option "job-hold-until"="no-hold"
        Option "job-priority"="50"
        Option "number-up"="1"
        Option "auth-info-required"="none"
        Option "job-sheets"="none,none"
        Option "printer-info"="HEWLETT-PACKARD DESKJET 970C"
        Option "printer-is-accepting-jobs"="0"
        Option "printer-is-shared"="1"
        Option "printer-location"="host"
        Option "printer-make-and-model"="HP Deskjet 970c Foomatic/hpijs, hpijs 2.8.6b"
        Option "printer-state"="5"
        Option "printer-state-change-time"="1254344820"
        Option "printer-state-reasons"="paused"
        Option "printer-type"="528412"

Brother printer was added fine, but HP are disabled for some reason. Their entries in HAL:

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_1004_MX98I1C05VJT_if0'
  info.addons = {'hal_lpadmin --add'} (string list)
  info.callouts.remove = {'hal_lpadmin --remove'} (string list)
  info.capabilities = {'scanner'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Printer'} (string list)
  info.linux.driver = 'usblp' (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_1004_MX98I1C05VJT' (string)
  info.product = 'USB Printer Interface' (string)
  info.subsystem = 'usb' (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_1004_MX98I1C05VJT_if0' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'usb' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.2/usb4/4-1/4-1:1.0' (string)
  org.freedesktop.Hal.Device.Printer.method_argnames = {'make model'} (string list)
  org.freedesktop.Hal.Device.Printer.method_execpaths = {'hal_lpadmin --configure'} (string list)
  org.freedesktop.Hal.Device.Printer.method_names = {'Configure'} (string list)
  org.freedesktop.Hal.Device.Printer.method_signatures = {'ss'} (string list)
  printer.commandset = {'MLC', 'PCL', 'PML'} (string list)
  printer.description = 'Hewlett-Packard DeskJet 970C' (string)
  printer.product = 'DESKJET 970C' (string)
  printer.serial = 'MX98I1C05VJT' (string)
  printer.vendor = 'HEWLETT-PACKARD' (string)
  usb.bus_number = 4 (0x4) (int)
  usb.can_wake_up = false (bool)
  usb.configuration_value = 1 (0x1) (int)
  usb.device_class = 0 (0x0) (int)
  usb.device_protocol = 0 (0x0) (int)
  usb.device_revision_bcd = 256 (0x100) (int)
  usb.device_subclass = 0 (0x0) (int)
  usb.interface.class = 7 (0x7) (int)
  usb.interface.number = 0 (0x0) (int)
  usb.interface.protocol = 2 (0x2) (int)
  usb.interface.subclass = 1 (0x1) (int)
  usb.is_self_powered = true (bool)
  usb.linux.device_number = 2 (0x2) (int)
  usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.2/usb4/4-1/4-1:1.0' (string)
  usb.max_power = 2 (0x2) (int)
  usb.num_configurations = 1 (0x1) (int)
  usb.num_interfaces = 1 (0x1) (int)
  usb.num_ports = 0 (0x0) (int)
  usb.product = 'DeskJet 970c/970cse' (string)
  usb.product_id = 4100 (0x1004) (int)
  usb.serial = 'MX98I1C05VJT' (string)
  usb.speed = 12.0 (12) (double)
  usb.vendor = 'Hewlett-Packard' (string)
  usb.vendor_id = 1008 (0x3f0) (int)
  usb.version = 1.0 (1) (double)

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_1004_MX98I1C05VJT_if0_printer_MX98I1C05VJT'
  info.capabilities = {'printer'} (string list)
  info.category = 'printer' (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_1004_MX98I1C05VJT_if0' (string)
  info.product = 'DESKJET 970C' (string)
  info.subsystem = 'usb' (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_1004_MX98I1C05VJT_if0_printer_MX98I1C05VJT' (string)
  info.vendor = 'HEWLETT-PACKARD' (string)
  linux.device_file = '/dev/usb/lp1' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'usb' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.2/usb4/4-1/4-1:1.0/usb/lp1' (string)
  printer.commandset = {'MLC', 'PCL', 'PML'} (string list)
  printer.description = 'Hewlett-Packard DeskJet 970C' (string)
  printer.device = '/dev/usb/lp1' (string)
  printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_3f0_1004_MX98I1C05VJT_if0' (string)
  printer.product = 'DESKJET 970C' (string)
  printer.serial = 'MX98I1C05VJT' (string)
  printer.vendor = 'HEWLETT-PACKARD' (string)

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_8704_CN55M1T087047H_if0'
  info.addons = {'hal_lpadmin --add'} (string list)
  info.callouts.remove = {'hal_lpadmin --remove'} (string list)
  info.capabilities = {'scanner'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Printer'} (string list)
  info.linux.driver = 'usblp' (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_8704_CN55M1T087047H' (string)
  info.product = 'USB Printer Interface' (string)
  info.subsystem = 'usb' (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_8704_CN55M1T087047H_if0' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'usb' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.1/usb3/3-2/3-2:1.0' (string)
  org.freedesktop.Hal.Device.Printer.method_argnames = {'make model'} (string list)
  org.freedesktop.Hal.Device.Printer.method_execpaths = {'hal_lpadmin --configure'} (string list)
  org.freedesktop.Hal.Device.Printer.method_names = {'Configure'} (string list)
  org.freedesktop.Hal.Device.Printer.method_signatures = {'ss'} (string list)
  printer.commandset = {'MLC', 'PCL', 'PML', 'DW-PCL', 'DESKJET', 'DYN'} (string list)
  printer.description = '5940' (string)
  printer.product = 'Deskjet 5900 series' (string)
  printer.serial = 'CN55M1T087047H' (string)
  printer.vendor = 'HP' (string)
  usb.bus_number = 3 (0x3) (int)
  usb.can_wake_up = false (bool)
  usb.configuration_value = 1 (0x1) (int)
  usb.device_class = 0 (0x0) (int)
  usb.device_protocol = 0 (0x0) (int)
  usb.device_revision_bcd = 256 (0x100) (int)
  usb.device_subclass = 0 (0x0) (int)
  usb.interface.class = 7 (0x7) (int)
  usb.interface.number = 0 (0x0) (int)
  usb.interface.protocol = 2 (0x2) (int)
  usb.interface.subclass = 1 (0x1) (int)
  usb.is_self_powered = true (bool)
  usb.linux.device_number = 2 (0x2) (int)
  usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.1/usb3/3-2/3-2:1.0' (string)
  usb.max_power = 2 (0x2) (int)
  usb.num_configurations = 1 (0x1) (int)
  usb.num_interfaces = 2 (0x2) (int)
  usb.num_ports = 0 (0x0) (int)
  usb.product = 'DeskJet 5940' (string)
  usb.product_id = 34564 (0x8704) (int)
  usb.serial = 'CN55M1T087047H' (string)
  usb.speed = 12.0 (12) (double)
  usb.vendor = 'Hewlett-Packard' (string)
  usb.vendor_id = 1008 (0x3f0) (int)
  usb.version = 2.0 (2) (double)

udi = '/org/freedesktop/Hal/devices/usb_device_3f0_8704_CN55M1T087047H_if0_printer_CN55M1T087047H'
  info.capabilities = {'printer'} (string list)
  info.category = 'printer' (string)
  info.parent = '/org/freedesktop/Hal/devices/usb_device_3f0_8704_CN55M1T087047H_if0' (string)
  info.product = 'Deskjet 5900 series' (string)
  info.subsystem = 'usb' (string)
  info.udi = '/org/freedesktop/Hal/devices/usb_device_3f0_8704_CN55M1T087047H_if0_printer_CN55M1T087047H' (string)
  info.vendor = 'HP' (string)
  linux.device_file = '/dev/usb/lp0' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'usb' (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:10.1/usb3/3-2/3-2:1.0/usb/lp0' (string)
  printer.commandset = {'MLC', 'PCL', 'PML', 'DW-PCL', 'DESKJET', 'DYN'} (string list)
  printer.description = '5940' (string)
  printer.device = '/dev/usb/lp0' (string)
  printer.originating_device = '/org/freedesktop/Hal/devices/usb_device_3f0_8704_CN55M1T087047H_if0' (string)
  printer.product = 'Deskjet 5900 series' (string)
  printer.serial = 'CN55M1T087047H' (string)
  printer.vendor = 'HP' (string)

Revision history for this message
Alex_xxx (alex-x1980) wrote :

/var/log/debug:

Oct 1 17:11:59 localhost hal_lpadmin: Running hal_lpadmin
Oct 1 17:11:59 localhost hal_lpadmin: Running hal_lpadmin
Oct 1 17:12:00 localhost hal_lpadmin: hal_lpadmin triggered by low-level USB device
Oct 1 17:12:00 localhost hal_lpadmin: hal_lpadmin triggered by low-level USB device
Oct 1 17:12:00 localhost hal_lpadmin: Getting device ID from the usblp HAL entry ...
Oct 1 17:12:00 localhost hal_lpadmin: Getting device ID from the usblp HAL entry ...
Oct 1 17:12:01 localhost hal_lpadmin: Device ID for /dev/usb/lp0: MFG:HP;MDL:Deskjet 5900 series;DES:5940;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;
Oct 1 17:12:01 localhost hal_lpadmin: Device ID for /dev/usb/lp1: MFG:HEWLETT-PACKARD;MDL:DESKJET 970C;DES:Hewlett-Packard DeskJet 970C;CMD:MLC,PCL,PML;
Oct 1 17:12:01 localhost hal_lpadmin: Written device ID into HAL database entry: MFG:HEWLETT-PACKARD;MDL:DESKJET 970C;DES:Hewlett-Packard DeskJet 970C;CMD:MLC,PCL,PML;
Oct 1 17:12:01 localhost hal_lpadmin: Written device ID into HAL database entry: MFG:HP;MDL:Deskjet 5900 series;DES:5940;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;
Oct 1 17:12:01 localhost hal_lpadmin: add
Oct 1 17:12:01 localhost hal_lpadmin: Printer reported by HAL: HEWLETT-PACKARD DESKJET 970C MX98I1C05VJT
Oct 1 17:12:01 localhost hal_lpadmin: Found configured printer: DESKJET-970C; URI: hp:/usb/DeskJet_970C?serial=MX98I1C05VJT
Oct 1 17:12:01 localhost hal_lpadmin: Not adding printer: DESKJET-970C already exists
Oct 1 17:12:01 localhost hal_lpadmin: add
Oct 1 17:12:01 localhost hal_lpadmin: Printer reported by HAL: HP Deskjet 5900 series CN55M1T087047H
Oct 1 17:12:01 localhost hal_lpadmin: Found configured printer: Deskjet-5900-series; URI: hp:/usb/Deskjet_5900_series?serial=CN55M1T087047H
Oct 1 17:12:01 localhost hal_lpadmin: Not adding printer: Deskjet-5900-series already exists

Any ideas?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

What version of Ubuntu are you using?

What is the output of

lpstat -p

From where did you get the cups-printers utility?

Changed in hal-cups-utils (Ubuntu):
status: New → Incomplete
Revision history for this message
Alex_xxx (alex-x1980) wrote :

>What version of Ubuntu are you using?

It's Debian Lenny with hal-cups-utils taken from Ubuntu Jaunty (0.6.19+git20090217-0ubuntu7)

> lpstat -p

Don't have access to that PC, will do it later

> From where did you get the cups-printers utility?

My own utility written with the help of libcups. It simply gets all CUPS printers and prints its options.

Revision history for this message
Alex_xxx (alex-x1980) wrote :
Download full text (4.5 KiB)

$ lpstat -p
printer Brother_MFC_9840CDW is idle. enabled since Mon 12 Oct 2009 07:47:12 AM EDT
printer CUPS-PDF is idle. enabled since Wed 02 Sep 2009 05:59:48 AM EDT
printer Deskjet-5900-series disabled since Thu 08 Oct 2009 08:03:28 PM EDT -
        reason unknown
printer DESKJET-970C disabled since Mon 12 Oct 2009 08:01:00 AM EDT -
        reason unknown
printer DESKJET-970C2 disabled since Mon 12 Oct 2009 08:01:11 AM EDT -
        reason unknown

As you see, there is also another HP printer - 970C2, which is also disabled. cups-printers' output:

$ cups-printers
Found printer "Brother_MFC_9840CDW", "(null)"
        Option "copies"="1"
        Option "job-hold-until"="no-hold"
        Option "job-priority"="50"
        Option "number-up"="1"
        Option "auth-info-required"="none"
        Option "printer-info"="Brother MFC-9840CDW"
        Option "printer-is-accepting-jobs"="1"
        Option "printer-is-shared"="0"
        Option "printer-location"="Location Unknown"
        Option "printer-make-and-model"="Brother MFC-9840CDW CUPS on 10.0.1.194"
        Option "printer-state"="3"
        Option "printer-state-change-time"="1255348032"
        Option "printer-state-reasons"="none"
        Option "printer-type"="18919518"
Found printer "CUPS-PDF", "(null)"
        Option "media"="A4"
        Option "finishings"="3"
        Option "copies"="1"
        Option "job-hold-until"="no-hold"
        Option "job-priority"="50"
        Option "number-up"="1"
        Option "auth-info-required"="none"
        Option "job-sheets"="none,none"
        Option "printer-info"="Virtual PDF Printer"
        Option "printer-is-accepting-jobs"="1"
        Option "printer-is-shared"="1"
        Option "printer-location"="Local Printer"
        Option "printer-make-and-model"="Generic CUPS-PDF Printer"
        Option "printer-state"="3"
        Option "printer-state-change-time"="1251885588"
        Option "printer-state-reasons"="none"
        Option "printer-type"="61516"
Found printer "Deskjet-5900-series", "(null)"
        Option "media"="A4"
        Option "sides"="one-sided"
        Option "finishings"="3"
        Option "copies"="1"
        Option "job-hold-until"="no-hold"
        Option "job-priority"="50"
        Option "number-up"="1"
        Option "auth-info-required"="none"
        Option "job-sheets"="none,none"
        Option "printer-info"="HP Deskjet 5900 series"
        Option "printer-is-accepting-jobs"="0"
        Option "printer-is-shared"="1"
        Option "printer-location"="xpack"
        Option "printer-make-and-model"="HP Deskjet 5900 series Foomatic/hpijs, hpijs 2.8.6b"
        Option "printer-state"="5"
        Option "printer-state-change-time"="1255046608"
        Option "printer-state-reasons"="paused"
        Option "printer-type"="528412"
Found printer "DESKJET-970C", "(null)"
        Option "media"="A4"
        Option "sides"="one-sided"
        Option "finishings"="3"
        Option "copies"="1"
        Option "job-hold-until"="no-hold"
        Option "job-priority"="50"
        Option "number-up"="1"
        Option "auth-info-required"="none"
    ...

Read more...

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Alex_xxx, note that hal-cups-utils is not maintained any more as HAL itself got discontinued. Do not use it. The replacement is system-config-printer-udev, which automatically sets up, disables, and enables USB print queues directly using udev. Please remove hal-cups-utils and install system-config-printer-udev on your Debian system. Enable all disabled queues with cupsenable or with system-config-printer. Note also that queues which got auto-disabled when turning off the printer have the state reason "Unplugged or turned off" and not "Unknown" or "Paused".

Changed in hal-cups-utils (Ubuntu):
status: Incomplete → Won't Fix
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.