LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-06-2015, 08:29 AM   #1
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Rep: Reputation: 21
Printer will not initialize in kernels 3.13.0-44-generic; 3.13.0-45 or *46


Since installing the 3.13.0-44-generic kernel when booting my HP1020 printer will seem to initialize (it will cycle at least once) however when trying to print a test page via CUPS the job will report 'waiting for printer to become available'. Also I'll have hundreds of entries in my syslog like this:

Code:
Mar  5 21:57:45 localhost kernel: [58274.576497] usblp0: removed
Mar  5 21:57:45 localhost kernel: [58274.578414] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar  5 21:57:51 localhost kernel: [58280.589155] usblp0: removed
Mar  5 21:57:51 localhost kernel: [58280.591011] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar  5 21:57:57 localhost kernel: [58286.601746] usblp0: removed
Mar  5 21:57:57 localhost kernel: [58286.603592] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
When booting into 3.13.0-46 it shows the usblp driver being loaded, I believe

Code:
Mar  4 15:30:30 localhost kernel: [   46.156760] usblp 1-3.5:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar  4 15:30:30 localhost kernel: [   46.156808] usbcore: registered new interface driver usblp
Mar  4 15:30:30 localhost kernel: [   46.162484] usblp0: removed
However the printer still is not initialized. What I've found to work is that if I unplug and plug in the printer and cycle power several times it will then be picked up

Code:
Mar  5 21:58:21 localhost udev-configure-printer: remove /devices/pci0000:00/0000:00:1a.7/usb1/1-1
Mar  5 21:58:21 localhost colord: device removed: sysfs-Hewlett-Packard-HP_LaserJet_1020
Mar  5 21:58:30 localhost kernel: [58319.528099] usb 1-3.5: new high-speed USB device number 8 using ehci-pci
Mar  5 21:58:30 localhost kernel: [58319.621339] usb 1-3.5: New USB device found, idVendor=03f0, idProduct=2b17
Mar  5 21:58:30 localhost kernel: [58319.621344] usb 1-3.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar  5 21:58:30 localhost kernel: [58319.621347] usb 1-3.5: Product: HP LaserJet 1020
Mar  5 21:58:30 localhost kernel: [58319.621349] usb 1-3.5: Manufacturer: Hewlett-Packard
Mar  5 21:58:30 localhost kernel: [58319.621352] usb 1-3.5: SerialNumber: JL1F0DC
Mar  5 21:58:30 localhost kernel: [58319.622272] usblp 1-3.5:1.0: usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar  5 21:58:30 localhost logger: loading HP Device 001 008
Mar  5 21:58:30 localhost udev-configure-printer: add /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3.5
Mar  5 21:58:30 localhost udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3.5
Mar  5 21:58:30 localhost udev-configure-printer: MFG:Hewlett-Packard MDL:HP LaserJet 1020 SERN:- serial:JL1F0DC
Mar  5 21:58:32 localhost kernel: [58322.040506] usblp0: removed
Mar  5 21:58:32 localhost kernel: [58322.041767] usblp 1-3.5:1.0: usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar  5 21:58:32 localhost udev-configure-printer: URI contains USB serial number
Mar  5 21:58:32 localhost udev-configure-printer: URI match: usb://HP/LaserJet%201020?serial=JL1F0DC
Mar  5 21:58:32 localhost udev-configure-printer: SERN field matches USB serial number
Mar  5 21:58:32 localhost udev-configure-printer: URI match: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  5 21:58:32 localhost udev-configure-printer: URI of detected printer: usb://HP/LaserJet%201020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  5 21:58:32 localhost udev-configure-printer: URI of print queue: usb://HP/LaserJet%201020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  5 21:58:32 localhost udev-configure-printer: Queue ipp://localhost:631/printers/HP-LaserJet-1020 has matching device URI
Mar  5 21:58:32 localhost udev-configure-printer: URI of detected printer: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  5 21:58:32 localhost udev-configure-printer: Queue ipp://localhost:631/printers/HP-LaserJet-1020 has matching device URI
Mar  5 21:58:35 localhost kernel: [58325.192063] usblp0: removed
Mar  5 21:58:38 localhost colord: Device added: sysfs-Hewlett-Packard-HP_LaserJet_1020
Not related to this but to other issues I have with lockups I've also tried kernel 3.19.0-031900-generic which shows the same issue.

