YaST2 printer wizard fails to detect HP usb printer

Hi there

Can someone explain to me why the YaST2 printer wizard does not detect the usb printer, and what can I do to fix it without having to call hp-setup or hp-probe ?

The problem:

In order to make available new printers on an ancient Opensuse 10.3, I had to upgrade a newer version of cups and hplip 3.11.5.
Some of the HP printers require the proper hplip-plugin 3.11.5 which I also installed subsequently.

Our users have no su access rights and indirectly everything must go through YaST2 for reasons of security.

Services detect the HP Laserjet Pro p1102 when the usb cable is plugged in and the unconfigured model is displayed in the YaST2 printer wizard
which fails to connect to the printer during the usb connection step. The updated /etc/cups/printer.conf does not have a correct DeviceURI and
the hplip services remains inactive.

When I copy and paste the uri obtained from the hp-probe command, the YaST2 printer wizard can activate the backend hplip-service in the end and printing works fine (the wizard still did not connect to the printer though). I also get the same printer.conf by running hp-setup. Presumingly it runs hp-probe to detect the printer ? Btw, the ppd is an hpijs.

TIA,
Richard

I had this issue when I did use an USB hub of one specific producer. I changed usb hub, and then everything worked. Do you use an usb-hub to branch the printer?

I had this issue when I did use an USB hub of one specific producer. I changed usb hub, and then everything worked. Do you use an usb-hub to branch the printer?

Nope. Just a direct connection.

On 2013-04-25 10:46, richardavilez wrote:
>
> Hi there
>
> Can someone explain to me why the YaST2 printer wizard does not detect
> the usb printer, and what can I do to fix it without having to call
> hp-setup or hp-probe ?
>
>
> THE PROBLEM:
> In order to make available new printers on an ancient Opensuse 10.3, I
> had to upgrade a newer version of cups and hplip 3.11.5.

You can not expect such an ancient (and not supported) openSUSE and YaST
version to recognize changes in cups and hplip.

You might be more lucky by just using cups, not yast, to install printers.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Cheers. I know it will not be easy, still, I will try to fix it if I can.

Here is a /var/log/message output for the detection of the printer showing that the usblp mount fails. So, I guess, it’s not a YaSt2 printer but a system failure right at the start
somewhere in io/hpmud/model.c and io/hpmud/musb.c.

Apr 29 13:04:02 most syslog-ng[2664]: STATS: dropped 0
Apr 29 13:04:16 most smartd[3686]: Device: /dev/sda, SMART Usage Attribute: 194 Temperature_Celsius changed from 152 to 148
Apr 29 13:14:51 most su: (to root) abst on /dev/pts/1
Apr 29 13:19:31 most kernel: usb 3-2: new high speed USB device using ehci_hcd and address 3
Apr 29 13:19:31 most kernel: usb 3-2: new device found, idVendor=03f0, idProduct=002a
Apr 29 13:19:31 most kernel: usb 3-2: new device strings: Mfr=1, Product=2, SerialNumber=3
Apr 29 13:19:31 most kernel: usb 3-2: Product: HP LaserJet Professional P1102
Apr 29 13:19:31 most kernel: usb 3-2: Manufacturer: Hewlett-Packard
Apr 29 13:19:31 most kernel: usb 3-2: SerialNumber: 000000000Q863DBDSI1c
Apr 29 13:19:31 most kernel: usb 3-2: configuration #1 chosen from 1 choice
Apr 29 13:19:31 most logger: loading hp_laserjet_professional_p1102 firmware 003 003
Apr 29 13:19:31 most logger: loading hp_laserjet_professional_p1102w firmware 003 003
Apr 29 13:19:31 most kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
Apr 29 13:19:31 most kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Apr 29 13:19:31 most kernel: Initializing USB Mass Storage driver…
Apr 29 13:19:31 most kernel: scsi5 : SCSI emulation for USB Mass Storage devices
Apr 29 13:19:31 most kernel: usb-storage: device found at 3
Apr 29 13:19:31 most kernel: usb-storage: waiting for device to settle before scanning
Apr 29 13:19:31 most kernel: usbcore: registered new interface driver usb-storage
Apr 29 13:19:31 most kernel: USB Mass Storage support registered.
Apr 29 13:19:32 most hp-mkuri: io/hpmud/model.c 625: unable to find [hp_laserjet_professional_p1102] support-type in /usr/share/hplip/data/models/models.dat
Apr 29 13:19:33 most kernel: usb 3-2: USB disconnect, address 3
Apr 29 13:19:33 most kernel: usb-storage: device scan complete
Apr 29 13:19:33 most python: hp-firmware[24790]: warning: No display found.
Apr 29 13:19:33 most python: hp-firmware[24790]: error: hp-firmware -u/–gui requires Qt4 GUI support. Entering interactive mode.
Apr 29 13:19:33 most python: io/hpmud/musb.c 2117: invalid busnum:devnum 003:003
Apr 29 13:19:33 most python: hp-firmware[24790]: error: Invalid USB Device ID or USB bus ID. No device found.
Apr 29 13:19:34 most kernel: usb 3-2: new high speed USB device using ehci_hcd and address 4
Apr 29 13:19:34 most kernel: usb 3-2: new device found, idVendor=03f0, idProduct=002a
Apr 29 13:19:34 most kernel: usb 3-2: new device strings: Mfr=1, Product=2, SerialNumber=3
Apr 29 13:19:34 most kernel: usb 3-2: Product: HP LaserJet Professional P1102
Apr 29 13:19:34 most kernel: usb 3-2: Manufacturer: Hewlett-Packard
Apr 29 13:19:34 most kernel: usb 3-2: SerialNumber: 000000000Q863DBDPR1a
Apr 29 13:19:34 most kernel: usb 3-2: configuration #1 chosen from 1 choice
Apr 29 13:19:34 most logger: loading hp_laserjet_professional_p1102 firmware 003 004
Apr 29 13:19:34 most logger: loading hp_laserjet_professional_p1102w firmware 003 004
Apr 29 13:19:34 most hp-mkuri: io/hpmud/model.c 625: unable to find [hp_laserjet_professional_p1102] support-type in /usr/share/hplip/data/models/models.dat
Apr 29 13:19:34 most kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x03F0 pid 0x002A
Apr 29 13:19:34 most kernel: usbcore: registered new interface driver usblp
Apr 29 13:19:34 most kernel: drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Apr 29 13:19:34 most python: hp-firmware[24869]: warning: No display found.
Apr 29 13:19:34 most python: hp-firmware[24869]: error: hp-firmware -u/–gui requires Qt4 GUI support. Entering interactive mode.
Apr 29 13:19:37 most kernel: drivers/usb/class/usblp.c: usblp0: removed
Apr 29 13:20:55 most kernel: usb 3-2: USB disconnect, address 4

Conflicting statement in /var/log/message ?

The /usr/share/hplip/data/models/models.dat contains the section

[hp_laserjet_professional_p1102]

with the following (standard) attributes

support-type=2
support-ver=3.10.2

Looking at the function hpmud_get_key_value in models.c (3.12.4) which is called from hp-mkuri, this function could fail (line 625) if the passed arguments don’t match with those above.
The problem is that I don’t know what values are actually passed. hp-mkuri returns a support matrix where the return value 2 indicates the requirement of the plugin.
I guess this number refer to the attribute support-type.

Cant you simply select the ppd file manually?

On 2013-04-29 13:46, richardavilez wrote:

Please use code tags for printouts and commands. Advanced editor, ‘#’
button. Posting in Code Tags - A Guide


> Apr 29 13:19:33 most python: hp-firmware[24790]: warning: No display found.
> Apr 29 13:19:33 most python: hp-firmware[24790]: error: hp-firmware -u/--gui requires Qt4 GUI support. Entering interactive mode.
> Apr 29 13:19:33 most python: io/hpmud/musb.c 2117: invalid busnum:devnum 003:003

Either you are running in text mode, or you don’t have QT4. I don’t
remember what QT version 10.3 has.

How important this is, I dunno.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

The ppd is ok.

We think that the problem is the recognition of the section name [hp_laserjet_professional_p1102] in model.dat because the section names are not compared correctly (3.11.5)
By shortening the model name and exporting it into the env variable hp_model, the function ‘hpmud_get_key_value’ recognizes the model and the error on line 625 goes away.

In the latest version of hplip 3.13.x this function has been removed.

hp-setup must get around the problem by using hp-mkuri or hp-probe in a different way.

We shall recompile hplip 3.11.5 source code for OpenSuse 10.3 and test our argument.