Are there any HP/CUPS experts hereabouts?
I'm having a problem getting my shiny new Officejet 7310 printer to work on my Slackware 10 system. It was a bit of a beast to install on Windows 2000 so problems on Linux as well are nut unexpected.
I have built and installed the latest hpijs (1.7.1) and the latest hplip (0.8.7), that went fairly smoothly except that the hplip startup scripts are for RedHat so I had to do a little bit of work to integrate them into the Slackware startup.
My existing Deskjet 840C and Laserjet 1150 work fine so CUPS is basically OK.
However the Officejet 7310 obstinately refuses to print even though everything appears OK, jobs queue up, it looks like it should work, but no printout.
CUPS does report a problem but I can't find any help on how to resolve it, on the "Manage Printers" page in CUPS for the Officejet 7310 it says:-
Description: Officejet 7310 Location: Study Printer State: stopped, accepting jobs. "open device failed; will retry in 30 seconds..." Device URI: hp:/net/Officejet_7300_series?ip=192.168.13.44
I can ping 192.168.13.44 OK so the printer is connected, and I can (now) print to it from Win2k. Can anyone suggest what the "open device failed" message indicates is wrong?
(I am using the support forums at http://sourceforge.net where the HP printer software is supported too)
Chris Green wrote:
Are there any HP/CUPS experts hereabouts?
I'm having a problem getting my shiny new Officejet 7310 printer to work on my Slackware 10 system. It was a bit of a beast to install on Windows 2000 so problems on Linux as well are nut unexpected.
I have built and installed the latest hpijs (1.7.1) and the latest hplip (0.8.7), that went fairly smoothly except that the hplip startup scripts are for RedHat so I had to do a little bit of work to integrate them into the Slackware startup.
My existing Deskjet 840C and Laserjet 1150 work fine so CUPS is basically OK.
However the Officejet 7310 obstinately refuses to print even though everything appears OK, jobs queue up, it looks like it should work, but no printout.
CUPS does report a problem but I can't find any help on how to resolve it, on the "Manage Printers" page in CUPS for the Officejet 7310 it says:-
Description: Officejet 7310 Location: Study Printer State: stopped, accepting jobs. "open device failed; will retry in 30 seconds..." Device URI: hp:/net/Officejet_7300_series?ip=192.168.13.44
I can ping 192.168.13.44 OK so the printer is connected, and I can (now) print to it from Win2k. Can anyone suggest what the "open device failed" message indicates is wrong?
(I am using the support forums at http://sourceforge.net where the HP printer software is supported too)
Have you run ptal-init setup?
Ian
On Sat, Feb 05, 2005 at 06:50:24PM +0000, Ian bell wrote:
Chris Green wrote:
Are there any HP/CUPS experts hereabouts?
I'm having a problem getting my shiny new Officejet 7310 printer to work on my Slackware 10 system. It was a bit of a beast to install on Windows 2000 so problems on Linux as well are nut unexpected.
I have built and installed the latest hpijs (1.7.1) and the latest hplip (0.8.7), that went fairly smoothly except that the hplip startup scripts are for RedHat so I had to do a little bit of work to integrate them into the Slackware startup.
My existing Deskjet 840C and Laserjet 1150 work fine so CUPS is basically OK.
However the Officejet 7310 obstinately refuses to print even though everything appears OK, jobs queue up, it looks like it should work, but no printout.
CUPS does report a problem but I can't find any help on how to resolve it, on the "Manage Printers" page in CUPS for the Officejet 7310 it says:-
Description: Officejet 7310 Location: Study Printer State: stopped, accepting jobs. "open device failed; will retry in 30 seconds..." Device URI: hp:/net/Officejet_7300_series?ip=192.168.13.44
I can ping 192.168.13.44 OK so the printer is connected, and I can (now) print to it from Win2k. Can anyone suggest what the "open device failed" message indicates is wrong?
(I am using the support forums at http://sourceforge.net where the HP printer software is supported too)
Have you run ptal-init setup?
As I understand it HPLIP replaces ptal-init. I have run the HPLIP startup, it's in my rc.d directory startup stuff:-
rc.hplip startup
... and it runs OK.
Chris Green wrote:
On Sat, Feb 05, 2005 at 06:50:24PM +0000, Ian bell wrote:
snip
Have you run ptal-init setup?
As I understand it HPLIP replaces ptal-init. I have run the HPLIP startup, it's in my rc.d directory startup stuff:-
rc.hplip startup
... and it runs OK.
You also need to make sure this script runs BEFORE the cups daemon is started.
Ian
On Sat, Feb 05, 2005 at 10:56:12PM +0000, Ian bell wrote:
Chris Green wrote:
On Sat, Feb 05, 2005 at 06:50:24PM +0000, Ian bell wrote:
snip
Have you run ptal-init setup?
As I understand it HPLIP replaces ptal-init. I have run the HPLIP startup, it's in my rc.d directory startup stuff:-
rc.hplip startup
... and it runs OK.
You also need to make sure this script runs BEFORE the cups daemon is started.
Yes, I have done that too. In /etc/rc.d/rc.M:-
# Start the HP driver hplip. if [ -x /etc/rc.d/rc.hplip ]; then /etc/rc.d/rc.hplip restart fi
# Start the print spooling system. This will usually be LPD or CUPS. if [ -x /etc/rc.d/rc.cups ]; then # Start CUPS: /etc/rc.d/rc.cups start elif [ -x /usr/sbin/lpd ]; then # Start LPD: echo "Starting the line printer daemon: /usr/sbin/lpd" /usr/sbin/lpd fi
Chris Green wrote:
On Sat, Feb 05, 2005 at 10:56:12PM +0000, Ian bell wrote:
You also need to make sure this script runs BEFORE the cups daemon is started.
Yes, I have done that too. In /etc/rc.d/rc.M:-
# Start the HP driver hplip. if [ -x /etc/rc.d/rc.hplip ]; then /etc/rc.d/rc.hplip restart fi # Start the print spooling system. This will usually be LPD or CUPS. if [ -x /etc/rc.d/rc.cups ]; then # Start CUPS: /etc/rc.d/rc.cups start elif [ -x /usr/sbin/lpd ]; then # Start LPD: echo "Starting the line printer daemon: /usr/sbin/lpd" /usr/sbin/lpd fi
I know you realise this works only if the printer is switched on and connected to the PC when the PC is turned on. And I assume you have a suitable ppd file and saved it in the /usr/share/cups/model/ directory? If you have done all this and it still does not work I am at a loss to see why.
Ian
On Sun, Feb 06, 2005 at 06:19:17PM +0000, Ian bell wrote:
Chris Green wrote:
On Sat, Feb 05, 2005 at 10:56:12PM +0000, Ian bell wrote:
You also need to make sure this script runs BEFORE the cups daemon is started.
Yes, I have done that too. In /etc/rc.d/rc.M:-
# Start the HP driver hplip. if [ -x /etc/rc.d/rc.hplip ]; then /etc/rc.d/rc.hplip restart fi
# Start the print spooling system. This will usually be LPD or CUPS. if [ -x /etc/rc.d/rc.cups ]; then # Start CUPS: /etc/rc.d/rc.cups start elif [ -x /usr/sbin/lpd ]; then # Start LPD: echo "Starting the line printer daemon: /usr/sbin/lpd" /usr/sbin/lpd fi
I know you realise this works only if the printer is switched on and connected to the PC when the PC is turned on. And I assume you have a suitable ppd file and saved it in the /usr/share/cups/model/ directory? If you have done all this and it still does not work I am at a loss to see why.
The answer is in the thread here about libsnmp versus libnetsnmp.
I have it working now.
I'm using the network interface of the Officejet 7310. To build the network version of HPLIP it says one requires net-snmp version 5.1.2 or greater. What it doesn't point out is that the configure script builds quite happily without net-snmp and the warning message is in the middle of several hundred lines of ouput, the likelihood of noticing it unless you capture the output and then search for it is just about nil.
So my first problem was that I didn't notice that HPLIP was building without network ability.
Then when I *did* get and build net-snmp it turns out that a bug in the HPLIP configure script means that it looks for the wrong library (it looks for libsnmp.so rather than libnetsnmp.so) so it *still* doesn't build the network interface.
Finally when I fixed the configure script it built OK and now I have my Officejet 7310 working.
I suspect that the Linux versions that they tested the HPLIP build on (RedHat and SuSu I think) bodge the snmp libraries that that there still is a libsnmp.so to build against.