LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-31-2007, 05:03 PM   #1
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Rep: Reputation: 30
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?
 
Old 10-31-2007, 07:09 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 10-31-2007, 07:28 PM   #3
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
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. ;-)

Last edited by Peacedog; 10-31-2007 at 07:35 PM.
 
Old 10-31-2007, 07:44 PM   #4
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Original Poster
Rep: Reputation: 30
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.

Last edited by binarybob0001; 10-31-2007 at 07:53 PM.
 
Old 10-31-2007, 08:08 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
Old 10-31-2007, 09:28 PM   #6
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Original Poster
Rep: Reputation: 30
Where did you get the ppd file?
 
Old 10-31-2007, 10:20 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by binarybob0001 View Post
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.
 
Old 10-31-2007, 10:39 PM   #8
eduardo451
LQ Newbie
 
Registered: Mar 2005
Posts: 26

Rep: Reputation: 15
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?
 
Old 11-01-2007, 05:31 AM   #9
boris-78
LQ Newbie
 
Registered: Sep 2006
Location: Pescara, Italy
Distribution: Slackware 12
Posts: 16

Rep: Reputation: 0
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.
 
Old 11-01-2007, 08:51 AM   #10
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Original Poster
Rep: Reputation: 30
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...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing a HP DeskJet 6840dt wireless printer kabrin0131 Ubuntu 0 09-28-2006 02:13 AM
Knoppix - problem in setup HP Deskjet 5740 USB printer satimis Linux - Distributions 3 06-07-2005 07:32 AM
SLAX-Live CD: Problem with installing HP Deskjet 890C Printer ch.keller Linux - Hardware 1 06-04-2005 03:03 AM
HP DeskJet 5150 printer problem! plm General 2 07-31-2004 06:42 AM
HP Deskjet Plus under CUPS jjge Linux - Software 2 08-08-2003 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration