LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   CUPS printing, parallel port not found in lpinfo (https://www.linuxquestions.org/questions/linux-hardware-18/cups-printing-parallel-port-not-found-in-lpinfo-181509/)

beajedi 05-14-2004 04:02 PM

CUPS printing, parallel port not found in lpinfo
 
Sorry if this been asked before-- I read most of the other threads on CUPS already and they haven't helped me.

I'm trying to set up my printer on my Slackware 9.1 system.
The Printer is a HP DeskJet 712C, and its connected to my parallel port.

When I type:

bash-2.05b# /usr/sbin/lpadmin -p DeskJet -E -v file:/dev/lp0 -m deskjet.ppd
lpadmin: add-printer (set device) failed: client-error-not-possible

when I type "lpinfo -v" here's what shows up.

network socket
network http
network ipp
network lpd
direct scsi
direct usb:/dev/usb/lp0
direct usb:/dev/usb/lp1
direct usb:/dev/usb/lp2
direct usb:/dev/usb/lp3
direct usb:/dev/usb/lp4
direct usb:/dev/usb/lp5
direct usb:/dev/usb/lp6
direct usb:/dev/usb/lp7
direct usb:/dev/usb/lp8
direct usb:/dev/usb/lp9
direct usb:/dev/usb/lp10
direct usb:/dev/usb/lp11
direct usb:/dev/usb/lp12
direct usb:/dev/usb/lp13
direct usb:/dev/usb/lp14
direct usb:/dev/usb/lp15

^^
notice that the parallel port does not show up.

i also type "modprobe parport_pc" and it says

bash-2.05b# modprobe parport_pc
FATAL: Module parport_pc already in kernel.

^^

I checked my .config file and my parallel port is indeed hard compiled into my kernel.

now when I type: "dmesg | grep parport"

parport0: PC-style at 0x378 [PCSPP,TRISTATE,EPP]
parport0: cpp_daisy: aa5500ff(98)
parport0: assign_addrs: aa5500ff(98)
parport0: faking semi-colon
parport0: Printer, HEWLETT-PACKARD DESKJET 710C
lp0: using parport0 (polling).

^ look what shows up!

I know I'm pretty close to getting this working. What am I missing?

thanks in advance for any help!

beajedi 05-16-2004 03:11 AM

Is there anything else I need to add that would help?

Rolf68 05-16-2004 06:55 AM

what does it show when you do:
ll /dev/lp0
Do you have the rights set properly and the device too?

beajedi 05-16-2004 11:01 AM

you mean

ls -l /dev/lp0?

when I do that, I get this:

sh-2.05b$ ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 Apr 27 1995 /dev/lp0

I looks like I get read/write access to lp0. I suppose that means I have the correct permissions.

beajedi 05-16-2004 09:22 PM

No takers? Has anyone had any sort of similar experience?

Is it just the way I'm typing it in the CLI?

quatsch 05-16-2004 10:05 PM

a shot in the dark but is cupsd running on your system?

also, have you tried using
localhost:631
in the location bar of a webbrowser? It will get you to the cups admin page.

beajedi 05-16-2004 10:48 PM

^^

Yeah I tried that first, actually. But there's not much output I can cut and paste when I do it through mozilla.

When I click the "add printers" button, I don't see a "lp0" option.

Rolf68 05-17-2004 03:37 PM

Ok... now we look if your lp0 is working properly....

- Attach your printer, turn it on and put paper in. Connect it firmly to comp.
- cat /etc/passwd > /dev/lp0
- cat /etc/passwd > /dev/lp0 (2-3 times until it starts printing)

If it prints it means your printerport is working then we can go on...
If not we must reconfigure your port.

beajedi 05-17-2004 05:42 PM

This is interesting..

Here's my output--

bash-2.05b# cat /etc/passwd > /dev/lp0
bash: /dev/lp0: No such device or address

Mystery!

beajedi 05-18-2004 09:55 AM

^^

how about I go about "enabling" lp0?

I thought my parallel port was enabled when I typed in dmesg and it showed up!

What's going on now?

Frank_Drebin 05-21-2004 10:38 AM

Just wanted to say thanks to ROLF68!

I had the exact same problem as the original poster with an HP Officejet T45xi. I ran all of the same commands as he did with the same results. After I changed the permissions on lp0 and restarted cups with /etc/rc.d/rc.cups restart it showed up.

Thanks Again Rolf68 and to everyone else here on the forum!
You guys are great!

beajedi 05-21-2004 11:12 AM

Hey, well thanks for the update, too.

I'll try the same thing you did!

Linuxquestions makes me happy :)

Frank_Drebin 05-21-2004 11:22 AM

All I did was

chmod 777 /dev/lp0

Its a home network so I don't care about permissions on the printer

Anyway, it didn't seem to change anything at first until I restarted cups. I assumed it wouldn't work but went in to localhost:631 and to mu surprise, it was there.

Now heres the funny part. I logged out of X to reinstall NVIDIA (did a kernel recompile for i686) and when I did I saw lines in console where I had been trying to access lp0 and had no permissions. Once again, had I just configured from command line rather than KDE, I could have saved myself alot of heartache....

oh well, you live and you learn.

good luck!

Slacker_Rex 05-21-2004 09:04 PM

I just wanted to put my two cents worth in and say thank you. For whatever reason I guess permissions got changed on my /dev/lp0 and my DJ 722c quit working. This has cured it. Thank you very much :-)

beajedi 05-24-2004 11:02 PM

hrm seems to still not to work, even with the permissions change and the cups restarting.

It prints perfectly fine in windows.


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