I apparently have clobbered my ability to printer either via USB or parallel
in my RedHat 7 on a Dell Dimension Pentium II-400 MHz. I am pretty new to
Linux and am learning through the school of hard knocks.
I inadvertently overwrote both /dev/lp0 and /dev/usblp0. I was in the
process of trying to get LPRng-3.7.2 working and had printing via the
parallel port working at one point.
I have an Epson Stylus 740 that works fine on either USB or parallel
connection under Windows. At this point, I would be happy to get either to
work under Windows.
Here is the story on each effort I have made.
First, generally, I changed \etc\modules.conf with the "options" line to
reflect my parallel port setting via BIOS and confirmed in Windows as
follows...
alias eth0 rtl8139
alias parport_lowlevel parport_pc
options parport_pc io=0x378 irq=5
alias scsi_hostadapter fdomain
Based on some posts I found (sorry, forget who to credit), I have tried to
"re-create" /dev/lp0 and /dev/usblp0 as follows...
mknod -m 660 /dev/lp0 c 6 0
mknod -m 660 /dev/usblp0 c 180 0
Both "appeared" to regenerate fine. Perhaps I am missing a subsequent step.
---------------------------
Parallel port
The boot process seems to find my EPP printer just fine. Here is what dmesg
shows...
parport0: PC-style at 0x378, irq 5 [SPP,PS2,EPP]
parport_probe: succeeded
parport0: Printer, EPSON Stylus COLOR 740
lp0: using parport0 (interrupt-driven).
But I cannot print the ASCII directly to port from either "printtool" or
"lprngtool" and obviously cannot print the ASCII test page. Both "printtool"
or "lprngtool" find /dev/lp0 as available.
Getting "back to basics," I tried simply directly printing to "device"
with..
# ls >/dev/lp0
Nothing (absolutely nothing) happened -- no output to printer and no error
messages.
I am at a loss as to what to try next on the parallel side.
---------------------------
USB Connection
It appears that Linux is finding my USB controller just fine. Running dmesg
after booting gets this about USB...
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: registered new driver usblp
After booting, I ran the following to install usb printer support...
insmod /lib/modules/2.2.16-22/usb/usbcore.o
insmod /lib/modules/2.2.16-22/usb/printer.o
As with the parallel tests, I cannot print the ASCII directly to port from
either "printtool" or "lprngtool" and obviously cannot print the ASCII test
page. Unlike the parallel test, neither printtool" nor "lprngtool" show
/dev/usblp0 as available.
As with the parallel test, I tried simply directly printing to "device"
with..
# ls >/dev/usblp0
This got...
bash: /dev/usblp0: No such device
So, I look stuck here as well.
---------------------------
I would mention that I did have, *ON SOME EARLIER TESTING WHICH I CANNOT
SEEM TO REPLICATE*, get printing directly to the printer via USB to work. At
that point, I got the following from dmesg...
usb.c: USB new device connect, assigned device number 5
usb.c: This device is not recognized by any installed USB
driver.
parport0: PC-style at 0x378, irq 5 [SPP,PS2,EPP]
parport_probe: failed
parport0: no IEEE-1284 device present.
lp0: using parport0 (interrupt-driven).
usb.c: registered new driver usblp
printer.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0
printer.c: usblp1: USB Bidirectional printer dev 3 if 0 alt 1
usb.c: USB disconnect on device 5
usb.c: USB new device connect, assigned device number 5
printer.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0
Unplugged USB cable at printer and reconnected and Linux appears to have
"seen" that and responded as follows...
usb.c: USB disconnect on device 5
usb.c: USB new device connect, assigned device number 5
printer.c: usblp0: USB Bidirectional printer dev 5 if 0 alt 0
---------------------------
BOTTOM LINE -- I need some help here. I would like to be able to connect
either way, but at this point just getting one way up would be a victory.
Thanks,
Jess
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Sat Dec 23 2000 - 08:57:02 EST