Re:[PARPORT] Re: 2.1.106 and Epson Stylus Color II


Inaky Perez Gonzalez (inaky@peloncho.fis.ucm.es)
Sat, 27 Jun 1998 19:33:58 +0200


>>>>> "Andrea" == Andrea Arcangeli <arcangeli@mbox.queen.it> writes:

        Hi

        Just to let it be known :), using 2.1.107. (saw no changes
from 106 to 107 on parport* and lp*).

        Using irqs under vanilla 2.1.107 prints, but choking, as
always :), polling mode works flawlessly.

kernel: parport0: PC-style at 0x378 [SPP,PS2,EPP]
kernel: parport1: PC-style at 0x278, irq 11 [SPP,PS2,EPP,ECPEPP,ECPPS2]
kernel: parport0: no IEEE-1284 device present.
kernel: parport1: Printer, HEWLETT-PACKARD DESKJET 600
kernel: lp0: using parport1 (interrupt-driven).

Andrea> You could also try to #define by hand LP_CAREFUL 1 in the top
Andrea> of lp.c and run tunelp /dev/lp0 -C on .

        Vanilla + LP_CAREFUL 1 + tunelp /dev/lp0 -C on:

# tunelp /dev/lp0 -C on
tunelp: ioctl: Invalid argument
/dev/lp0 using IRQ 11

# strace tunelp /dev/lp0 -C on (snipped unuseful stuff)
open("/dev/lp0", O_WRONLY|O_NONBLOCK) = 3
fstat(3, {st_mode=S_IFCHR|0660, st_rdev=makedev(6, 0), ...}) = 0
brk(0x804b000) = 0x804b000
ioctl(3, LPGETIRQ, 0xbffffb4c) = 0
ioctl(3, LPCAREFUL, 0x1) = -1 EINVAL (Invalid argument)
write(2, "tunelp: ioctl: Invalid argument\n"..., 32tunelp: ioctl: Invalid argument
) = 32
ioctl(3, LPGETIRQ, 0xbffffb4c) = 0
fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(3, 0), ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40009000
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(1, "/dev/lp0 using IRQ 11\n", 22/dev/lp0 using IRQ 11
) = 22
close(3) = 0
_exit(0)

        Hmmm ... maybe my tunelp is old? (tunelp from Debian
1.3.1).

        Ok, it prints but still chokes

Andrea> I need this test since there was also some parport patches in
Andrea> the way from 103 to 106 and this is the fastes (at least for
Andrea> me ;-) and safer way to be sure that the problem came from
Andrea> _lp_.

        So now I apply the patch and try again.

M-x ps-print-buffer (on emacs)
# lpq
lp is ready and printing
Rank Owner Job Files Total Size
active inaky 44 (standard input) 9868 bytes

        Nothing happens ... a minute ... two ??

# cat /proc/interrupts
           CPU0
  0: 200335 XT-PIC timer
  1: 10074 XT-PIC keyboard
  2: 0 XT-PIC cascade
  3: 6 XT-PIC serial
  4: 4114 XT-PIC serial
 11: 0 XT-PIC lp
 13: 1 XT-PIC fpu
 14: 10000 XT-PIC ide0
 15: 59 XT-PIC ide1
NMI: 0

        Nothing :(

        Trying polled mode. Printks ok.

          Linux-USB! http://peloncho.fis.ucm.es/~inaky/USB.html -
                                                                -
                Inaky Perez Gonzalez -- PGP pubkey fingerprint -
           inaky@peloncho.fis.ucm.es -- 8E 34 3A 62 64 99 E2 44 -
   http://peloncho.fis.ucm.es/~inaky -- AD 7B 30 D9 DD FF 3E 4C -
   --------------------------------- -- ----------------------- -
   The loneliness of the long distance runner .....

-- 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 2.0b3 on Wed 30 Dec 1998 - 10:17:53 EST