/dev/lp0 nor /dev/lp1 getting detected

/dev/lp0 nor /dev/lp1 getting detected

Post by Thierry ANDRIAMIRAD » Thu, 15 Jul 1999 04:00:00



Hello I really need to have some resumes printed, so here I am:

as mentioned above, Linux can't detect my /dev/lp0 nor /dev/lp1. It worked
fine before the RH5.2 to RH6 upgrading.

I thought it was because of my soundcard and the isa PnP tools, as my Linux
Box is an isa one (i486). I tried so many things, de-slotted the soundcard,
updated to kernel 2.2.5-22 and to the last -RedHat- 'dev' package, but it
doesn't works. Here's some details:

- after the RH5.2 to RH6 upgrade, my '/dev/lp' symbolic link desappeared. I
re-created it.
- of course, PrintTool doesn't find any /dev/lpx with a printer attached
- 'cat test.file >/dev/lp1' returns a not found device message, even an 'ls
/dev/lp?' shows the three /dev/lpx
- the parallel port (/dev/lp1) never appears in /proc/ioports nor in
/proc/interrupts:

Here is my /proc/ioports: (the parallel port, /dev/lp1, should be at 0378)
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0220-022f : soundblaster
02f8-02ff : serial(auto)
0300-031f : NE2000
0330-0333 : MPU-401 UART
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0620-0623 : sound driver (AWE32)
0a20-0a23 : sound driver (AWE32)
0e20-0e23 : sound driver (AWE32)

and my /proc/interrupts (/dev/lp1's irq should be irq7):
           CPU0
  0:     146854          XT-PIC  timer
  1:        724          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  4:        103          XT-PIC  serial
  5:          1          XT-PIC  soundblaster
  8:          2          XT-PIC  rtc
 11:        755          XT-PIC  NE2000
 13:          0          XT-PIC  fpu
 14:      56615          XT-PIC  ide0
 15:          5          XT-PIC  ide1
NMI:          0

and finally, my /etc/printcap:

##PRINTTOOL3## LOCAL uniprint NAxNA a4 {} U_EpsonStylusColor stc500p {}
lp:\
 :sd=/var/spool/lpd/lp:\
 :mx#0:\
 :sh:\
 :lp=/dev/lp1:\
 :if=/var/spool/lpd/lp/filter:

It's not a hardware problem. When Linux initialize the printer during
boot process, it seems ok!

As I need to print my resumes it really annoys me, makes me crazy!
Any ideas please?

--

 
 
 

/dev/lp0 nor /dev/lp1 getting detected

Post by Lew Pitch » Thu, 15 Jul 1999 04:00:00


This may be *too* obvious, but have you compiled parallel port
support into the kernel? If you made it a module, are you probing/loading
the module?


>Hello I really need to have some resumes printed, so here I am:

>as mentioned above, Linux can't detect my /dev/lp0 nor /dev/lp1. It worked
>fine before the RH5.2 to RH6 upgrading.

>I thought it was because of my soundcard and the isa PnP tools, as my Linux
>Box is an isa one (i486). I tried so many things, de-slotted the soundcard,
>updated to kernel 2.2.5-22 and to the last -RedHat- 'dev' package, but it
>doesn't works. Here's some details:

>- after the RH5.2 to RH6 upgrade, my '/dev/lp' symbolic link desappeared. I
>re-created it.
>- of course, PrintTool doesn't find any /dev/lpx with a printer attached
>- 'cat test.file >/dev/lp1' returns a not found device message, even an 'ls
>/dev/lp?' shows the three /dev/lpx
>- the parallel port (/dev/lp1) never appears in /proc/ioports nor in
>/proc/interrupts:

>Here is my /proc/ioports: (the parallel port, /dev/lp1, should be at 0378)
>0000-001f : dma1
>0020-003f : pic1
>0040-005f : timer
>0060-006f : keyboard
>0070-007f : rtc
>0080-008f : dma page reg
>00a0-00bf : pic2
>00c0-00df : dma2
>00f0-00ff : fpu
>0170-0177 : ide1
>01f0-01f7 : ide0
>0220-022f : soundblaster
>02f8-02ff : serial(auto)
>0300-031f : NE2000
>0330-0333 : MPU-401 UART
>0376-0376 : ide1
>03c0-03df : vga+
>03f6-03f6 : ide0
>03f8-03ff : serial(auto)
>0620-0623 : sound driver (AWE32)
>0a20-0a23 : sound driver (AWE32)
>0e20-0e23 : sound driver (AWE32)

>and my /proc/interrupts (/dev/lp1's irq should be irq7):
>           CPU0
>  0:     146854          XT-PIC  timer
>  1:        724          XT-PIC  keyboard
>  2:          0          XT-PIC  cascade
>  4:        103          XT-PIC  serial
>  5:          1          XT-PIC  soundblaster
>  8:          2          XT-PIC  rtc
> 11:        755          XT-PIC  NE2000
> 13:          0          XT-PIC  fpu
> 14:      56615          XT-PIC  ide0
> 15:          5          XT-PIC  ide1
>NMI:          0

>and finally, my /etc/printcap:

>##PRINTTOOL3## LOCAL uniprint NAxNA a4 {} U_EpsonStylusColor stc500p {}
>lp:\
> :sd=/var/spool/lpd/lp:\
> :mx#0:\
> :sh:\
> :lp=/dev/lp1:\
> :if=/var/spool/lpd/lp/filter:

>It's not a hardware problem. When Linux initialize the printer during
>boot process, it seems ok!

>As I need to print my resumes it really annoys me, makes me crazy!
>Any ideas please?

>--


Lew Pitcher
System Consultant, Integration Solutions Architecture
Toronto Dominion Bank


(Opinions expressed are my own, not my employer's.)

 
 
 

/dev/lp0 nor /dev/lp1 getting detected

Post by Brian Mar » Fri, 16 Jul 1999 04:00:00


> It's not a hardware problem. When Linux initialize the printer during
> boot process, it seems ok!

> As I need to print my resumes it really annoys me, makes me crazy!
> Any ideas please?

> --


I had a similar problem.

Try putting this line in /etc/conf.modules

alias parport_lowlevel parport_pc

I then used printool.

#PRINTTOOL3## LOCAL bjc600 360x360 a4 {} BJC600 8 {}
CanonBJC:\
        :sd=/var/spool/lpd/lp:\
        :mx#0:\
        :sh:\
        :lp=/dev/par0:\
        :if=/var/spool/lpd/lp/filter:
##PRINTTOOL3## LOCAL bjc600 360x360 a4 {} BJC600 8 {}
lp:\
        :sd=/var/spool/lpd/lp0:\
        :mx#0:\
        :sh:\
        :lp=/dev/lp0:\
        :if=/var/spool/lpd/lp0/filter:

This enabled me to print from root only, but may get you going. I would
be interest in any improvements to this. I am not logged in as root most
of the time.

Brian Marr

 
 
 

/dev/lp0 nor /dev/lp1 getting detected

Post by Thierry Andriamirad » Fri, 16 Jul 1999 04:00:00



Quote:>Try putting this line in /etc/conf.modules

>alias parport_lowlevel parport_pc
>#PRINTTOOL3## LOCAL bjc600 360x360 a4 {} BJC600 8 {}
>CanonBJC:\
> :sd=/var/spool/lpd/lp:\
> :mx#0:\
> :sh:\
> :lp=/dev/par0:\
> :if=/var/spool/lpd/lp/filter:

That's it!!!!!!!! thank you Brian!

And as mentioned in the /usr/src/linux/xxxxx/parport.txt, I included exactly
these lines in my /etc/conf/modules :

alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=7

Quote:>This enabled me to print from root only, but may get you going. I would
>be interest in any improvements to this. I am not logged in as root most
>of the time.

It works for me, even I'm not root.
Some owner problems?

--

 
 
 

1. Printtool not seeing my printer on /dev/lp0, /dev/lp1 or /dev/lp2

           Hi, I've just started using Linux having used Unix in the past.
I've got a problem and I'm hoping that someone may be able to suggest a
solution.

     Having successfully installed Linux( Red Hat V6.0 Kernel 2.2.5-15 on a
Dell Dimension PIII 500Mhz ) and selected a printer driver I set up my
spoolers and ensured lpd was running. However while logged in as root trying
to redirect the output of a 'cat' command directly to the printer yielded no
output from the printer. Having checked with some FAQs and support sites I
note that the Epson Color 440 ( the printer I'm trying to use ) should be
completely compatible with Linux. I noticed an article which spoke about the
'stcolor' driver but this seemed more to do with the quality of the output
rather than the fact that there was no output at all. I tried running
printtool and it said that it could find no devices attached to /dev/lp0,
/dev/lp1 or /dev/lp2. According to Windows '98 the printer is installed on
the "ECP Printer Port" LPT1. My modem is installed on COM2( INT 9, Addr. 0 )
while COM1( INT 4, Addr. 3F8, UART NS 16550AN) does not have anything
attached. The printer works fine with Windows '98.

Any help you could give me would be greatly appreciated.

Thank You

James.

2. 5.6: NIS+: nisgrpadm problem

3. dev/lp0 (or lp1 or lp2) not detected for printer

4. PPP

5. ls > /dev/lp0 fails--but /dev/lp0 exists

6. How do you format floppies to 1.6M?

7. Printing problem : ls > /dev/lp0 -- /dev/lp0 : No Such Device ?

8. Best Linux?

9. /dev/lp1 - operation nor suppoerted by device

10. /dev/sequencer and /dev/lp0

11. What is the difference between /dev/sg0, /dev/scd0 /dev/hdd and /dev/cdrom ?

12. /dev/dsp, /dev/audio, /dev/midi., /dev/sndsta

13. Can't detect /dev/lp1 with 2.2.7