Other information:

Ubuntu 14.04.2 LTS
Dell OptiPlex 780
4Mb Ram

Output of lsusb:

Code:
chris@localhost:/boot$ lsusb
Bus 002 Device 014: ID 04e8:6865 Samsung Electronics Co., Ltd GT-I9300 Phone [Galaxy S III] (PTP mode)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120 for Business
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 1058:0830 Western Digital Technologies, Inc. 
Bus 001 Device 008: ID 03f0:2b17 Hewlett-Packard LaserJet 1020
Bus 001 Device 005: ID 0bc2:2120 Seagate RSS LLC 
Bus 001 Device 004: ID 050d:0237 Belkin Components F5U237 USB 2.0 7-Port Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 1241:1166 Belkin MI-2150 Trust Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Running lpinfo -v shows

Code:
chris@localhost:/boot$ lpinfo -v
network ipp14
network socket
network ipps
network http
network https
network ipp
serial serial:/dev/ttyS0?baud=115200
network lpd
direct parallel:/dev/lp0
network smb
direct usb://Unknown/Printer
After cycling power several times, unplugging and replugging the printer in and attempting a test page via the CUPS web interface it finally shows up:

Code:
chris@localhost:~$ lpinfo -v
network ipp14
network socket
network ipps
network lpd
network https
network http
serial serial:/dev/ttyS0?baud=115200
network ipp
network smb
direct parallel:/dev/lp0
direct hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
direct hpfax
direct usb://HP/LaserJet%201020?serial=JL1F0DC
Cables have been checked to make sure they're connected tightly, dust has been blown out of the USB connector and the mating socket on the printer, several different USB ports have been tried. I'm at a loss as to why it will not initialize as it has in the past.
 
Old 03-07-2015, 02:03 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
I wonder if this is a USB autosuspend (powersaving) issue at play perhaps? The fact that you mentioned re-connecting and power cycling the printer can cause it to start working leads me in this direction of thought. Apologies if I'm on the wrong track here.

Anyway, maybe this udev rule is worth a shot
Code:
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="03f0", ATTR{idProduct}=="2b17", TEST=="power/control", ATTR{power/control}:="on"
Some references I found that may be useful here

http://wiki.gentoo.org/wiki/USB_Power_Saving
https://wiki.archlinux.org/index.php...SB_autosuspend
http://askubuntu.com/questions/18527...pecific-device
 
Old 03-07-2015, 08:36 PM   #3
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Original Poster
Rep: Reputation: 21
As I was going into the /etc/udev/rules.d file I saw this in a file named 56-hpmud.rules:

Code:
# HPLIP udev rules file. Notify console user if plugin support is required for this device.

ACTION!="add", GOTO="hpmud_rules_end"
SUBSYSTEM=="ppdev", OWNER="root", GROUP="lp", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GOTO="hpmud_usb_rules"


LABEL="hpmud_usb_rules"

# ENV{ID_HPLIP}="1" is for Ubuntu udev-acl
ATTR{idVendor}=="03f0", ATTR{idProduct}=="????", OWNER="root", GROUP="lp", MODE="0664", ENV{sane_hpaio}="yes", ENV{libsane_matched}="yes", ENV{hp_test}="yes", ENV{ID_HPLIP}="1"


# This rule will check the smart install feature, plugin status and firmware download for the required printers.
ENV{hp_test}=="yes", PROGRAM="/bin/sh -c 'logger -p user.info loading HP Device $env{BUSNUM} $env{DEVNUM}'", RUN+="/bin/sh -c 'if [ -f /usr/bin/systemctl ]; then /usr/bin/systemctl --no-block start hplip-printer@$env{BUSNUM}:$env{DEVNUM}.service; else /usr/bin/nohup /usr/bin/python /usr/bin/hp-config_usb_printer $env{BUSNUM}:$env{DEVNUM} ; fi &'"

# If sane-bankends is installed add hpaio backend support to dll.conf if needed.
ENV{sane_hpaio}=="yes", RUN+="/bin/sh -c 'grep -q ^#hpaio /etc/sane.d/dll.conf;if [ $$? -eq 0 ];then sed -i -e s/^#hpaio/hpaio/ /etc/sane.d/dll.conf;else grep -q ^hpaio /etc/sane.d/dll.conf;if [ $$? -ne 0 ];then echo hpaio >>/etc/sane.d/dll.conf;fi;fi'"

# The following rule will disable USB autosuspend for the device
ENV{libsane_matched}=="yes", RUN+="/bin/sh -c 'test -e /sys/$env{DEVPATH}/power/level && echo on > /sys/$env{DEVPATH}/power/level'"
I'm not sure though what it's all telling me though.

Last edited by Toadman; 03-07-2015 at 08:38 PM. Reason: added information
 
Old 03-07-2015, 11:54 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Yes, those rules (supplied by HPLIP) are for HP printers and multi-function devices, but the autosuspend rule they include only relates to scanner devices for some reason. In any case, the use of power/level is deprecated:

http://stackoverflow.com/questions/4...off-with-linux
 
Old 03-08-2015, 07:39 AM   #5
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Original Poster
Rep: Reputation: 21
This is just getting more and more frustrating. I have the printer plugged into a 7 port USB Hub. I can turn it off and the light for that port goes off and CUPS web interface shows

Code:
HP-LaserJet-1020	Hewlett-Packard HP LaserJet 1020	localhost	HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommended)	Paused - "Unplugged or turned off"
Turn it back on and refresh the page

Code:
HP-LaserJet-1020	Hewlett-Packard HP LaserJet 1020	localhost	HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommended)	Idle
This is shown as far as the printer

Code:
HP-LaserJet-1020 (Idle, Accepting Jobs, Not Shared, Server Default, Color-Managed)
Description:	Hewlett-Packard HP LaserJet 1020
Location:	localhost
Driver:	HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommended) (grayscale, 2-sided printing)
Connection:	hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Defaults:	job-sheets=none, none media=na_letter_8.5x11in sides=one-sided
When printing a test page from the interface a popup give a

Code:
HPLIP Device Status
HP-LaserJet-1020
Started a print job:Test Page
Then a few seconds later - Test Page has completed. Concurrently with 'Test Page has completed' under the 'control' column you now have 'Release Job' alongside 'Cancel Job' and 'Move Job'.

I 'assume' now that the printer is sort of initialize during boot but something just isn't right but I don't know what it is or how to proceed from here.
 
Old 03-08-2015, 08:29 AM   #6
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Original Poster
Rep: Reputation: 21
Following up to my previous post. Looking at my syslog after the print attempts this morning I'm seeing:

Code:
Mar  8 06:53:03 localhost colord: device removed: sysfs-Hewlett-Packard-HP_LaserJet_1020
Mar  8 06:53:07 localhost kernel: [31407.824086] usb 1-3.4: new high-speed USB device number 17 using ehci-pci
Mar  8 06:53:22 localhost kernel: [31422.896114] usb 1-3.4: device descriptor read/64, error -110
Mar  8 06:53:37 localhost kernel: [31438.072131] usb 1-3.4: device descriptor read/64, error -110
Mar  8 06:53:37 localhost kernel: [31438.248129] usb 1-3.4: new high-speed USB device number 18 using ehci-pci
Mar  8 06:53:52 localhost kernel: [31453.320156] usb 1-3.4: device descriptor read/64, error -110
Mar  8 06:54:07 localhost kernel: [31468.496054] usb 1-3.4: device descriptor read/64, error -110
Mar  8 06:54:08 localhost kernel: [31468.672055] usb 1-3.4: new high-speed USB device number 19 using ehci-pci
Then further down in syslog I'm seeing:

