Re: problem with /dev/lp0

1999-10-08 Thread David Wright
Quoting Debian Mail ([EMAIL PROTECTED]):
   The device is still /dev/lp0. lp1 and lp2 are still not configured,
  
  I read these words, but I don't understand what you mean by them.
 
 sos:~# tunelp /dev/lp0
 /dev/lp0 using polling
 sos:~# tunelp /dev/lp1
 /dev/lp1: Device not configured
 sos:~# tunelp /dev/lp2
 /dev/lp2: Device not configured

OK, got your drift now.

What does the kernel say when you modprobe lp? I think the problem
may be your giving modprobe an argument. If you give ANY arguments,
you must start at port 0, i.e. you'd need to put something like
io=0x3bc,0x378
to get 378 to apply to port 1.

Now you're using all the normal defaults, just try modprobing it
without any extra info and see if it says lp1 at 0x378.
_

 sos:~# cat /proc/ioports 
 ...
 0378-037f : lp

Yes, that's ok but it registers any/all ports as lp, not lpN.

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Re: problem with /dev/lp0

1999-10-07 Thread Debian Mail
 which module is loaded for the parallel port? i prefer static kernels but

lp

 from what i can see you would need parport_pc loaded and not parport.  and
 for 2.2.x you gotta tell it to support parallel printers in character
 device section of config, again i always do my kernels as much static as i
 can since it so rarely changes..only stuff like vmware, lm_sensors etc get
 to be modules.

But parport and parport_pc only come with kernels  2.1 and I am using
2.0.26...

Stef


Re: problem with /dev/lp0

1999-10-07 Thread Debian Mail
  The device is still /dev/lp0. lp1 and lp2 are still not configured,
 
 I read these words, but I don't understand what you mean by them.

sos:~# tunelp /dev/lp0
/dev/lp0 using polling
sos:~# tunelp /dev/lp1
/dev/lp1: Device not configured
sos:~# tunelp /dev/lp2
/dev/lp2: Device not configured

sos:~# cat /proc/ioports 
...
0378-037f : lp
...

Stef


Re: problem with /dev/lp0

1999-10-07 Thread aphro
odd, i pulled that module info from the help of kernel 2.0.36 :/

ohwell..maybe the docs on it are screwed.

[mailto:[EMAIL PROTECTED] ]--
  Linux System Administrator   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--

On Thu, 7 Oct 1999, Debian Mail wrote:

  which module is loaded for the parallel port? i prefer static kernels but
 
 lp
 
  from what i can see you would need parport_pc loaded and not parport.  and
  for 2.2.x you gotta tell it to support parallel printers in character
  device section of config, again i always do my kernels as much static as i
  can since it so rarely changes..only stuff like vmware, lm_sensors etc get
  to be modules.
 
 But parport and parport_pc only come with kernels  2.1 and I am using
 2.0.26...
 
 Stef
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 


problem with /dev/lp0

1999-10-06 Thread Debian Mail
I use Debian with kernel 2.0.36. All information I can get from the
BIOS of my Intel PC about the parallel port ist, that io is 0x278 and
that the mode is normal (other possible modes: ECP, EPP 1.9 and EPP
1.7). So I say modprobe lp io=0x278. The printer is a HP LaserJet 4P
connected trough a bidirectional parallel cable. Since printing trough
magicfilter does not work, I tried to generate a file using gslj and
send that directly to /dev/lp0: 
cat file.lj  /dev/lp0
This takes about 4 seconds and produces no error. But nothing is
printed and there is no error message on the printer.
tunelp /dev/lp0 -s gives the following:
/dev/lp0 status is 240, out of paper, on-line, error
but the printer is not out of paper and displays no error. Also
printing works if the printer is connected to a Windows NT machine.
tunelp /dev/lp0 tells me that lp0 is using polling. lp1 and lp2 are
not configured. cat /proc/interrupts gives:

 0:8290233   timer
 1:  35309   keyboard
 2:  0   cascade
 3:188 + serial
 4:  73807 + serial
 8:  2 + rtc
 9: 116284   NE2000
13:  1   math error
14:4628478 + ide0

Why does printing not work?

Any comments welcome!

Stef


RE: problem with /dev/lp0

1999-10-06 Thread Paul McHale
I believe it is /dev/lp1=lpt1:.  Are you sure you are using the correct
device ?

-Original Message-
From: Debian Mail [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 06, 1999 10:11 AM
To: debian-user@lists.debian.org
Subject: problem with /dev/lp0


I use Debian with kernel 2.0.36. All information I can get from the
BIOS of my Intel PC about the parallel port ist, that io is 0x278 and
that the mode is normal (other possible modes: ECP, EPP 1.9 and EPP
1.7). So I say modprobe lp io=0x278. The printer is a HP LaserJet 4P
connected trough a bidirectional parallel cable. Since printing trough
magicfilter does not work, I tried to generate a file using gslj and
send that directly to /dev/lp0:
cat file.lj  /dev/lp0
This takes about 4 seconds and produces no error. But nothing is
printed and there is no error message on the printer.
tunelp /dev/lp0 -s gives the following:
/dev/lp0 status is 240, out of paper, on-line, error
but the printer is not out of paper and displays no error. Also
printing works if the printer is connected to a Windows NT machine.
tunelp /dev/lp0 tells me that lp0 is using polling. lp1 and lp2 are
not configured. cat /proc/interrupts gives:

 0:8290233   timer
 1:  35309   keyboard
 2:  0   cascade
 3:188 + serial
 4:  73807 + serial
 8:  2 + rtc
 9: 116284   NE2000
13:  1   math error
14:4628478 + ide0

Why does printing not work?

Any comments welcome!

Stef


--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null



Re: problem with /dev/lp0

1999-10-06 Thread Debian Mail
 I believe it is /dev/lp1=lpt1:.  Are you sure you are using the correct
 device ?

Yes, /dev/lp0 should be the correct device. Also I can see the printer
in a way, since tunelp /dev/lp0 only gives specific output if the
printer is connected.

Stef


Re: problem with /dev/lp0

1999-10-06 Thread David Wright
Quoting Debian Mail ([EMAIL PROTECTED]):
  I believe it is /dev/lp1=lpt1:.  Are you sure you are using the correct
  device ?
 
 Yes, /dev/lp0 should be the correct device. Also I can see the printer
 in a way, since tunelp /dev/lp0 only gives specific output if the
 printer is connected.

Should it? My machines running 2.0.36 are all printing on /dev/lp1
and that's to LPT1 and 0x378. I'm not sure why you're using 0x278
in the BIOS (conventionally LPT2).

OTOH my machines running 2.2.10 all print on /dev/lp0 (but that's
still LPT1 and 0x378).

This is similar to many other people who have reported their
configurations when surprised by the change from /dev/lp1 to
/dev/lp0 caused by migration to 2.2.x kernels.

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Re: problem with /dev/lp0

1999-10-06 Thread Debian Mail
 Should it? My machines running 2.0.36 are all printing on /dev/lp1
 and that's to LPT1 and 0x378. I'm not sure why you're using 0x278
 in the BIOS (conventionally LPT2).

I changed it to 0x378 and said modprobe lp io=0x378
The device is still /dev/lp0. lp1 and lp2 are still not configured,
and tunelp still gives the same output. So I guess it does not matter
whether 0x278 or 0x378 is used. Unfortunately.

Stef


Re: problem with /dev/lp0

1999-10-06 Thread David Wright
Quoting Debian Mail ([EMAIL PROTECTED]):
  Should it? My machines running 2.0.36 are all printing on /dev/lp1
  and that's to LPT1 and 0x378. I'm not sure why you're using 0x278
  in the BIOS (conventionally LPT2).
 
 I changed it to 0x378 and said modprobe lp io=0x378


 The device is still /dev/lp0. lp1 and lp2 are still not configured,

I read these words, but I don't understand what you mean by them.

If you're running a 2.0.x kernel, 0x378 means minor number 1. You can
only change it by editing drivers/char/lp.c which I assume you haven't.
Minor number 0 goes to 0x3bc and I'm guessing you really don't want
that.

 and tunelp still gives the same output. So I guess it does not matter
 whether 0x278 or 0x378 is used. Unfortunately.

Cheers,

-- 
Email:  [EMAIL PROTECTED]   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Re: problem with /dev/lp0

1999-10-06 Thread aphro
which module is loaded for the parallel port? i prefer static kernels but
from what i can see you would need parport_pc loaded and not parport.  and
for 2.2.x you gotta tell it to support parallel printers in character
device section of config, again i always do my kernels as much static as i
can since it so rarely changes..only stuff like vmware, lm_sensors etc get
to be modules.

nate

[mailto:[EMAIL PROTECTED] ]--
  Linux System Administrator   http://www.firetrail.com/
  Firetrail Internet Services Limited  http://www.aphroland.org/
   Everett, WA 425-348-7336http://www.linuxpowered.net/
Powered By:http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMPhttp://yahoo.aphroland.org/
-[mailto:[EMAIL PROTECTED] ]--

On Wed, 6 Oct 1999, Debian Mail wrote:

 I use Debian with kernel 2.0.36. All information I can get from the
 BIOS of my Intel PC about the parallel port ist, that io is 0x278 and
 that the mode is normal (other possible modes: ECP, EPP 1.9 and EPP
 1.7). So I say modprobe lp io=0x278. The printer is a HP LaserJet 4P
 connected trough a bidirectional parallel cable. Since printing trough
 magicfilter does not work, I tried to generate a file using gslj and
 send that directly to /dev/lp0: 
 cat file.lj  /dev/lp0
 This takes about 4 seconds and produces no error. But nothing is
 printed and there is no error message on the printer.
 tunelp /dev/lp0 -s gives the following:
 /dev/lp0 status is 240, out of paper, on-line, error
 but the printer is not out of paper and displays no error. Also
 printing works if the printer is connected to a Windows NT machine.
 tunelp /dev/lp0 tells me that lp0 is using polling. lp1 and lp2 are
 not configured. cat /proc/interrupts gives:
 
  0:8290233   timer
  1:  35309   keyboard
  2:  0   cascade
  3:188 + serial
  4:  73807 + serial
  8:  2 + rtc
  9: 116284   NE2000
 13:  1   math error
 14:4628478 + ide0
 
 Why does printing not work?
 
 Any comments welcome!
 
 Stef
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 


problem with /dev/lp0

1999-10-06 Thread Kenneth Scharf
I use Debian with kernel 2.0.36. All information I
can get from the
BIOS of my Intel PC about the parallel port ist, that
io is 0x278 and
that the mode is normal (other possible modes: ECP,
EPP 1.9 and EPP
1.7). So I say modprobe lp io=0x278. The printer is a
HP LaserJet 4P
connected trough a bidirectional parallel cable.
Since printing trough
magicfilter does not work, I tried to generate a file
using gslj and
send that directly to /dev/lp0: 
cat file.lj  /dev/lp0
This takes about 4 seconds and produces no error. But
nothing is
printed and there is no error message on the printer.
tunelp /dev/lp0 -s gives the following:
/dev/lp0 status is 240, out of paper, on-line, error
but the printer is not out of paper and displays no
error. Also
printing works if the printer is connected to a
Windows NT machine.
tunelp /dev/lp0 tells me that lp0 is using polling.
lp1 and lp2 are
not configured. cat /proc/interrupts gives:

 0:8290233   timer
 1:  35309   keyboard
 2:  0   cascade
 3:188 + serial
 4:  73807 + serial
 8:  2 + rtc
 9: 116284   NE2000
13:  1   math error
14:4628478 + ide0

Why does printing not work?

From what I remember linux assignes the printer at
0x3f8 to lp0, 0x378 to lp1 and 0x278 to lp2.  This
would mean that your printer is actually on lp2!  It
may be possible to override this.  Windows and dos
assign lp0 to the first printer port address found, so
the actual address of lp0 under windows and dos
depends on how many printer ports you have and at
which addresss.  Linux by default just assigns them by
a hard coded address.  If you have two printer ports
and you use the lp=0xnnn command in lilo or when
assigning modules this prevents linux from using any
other lp port (as a printer).  Maybe you had a cd rom
connected to a parallel port, you would need this
command to reserve the extra port for that (by NOT
specifing it  as a lp).  

In short, if your LP is at 0x278, try changing to lp2
and see what happens.
Any comments welcome!


=
Amateur Radio, when all else fails!

http://www.qsl.net/wa2mze

Debian Gnu Linux, Live Free or .


__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


Re: problem with /dev/lp0

1999-10-06 Thread Kenneth Scharf
I assume you have only one printer port.  LEAVE OUT
the lp=0xnnn and let the kernel probe for the printer.
 Then look at what the kernel spits out, it will tell
you where the printer is.  Try dmesg | less to see it.

=
Amateur Radio, when all else fails!

http://www.qsl.net/wa2mze

Debian Gnu Linux, Live Free or .


__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com