LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-09-2005, 09:41 AM   #1
Jan_W
LQ Newbie
 
Registered: Mar 2003
Location: Leuven/Belgium
Distribution: Fedora Core 3
Posts: 16

Rep: Reputation: 0
HP Laserjet not printing


Hi,

I have a hp laserjet (5l series) printer. When I want to print something, nothing happens. When I check the job with the cups web interface, it says it's completed. The printer was detected right by the "probing new hardware" thing at startup and I checked the configuration with cups. Everything seems ok. I'm using fedora core 3. It still works under windows so i don't think the printer is broke.
Anyone who knows what to do about it?
Thanks,

Jan
 
Old 05-10-2005, 01:49 AM   #2
funkydan2
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: VectorLinux; Ubuntu
Posts: 135

Rep: Reputation: 15
Which driver are you using?

Have a search on the forum for 'LaserJet-5l'. You don't want to use the recommended driver, but a different one. I'm not at my linux box right now, so I can't remember which one.

Daniel
 
Old 05-10-2005, 02:15 AM   #3
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Was the printer working before? Is it a new installation?

I would open the Print Manager first and check that It shows the correct Driver and it is pointing to /dev/lp0 and that CUPS is selected. You could also remove and add it again but here are some things to try first:

Try opening a root terminal and type:
# service cups status

if it's not running:
# /etc/init.d/cupsys start

If it is running:
# /etc/init.d/cupsys restart

Check the status:
# lpstat -v

Then try a test page to see if it sends to /lp0
# cat /usr/share/cups/data/testprint.ps > /dev/lp0

Good Luck

KC
 
Old 05-10-2005, 10:46 AM   #4
Jan_W
LQ Newbie
 
Registered: Mar 2003
Location: Leuven/Belgium
Distribution: Fedora Core 3
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for the replies, but it's still not working. This is the information i've got from the printing manager:

Type: local printer
State: iddle (accepting jobs)
Location: /dev/lp0
Description:
URI: ipp://**-*-***-***.kotnet.org:631/printers/lp0

Device: parallel:/dev/lp0
Model: HP LaserJet 5 series - CUPS+Gimp-Print v4.2.7

Print system currently used: CUPS

I've tried the different commands:

1) bash: service: command not found
2)bash: /etc/init.d/cupsys: No such file or directory
3)bash: /etc/init.d/cupsys: No such file or directory
4)device for lp0: parallel:/dev/lp0
5)bash: /dev/lp0: No such device or address

I'm using the foomatic/ljet4 drivers
Hope this information helps someone
Thanks,

Jan
 
Old 05-10-2005, 07:11 PM   #5
funkydan2
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: VectorLinux; Ubuntu
Posts: 135

Rep: Reputation: 15
If those commands aren't working, are you sure you're running them as root?

Also - if you're using the foomatic drivers, why does the output from the Print Manager say you're using the GIMP drivers?

Daniel
 
Old 05-11-2005, 06:14 AM   #6
Jan_W
LQ Newbie
 
Registered: Mar 2003
Location: Leuven/Belgium
Distribution: Fedora Core 3
Posts: 16

Original Poster
Rep: Reputation: 0
Hmm, i checked it and with model it says: HP Laserjet 5l foomatic/ljet4. Don't know where I got "gimp" from
And yes, I was running them as root.
 
Old 05-11-2005, 06:54 PM   #7
funkydan2
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: VectorLinux; Ubuntu
Posts: 135

Rep: Reputation: 15
If /etc/init.d/cupsys and /dev/lp0 doesn't exists you are in trouble!

Are you sure cups is installed? And why isn't there an lp0 device? That seems very strange.

Daniel
 
Old 05-12-2005, 08:15 AM   #8
Jan_W
LQ Newbie
 
Registered: Mar 2003
Location: Leuven/Belgium
Distribution: Fedora Core 3
Posts: 16

Original Poster
Rep: Reputation: 0
I can browse to /dev and lp0 does exist. /etc/init.d/cupsys doesn't exist though /etc/init.d/cups and /etc/init.d/cups-config-daemon do exist.
I did the full fedora core 3 install and I can select CUPS at the printing manager (where it says: "Print system currently used"). When I try to install cups-1.1.22-0.rc1.8.5.i386.rpm it says it's allready installed. So I guess cups is installed.
It all worked fine with red hat 9, why won't it work now
 
Old 05-12-2005, 03:14 PM   #9
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Did you try to install Cups using the package mgr or just used rpm... Yes, it is probably installed but your missing or have currupted critical files needed by cups.

Use the package manager to un-install cups first then, try the Install again.

KC
 
Old 05-16-2005, 05:43 PM   #10
Jan_W
LQ Newbie
 
Registered: Mar 2003
Location: Leuven/Belgium
Distribution: Fedora Core 3
Posts: 16

Original Poster
Rep: Reputation: 0
Kencaz, you might be right. I just used rpm. When I use the package manager and I uncheck cups (in printing support) and i try update, it says there are 2 unlocatable packages: cups and /usr/bin/lpr. It gives me: "The following packages could not be found. Installation can not continue untill they are installed."
When I try to install cups (with rpm), it's still telling me that the package is allready installed. How can I fix this?
 
Old 05-17-2005, 03:41 AM   #11
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Well, I would try to un-install using rpm and then install through the package mgr. That is why they make package mgr's so the program can handle the details and you won't have to figure out what goes where.

KC
 
Old 05-17-2005, 09:04 AM   #12
Jan_W
LQ Newbie
 
Registered: Mar 2003
Location: Leuven/Belgium
Distribution: Fedora Core 3
Posts: 16

Original Poster
Rep: Reputation: 0
Well, i uninstalled cups (rpm -evv --nodeps cups). Cups was unchecked at the packagemanager (so i guess the uninstall was succesfull). I installed it again with the package manager. I'm still having the same problem. Did all the tests again with the same results. More ideas?
So far thanks for your help,

Jan

P.S.: Maybe something that can help. When I go to the printer configuration tool, it says: "Printer not connected, will retry in 30 seconds". Though, when i boot to windows, it works fine.

Last edited by Jan_W; 05-17-2005 at 10:15 AM.
 
Old 05-17-2005, 06:17 PM   #13
funkydan2
Member
 
Registered: Mar 2004
Location: Brisbane, Australia
Distribution: VectorLinux; Ubuntu
Posts: 135

Rep: Reputation: 15
This is strange - because this printer has *always* behaved well for me under Linux. (Well, if you choose the wrong driver it does ugly printing, but at least it prints.)

I trust you're choosing the correct port. It seems that CUPS identifies the printer on the port, so it would be hard to stuff up.

Maybe you should check whether the modules for your printer port are loaded. From memory the module is called lp so 'lsmod | grep lp' should tell you that (though they may be compiled into the kernel with Fedora).
Also, you could try going into your BIOS setup and choosing a different protocol for your parallel ports. I remember an old computer that I had which had 2 or 3 different parallel port protocols - maybe choosing a different one will work better under Linux?

Daniel
 
Old 05-23-2005, 10:10 AM   #14
Jan_W
LQ Newbie
 
Registered: Mar 2003
Location: Leuven/Belgium
Distribution: Fedora Core 3
Posts: 16

Original Poster
Rep: Reputation: 0
I've never had problems with it either (red hat 8 and red hat 9).
When I type "lsmod | grep lp" (as root) it says: "lsmod : command not found".
I've got 4 bios settings for the parallel port: normal, epp, ecp and epp+ecp. Tried them all, not one worked.

Jan
 
Old 05-26-2005, 01:49 PM   #15
Jan_W
LQ Newbie
 
Registered: Mar 2003
Location: Leuven/Belgium
Distribution: Fedora Core 3
Posts: 16

Original Poster
Rep: Reputation: 0
Allright, it's working now.
I had to add:

alias parport_lowlevel parport_pc
options parport_pc io=0x378,0x278 irq=7,auto

at the end of /etc/modprobe.conf (found it on another forum).
Thanks all for the help though,

Jan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 not printing (HP LaserJet 5P) killerbob Slackware 6 06-04-2005 10:02 AM
Printing headache -- HP Laserjet 4L Aura_Bleu Linux - Hardware 6 03-20-2005 01:21 AM
Printing problem, HP LaserJet 6L, Slack 10.0 Adan Linux - Hardware 3 12-01-2004 06:05 PM
Problems printing with an Hp LaserJet nostrum Linux - General 1 09-06-2004 07:37 PM
USB Printing ... HP LaserJet 1200 FlatZ28 Slackware 11 01-19-2004 09:51 PM


All times are GMT -5. The time now is 04:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration