cannot find divice..

Asked by nagaraju on 2015-07-19

Hi,

I am trying to install HP-LaserJet 1020Plus on UBUNTU 15.04 . At first instance
it gave test print and few other prints too. When I have restarted then the
printers status is showing as 'idle' and cannot print any more.

I have reinstalled hplip-3.15.7.run again and also loaded the plugins (after downloading
hplip-3.15.7-plugin.run
hplip-3.15.7-plugin.run.asc
into my home directory (download and install option was giving error code 8, and checksum error)

Now hp-setup is giving error as 'no divice found'.

Why so many errors????

I have done fresh installation again and again after unistalling hplip, even then the problem persists.

Please help me to install HP 1020plus laserjet, bye the bye the printer is working fine in windows 8.1
(i have dual boot option)

Thank you in advance.

Nagaraj

Question information

Language:
English Edit question
Status:
Open
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
2015-08-11
Last reply:
2015-08-11
goutam (goutamkk) said : #1

Hi,

Can you provide us the output of 'lsusb -d 03f0:2b17 -v'

Thanks,
Goutam

nagaraju (visitnag) said : #2

Thank you Goutam. Now its present status is showing as 'idle' . Whenever I print its assigning the job to printer and after
some while giving message as job completed. But no print output.

lsusb -d 03f0:2b17 -v out is :

Bus 001 Device 002: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x03f0 Hewlett-Packard
  idProduct 0x2b17 LaserJet 1020
  bcdDevice 1.00
  iManufacturer 1 Hewlett-Packard
  iProduct 2 HP LaserJet 1020
  iSerial 3 S43H6Q4
  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
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
Device Qualifier (for other device speed):
  bLength 10
  bDescriptorType 6
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  bNumConfigurations 1
Device Status: 0x0001
  Self Powered

nagaraju (visitnag) said : #3

HI Goutam,

I forgot to tell you that..after plugin downloaded and installed (as you suggested) the printer was
detected and test print, and some prints also came nicely. But when I have restarted the system
then after the printer's status went into 'idle'

Please guide me to overcome this problem. I think almost more than 15 times i have installed hplip...

Thank you.

goutam (goutamkk) said : #4

Try deleting the print queue using 'hp-setup -r' command and reconfigure the print queue using 'hp-setup'

nagaraju (visitnag) said : #5

I have done this n number of times...but in vein.... OK, once more I will try and give
you the feedback.

Thank you.

nagaraju (visitnag) said : #6

This is the message I have got. Now the system is not finding the device.

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

Copyright (c) 2001-15 Hewlett-Packard 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

goutam (goutamkk) said : #7

run command sudo hp-firmware -y3 -s 001:002 and retry configuring the printer

nagaraju (visitnag) said : #8

Hi Goutam,

Some progress in my printer behaviour:

Now present status of my printer is when not in use 'idle', once a job assigned
'Started a print job' , then after some time WITHOUT giving any print (output) the status changes to
'print job has completed'

Please guide me what to do next??

nagaraju (visitnag) said : #9

Here I am giving one of the outputs of hp-check -t

========================================================
Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version
========================================================

My printer is hp-laserjet 1020plus but I could not find a ppd file for 1020plus
instead I found hp-1020 ppd (it automatically suggested too while installation)

Is the problem because of wrong ppd file??

The total out put of hp-check -t is :

Saving output in log file: /home/nagaraj/hp-check.log

HP Linux Imaging and Printing System (ver. 3.15.7)
Dependency/Version Check Utility ver. 15.1

Copyright (c) 2001-15 Hewlett-Packard 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.

Note: hp-check can be run in three modes:
1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to
determine if the proper dependencies are installed to successfully compile HPLIP.
2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already
built HPLIP supplied tarball has the proper dependencies installed to successfully run.
3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile-
and run-time dependencies).

Check types:
a. EXTERNALDEP - External Dependencies
b. GENERALDEP - General Dependencies (required both at compile and run time)
c. COMPILEDEP - Compile time Dependencies
d. [All are run-time checks]
PYEXT SCANCONF QUEUES PERMISSION

Status Types:
    OK
    MISSING - Missing Dependency or Permission or Plug-in
    INCOMPAT - Incompatible dependency-version or Plugin-version

