• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - David McKenna

#91
Neil,

  Glad you got it to work! One thing to check that I had some trouble with...  make sure the resolution set in the job properties for the eCS printer(s) is the same as the resolution set in the CUPS printer interface settings. I set all mine to the maximum....

Regards,

Dave McKenna
#92
Neil,

Quote from: Blonde Guy on 2008.06.30, 06:55:24
Although CUPS has support for the Epson C88, I did not see any relevant PPD file for it. I used the epomni5 driver on the printer object.


  What file(s) are in the x:/cups/etc/cups/ppd directory?

Dave McKenna
#93
Neil,

  I forgot to mention also you will need 2 printer objects for this to work... one for CUPS and one for the LPD server. Both will use the same PScript driver, but the CUPS print object will use the CUPS port driver, and the LPD one will use the USB port. Set the CUPS port to use 'localhost' and the CUPS print queue name. Set Device URI (in CUPS) for lpd://127.0.0.1/<Printer's name on USB port>. Print to the CUPS printer object. What should happen is the print job is sent to the CUPS port, which relays it to CUPS, which processes the job, then relays it to the LPD server, which then sends it on to the USB print object then on to the printer....

Regards,

Dave McKenna
#94
Neil,

  OK... I understand your situation a little better now. BTW, what printer is attached to the USB port? Anyway, what you need to do is import the Gutenprint PPD file into the eCS PSCRIPT driver, then install the resulting printer driver. I assume you installed the printer in the CUPS web interface. Here are the steps I used to install mine:

1) Download the PostScript printer drivers for eCS version
30.822 (ps30822en.zip found on the eCS website at:
http://www.ecomstation.com/ecsdb/software_cats.php in the 'All Device
Drivers' section). Download the enhanced PIN and PPDENC files from
ftp://ftp.netlabs.org/pub/ecups/work/pinfix.zip.

2) Unzip the PostScript driver package into a
temporary empty directory. I used C:\Junk. Unzip the pinfix.zip package into
a different directory, then copy PIN.EXE and PPDENC.EXE into C:\Junk (this is to avoid overwriting the README already present - I wanted to keep that).

3) Copy the *.ppd file for the USB printer found in C:\cups\etc\cups\ppd to a temporary directory (NOT C:\Junk - I used C:\Junk\PPD). Open the copied version in a text editor and search for the string 'stpstp'. Delete every line that contains this string. Save the changed file in C:\JUNK\PPD.( It has also been reported that 'stpDefault' lines need to be removed, but it was not the case for me - YMMV).

4)  Prepare the altered PPD file for eCS PSCRIPT driver by opening a command line
window and navigate to C:\Junk. Type: PPDENC C:\Junk\PPD C:\Junk <enter>. This encodes the PPD file and puts the encoded version in C:\Junk.

5) From the command line window, in the C:\Junk directory, type: PIN PPD C:\Junk C:\Junk\PSCRIPT.DRV <enter>. This will import any PPD file in C:\Junk into PSCRIPT.DRV.

  Now PSCRIPT has the printer you need in it. Install the print driver in the usual way(s). I right clicked on an existing printer object, chose 'properties', then 'Printer Driver' tab, then right clicked on an existing driver object, then 'Install'. Point the install to C:\Junk and then 'refresh' to get the list of printers. Choose yours from the list.

  Now you can create the new printer object - I dragged a printer template to the desktop, named it 'CUPS' and chose the new PScript printer driver. You will need to set the port to USB - which may need to be installed... right click on an existing port and choose 'install'. The USB port should appear in the list.

HTH, and sorry if I am telling you stuff you already know. Let us know how it goes...

Regards,

Dave McKenna
#95
Quote from: Blonde Guy on 2008.06.27, 18:36:18

I have a USB printer. I have set up LPD. What do I do next?

Neil

Neil,

  1st install CUPS into the root of any directory. Also install libc064x.dll into a directory in your LIBPATH. Then start X:\CUPS\SBIN\CUPSD.EXE from the command line or an object. Open your web browser and go to http://localhost:631. You should see the CUPS interface. Click on 'Add Printer' and follow the instructions. When it asks for 'Device' choose LPD. When it asks for 'Device URI' type 'lpd://<ip-address or hostname>/<printer queue> where <ip-address or hostname> is the address of the lpd server (probably 'localhost' or 127.0.0.1 if CUPS is on the LPD server) and <printer queue> is the name of your eCS printer object on the USB port. The rest should be self-explanatory. If you have trouble the CUPS docs are very good - look under 'Network Printing' or post back here....