Code:
Mar  8 07:01:21 localhost kernel: [31902.156066] usb 1-3.4: new high-speed USB device number 21 using ehci-pci
Mar  8 07:01:36 localhost kernel: [31917.228092] usb 1-3.4: device descriptor read/64, error -110
Mar  8 07:01:48 localhost kernel: [31929.548137] usb 1-3.4: new high-speed USB device number 22 using ehci-pci
Mar  8 07:01:48 localhost kernel: [31929.660256] usb 1-3.4: New USB device found, idVendor=03f0, idProduct=2b17
Mar  8 07:01:48 localhost kernel: [31929.660260] usb 1-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar  8 07:01:48 localhost kernel: [31929.660263] usb 1-3.4: Product: HP LaserJet 1020
Mar  8 07:01:48 localhost kernel: [31929.660265] usb 1-3.4: Manufacturer: Hewlett-Packard
Mar  8 07:01:48 localhost kernel: [31929.660268] usb 1-3.4: SerialNumber: JL1F0DC
Mar  8 07:01:49 localhost kernel: [31929.663427] usblp 1-3.4:1.0: usblp0: USB Bidirectional printer dev 22 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar  8 07:01:49 localhost logger: loading HP Device 001 022
Mar  8 07:01:49 localhost udev-configure-printer: add /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3.4
Mar  8 07:01:49 localhost udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3.4
Mar  8 07:01:49 localhost udev-configure-printer: MFG:Hewlett-Packard MDL:HP LaserJet 1020 SERN:- serial:JL1F0DC
Mar  8 07:01:50 localhost kernel: [31931.350202] usblp0: removed
Mar  8 07:01:50 localhost kernel: [31931.362303] usblp 1-3.4:1.0: usblp0: USB Bidirectional printer dev 22 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar  8 07:01:50 localhost udev-configure-printer: SERN field matches USB serial number
Mar  8 07:01:50 localhost udev-configure-printer: URI match: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  8 07:01:50 localhost udev-configure-printer: URI contains USB serial number
Mar  8 07:01:50 localhost udev-configure-printer: URI match: usb://HP/LaserJet%201020?serial=JL1F0DC
Mar  8 07:01:50 localhost udev-configure-printer: URI of detected printer: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:01:50 localhost udev-configure-printer: URI of print queue: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:01:50 localhost udev-configure-printer: Queue ipp://localhost:631/printers/HP-LaserJet-1020 has matching device URI
Mar  8 07:01:50 localhost udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/HP-LaserJet-1020
Mar  8 07:01:53 localhost kernel: [31934.523720] usblp0: removed
Mar  8 07:01:56 localhost colord: Device added: sysfs-Hewlett-Packard-HP_LaserJet_1020
Mar  8 07:02:15 localhost foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p1 -T3 -m1 -s7 -n1
Mar  8 07:02:21 localhost hp[5570]: io/hpmud/musb.c 151: unable get_string_descriptor -7: Resource temporarily unavailable
Mar  8 07:02:21 localhost hp[5570]: io/hpmud/musb.c 600: invalid product id string ret=-7
Mar  8 07:02:21 localhost hp[5570]: io/hpmud/musb.c 1143: unable to open hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  8 07:02:21 localhost hp[5570]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  8 07:02:21 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000  
Mar  8 07:02:21 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1  -u 192x96 -l 192x96 -L 0  -T3    -P 
Mar  8 07:03:01 localhost CRON[5613]: (root) CMD (/usr/local/bin/clamstats.pl --html > /home/chris/clamstuff/mystats.html)
Mar  8 07:03:24 localhost foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p1 -T3 -m1 -s7 -n1
Mar  8 07:03:30 localhost hp[5631]: io/hpmud/musb.c 151: unable get_string_descriptor -7: Resource temporarily unavailable
Mar  8 07:03:30 localhost hp[5631]: io/hpmud/musb.c 600: invalid product id string ret=-7
Mar  8 07:03:30 localhost hp[5631]: io/hpmud/musb.c 1143: unable to open hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  8 07:03:30 localhost hp[5631]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  8 07:03:30 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000  
Mar  8 07:03:30 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1  -u 192x96 -l 192x96 -L 0  -T3    -P 
Mar  8 07:03:45 localhost foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -p1 -T3 -m1 -s7 -n1
Mar  8 07:03:51 localhost hp[5674]: io/hpmud/musb.c 151: unable get_string_descriptor -7: Resource temporarily unavailable
Mar  8 07:03:51 localhost hp[5674]: io/hpmud/musb.c 600: invalid product id string ret=-7
Mar  8 07:03:51 localhost hp[5674]: io/hpmud/musb.c 1143: unable to open hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  8 07:03:51 localhost hp[5674]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  8 07:03:51 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000  
Mar  8 07:03:51 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1  -u 192x96 -l 192x96 -L 0  -T3    -P 
Mar  8 07:05:41 localhost kernel: [32162.053746] usb 1-3.4: USB disconnect, device number 22
Mar  8 07:05:41 localhost udev-configure-printer: remove /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3.4
Mar  8 07:05:41 localhost udev-configure-printer: URI of detected printer: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:05:41 localhost udev-configure-printer: URI of print queue: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:05:41 localhost udev-configure-printer: Queue ipp://localhost:631/printers/HP-LaserJet-1020 has matching device URI
Mar  8 07:05:41 localhost udev-configure-printer: Disabled printer ipp://localhost:631/printers/HP-LaserJet-1020 as the corresponding device was unplugged or turned off
Mar  8 07:05:41 localhost colord: device removed: sysfs-Hewlett-Packard-HP_LaserJet_1020
Mar  8 07:05:43 localhost kernel: [32164.556105] usb 1-3.4: new high-speed USB device number 23 using ehci-pci
Mar  8 07:05:44 localhost kernel: [32164.667982] usb 1-3.4: New USB device found, idVendor=03f0, idProduct=2b17
Mar  8 07:05:44 localhost kernel: [32164.667987] usb 1-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar  8 07:05:44 localhost kernel: [32164.667990] usb 1-3.4: Product: HP LaserJet 1020
Mar  8 07:05:44 localhost kernel: [32164.667993] usb 1-3.4: Manufacturer: Hewlett-Packard
Mar  8 07:05:44 localhost kernel: [32164.667996] usb 1-3.4: SerialNumber: JL1F0DC
Mar  8 07:05:44 localhost kernel: [32164.671401] usblp 1-3.4:1.0: usblp0: USB Bidirectional printer dev 23 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar  8 07:05:44 localhost logger: loading HP Device 001 023
Mar  8 07:05:44 localhost udev-configure-printer: add /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3.4
Mar  8 07:05:44 localhost udev-configure-printer: device devpath is /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3.4
Mar  8 07:05:44 localhost udev-configure-printer: MFG:Hewlett-Packard MDL:HP LaserJet 1020 SERN:- serial:JL1F0DC
Mar  8 07:05:45 localhost kernel: [32165.698549] usblp0: removed
Mar  8 07:05:45 localhost kernel: [32165.718914] usblp 1-3.4:1.0: usblp0: USB Bidirectional printer dev 23 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17
Mar  8 07:05:45 localhost udev-configure-printer: SERN field matches USB serial number
Mar  8 07:05:45 localhost udev-configure-printer: URI match: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  8 07:05:45 localhost udev-configure-printer: URI contains USB serial number
Mar  8 07:05:45 localhost udev-configure-printer: URI match: usb://HP/LaserJet%201020?serial=JL1F0DC
Mar  8 07:05:45 localhost udev-configure-printer: URI of detected printer: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:05:45 localhost udev-configure-printer: URI of print queue: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:05:45 localhost udev-configure-printer: Queue ipp://localhost:631/printers/HP-LaserJet-1020 has matching device URI
Mar  8 07:05:45 localhost udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/HP-LaserJet-1020
Mar  8 07:05:47 localhost kernel: [32167.908273] usblp0: removed
Mar  8 07:05:51 localhost colord: Device added: sysfs-Hewlett-Packard-HP_LaserJet_1020
Mar  8 07:06:06 localhost kernel: [32187.397583] usb 1-3.4: USB disconnect, device number 23
Mar  8 07:06:06 localhost udev-configure-printer: remove /devices/pci0000:00/0000:00:1a.7/usb1/1-3/1-3.4
Mar  8 07:06:06 localhost udev-configure-printer: URI of detected printer: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:06:06 localhost udev-configure-printer: URI of print queue: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:06:06 localhost udev-configure-printer: Queue ipp://localhost:631/printers/HP-LaserJet-1020 has matching device URI
Mar  8 07:06:06 localhost udev-configure-printer: Disabled printer ipp://localhost:631/printers/HP-LaserJet-1020 as the corresponding device was unplugged or turned off
Mar  8 07:06:06 localhost colord: device removed: sysfs-Hewlett-Packard-HP_LaserJet_1020
Mar  8 07:09:21 localhost kernel: [32382.412074] usb 1-3.4: new high-speed USB device number 24 using ehci-pci
There's probably a lot of redundant info in the above however one thing I notice is "kernel: [31917.228092] usb 1-3.4: device descriptor read/64, error -110" I see this a couple of times during the boot process.
 
Old 03-08-2015, 03:05 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
The crux of it seems to be when udev-configure-printer reports 'Queue ipp://localhost:631/printers/HP-LaserJet-1020 has matching device URI' and this gets enabled instead.

Code:
 8 07:01:50 localhost udev-configure-printer: URI match: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  8 07:01:50 localhost udev-configure-printer: URI contains USB serial number
Mar  8 07:01:50 localhost udev-configure-printer: URI match: usb://HP/LaserJet%201020?serial=JL1F0DC
Mar  8 07:01:50 localhost udev-configure-printer: URI of detected printer: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:01:50 localhost udev-configure-printer: URI of print queue: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC, normalized: laserjet 1020 serial jl1f0dc
Mar  8 07:01:50 localhost udev-configure-printer: Queue ipp://localhost:631/printers/HP-LaserJet-1020 has matching device URI
Mar  8 07:01:50 localhost udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/HP-LaserJet-1020
Mar  8 07:01:53 localhost kernel: [31934.523720] usblp0: removed
Can you confirm how your printer is configured in /etc/cups/printers.conf? I'm not sure why udev-configure-printer (and associated udev rule) are even needed for a printer that is already manually configured in /etc/cups/printers.conf. Maybe worth reviewing bug reports involving 'udev-configure-printer', and submit a report if necessary.
 