---------------
| SYSTEM INFO |
---------------

 Kernel: 3.19.0-23-generic #24-Ubuntu SMP Tue Jul 7 18:52:29 UTC 2015 GNU/Linux
 Host: hems
 Proc: 3.19.0-23-generic #24-Ubuntu SMP Tue Jul 7 18:52:29 UTC 2015 GNU/Linux
 Distribution: ubuntu 15.04
 Bitness: 32 bit

-----------------------
| HPLIP CONFIGURATION |
-----------------------

HPLIP-Version: HPLIP 3.15.7
HPLIP-Home: /usr/share/hplip
HPLIP-Installation: Auto installation is supported for ubuntu distro 15.04 version

Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.15.7

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.15.7
html=/usr/share/doc/hplip-3.15.7
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/share/cups/drv/hp
bin=/usr/bin

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
libusb01-build=no
pp-build=no
gui-build=yes
scanner-build=yes
fax-build=yes
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.15.7
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
lite-build=no
udev_sysfs_rules=no
hpcups-only-build=no
hpijs-only-build=no

Current contents of '/var/lib/hp/hplip.state' file:
[plugin]
installed = 1
eula = 1
version = 3.15.7

Current contents of '~/.hplip/hplip.conf' file:
[installation]
date_time = Tuesday 21 July 2015 20:37:40
version = 3.15.7

[upgrade]
notify_upgrade = true
last_upgraded_time = 1437474886
pending_upgrade_time = 0
latest_available_version = 3.15.7

[settings]
systray_visible = 0
systray_messages = 0

[last_used]
device_uri = "hp:/usb/HP_LaserJet_1020?serial=S43H6Q4"
printer_name = Laserjet_1020_plus
working_dir = .

[commands]
scan = /usr/bin/xsane -V %SANE_URI%

[refresh]
rate = 30
enable = false
type = 1

[polling]
enable = false
interval = 5
device_list =

[fax]
voice_phone =
email_address =

 <Package-name> <Package-Desc> <Required/Optional> <Min-Version> <Installed-Version> <Status> <Comment>

--------------------------
| External Dependencies |
--------------------------

 gs GhostScript - PostScript and PDF language interpreter and previewer REQUIRED 7.05 9.15 OK -
 scanimage scanimage - Shell scanning program OPTIONAL 1.0 1.0.24 OK -
 xsane xsane - Graphical scanner frontend for SANE OPTIONAL 0.9 0.998 OK -
 cups CUPS - Common Unix Printing System REQUIRED 1.1 2.0.2 OK 'CUPS Scheduler is running'
 policykit PolicyKit - Administrative policy framework OPTIONAL - 0.105 OK -
 network network -wget OPTIONAL - 1.16.1 OK -
 avahi-utils avahi-utils OPTIONAL - 0.6.31 OK -
 dbus DBus - Message bus system REQUIRED - 1.8.12 OK -

-------------------------
| General Dependencies |
-------------------------

 libcrypto libcrypto - OpenSSL cryptographic library REQUIRED - 1.0.1 OK -
 python-dbus Python DBus - Python bindings for DBus REQUIRED 0.80.0 1.2.0 OK -
 reportlab Reportlab - PDF library for Python OPTIONAL 2.0 3.1.44 OK -
 python-notify Python libnotify - Python bindings for the libnotify Desktop notifications OPTIONAL - - OK -
 pyqt4 PyQt 4- Qt interface for Python (for Qt version 4.x) REQUIRED 4.0 4.11.3 OK -
 python-xml Python XML libraries REQUIRED - 2.1.0 OK -
 libusb libusb - USB library REQUIRED - 1.0 OK -
 cups-image CUPS image - CUPS image development files REQUIRED - 2.0.2 OK -
 libnetsnmp-devel libnetsnmp-devel - SNMP networking library development files REQUIRED 5.0.9 5.7.2 OK -
 sane-devel SANE - Scanning library development files REQUIRED - 1.0.24 OK -
 pil PIL - Python Imaging Library (required for commandline scanning with hp-scan) OPTIONAL - 1.1.7 OK -
 python2X Python 2.2 or greater - Python programming language REQUIRED 2.2 2.7.9 OK -
 pyqt4-dbus PyQt 4 DBus - DBus Support for PyQt4 REQUIRED 4.0 4.11.3 OK -
 libjpeg libjpeg - JPEG library REQUIRED - - OK -
 libpthread libpthread - POSIX threads library REQUIRED - 2.21 OK -
 python-devel Python devel - Python development files REQUIRED 2.2 2.7.9 OK -
 cups-devel CUPS devel- Common Unix Printing System development files REQUIRED - 2.0.2 OK -
 sane SANE - Scanning library REQUIRED - 1.0.24 OK -

---------------
| COMPILEDEP |
---------------

 libtool libtool - Library building support services REQUIRED - 2.4.2 OK -
 gcc gcc - GNU Project C and C++ Compiler REQUIRED - 4.9.2 OK -
 make make - GNU make utility to maintain groups of programs REQUIRED 3.0 4.0 OK -

----------------------
| Python Extentions |
----------------------

 cupsext CUPS-Extension REQUIRED - 3.15.7 OK -
 hpmudext IO-Extension REQUIRED - 3.15.7 OK -

-----------------------
| Scan Configuration |
-----------------------

 scanext Scan-SANE-Extension REQUIRED - 3.15.7 OK -
 hpaio HPLIP-SANE-Backend REQUIRED - 3.15.7 OK 'hpaio found in /etc/sane.d/dll.conf'

-----------------------
| Other Dependencies |
-----------------------

------------------------------
| DISCOVERED SCANNER DEVICES |
------------------------------

No Scanner found.

--------------------------
| DISCOVERED USB DEVICES |
--------------------------

  Device URI Model
  --------------------------------------- -------------------------
  hp:/usb/HP_LaserJet_1020?serial=S43H6Q4 HP LaserJet 1020

---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------

HP_LaserJet_1020
----------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_1020?serial=S43H6Q4
PPD: /etc/cups/ppd/HP_LaserJet_1020.ppd
PPD Description: HP LaserJet 1020, hpcups 3.15.7, requires proprietary plugin
Printer status: printer HP_LaserJet_1020 is idle. enabled since Tuesday 21 July 2015 08:10:41 PM IST
Required plug-in status: Installed
Communication status: Good

Laserjet_1020_plus
------------------
Type: Printer
Device URI: hp:/usb/HP_LaserJet_1020?serial=S43H6Q4
PPD: /etc/cups/ppd/Laserjet_1020_plus.ppd
PPD Description: HP LaserJet 1020, hpcups 3.15.7, requires proprietary plugin
Printer status: printer Laserjet_1020_plus is idle. enabled since Tuesday 21 July 2015 08:12:06 PM IST
 ready to print
Required plug-in status: Installed
Communication status: Good

--------------
| PERMISSION |
--------------

USB HP_LaserJet_1020 Required - - OK Node:'/dev/bus/usb/001/002' Perm:' root lp rw- rw- rw- rw- r--'
No errors or warnings.

Done.

goutam (goutamkk) said : #10

can you run command sudo hp-logcapture and provide us the log files.
You can attach the generated tar file to https://answers.launchpad.net/hplip/+question/269411/+makebug

nagaraju (visitnag) said : #11

I have attached the tar file. The link is.....

https://bugs.launchpad.net/hplip/+bug/1477799

goutam (goutamkk) said : #12

can you again give us the output of 'lsusb -d 03f0:2b17 -v' and also provide us the output of 'hp-levels -i -g' command output here

nagaraju (visitnag) said : #13

Hi,

Goutam. I am very much thankful to you in pursuing the problem. Today I have again
installed hplip(3.7).

I have opted for interactive mode when it asked to install pluggins (without restarting. Only re-plugin the printer)
but it abruptly came out giving error message that plugin cannot be installed with root permissions.

Then again I have installed the plugin (run file) separately.

Next I went for hp-doctor. To my surprise it could do the magic by successfully installing the printer.
I have taken few prints by
  >> logging out
 >> restarting the pc

This is some sort of progress when compared to my earlier attempts.

but..

when I switched off the printer and again switched on...from then onwards the printer again
giving message as ..job started .... print job completed... but without giving the printout.

I can see the print status on task bar as 'held'

HP Device manager is giving error as "Device communication error 5012"

hp-levels-i-g

HP Linux Imaging and Printing System (ver. 3.15.7)
Supply Levels Utility ver. 2.0

Copyright (c) 2001-15 Hewlett-Packard 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.

hp-levels[3048]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-levels[3048]: debug: Mode=0
hp-levels[3048]: debug: Cache miss: hp_laserjet_1020
hp-levels[3048]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-levels[3048]: debug: Searching for section [hp_laserjet_1020] in file /usr/share/hplip/data/models/models.dat
hp-levels[3048]: debug: Found section [hp_laserjet_1020] in file /usr/share/hplip/data/models/models.dat
hp-levels[3048]: debug: {'hp:/usb/HP_LaserJet_1020?serial=S43H6Q4': ['HP_LaserJet_1020']}
Using device : hp:/usb/HP_LaserJet_1020?serial=S43H6Q4

hp-levels[3048]: debug: Exception: 2 (Device not found)

I have got nothing when I used ' lsusb -d 03f0:2b17 -v' command

I am hoping the problem will get solved shortly...

Thank you

goutam (goutamkk) said : #14

provide the output of lsusb command

nagaraju (visitnag) said : #15

Hi,

lsusb -d 03f0:2b17 -v output

Bus 001 Device 002: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x03f0 Hewlett-Packard
  idProduct 0x2b17 LaserJet 1020
  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
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
Device Status: 0x0001
  Self Powered

######################################################################

this is

hp-levels -i -g output

HP Linux Imaging and Printing System (ver. 3.15.7)
Supply Levels Utility ver. 2.0

Copyright (c) 2001-15 Hewlett-Packard 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.

hp-levels[16505]: debug: getDeviceUri(None, None, ('hp',), None, , True)
hp-levels[16505]: debug: Mode=0
hp-levels[16505]: debug: Cache miss: hp_laserjet_1020
hp-levels[16505]: debug: Reading file: /usr/share/hplip/data/models/models.dat
hp-levels[16505]: debug: Searching for section [hp_laserjet_1020] in file /usr/share/hplip/data/models/models.dat
hp-levels[16505]: debug: Found section [hp_laserjet_1020] in file /usr/share/hplip/data/models/models.dat
hp-levels[16505]: debug: {'hp:/usb/HP_LaserJet_1020?serial=S43H6Q4': ['HP_LaserJet_1020']}
Using device : hp:/usb/HP_LaserJet_1020?serial=S43H6Q4

hp-levels[16505]: debug: Exception: 2 (Device not found)

This following appeared on the terminal::

error: Unable to communicate with device (code=12): hp:/usb/HP_LaserJet_1020?serial=S43H6Q4
error: Error opening device (Device not found). Exiting.

the error window appears showing cannot find code 5012

nagaraju (visitnag) said : #16

##############
lsusb output is...
##############

Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

nagaraju (visitnag) said : #17

Actually my printer is HP LaserJet 1020 Plus

goutam (goutamkk) said : #18

This printer require firmware file to be flashed and somehow this is not happening when the printer is rebooted. Run this command 'sudo hp-firmware -y3 -s 001:002 -g' in terminal and provide me the output of 'lsusb -d 03f0:2b17 -v' again. It will of great help to confirm the cause of this problem.

nagaraju (visitnag) said : #19

########################################
When I was installing the plugins multiple times earlier
whenever it gave error, at some stage it shown firmware
updated. But after then I never saw this message...
This is just for your info. The printer is working fine in
newly launched windows 10 also.
########################################

The following is as per your suggestions:

nagaraj@hems:~$ sudo hp-firmware -y3 -s 001:002 -g
hp-firmware[3628]: debug: USB bus ID: 001
hp-firmware[3628]: debug: USB device ID: 002
hp-firmware[3628]: debug: USB bus node: 001:002
error: Invalid USB Device ID or USB bus ID. No device found.

###################

I have done...

$lsusb -d 03f0:2b17 -v > lsusb.out

the lsusb.out is as under

Bus 001 Device 002: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Device Descriptor:
  bLength 18
  bDescriptorType 1
  bcdUSB 2.00
  bDeviceClass 0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 64
  idVendor 0x03f0 Hewlett-Packard
  idProduct 0x2b17 LaserJet 1020
  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
        wMaxPacketSize 0x0200 1x 512 bytes
        bInterval 0
Device Status: 0x0001
  Self Powered

Can you help with this problem?

Provide an answer of your own, or ask nagaraju for more information if necessary.

To post a message you must log in.