From: <pa...@rc...> - 2000-10-29 02:28:31
Attachments:
ieee12844pp-bidi-ecp-patch.txt
|
Hi, Attached is a patch to ieee12844pp.c (version 0.6) to enable bidirectional ECP (as opposed to the current slower ECP/forward and nibble/reverse). In addition to speeding up scans by up to 4 times (according to my rough measurements), I'm hoping this will also fix the driver lockup problems that Daniel and possibly others have experienced. I invite Daniel and anybody else who doesn't mind living a bit on the bleeding edge to try it out and report success or problems. Note that it requires a bidirectional (also known as "PS/2") or ECP parallel port. There are two new module parameters with this patch: "usebecp" and "usenibble". "usebecp=1" is *required* for the OfficeJet G series, K series, LaserJet 1100A and 3200; it should be omitted (or set to 0) for other models. (For those who care to know, this turns on the use of "bounded ECP" mode, which causes the peripheral to send no more than one packet per reverse session, and causes the driver to wait for nFault to be deasserted before going back to forward.) "usenibble=1" may be specified to revert to the old method of using nibble mode for reverse (peripheral-to-host) data. You can use this if you run into problems with the new method (for example, if you only have a unidirectional parallel port), or if you just want to do a performance comparison without modifying/recompiling code. In other news, I also fixed it so if the drivers do get in a bad state, you should be able to kill whatever app you're running and unload/reload ieee12844pp and ieee12844, without requiring a reboot to recover. David |
From: Martin F. <ma...@m-...> - 2000-10-29 09:51:08
|
David Paschal wrote: > > Hi, > > Attached is a patch to ieee12844pp.c (version 0.6) to enable bidirectional > ECP (as opposed to the current slower ECP/forward and nibble/reverse). In > addition to speeding up scans by up to 4 times (according to my rough > measurements), I'm hoping this will also fix the driver lockup problems > that Daniel and possibly others have experienced. I invite Daniel and Great, now scanning works with my VSTATUS:$H00000000$M00000000,ff,DN,IDLE;MFG:HEWLETT-PACKARD;MDL:OFFICEJET PRO 1150C;CMD:PCL,MLC,PML,PJL;CLS:PRINTER;DES:Hewlett-Packard OfficeJet Pro 1150C; Prior to that patch, the scanner started for some centimeters and then nothing ... Martin -- Martin Fink Telefon (0711) 42 83 56 Diplom-Informatiker (FH) Telefax (0711) 42 83 59 Stuttgart, Germany E-Mail fi...@m-... |
From: Joe P. <joe...@sn...> - 2000-10-29 19:38:04
|
On Sat, 28 Oct 2000, David Paschal wrote: > <...> > In other news, I also fixed it so if the drivers do get in a bad state, > you should be able to kill whatever app you're running and unload/reload > ieee12844pp and ieee12844, without requiring a reboot to recover. > > David David: Your latest patch seems to have improved a problem I had removing the ieee modules after printer power off/on. I'm running kernel 2.2.16 with the parport modules compiled in. The ieee modules are loaded at boot from /etc/rc.d/rc.local . Processor is a p233 MMX, Printer is an Oj 600. About the simple xojpanel that has been included with hpoj-x.x : I improved its functionality and appearance a bit. It now has some reasonably nice graphics that I created for it. For an image of a printer, I used a pic of an OJ 500 from one of the project's web pages. I scaled it down and touched it up. The LCD line 1 text scrolls now when it's too long. I haven't been able to test scrolling on line 2, but it looks like it might work. It builds and runs using qt-1.44 , qt-2.2.1 (the latest), or presumably anything in between. I tested it with your latest patch (not with the SANE patch). I didn't notice any new problems. I'd like to do a little more with it, but it seems good enough now to include in your next release, if you want it. I'm guessing that you are planning one soon. By the way - are you satisfied with the project's present versioning system? It seems to me that adding a third digit might be useful. Improved xojpanel screenshot and download at: http://pages.cthome.net/jsp/hpoj-linux-gui/index.html Because I added several graphics and rewrote three files, I put my entire xojpanel/ directory in the tarball. ********************************** Joe Piolunek |
From: Carlos P. <cp...@pu...> - 2000-10-31 22:01:19
|
hi, the patch doesn;t work cleanly for me over an hpoj-0.6 with the smp patch ... what am i doing wrong? $ patch -p0 < ~/tmp/ieee12844pp-bidi-ecp-patch.txt patching file `ieee12844pp.c' Hunk #1 FAILED at 36. Hunk #2 FAILED at 64. Hunk #3 succeeded at 148 (offset 31 lines). Hunk #5 succeeded at 207 (offset 31 lines). Hunk #7 succeeded at 306 (offset 31 lines). Hunk #8 FAILED at 329. Hunk #10 FAILED at 534. Hunk #11 succeeded at 755 (offset 31 lines). Hunk #12 FAILED at 849. Hunk #13 FAILED at 901. Hunk #14 FAILED at 936. Hunk #15 FAILED at 949. Hunk #16 FAILED at 1032. Hunk #17 FAILED at 1159. Hunk #18 FAILED at 1246. 11 out of 18 hunks FAILED -- saving rejects to ieee12844pp.c.rej $ |