Regards,

Dave McKenna
#96
  You can get a USB printer to work, it just takes a little more tweaking. From the README:

    * currently tested printer backends are ipp & lpd - usb isn't working. However, in the meantime, you can create a printer object for the USB printer, and run the OS/2 lpd daemon and print to a usb printer using the lpd backend in cups.


Dave McKenna
#97
Dave,

  I tried it... it worked fine. In your config.sys example you show the home directory is .mplayer. In the codecs and path you show mplayer. Either remove the period from the first, or add it to the second two (depending on which is correct).

Dave McKenna
#98
Saijin....

  I have also attached my results (using 1 processor). My experience with the HT turned on is that it seems slightly sluggish (this is with ACPI 3.09 in APIC mode). Running Sysbench with HT on, the CPU results were as you say - about 15% better. On the other hand PM Graphics were about 20% slower and memory was very much slower - 6990 vs. 4565, which would probably account for the 'sluggish' perception. I'm curious what your memory benches with HT on and off?

Dave McKenna
#99
Sab...

  Are you using mPlayer in a browser? I couldn't get that to work - the codec is missing? I was able to get it working using an Audio-Stream object though.

  Makes me wonder if there are other codecs mPlayer could use that are missing from the suggested codec archive...

Dave McKenna
#100
  You might want to check out SIM too... http://www.eros2.info/download/sim-im-os2-0.9.4.3-r2.zip
#101
Cytan,

  In my experience, new or intermittant errors and traps is almost always a sign of hardware problems. Some things I would do:

1) Boot from an eCS CD (same version as you are using)  and run CHKDSK /F on all drives.
2) Re-seat all memory chips and PCI cards (make sure you are grounded!) - clean out dust too.
3) There is also a possibility of your power supply going bad -  check the voltage outputs on it if you can.

  If that doesn't change anything, use the 'Smartctl.exe' program to see if your hard drive(s) is heading south. Search the net for 'Memtest' and use it to check your memory for errors.

  Good luck...

Dave McKenna
#102
  So far, this approach works well with Java Apps. The Mozilla plugin does not work though... may need some re-arranging of files? I also noticed that you need to copy some font files from the 1.4.2 version to the 1.5.0.
#103
 Hmmm.... I wonder if this could be made to work with OpenOffice??
#104
  Sure, Kim...
----------------------------------------------------------------------------------------------------------------------
0001982: TRAP in resource.sys
Description    A bug opened but also a fix has been made for it.

2 or 3 years ago on the PDD mailing list there was a discussion about
a trap somebody got in resource.sys. It turned out his previous.dat was broken.
Previous.dat (for what ever reason) gets broken sometimes when its updated.
Previous.dat is read by resource.sys if its not there, it gets created by a DLL when the PMSHELL starts up. It also gets refreshed if you do a full hardware detection.

With the introduction of ACPI we default to full hardware detection.
This is set with a flag in previous.dat (hwmerge does this). The chance of previous.dat getting corrupted is higher because we run a full hardware every boot. Gerrit encountered this with a machine. That bad thing is that nothing works except boot from CD and remove previous.dat. Booting via ALT F1->F2 will not help because always resource.sys will load previous.dat.

resource.sys I made small patch it now looks for previous.acp.
Because it does not find it will always do a full hard detection.
This has been verified by modifying snoop.lst and add a garbage name in the snoop.lst file. When it does a full hardware detection it processes snoop.lst.
Disable full hardware detection (ALT F1->F6) it does not show the error message.

Previous.dat in that way will every time get updated.

Attached is the patched version.
It needs to be installed when ACPI is selected for installation.
It needs to be installed in phase 2 (first boot from hard disc) at the latest.

There is also bug in the kernel when you do a full hardware detection and there is no text output of drivers that it hangs (the system) it sits in a loop. This is also prevented by the output of the ACPI.PSD.



Its not required that the patched resource.sys
This version of resource.sys does not need to be placed on the memdisc

---------------------------------------------------------------------------------------------------------------------

  A patched RESOURCE.SYS is also provided, but I don't think I should spread it around.....
#105
  Read this: http://bugs.ecomstation.nl/view.php?id=1982  This problem is acknowledged, and a possible fix available...