HP laserjet 1018 not found since hplip 3.17.11

Bug #1746593 reported by Art Olin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
In Progress
Undecided
Nishitha Antony

Bug Description

When I try to print I get a communication error report and no output. Attempts to reinstall the plugin failed with essentially the same message.
The printer works fine when plugged into a machine running windows 10. My OS is fedora26. hp-doctor failed to resolve the problem, and hp-check output is attached.
In the past, problems with this printer have been fixed by reinstalling the plugin.

Revision history for this message
Art Olin (olin) wrote :
Revision history for this message
Nishitha Antony (ni301701) wrote :

Hi Art,

Please follow the steps

1. Unplug the USB cable/Ethernet.
2. Delete all the Print Queues from the CUPS or use command via terminal "hp-setup -r"
3. Restart the system.
4. Plugin the USB Cable/Ethernet again.
5. Add the printer using "hp-setup".Device will get configured automatically.

Thanks,
Nishitha

Revision history for this message
Art Olin (olin) wrote :

Hi Nishitha,
Thanks for the suggestion, I had not thought to wipe out the old printer queue.

However it did not fix my problem, the result of hp-setup is consistent with the previous errors
of not finding the printer on the usb port. hp-setup

=======
HP Linux Imaging and Printing System (ver. 3.17.11)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb
Searching... (bus=usb, search=(None), desc=0)
error: No devices found on bus: usb
===========
Also tried it in as superuser
====
[root@mobolin olin]# hp-setup -i -a

HP Linux Imaging and Printing System (ver. 3.17.11)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  -------- ---------- ----------------------------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection or JetDirect)

Enter number 0...1 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

error: No device selected/specified or that supports this functionality.
[root@mobolin olin]#

=====

Please note that:

The printer makes a sound each time it is plugged into the USB port and I have checked the connections.

The printer works when plugged into the usb port of a windows 10 machine.
I tried several usb ports which work fine for other input devices. Otherwise I would suspect some hardware failure.

So this is evidence against some hardware

Revision history for this message
Art Olin (olin) wrote :

Additional information: lsusb returns
Bus 002 Device 012: ID 0cf3:3002 Qualcomm Atheros Communications AR3011 Bluetooth
Bus 002 Device 026: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Bus 002 Device 009: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
Bus 002 Device 007: ID 04b4:8329 Cypress Semiconductor Corp. USB To keyboard/Mouse Converter

so the plugged in printer is recognised at some level.

Revision history for this message
brian_p (claremont102) wrote :

> Bus 002 Device 026: ID 03f0:4117 Hewlett-Packard LaserJet 1018

libusb has found the device. That would argue for USB port, cable and printer being ok. Please let us have the outputs of 'hp-probe-busb, 'ls -l /dev/usb' and 'lpinfo -v'.

Cheers,

Brian.

Revision history for this message
Art Olin (olin) wrote :
Download full text (3.4 KiB)

Thanks for the response. Here are the outputs you requested ( I have interpreted a bit..). It appears that the normal OS commands find the printer but the hp software does not.
It is possible that there was an OS change between fedora 24, where the printer worked, and fedora26.

 [root@mobolin Desktop]# lpinfo -v
network http
network beh
network ipps
network ipp
network https
network socket
network lpd

===========================
ls -l /dev/usb*
crw-------. 1 root root 246, 0 Feb 3 09:10 /dev/usbmon0
crw-------. 1 root root 246, 1 Feb 3 09:10 /dev/usbmon1
crw-------. 1 root root 246, 2 Feb 3 09:10 /dev/usbmon2
=====================================
 hp-probe-busb
bash: hp-probe-busb: command not found
olin@mobolin:~/Desktop$ hp-probe -busb

HP Linux Imaging and Printing System (ver. 3.17.11)
Printer Discovery Utility ver. 4.1

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

--------------------
| DEVICE DISCOVERY |
--------------------
(long pause)
warning: No devices found on the 'usb' bus. If this isn't the result you are expecting,
warning: check to make sure your devices are properly connected and powered on.

Done.
and
=====================================
lsusb v
Bus 002 Device 030: ID 03f0:4117 Hewlett-Packard LaserJet 1018
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x03f0 Hewlett-Packard
  idProduct 0x4117 LaserJet 1018
  bcdDevice 1.00
  iManufacturer 1 (error)
  iProduct 2 (error)
  iSerial 3 (error)
  bNumConfigurations 1
  Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 32
    bNumInterfaces 1
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xc0
      Self Powered
    MaxPower 98mA
    Interface Descriptor:
      bLength 9
      bDescriptorType 4
      bInterfaceNumber 0
      bAlternateSetting 0
      bNumEndpoints 2
      bInterfaceClass 7 Printer
      bInterfaceSubClass 1 Printer
      bInterfaceProtocol 2 Bidirectional
      iInterface 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x01 EP 1 OUT
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
      Endpoint Descriptor:
        bLength 7
        bDescriptorType 5
        bEndpointAddress 0x81 EP 1 IN
        bmAttributes 2
          Transfer Type Bulk
          Synch Type None
          Usage Type Data
  ...

Read more...

Revision history for this message
brian_p (claremont102) wrote :

hp-probe didn't work, which is not too surprising; hp-setup didn't either. More perturbing is that lpinfo doesn't show the device. There should be a line beginning "direct usb://....".

What do you get with /usr/lib/cups/backend/usb (as root)?

Cheers,

Brian.

Revision history for this message
Art Olin (olin) wrote :

Interesting idea.
I think this is because I had removed the old entry with hp-setup -r.

root@mobolin Desktop]# /usr/lib/cups/backend/usb
DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 151 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=14
DEBUG2: Printer found with device ID: Device URI: usb://Unknown/Printer
direct usb://Unknown/Printer "Unknown" "Unknown" "" ""
[root@mobolin Desktop]#

Revision history for this message
brian_p (claremont102) wrote :

The CUPS usb backend and the hp backend give two different, independent methods for enumerating a printer on the USB bus. Neither works for you but the printer is known to work. That implies there is a fundamental problem and you perhaps have a poorly USB bus.

Permissions on USB device files and directories are a possible cause. Security enhancements on the machine (a grsec-enabled kernel, for example) are something to take a look at.

Cheers,

Brian.

Changed in hplip:
status: New → In Progress
assignee: nobody → Nishitha Antony (ni301701)
Revision history for this message
Art Olin (olin) wrote :

Hi. I found a fix on the ask fedora forum. It was necessary to issue the command
lpadmin -p HP_LaserJet_1018 -o usb-unidir-default=true (as root) and powercycle the printer.

The printer is now findable

lpinfo -v
network beh
network socket
network https
network lpd
network ipps
network http
network ipp
network smb
direct hpfax
direct hp
direct usb://HP/LaserJet%201018?serial=KP1499D

and hp-setup works

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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