Old 03-08-2015, 04:04 PM   #8
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Original Poster
Rep: Reputation: 21
Output of /etc/cups/printers.conf

Code:
# Printer configuration file for CUPS v1.7.2
# Written by cupsd
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter HP-LaserJet-1020>
UUID urn:uuid:b1069d9d-adb1-3d24-7b34-c84985fa47a2
Info Hewlett-Packard HP LaserJet 1020
Location localhost
DeviceURI hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
PPDTimeStamp *
State Idle
StateTime 1425832181
Type 8425476
Accepting Yes
Shared Yes
ColorManaged Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>
 
Old 03-08-2015, 05:29 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
That config file checks out okay.

FWIW, here's an interesting thread, (albeit slightly different problem), but some of the same symptoms. It's links to the following bug report and describes similar behaviour IMHO.

Anyway, I'm not sure why you're getting
Code:
Mar  8 07:01:50 localhost udev-configure-printer: Queue ipp://localhost:631/printers/HP-LaserJet-1020 has matching device URI
Mar  8 07:01:50 localhost udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/HP-LaserJet-1020
Mar  8 07:01:53 localhost kernel: [31934.523720] usblp0: removed
but it may need to be followed up with a bug report.
 
Old 03-08-2015, 06:05 PM   #10
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Original Poster
Rep: Reputation: 21
Thanks for the info above, I've looked at the link and at my /var/log/cups/error_log from yesterday evening at 7:56pm to this morning and it's big, almost 38k. I'd already filed a bug at Ubuntu Launchpad on this but unwittingly filed it on the kernel. I need to change it to the CUPS package or else file a new one.

Chris
 
Old 03-09-2015, 08:33 PM   #11
Toadman
Member
 
Registered: Aug 2002
Location: Copperas Cove, Texas
Distribution: Ubuntu 20.04 LTS
Posts: 304

Original Poster
Rep: Reputation: 21
I've done some more checking after running memtest last night for 12hrs regarding another bug report. Anyway, I'm including some things I found in my syslog and also that I found via lsusb. This first item is when I was booting the system this morning:

