LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-09-2005, 08:46 PM   #1
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Rep: Reputation: 15
hp laserjet 6L problem


hey all,
I have a HP LaserJet 6L printer in my room which worked perfectly on the windows of my father. Now i've owned it and i got a little trouble:
when a send a job to the printer it won't just print the page, it starts printing FOR EVER, white pages.
i have already looked up many tutos on the net : http://www.gentoo.org/doc/en/printing-howto.xml, and http://www.linuxprinting.org/show_pr...HP-LaserJet_6L and http://www.linuxprinting.org/cups-doc.html... and i didn't figure out why the printer does like this.
When i run gs -h there is the correct driver running. ( )
althought when i run :

Quote:
dmesg | grep -i print
it give me this :
Quote:
seventh@tux ~ $ dmesg | grep -i print
[ 27.428139] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
seventh@tux ~ $
and my printer is connected throught a parallel port.
i may think that the error comes from this anomaly.
and still when i run:
Quote:
tux seventh # gs -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=ljet4 -c "<</PageSize[Default]/ImagingBBox null>>setpagedevice" -c "<</HWResolution[Default]>>setpagedevice" -c "Default" -sOutputFile=- - | perl -p -0033 -e " s/^&l\d+[aA]/$&Default/;"
ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1
Error: /undefined in Default
Operand stack:
--nostringval-- PageSize --nostringval--
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1049/1417(ro)(G)-- --dict:0/20(G)-- --dict:68/200(L)--
Current allocation mode is local
Last OS error: 2
tux seventh #
can someone help me resolving this problem ?

thanks alot. i'd really appreciate a quick answer
by the way, i'm using a Gentoo distro.

fp

Last edited by piva.francesco; 09-11-2005 at 10:16 AM.
 
Old 09-09-2005, 09:05 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,809

Rep: Reputation: 151Reputation: 151
Re: hp laserjet 6L problem

Quote:
Originally posted by piva.francesco
hey all,
I have a HP LaserJet 6L printer in my room which worked perfectly on the windows of my father. Now i've owned it and i got a little trouble:
when a send a job to the printer it won't just print the page, it starts printing FOR EVER, white pages.



Are you sure there is still toner in the cartridge??

Quote:
i have already looked up many tutos on the net : http://www.gentoo.org/doc/en/printing-howto.xml, and http://www.linuxprinting.org/show_pr...HP-LaserJet_6L and http://www.linuxprinting.org/cups-doc.html... and i didn't figure out why the printer does like this.
When i run gs -h there is the correct driver running. ( )
althought when i run :


it give me this :
Code:
seventh@tux ~ $ dmesg | grep -i print
 [ 27.428139] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
 seventh@tux ~ $
Now I am using CUPS and when I do the grep I get this.

Code:
>$ dmesg | grep -i print
parport0: Printer, Hewlett-Packard HP LaserJet 6L

Mine is attached to the parallel port not USB you should try to stop the usblp driver from loading and get the parport driver loading.

Quote:
and my printer is connected throught a serial port.
i may think that the error comes from this anomaly.
and still when i run:


can someone help me resolving this problem ?

thanks alot. i'd really appreciate a quick answer
by the way, i'm using a Gentoo distro.

fp
You should try to setup the printer through the http://localhost:631 CUPS interface on the parallel port #1 and make sure that you have the foomatic-ppd package whatever it is called in Gentoo installed and use that driver (on my install called "HP LaserJet 6L Foomatic/ljet4 (recommended)").
 
Old 09-10-2005, 07:59 AM   #3
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Original Poster
Rep: Reputation: 15
thanks for answering, although, i've checked and I don't have any parallel port #1 -when i try to configure cups through http://localhost:631 !!
i have only serial port #1,2,3,4,5,6,7,8 ... is that the same thing? i really don't know. :s

-how do you make the printer use a spec driver?? i cannot figure out how i can do it... some more precision would be great, thanks.

-yes i still do have some toner in my cartridge. it worked before i got it up in my room...

thanks for answering... hope i can get through this problem, because it's been a while that i want to make my printer work.

fp
 
Old 09-10-2005, 10:47 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,809

Rep: Reputation: 151Reputation: 151
Quote:
Originally posted by piva.francesco
thanks for answering, although, i've checked and I don't have any parallel port #1 -when i try to configure cups through http://localhost:631 !!
i have only serial port #1,2,3,4,5,6,7,8 ... is that the same thing? i really don't know. :s

-how do you make the printer use a spec driver?? i cannot figure out how i can do it... some more precision would be great, thanks.

-yes i still do have some toner in my cartridge. it worked before i got it up in my room...

thanks for answering... hope i can get through this problem, because it's been a while that i want to make my printer work.

fp
Have you made sure that the module parport is getting loaded and you may want to check in your BIOS to make sure that the parallel port is enabled, the steps I take on Debian from the http://localhost:631/printers page in CUPS to setup the printer.

1) Click on Add Printer button.
2) Enter in root as user name and the root password in the dialog that pops up.
3) Enter in the Name, Location and Description in the page that comes up then click on Continue button.
4) The Device page is next in the Drop down menu that is there I have the choice of 3 different Parallel Port #1 one says (CANON) beside it another (EPSON) the last says (Hewlett-Packard HP LaserJet 6L) I choose this and hit Continue button.
5) Next page is model/driver I choose the HP then use Continue button.
6) Next page a huge list of HP printers I scroll down the list until I get to the selection HP LaserJet 6L Foomatic/ljet4 (recommended) (en) I select it and then use the Continue button once more.
7) CUPS tells me on the next page that printer printer_name_I_gave it has been successfully setup.
8) Go back to http://localhost:631/printers and use the Print Test Page button to print out a test page to see if it works.
 
Old 09-10-2005, 07:02 PM   #5
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Original Poster
Rep: Reputation: 15
well thanks a lot for making a such detailed answer. although, when I arrive at the 4th step, i don't have the choice to select Parallel Port. I Have only :
-AppSocket/HP JetDirect,
-Internet Printing Protocol (http),
-Internet Printing Protocol (ipp),
-LPD/LPR Host or Printer,
-SCSI Printer,
-Serial port #1 till 8,
-USB Port #1 till 16,
-Windows Printer via SAMBA

That's the main error I think.
can you figure out why I don't have listed the Parallel Ports? Shell I modprobe something or do any other similar operation?


thanks again for helping, even if the job isn't yet finished.


fp
 
Old 09-10-2005, 09:39 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,809

Rep: Reputation: 151Reputation: 151
Quote:
Originally posted by piva.francesco
well thanks a lot for making a such detailed answer. although, when I arrive at the 4th step, i don't have the choice to select Parallel Port. I Have only :
-AppSocket/HP JetDirect,
-Internet Printing Protocol (http),
-Internet Printing Protocol (ipp),
-LPD/LPR Host or Printer,
-SCSI Printer,
-Serial port #1 till 8,
-USB Port #1 till 16,
-Windows Printer via SAMBA

That's the main error I think.
can you figure out why I don't have listed the Parallel Ports? Shell I modprobe something or do any other similar operation?


thanks again for helping, even if the job isn't yet finished.


fp
Ok that is strange try as root modprobe parport parport_pc then run the setup again maybe even look in the dmesg to see if it detects the printer.
 
Old 09-11-2005, 07:13 AM   #7
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Original Poster
Rep: Reputation: 15
well I just figured out that I got any parport modules installed on my pc, I still don't understand. How do I put this modules into my kernel?

look what happens when I run as root:
tux linux # modprobe parport
FATAL: Module parport not found.
tux linux # modprobe parport_pc
FATAL: Module parport_pc not found.
tux linux #


and just before I went here: http://www.gentoo.org/doc/en/printing-howto.xml
in order to recompile my kernel with the modules and I've follown the exact instructions...
any clue about that?

why isn't it working with me... I've always got weird problems... snif!
thanks by the way


fp
 
Old 09-11-2005, 10:15 AM   #8
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Original Poster
Rep: Reputation: 15
please can someone help, I really need to make this printer work before Monday if possible.. :s

thanks for answering!

fp
 
Old 09-11-2005, 02:51 PM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,809

Rep: Reputation: 151Reputation: 151
Quote:
Originally posted by piva.francesco
well I just figured out that I got any parport modules installed on my pc, I still don't understand. How do I put this modules into my kernel?

look what happens when I run as root:
tux linux # modprobe parport
FATAL: Module parport not found.
tux linux # modprobe parport_pc
FATAL: Module parport_pc not found.
tux linux #


and just before I went here: http://www.gentoo.org/doc/en/printing-howto.xml
in order to recompile my kernel with the modules and I've follown the exact instructions...
any clue about that?

why isn't it working with me... I've always got weird problems... snif!
thanks by the way


fp
If you have recompiled the kernel as per that page then you have compiled in the support for the parallel port modules so when you do the modprobe there will be no modules for it to find so that error message would be normal in this case. Try using this on your kernel config file.

Code:
>$ grep -i parport /boot/config-2.6.12.5
CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_SERIAL=m
CONFIG_PARPORT_PC_FIFO=y
# CONFIG_PARPORT_PC_SUPERIO is not set
CONFIG_PARPORT_NOT_PC=y
# CONFIG_PARPORT_GSC is not set
CONFIG_PARPORT_1284=y
CONFIG_PARIDE_PARPORT=m
CONFIG_I2C_PARPORT=m
CONFIG_I2C_PARPORT_LIGHT=m
Now if you see =m then it is a module if =y then compiled into the kernel. I am not really sure where to go from here this problem seems really strange to me, one more thing you can try is holding down the power button for a few seconds and it should if I recall correctly print out a test page from the printer itself.
 
Old 09-12-2005, 02:49 PM   #10
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Original Poster
Rep: Reputation: 15
AHHHH!!! I don't know how, and why, but now I have the parallel port selection available. Although, I have : Parallel Port #1 (EPSON), Parallel Port #1 (CANON) and Parallel Port #1. why don't I have the Parallel Port #1 (Hewlett-Packard HP LaserJet 6L). Do you have any clue now that I have modprobed the modules.
I feel that I'll have my printer working before Wednesday...
Thanks for your help! but I still need some more...

see you

fp
 
Old 09-12-2005, 04:21 PM   #11
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,809

Rep: Reputation: 151Reputation: 151
Quote:
Originally posted by piva.francesco
AHHHH!!! I don't know how, and why, but now I have the parallel port selection available. Although, I have : Parallel Port #1 (EPSON), Parallel Port #1 (CANON) and Parallel Port #1. why don't I have the Parallel Port #1 (Hewlett-Packard HP LaserJet 6L). Do you have any clue now that I have modprobed the modules.
I feel that I'll have my printer working before Wednesday...
Thanks for your help! but I still need some more...

see you

fp
Thats good it looks like the foomatic-ppds package is not installed you should check to see. If they are not then install them or you can if you want go to http://www.linuxprinting.org and get the .ppd you need from them and follow the instructions for the printer on their site.
 
Old 09-13-2005, 03:37 PM   #12
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Original Poster
Rep: Reputation: 15
hmmmm, I have downloaded the ppd file for the HP Laserjet 6L, but I don't know where to store it, or how to use it. By the way, when I "dmesg | grep -i print" I still got the same thing :
Quote:
dmesg | grep -i print
[ 24.320820] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
I went also on a chan to ask for some help and someone told me to change something in the bios... is that right or not? can I have some further information please?

thanks again


fp
 
Old 09-13-2005, 08:45 PM   #13
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,809

Rep: Reputation: 151Reputation: 151
Quote:
Originally posted by piva.francesco
hmmmm, I have downloaded the ppd file for the HP Laserjet 6L, but I don't know where to store it, or how to use it. By the way, when I "dmesg | grep -i print" I still got the same thing :

I went also on a chan to ask for some help and someone told me to change something in the bios... is that right or not? can I have some further information please?

thanks again


fp
Hi on Debian the ppd would go into the /usr/share/cups/model/ directory then you need to restart the cups daemon again on Debian you would /etc/init.d/cupsys restart hopefully it is similar on your install. Yes it does look like the parallel port is disabled in your BIOS on my computer when it boots if I hit the Delete key (looking at the screen it should tell you which one to hit) you enter the BIOS to make changes you will have to look around in the options there probably in the Advanced or Intergrated ones and make sure that the port is enabled then you save the changes and exit the BIOS to reboot.
 
Old 09-14-2005, 09:57 AM   #14
piva.francesco
Member
 
Registered: Feb 2005
Distribution: Slackware 10.1, Gentoo
Posts: 64

Original Poster
Rep: Reputation: 15
what is the function that I have to activate, because when I am in the BIOS I have this different choices for the Parallel Port configuration:
EPP
ECP
AT
PS/2

When I select ECP, I have a new slot that opens and asks me to choose between DMA Chanel 1 or 3.
And also there is a I/O Address that bothers me, I have a double choice: 278h and 378h.
Can you please help me at least for (hopefully) this last operation?
Thanks allot.


fp
 
  


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
USB HP LaserJet 3030 installation problem!! lewkh Linux - Hardware 3 09-20-2005 12:36 PM
Problem in configuring HP Laserjet 1200 wuqso Linux - Hardware 4 06-08-2005 01:45 AM
Linux FC2 and HP Laserjet 5L printing problem the_rhino Linux - Hardware 1 03-15-2005 01:27 PM
Printing problem, HP LaserJet 6L, Slack 10.0 Adan Linux - Hardware 3 12-01-2004 06:05 PM
Printing problem in RH9 with HP LaserJet 1010 ede Linux - Hardware 0 06-16-2004 05:10 AM

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

All times are GMT -5. The time now is 11:42 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