How to debug HPLIP backend

Asked by Narendra Babu H.C.

Hi

I am getting a error like the following when tried print using HPLIP on my system

"prnt/backend/hp.c 679: INFO: open device failed; will retry in 30 seconds..."

When i looked at hp.c the function failing was hpmud_open_device().

I inserted the debug statements into hpmud_open_device() function in io\hpmud\hpmud.c

But i couldn't get any of these statements into cupps/error_log or even on console.

Please let me know how to debug the hp backend. Is there any separate log system for this ???

Thanks
Narendra

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Narendra Babu H.C.
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

Usually this error means that the permissions are not correct.

Is the user part of the lp group? Can we get a copy of Montavista linux to test?

A

Revision history for this message
Narendra Babu H.C. (narendra-babu) said :
#2

Aaron,

I checked with my management and came to know that the copy of
montavista can't be shared because of licensing issues.
So I request you to throw me some ideas which I can work on, based on
your experience with HPLIP.

Regarding the user, the user is root.
I am trying to do all this from root.

The printer device on my target is /dev/usb/lp0/
But the HPLIP will says the URI as "Setting up device:
hp:/usb/hp_LaserJet_1160_series?serial=00CNK2F08325".
How these lp0 and device URI are linked ???
Is there any debug/log/trace mechanism with HPLIP ??
I tried to enable HP_DEBUG but I couldn't' get any debug messages
printed on to var/log/cups/error_log.

We definitely know that hpmud_open_device(argv[0], ma.prt_mode, &hd))
call from prnt/backend/hp.c is failing.

But this function is part of io\hpmud\hpmud.c. I tried to insert the
debug statements inside this function and none of them are getting
printed on the error_log. Please let me know where these debug messages
are logged ?

Thanks,
Narendra Babu H.C.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of
Aaron Albright
Sent: Saturday, October 25, 2008 12:04 AM
To: Babu HC, Narendra (GE Healthcare)
Subject: Re: [Question #48929]: How to debug HPLIP backend

Your question #48929 on HPLIP changed:
https://answers.launchpad.net/hplip/+question/48929

    Status: Open => Needs information

Aaron Albright requested for more information:
Usually this error means that the permissions are not correct.

Is the user part of the lp group? Can we get a copy of Montavista linux
to test?

A

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/hplip/+question/48929

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Narendra Babu H.C. (narendra-babu) said :
#3

Hi Aaron,

Your guess was correct
It was the permissions problem.
I corrected the permissions for /proc/bus/usb/002... devices and now it is printing.
Thanks again for the support.

Thanks,
Narendra Babu H.C.