Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No devfs device node for printer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
butters
Guru
Guru


Joined: 13 May 2002
Posts: 427
Location: Poughkeepsie, NY

PostPosted: Sat Jun 15, 2002 7:08 am    Post subject: No devfs device node for printer Reply with quote

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
View user's profile Send private message
nhaggin
n00b
n00b


Joined: 15 Jun 2002
Posts: 74
Location: Illinois, USA

PostPosted: Sat Jun 15, 2002 6:49 pm    Post subject: Same problem Reply with quote

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
View user's profile Send private message
nhaggin
n00b
n00b


Joined: 15 Jun 2002
Posts: 74
Location: Illinois, USA

PostPosted: Sat Jun 15, 2002 7:30 pm    Post subject: Solution found Reply with quote

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
View user's profile Send private message
butters
Guru
Guru


Joined: 13 May 2002
Posts: 427
Location: Poughkeepsie, NY

PostPosted: Sun Jun 16, 2002 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
nhaggin
n00b
n00b


Joined: 15 Jun 2002
Posts: 74
Location: Illinois, USA

PostPosted: Sun Jun 16, 2002 9:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
friedmud
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 258
Location: Austin, TX USA

PostPosted: Mon Jun 17, 2002 5:03 am    Post subject: Reply with quote

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
View user's profile Send private message
tubs
n00b
n00b


Joined: 07 Jun 2004
Posts: 17

PostPosted: Mon Jun 07, 2004 7:00 am    Post subject: Reply with quote

This should fix the problem.....

http://www.gentoo.org/doc/en/printing-howto.xml -->
"Then go to Character devices and enable Parallel Printer Support."
Back to top
View user's profile Send private message
friedmud
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 258
Location: Austin, TX USA

PostPosted: Mon Jun 07, 2004 1:51 pm    Post subject: Reply with quote

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 :twisted:

Friedmud
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum