Ask Your Question
0

hp printer installation fedora26

asked 2018-02-06 20:09:39 -0500

art olin gravatar image

I have not been able to access my hp1018 printer since upgrading to fedora 26. At about the same time the HP installation code was upgraded to hplip 3.17.11. The printer works fine on my windows 10 machine, and the hplip people have not been able to resolve it. I have tried this in different usb sockets. The failure is seen in

`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.`

Printer is found by

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 Date

Cups does not seem to find all the printer info

/usr/lib/cups/backend/usb

DEBUG: Loading USB quirks from "/usr/share/cups/usb". DEBUG: Loaded 151 quirks. DEBUG: listdevices DEBUG: libusbgetdevicelist=14 DEBUG2: Printer found with device ID: Device URI: usb://Unknown/Printer direct usb://Unknown/Printer "Unknown" "Unknown" "" ""

lpinfo -v

network http network beh network ipps network ipp network https network socket network lpd

HP suggests that

Blockquote

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.

edit retag flag offensive close merge delete

Comments

Hi, is there any difference if you run those commands using sudo or as root? Is there anything in dmseg and/or in journalctl when you plug/turn on the printer? Cheers

casep gravatar imagecasep ( 2018-02-07 09:50:08 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2018-02-11 20:33:48 -0500

art olin gravatar image

Thanks, the bug report was informative. Issueing the command lpadmin -p HP_LaserJet_1018 -o usb-unidir-default=true and then power cycling the printer seems to leave the printer 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

After this hp-setup worked and I can print again!

edit flag offensive delete link more
0

answered 2018-02-07 19:30:22 -0500

art olin gravatar image

Yes, dmessg reports finding and removing the printer: [13719.368517] usb 2-1-port3: unable to enumerate USB device [14457.102637] usb 1-1-port4: Cannot enable. Maybe the USB cable is bad? [14458.583276] usb 1-1.4: USB disconnect, device number 21 [14465.132248] usb 2-1.3: new high-speed USB device number 20 using ehci-pci [14465.233208] usb 2-1.3: New USB device found, idVendor=03f0, idProduct=4117 [14465.233212] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [14465.233215] usb 2-1.3: Product: HP LaserJet 1018 [14465.233218] usb 2-1.3: Manufacturer: Hewlett-Packard [14465.

edit flag offensive delete link more
0

answered 2018-02-07 21:36:52 -0500

art olin gravatar image

The response on dmesg is: (plug in printer cable)

[193032.897881] usb 2-1.3: new high-speed USB device number 41 using ehci-pci
[193032.977756] usb 2-1.3: New USB device found, idVendor=03f0, idProduct=4117
[193032.977763] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[193032.977769] usb 2-1.3: Product: HP LaserJet 1018
[193032.977774] usb 2-1.3: Manufacturer: Hewlett-Packard
[193032.977779] usb 2-1.3: SerialNumber: KP1499D
[193032.980627] usblp 2-1.3:1.0: usblp0: USB Bidirectional printer dev 41 if 0 a
lt 0 proto 2 vid 0x03F0 pid 0x4117
[193036.746290] usblp0: removed
**unplug printer cable**
[193210.635968] usb 1-1.4: reset high-speed USB device number 42 using ehci-pci
[193214.742424] usb 2-1.3: USB disconnect, device number 41

The usblp0 removed statement before the printer was unplugged might reflect a firewall on protection issue.

edit flag offensive delete link more

Comments

Hi, take a look at this https://bugzilla.redhat.com/show_bug.cgi?id=873123 Comment 13, apparently you could define the printer in a different way to make it work.

casep gravatar imagecasep ( 2018-02-08 04:31:19 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-02-06 20:09:39 -0500

Seen: 362 times

Last updated: Feb 11 '18