Code:
Mar  9 07:39:08 localhost kernel: [   29.245187] type=1400 audit(1425904748.301:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=468 comm="apparmor_parser"
Mar  9 07:39:08 localhost kernel: [   29.245191] type=1400 audit(1425904748.301:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd" pid=468 comm="apparmor_parser"
Mar  9 07:39:08 localhost kernel: [   29.245548] type=1400 audit(1425904748.301:4): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=468 comm="apparmor_parser"
Mar  9 07:39:09 localhost kernel: [   30.160234] init: cups main process (506) killed by HUP signal
Mar  9 07:39:09 localhost kernel: [   30.160243] init: cups main process ended, respawning
Mar  9 07:39:12 localhost udev-configure-printer: failed to connect to CUPS server; giving up
Mar  9 07:39:38 localhost kernel: [   59.378810] type=1400 audit(1425904778.435:75): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=2066 comm="apparmor_parser"
Mar  9 07:39:38 localhost kernel: [   59.378817] type=1400 audit(1425904778.435:76): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2066 comm="apparmor_parser"
Mar  9 07:39:38 localhost kernel: [   59.379171] type=1400 audit(1425904778.435:77): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="/usr/sbin/cupsd" pid=2066 comm="apparmor_parser"
Mar  9 07:39:38 localhost colord: Device added: cups-HP-LaserJet-1020
This was during boot and then when I tried to print a test page from the CUPS web interface:

Code:
Mar  9 07:39:08 localhost kernel: [   16.225057] usb 1-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar  9 07:39:08 localhost kernel: [   16.238061] usb 1-3.4: Product: HP LaserJet 1020
Mar  9 07:39:08 localhost kernel: [   16.250886] usb 1-3.4: Manufacturer: Hewlett-Packard
Mar  9 07:39:08 localhost kernel: [   16.263614] usb 1-3.4: SerialNumber: JL1F0DC
Mar  9 07:39:10 localhost udev-configure-printer: Device vendor/product is 03F0:2B17
Mar  9 07:39:10 localhost udev-configure-printer: MFG:Hewlett-Packard MDL:HP LaserJet 1020 SERN:- serial:JL1F0DC
Mar  9 07:39:24 localhost colord: Device added: sysfs-Hewlett-Packard-HP_LaserJet_1020
Mar  9 07:39:38 localhost colord: Profile added: HP-LaserJet-1020-Gray..
Mar  9 07:39:38 localhost colord: Device added: cups-HP-LaserJet-1020
Mar  9 07:45:15 localhost kernel: [  396.304197] usblp: can't set desired altsetting 0 on interface 0
Mar  9 07:45:15 localhost hp[4409]: io/hpmud/musb.c 151: unable get_string_descriptor -7: Resource temporarily unavailable
Mar  9 07:45:15 localhost hp[4409]: io/hpmud/musb.c 600: invalid product id string ret=-7
Mar  9 07:45:15 localhost hp[4409]: io/hpmud/musb.c 1143: unable to open hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  9 07:45:15 localhost hp[4409]: prnt/backend/hp.c 824: ERROR: open device failed stat=12: hp:/usb/HP_LaserJet_1020?serial=JL1F0DC
Mar  9 07:45:15 localhost foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000  
Mar  9 07:45:15 localhost foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1  -u 192x96 -l 192x96 -L 0  -T3    -P
Per this individual who apparently control all bugs at Ubuntu Launchpad I'm supposed to find out what kernel this last worked in which to tell the truth I don't really recall. I booted into 3.13.0-generic this evening and it still did not work, lsusb -v -v -v did not even show the printer until I turned it off then on again and even then it still did not print a test page:

After powering printer down then up again

Code:
chris@localhost:~$ lsusb -v -v -v

Bus 001 Device 010: 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 Poweredchris@localhost:~$
 
  


Reply

Tags
hp1020, printer



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] libreoffice cannot find network printer, offers only (non-existent) generic printer pierssnell Linux - Newbie 10 01-27-2020 11:05 AM
devisse assignment different in huge and generic kernels metageek Slackware 5 01-11-2013 02:44 PM
What Do I Need To Know About Huge vs. Generic Kernels During Installation? joncr Slackware 16 07-18-2012 06:29 AM
Two generic kernels in /boot directory igadoter Slackware 3 09-04-2010 09:36 AM
generic or huge kernels? metrofox Slackware 25 04-15-2009 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration