hp-setup does not find usb printer

Thanks for pointing to usb.ids.
The file existed (and continues to exist) in two locations:
/usr/share/ and /usr/share/kde4/apps/kcmusb/
The file in /usr/share did have a line for the P1102 printer. I have manually added the same line intothe other instance of the file.
Then hp-setup again - without any change.

To me it looks like hpsetup cannot find the printer. When I input the printer’s usb address, hp-setup seems to find it, since it outputs its type and serial number.
Would it be possible for hp-setup to find this information somewhere in the system without actually interrogating the usb? That would explain why it knows about the printer even while it does not succeed (or even try?) to communicate directly to the printer through the usb.

re oldcpu’s suggestion: I have booted from a (freshly downloaded and burned) live cd. Then I downloaded hp-lip from the oS-11.4-oss repo.
HP-setup again produced the same unsatisfactory results.

Yes, perplexing it is !

IMHO you may be best served here by writing bug report on this.

I’d try the windows driver from a VM and see if the printer works, to rule out problems with the linux usb underlying structure. Does this make any sense?

hws38 wrote:

>
> Thanks for pointing to usb.ids.
> The file existed (and continues to exist) in two locations:
> /usr/share/ and /usr/share/kde4/apps/kcmusb/
> The file in /usr/share did have a line for the P1102 printer. I have
> manually added the same line intothe other instance of the file.
> Then hp-setup again - without any change.
>
> To me it looks like hpsetup cannot find the printer. When I input the
> printer’s usb address, hp-setup seems to find it, since it outputs its
> type and serial number.
> Would it be possible for hp-setup to find this information somewhere in
> the system without actually interrogating the usb? That would explain
> why it knows about the printer even while it does not succeed (or even
> try?) to communicate directly to the printer through the usb.
>
> re oldcpu’s suggestion: I have booted from a (freshly downloaded and
> burned) live cd. Then I downloaded hp-lip from the oS-11.4-oss repo.
> HP-setup again produced the same unsatisfactory results.
>
> Yes, perplexing it is !

I haven’t hit this with 11.4 - yet - but going bak to 11.2 the message you
get became pretty common. As a first response, I would delete the .hplip
folder in the user home. This was almost always successful when the message
was popped on hp-setup or opening the HP Device Manager. Funny part was
that I could eliminate .hplip from any user on the machine and the others
would correct themselves. Never did figure out just what was going on but
I’ve seen it a couple of time lately with 11.4 so I’ll probably have to
follow up.

Try deleting .hplib and report back the results. Maybe you can supply some
info I’m missing.


Will Honea

Creating a new user account should have had the same effect, and creating such an account was my recommendation. But my understanding is that failed.

Also, booting with a liveCD and testing printing from there should have had the same effect and my understanding is that failed also.

Thank you for your suggestion. However, deleting .hplip made no difference.
Of course I am ready to give any information on this subject!

Could there be a problem with permissions for access to the usb?

@brunomci
As reported above, I have successfully connected the printer to a Win-XP machine, which indicates that there cannot be much
that is significantly wrong with the printer or its usb-interface
Having no experience using a VM, I am not (yet) planning to try out your suggestion.

That was understood, my point was: if it works ok from the VM, it’s a driver (hplip) problem, not a kernel/usb/your printer issue, as your printer would be communicating OK with the VM via the kernel usb infrastructure. Not probable, of course, but it may happen.

Since you don’t have a VM, it’s a moot point.

Good luck.

IMHO you may be best served here by writing bug report on this.

I agree with Lee. Time to submit a bug report.

HP Linux Imaging and Printing

Submitted bug report : Bug #795015 “hp-setup does not find usb printer P1102” : Bugs : Ubuntu
I will report here if/when something comes up.

Thanks to all who have helped me so far along the way!

oldcpu wrote:

>
> Will Honea;2351072 Wrote:
>>
>> Try deleting .hplib and report back the results. Maybe you can supply
>> some
>> info I’m missing.
>>
>
> Creating a new user account should have had the same effect, and
> creating such an account was my recommendation. But my understanding is
> that failed.
>
> Also, booting with a liveCD and testing printing from there should have
> had the same effect and my understanding is that failed also.

The reason I simply delete the directory is that we have 3 HP printers plus
a coouple of HP scanners and one All-In-One. These seem to interact
(somehow) so this is just a quick and dirty start over drill. I got
frustrated last time I tried to go at it one by one.

As for the liveCD, this is one place that I coudn’t get things straight from
the liveCD because of the mess with CUPS. I guess I could have pulled the
plugs on the other stuff but again, I was getting frustrated.


Will Honea

The bugreport has been followed by a few exchanges and finally I have downloaded the rpm package and 'manually’compiled, built and installed the hplip package. This resulted, yesterday, in a functioning printer:
Testpage was printed successfully as well as a one-page text in from LibreOffice.
In the evening the pc and the printer were switched off.

Today, after starting up oS-11.4, printing was not possible. CUPS had a (by now well-known) error message: “/usr/lib/cups/backend/hp failed”.
Maybe unwisely, I have used Yast to delete the printer and tried to re-install by starting with Yast and then clicking on “use hp-setup”. The printer was not recognized until I entered its usb location (002:003). At the next step a click on “add printer” was succesfull. However, printing failed with the above Cups error message.
Next: removed printer as before. Then deleted all files produced from the rpm package (NOT the downloaded rpm package itself) and again did the compile etc. sequence. This ends in hp-lip starting. Again, printing failed.

Right now, I am pretty sure of the following;

  1. The hardware, including usb-cable and usb-socket is ok.
  2. No software modules are missing,

and I have a strong suspicion that hplip has a problem in dealing with the usb and that this is associated with libusb.
On an Ubuntu forum I found the suggestion that there was a regression problem in a recent version of libusb, but I could not match the versio numbers with those in oS-11.4.
Conclusion: more head scratching may help :slight_smile:

Hi, I am not sure I fully understand your problem, but it seems to me that mine is similar.
I try to work with Suse 11.4 on KDE 4.6 to run a HP Laserjet 4000 with a USB parallel printer adapter. The first installation with Yast works very well ( printer detection and configuration).
But once I restart, the connection is not longer detected. The only thing to do is to delete the printer and to install again.
Than in the start up of linux I can find the following errors:
usb 2-4 device not accepted 4, error 32 (the pinter is on usb 4) or
12.857074 uss720 async completed:urb error 32

I have to shut down ( no re-boot) the computer as often until these error codes do not appear any more. Than I can reinstall the printer and the detection works well.

I have no solution, but perhaps this is similar in you case and gives new ideas.

Sebastian

Hi!

I’ve been through this thread this afternoon trying to find an answer to this issue that I also had exactly as you describe, but in Ubuntu Natty.

As I’ve found the f*****g answer (I’ve been days through this >:( ), I need to share it here with you.
After days of searching for a solution finally the headache is gone!!! rotfl!

bahman.kahinpour posts in foo2zjs forums his workaround to this issue in FreeBSD, but I think the distro doesn’t matter almost at all, as all you have to do is disable the printer’s “Smart Install” option. Use the file stored in the original driver-cd named SIUtility.exe in UTIL folder and choose printer disable (better than pc disable).

When I came back to ubuntu, p1102 just installed all by itself just as I plugged in the usb… I did nothing else but plug it!

Hope this works for you too.

@Naceira: Thank you for sharing your solution/workaround !
I have connected the printer to a Win-XP machine, found the UTIL folder and ran the SIUtility. Unfortunately, it returns with an error message stating that it could not connect to the printer. Instead of wasting time on experimenting with Win-XP I prefer to live with my personal workaround: rebooting from 11.4 to 11.2. When 11.2 is running, I connect the printer to the mains and to a (any) USB port. This procedure/ritual works all the time.
…sigh…
But thanks anyway!

Quoting from the link provided by Naceira

Note: {HP’s propietary software} HPLIP 3.10.9 doesn’t work for this printer.

** PART ONE: Disable the fake CD-ROM feature **

The printer has a built-in fake CD-ROM feature which prevents it from working correctly on non-Windows PCs. Once it is connected to a Windows PC, a CD-ROM appears containing Windows drivers. In order for HP LaserJet P1102 to work correctly on a FreeBSD PC, you must disable this feature.

1.Connect the printer to a Windows PC. (Unfortunately you have to connect it to a Windows PC which is too bad.)
2.Insert the original driver CD. (The physical CD-ROM that ships with the product, NOT THIS FAKE CD-ROM).
3.Run SIUtility.exe or SIUtility64.exe from UTIL folder to disable this fake CD feature. (It’s called “HP Smart Install”

Yet, this HPLIP page seems to suggest it should just work as long as the proprietary plug-in is included

This printer REQUIRES a downloadable driver plug-in. Use hp-setup to install the printer, and to download and install the plug-in. In general, required driver plugins are required for printing support. Driver plug-ins are released under a proprietary (non-open) license and are not part of the HPLIP tarball release.

So, I wonder if this just affects recent HPLIP versions, or has arisen because of this hardware not being handled correctly (re exposing the printing interface/disabling the ‘fake CD’ storage)? Have bug reports been submitted?

@deano_ferrari:

  • Yes, the proprietary plugin has been loaded during the setup.
  • Yes, the bug has been reported (see #30).
    To me it is strange that lsusb correctly detects the printer while the driver seems to be unable to access it.

Happy to inform the forum that the hp-1102 printer is functioning flawlessly when installed under openSUSE-12.1-RC2
Thanks again for helping!

Thanks for the update :slight_smile: