You are not logged in.

#1 2005-08-04 14:25:50

stasiek
Member
Registered: 2005-07-10
Posts: 16

Printing in polling mode?

I have an old canon printer (connected to the lpt port), and I'm using CUPS with foomatic. My problem is that my printer only prints several first lines and stops afterwards. In freebsd I solved this by switching the lpt port into polling mode. In arch, grep lp0 /var/log/messages.log gives:
Aug  4 18:08:25 desktop lp0: using parport0 (interrupt-driven)
so my first guess is that I need to try the polling mode also. The question is how do I switch into polling mode?

[UPDATE]
This is strange. If I simply modprobe parport_pc the result is as follows:
Aug  4 21:22:21 desktop pnp: Device 00:03 activated.
Aug  4 21:22:21 desktop parport: PnPBIOS parport detected.
Aug  4 21:22:21 desktop parport0: PC-style at 0x378, irq 7 [PCSPP]

But if I specify the adress manualy and set irq to none to get the polling mode:
modprobe parport_pc io=0x378 irq=none
the output is as follows:
Aug  4 21:19:44 desktop parport 0x378 (WARNING): CTR: wrote 0x0c, read 0xff
Aug  4 21:19:44 desktop parport 0x378 (WARNING): DATA: wrote 0xaa, read 0xff
Aug  4 21:19:44 desktop parport 0x378: You gave this address, but there is probably no parallel port there!
Aug  4 21:19:44 desktop parport0: PC-style at 0x378 [PCSPP,TRISTATE]

Of course in the second case it doesn't work.  Does anyone have any idea why? The adress I specify is exactly the same as when it is autodetected.

[UPDATE 2]
Ok, nevermind the polling mode. I've managed to make it work, but the printer still stops after few lines. Any ideas?

[UPDATE 3]
Well... It works and the problem was cups somehow misconfiguring my parallel port. Can someone delete this topic please?

Michal Stanislawski

Offline

Board footer

Powered by FluxBB