LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-01-2005, 05:25 PM   #1
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Rep: Reputation: 15
HP DeskJet 3520 / Linux / CUPS Issues?


I'm trying to install my HP DeskJet 3520. I have Slackware 10 with the 2.4.xx kernel. The printer is USB.

I installed the latest hpijs drivers and have the CUPS that's in the Slackware -current upgrade from Swaret.

I don't have X on the system, so everything is done by command line.

I can install everything from http://localhost:631

It says the printer is ready and is accepting connections, and shows the serial number and everything.

When I try to print a test page from http://localhost:631, nothing prints. When I check the Job info, it says the job was aborted.

Any ideas?
 
Old 02-01-2005, 05:37 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Do you have foomatic-db and foomatic-filters installed,also some people have had to reinstall cups to get it to work,that printer should work.
 
Old 02-01-2005, 06:12 PM   #3
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Original Poster
Rep: Reputation: 15
I didn't have that installed, but I just did, and reinstalled CUPS through Swaret (uninstalled and reinstalled).

Same issue
 
Old 02-01-2005, 06:26 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
try this;
Code:
# touch test.txt
# echo "Hello World" > test.txt
# cat test.txt > /dev/usb/lp0
what happens?
 
Old 02-01-2005, 06:43 PM   #5
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Original Poster
Rep: Reputation: 15
Nothing. No errors or anything.

do I have to do anything with the foomatic packages after they are installed?

Last edited by mindfrost82; 02-01-2005 at 06:44 PM.
 
Old 02-01-2005, 06:47 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
post lsmod
 
Old 02-01-2005, 06:49 PM   #7
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Original Poster
Rep: Reputation: 15
Module Size Used by Not tainted
lp 6724 0 (autoclean)
printer 7744 0
parport_pc 14788 1
parport 23336 1 [lp parport_pc]
uhci 24444 0 (unused)
usbcore 59308 1 [printer uhci]
ide-scsi 9328 0
tulip 40352 1
crc32 2880 0 [tulip]
agpgart 43940 0 (unused)
 
Old 02-01-2005, 07:28 PM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
modprobe usblp
what happens,nothing is good
then /etc/init.d/cupsd restart or how slackware stops then starts cups

Last edited by comprookie2000; 02-01-2005 at 07:31 PM.
 
Old 02-01-2005, 07:30 PM   #9
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Original Poster
Rep: Reputation: 15
modprobe: Can't locate module usblp
 
Old 02-01-2005, 07:43 PM   #10
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
May be compiled in the kernel,if you want we can try this;
Use the output of the first two grep statements to fill in the last foomatic-configure command)
# grep $printer_model /usr/share/foomatic/db/source/printer/*
# grep $printer_ID /usr/share/foomatic/db/source/driver/*
# foomatic-configure -s cups -p $printer_model_number -c file:$print_device_path -n queue name -d driver
It will be like this;
foomatic-configure -s cups -p HP-DeskJet_3520 -c file:/dev/usb/lp0 -n HP -d hpijs
restart cups chmod a+x /etc/rc.d/rc.cups /etc/rc.d/rc.cups stop /etc/rc.d/rc.cups start
If that works go to localhost:631 and you should see a printer HP,try and print a test page

Last edited by comprookie2000; 02-01-2005 at 07:58 PM.
 
Old 02-01-2005, 07:55 PM   #11
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Original Poster
Rep: Reputation: 15
The first two grep statements didn't return anything.
 
Old 02-01-2005, 08:00 PM   #12
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
cd /usr/share
ls
is foomatic there?you need it to print with hpjis
 
Old 02-01-2005, 08:00 PM   #13
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Original Poster
Rep: Reputation: 15
I put in your command for foomatic-configure and it created a new printer, but the same thing happens when i try to print a test page from CUPS
 
Old 02-01-2005, 08:01 PM   #14
mindfrost82
Member
 
Registered: Apr 2003
Distribution: Slackware
Posts: 60

Original Poster
Rep: Reputation: 15
It's under /usr/local/share
 
Old 02-01-2005, 08:07 PM   #15
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
try dmesg | tail we should see somthing like
hub.c: USB new device connect on bus2/2, assigned device number 2
printer.c: usblp0: USB bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1104
also found this;
Make sure you don't have lprng running, if you even still have it on your system. Me, I like to remove lprng with pkgtool to make sure there are no conflicts.also this

For others who may need to know this, you can get a debug log for cups this way:

<< Edit /etc/cups/cupsd.conf (or wherever this configuration file is installed in your case) to have the line "LogLevel debug" there. Then restart your CUPS daemon ["/etc/rc.d/rc.cups start" for slackware]...

Now print a job. Watch what is written to your CUPS error log. It normally sits in /var/log/cups/error_log. In debug level, nearly every action of the CUPS daemon is logged. You can see which filters and backends are called in which order. Very often you'll get a hint about what is missing for the print job to succeed. >>

Last edited by comprookie2000; 02-01-2005 at 08:19 PM.
 
  


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
CUPS and hp deskjet 450 bird603568 Slackware 6 06-17-2005 08:37 PM
Problems with CUPS and an HP DeskJet 722c AlgebraicSpore Linux - Hardware 4 09-06-2004 08:20 PM
Deskjet 920C and CUPS Freezing toySOILDer Linux - Hardware 0 02-09-2004 03:32 PM
Cups, Debian, and a DeskJet teacup LinuxQuestions.org Member Success Stories 0 12-29-2003 11:22 PM
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 10:36 PM.

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