LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   HP DeskJet Printer+CUPS problem (https://www.linuxquestions.org/questions/linux-hardware-18/hp-deskjet-printer-cups-problem-596179/)

binarybob0001 10-31-2007 05:03 PM

HP DeskJet Printer+CUPS problem
 
Since I am a complete n00b to printing in linux, I went to manage printers which opened up a web page with URL http://localhost:631/. The printer I have is an HP DeskJet 895Cse. I added the printer with the following options.
Description: HP DESKJET 895C
Location: Local Printer
Make and Model: HP DeskJet 895C - CUPS+Gimp-Print v4.2.7
Printer State: idle, accepting jobs, published.
Device URI: usb://HP/DESKJET%20895C?serial=MX92H1T0T9GJ
When I tell it to print a test page, it seems to send it to the printer. Usually the printer will print the first line of text then stop then do nothing. When I look in the que, CUPS thinks the job was completed. Any ideas of what's going on or where I should look for answers?

pixellany 10-31-2007 07:09 PM

If I do a virtual install of this printer on my machine, it installs the "Foomatic/HPLIP" driver, which it flags as "recommended".

In my package manager, there are multiple packages which show up using (one at a time) "hplip" and "foomatic" in the search dialog. All of these are installed.

don't know if any of this is relevant, but I have few issues with HP printers as long as I use the recommended drivers.

Peacedog 10-31-2007 07:28 PM

Hi binarybob0001, Try the hpijs driver and try this Device URI.

Code:

usb:/dev/usb/lp0
Also have a look at rc.modules and make sure usbprinter is not commented.
Good luck. ;-)

binarybob0001 10-31-2007 07:44 PM

Well, I haven't gotten anywhere so far. Do I have all the right modules?
Code:

bobby@Veronica:~$ lsmod
Module                  Size  Used by
usblp                  11136  0
sd_mod                19984  0
usb_storage            32896  0
scsi_mod              77188  2 sd_mod,usb_storage
snd_seq_oss            28672  0
snd_seq_midi_event      5888  1 snd_seq_oss
snd_seq                42576  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            34976  0
snd_mixer_oss          13440  1 snd_pcm_oss
ipv6                  205412  10
snd_emu10k1x          14628  0
snd_rawmidi            18464  1 snd_emu10k1x
snd_seq_device          6540  3 snd_seq_oss,snd_seq,snd_rawmidi
snd_ac97_codec        91684  1 snd_emu10k1x
snd_pcm                65416  3 snd_pcm_oss,snd_emu10k1x,snd_ac97_codec
snd_timer              18436  2 snd_seq,snd_pcm
snd                    42340  10 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_emu10k1x,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer
ac97_bus                1920  1 snd_ac97_codec
snd_page_alloc          7560  2 snd_emu10k1x,snd_pcm
ehci_hcd              27788  0
uhci_hcd              21004  0

What did you mean by a virtual install pixellany? If I change the driver to HP DeskJet 895C Foomatic/hpijs, it says there is an I/O error and that /usr/lib/cups/filter/foomatic-rip failed. I tried the URL; my browser has never heard of a protocol usb.

pixellany 10-31-2007 08:08 PM

Virtual install simply means I have no printer connected--but I set up a queue regardless. This simply lets me see what the driver options are.

Note that I said Foomatic/HPLIP Again, no clue how this might relate to your issue.

binarybob0001 10-31-2007 09:28 PM

Where did you get the ppd file?

pixellany 10-31-2007 10:20 PM

Quote:

Originally Posted by binarybob0001 (Post 2944019)
Where did you get the ppd file?

I would assume that it's in the HPLIP or Foomatic packages I mentioned earlier. I'm still pretty fuzzy about the details of how this all works.

I just checked in my home machine and it installs Foomatic/HPIJS---I may have misread the one at work......

Note that you can specify a ppd file during printer setup--thus you can get one direct from HP.

eduardo451 10-31-2007 10:39 PM

Quote:

Any ideas of what's going on or where I should look for answers?
Have you looked at your cups error log? Should be at /var/log/cups/error_log. What does it say?

boris-78 11-01-2007 05:31 AM

I've experienced a similar problem with my hp Deskjet 5440
I've solved it by going to the /etc/rc.d directory, checking if rc.cups is executed, and then making rc.hplip executable. Then I used the "HP device manager" to configure the printer.

binarybob0001 11-01-2007 08:51 AM

Well, making rc.lplip executable was certainly a step in the right direction, but it didn't solve my problem. I currently have the printer configured like this.
Description: HP DeskJet 895C
Location: Local Printer
Make and Model: HP DeskJet 895C Foomatic/hpijs (recommended)
Printer State: processing, accepting jobs, published.
Device URI: hp:/usb/DeskJet_895C?serial=MX92H1T0T9GJ
Here is the error log. Maybe one of you guys can see what's happening.
Code:

I [01/Nov/2007:06:51:16 -0700] Saving job cache file "/var/cache/cups/job.cache"...
I [01/Nov/2007:06:52:03 -0700] Listening to 127.0.0.1:631 (IPv4)
I [01/Nov/2007:06:52:03 -0700] Listening to /var/run/cups/cups.sock (Domain)
I [01/Nov/2007:06:52:03 -0700] Loaded configuration file "/etc/cups/cupsd.conf"
I [01/Nov/2007:06:52:03 -0700] Using default TempDir of /var/spool/cups/tmp...
I [01/Nov/2007:06:52:03 -0700] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [01/Nov/2007:06:52:03 -0700] Configured for up to 100 clients.
I [01/Nov/2007:06:52:03 -0700] Allowing up to 100 client connections per host.
I [01/Nov/2007:06:52:03 -0700] Using policy "default" as the default!
I [01/Nov/2007:06:52:03 -0700] Full reload is required.
I [01/Nov/2007:06:52:03 -0700] Loaded MIME database from '/etc/cups': 34 types, 38 filters...
I [01/Nov/2007:06:52:03 -0700] Loading job cache file "/var/cache/cups/job.cache"...
I [01/Nov/2007:06:52:03 -0700] Full reload complete.
I [01/Nov/2007:06:52:03 -0700] Listening to 127.0.0.1:631 on fd 0...
I [01/Nov/2007:06:52:03 -0700] Listening to /var/run/cups/cups.sock on fd 2...
E [01/Nov/2007:06:52:03 -0700] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
I [01/Nov/2007:06:52:47 -0700] commptr=""
I [01/Nov/2007:06:52:47 -0700] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=1484)
I [01/Nov/2007:06:52:47 -0700] commptr="1+0+4+requested-attributes=all"
I [01/Nov/2007:06:52:47 -0700] Started "/usr/lib/cups/daemon/cups-deviced" (pid=1485)
I [01/Nov/2007:06:54:01 -0700] commptr=""
I [01/Nov/2007:06:54:01 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1505)
I [01/Nov/2007:06:54:04 -0700] commptr="?op=print-test-page"
I [01/Nov/2007:06:54:04 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1506)
I [01/Nov/2007:06:54:04 -0700] Adding start banner page "none" to job 8.
I [01/Nov/2007:06:54:04 -0700] Adding end banner page "none" to job 8.
I [01/Nov/2007:06:54:04 -0700] Job 8 queued on "HP_DeskJet_895C_USB_MX92H1T0T9GJ_HPLIP" by "guest".
I [01/Nov/2007:06:54:04 -0700] Started filter /usr/lib/cups/filter/pstops (PID 1507) for job 8.
I [01/Nov/2007:06:54:04 -0700] Started filter /usr/lib/cups/filter/foomatic-rip (PID 1508) for job 8.
I [01/Nov/2007:06:54:04 -0700] Started backend /usr/lib/cups/backend/hp (PID 1509) for job 8.
I [01/Nov/2007:06:54:06 -0700] commptr=""
I [01/Nov/2007:06:54:06 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1529)
I [01/Nov/2007:06:54:16 -0700] commptr=""
I [01/Nov/2007:06:54:16 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1546)
I [01/Nov/2007:06:54:27 -0700] commptr=""
I [01/Nov/2007:06:54:27 -0700] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=1547)
I [01/Nov/2007:06:54:35 -0700] commptr=""
I [01/Nov/2007:06:54:35 -0700] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=1548)
I [01/Nov/2007:06:54:35 -0700] commptr="1+0+4+requested-attributes=all"
I [01/Nov/2007:06:54:35 -0700] Started "/usr/lib/cups/daemon/cups-deviced" (pid=1549)
E [01/Nov/2007:06:54:37 -0700] [Job 8] check device; will retry in 30 seconds...



All times are GMT -5. The time now is 02:21 PM.