View previous topic :: View next topic |
Author |
Message |
butters Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Southpark/avatar13.gif)
Joined: 13 May 2002 Posts: 427 Location: Poughkeepsie, NY
|
Posted: Sat Jun 15, 2002 7:08 am Post subject: No devfs device node for printer |
|
|
I installed CUPS and configured my HP DeskJet 842c at the command line: Code: | lpadmin -p hp -E -v parallel:/dev/lp1 -m deskjet.ppd |
Then I found out that CUPS could not print to /dev/lp1. I tried lpinfo, but that just lists "direct parallel:/dev/unknown-parallel0". I compiled parallel port support, parallel printer support, PC-style hardware support, and IEEE 1284 transfer modes support in the 2.4.19 kernel (not as modules). There seems to be no device node for my printer! How do I fix this?[/code] _________________ If tugboats were bigger, they'd be the ones getting tugged. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nhaggin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/180028700244d222f3572ef.jpg)
Joined: 15 Jun 2002 Posts: 74 Location: Illinois, USA
|
Posted: Sat Jun 15, 2002 6:49 pm Post subject: Same problem |
|
|
I'm having the same trouble with my system (Abit KG-7 mobo, Athlon T-bird), and I also tried running
mknod /dev/lp0 c 6 0
to create the fs node, without success. Are the maj/min device numbers in the command correct? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nhaggin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/180028700244d222f3572ef.jpg)
Joined: 15 Jun 2002 Posts: 74 Location: Illinois, USA
|
Posted: Sat Jun 15, 2002 7:30 pm Post subject: Solution found |
|
|
I was on the right track. To fix this problem:
Run
mknod /dev/lpX c 6 X
where X is the number of the parport you want to use (usually 0). If you have parallel support built as a module, modprobe it in. Finally, configure CUPS as before for your printer. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
butters Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Southpark/avatar13.gif)
Joined: 13 May 2002 Posts: 427 Location: Poughkeepsie, NY
|
Posted: Sun Jun 16, 2002 9:09 pm Post subject: |
|
|
I just tried what you suggested and still cannot get CUPS to open the device URI. I tried adding /dev/lp0 and configuring CUPS to print there, and alsa adding /dev/lp1 and configuring CUPS for that. Neither worked. I do now have lp0 and lp1 in my /dev/ directory. I compiled support for parallel ports, PC-style hardware, and IEEE1284 transfer modes (ECC/ECP) directly into the kernel. Any ideas? _________________ If tugboats were bigger, they'd be the ones getting tugged. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nhaggin n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/180028700244d222f3572ef.jpg)
Joined: 15 Jun 2002 Posts: 74 Location: Illinois, USA
|
Posted: Sun Jun 16, 2002 9:58 pm Post subject: |
|
|
Hmm.../dev/lp1 should not work unless you actually have a second parallel port; if you only have one, it's /dev/lp0. You can check if the parport routines are functioning by running
dmesg | less
and looking for two lines like the following:
parport0: PC-style at 0x378 [PCSPP,EPP]
parport0: Printer, <name of printer>
Other than that, I'm low on ideas right now, but I can give you a blow-by-blow of what I did.
1. Built kernel during install with parport routines modularized.
2. Emerged CUPS after install.
3. Tried to add printer and received error message.
4. Removed printer configuration (even if it can't find a port, lpadmin still writes a printer configuration in the CUPS files)
5. Ran mknod to create /dev/lp0.
6. Rebuilt kernel with parport routines internal.
7. Rebooted.
8. Successfully added printer configuration.
HTH. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
friedmud Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Quake3/quake3_bones_white.gif)
Joined: 18 Apr 2002 Posts: 258 Location: Austin, TX USA
|
Posted: Mon Jun 17, 2002 5:03 am Post subject: |
|
|
For me and my HP Deskjet 400, the problem ended up being that I needed to NOT compile in IEEE 1284. Now my hardware is a lot different from yours but this might point you in the right direction...
Good luck!
Derek |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tubs n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Jun 2004 Posts: 17
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
friedmud Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Quake3/quake3_bones_white.gif)
Joined: 18 Apr 2002 Posts: 258 Location: Austin, TX USA
|
Posted: Mon Jun 07, 2004 1:51 pm Post subject: |
|
|
Wow tubs!
Way to dig out an old topic! It's been 2 years since the original post! That's gotta be some sort of record!
LOL - just messing with you of course
Friedmud |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|