• 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

CUPS???

Started by Dennis, 2007.10.14, 17:21:10

Previous topic - Next topic

Pete

Quote from: Paul Smedley on 2007.10.25, 06:20:33
Hi Guys,

Quote from: Pete on 2007.10.24, 16:29:39
Are you running dual core cpu?

Note that I don't really understand why this is an issue - almost all of my testing is done on an Athlon X2 6000+ with both cores enabled with ACPI.
Cheers,

Paul.



Hi Paul

I was running a single core amd64 3000+ and cupsd.exe never crashed. Early builds had a very slow browser response measured in minutes when trying to access any webpages but the more recent releases worked very well.

I upgraded the cpu to amd64 3800+ and upgraded to the latest CUPS build at about the same time - well, had to get acpi working 1st but within a day or so.

My 1st attempt at using the new cpu and CUPS browser admin at the same time resulted in the main CUPS  webpage appearing successfully but any attempt to open any other webpage resulted in an unable to connect message.

I backleveled the CUPS installation without getting rid of the problem that did *not* exist prior to upgrading the CPU and installing ACPI.

That is when I discovered there is a problem with DualCore CPUs and CUPS as the browser admin that had worked fine now crashed cupsd.exe

Note: This is not an occasional crash of cupsd.exe - this crash happens every time the browser admin is used.


This is easily reproduced here: open the CUPS browser admin and attempt to "admin" the printer. Goodbye cupsd.exe...

If I use the CPU Monitor to Turn Off CPU2 there is no problem with accessing the CUPS browser admin at all.

Turn CPU2 back On, access the CUPS browser admin and Goodbye CUPS.


Therefore there is an issue but I do not know if it is ACPI version related.

I am limited to the ACPI 2.22 package as I do not have a current eCS Software Subscription; mine ran out shortly after eC2beta3 which is where I have "lifted" ACPI support from.

Maybe later ACPI builds work OK - shame Juergen does not mention which version of ACPI he is using.

Presumably you are using a more current build of ACPI?

Regards

Pete




Pete

Quote from: kdxensen on 2007.10.23, 01:52:52
Hi all,
I've used os/2 since v2.0 and am a loyal fan... I'm delighted to watch the cups project but so far I have not been able to connect to my printers. I am able to use cups for my hp color laserjet 2600n under linuz. There is a ppd for this printer. I'm wondering if I can use this ppd under cups/eCS.

I have followed the readme.os2 and much is still hazy to me but I enjoy tinkering... I'm just not very smart.

The examples in the readme are for 2 printers of which I have neither. I'd hoped to use the examples as "models" for my own printers to no avail...yet.  Am I correct in assuming that I can use this syntax for my printers? Both of my printers are connected thru the lan... the 2600n has a lan interface built in. The other printer is an hp Photosmart 8250 connected to a Trendnet print server.

-Ken


Hi Ken

I think the HP CL 2600n may already be supported by "native" OS/2 printer drivers - postscript and maybe pcl drivers. I have not spotted a driver specific to that model but have seen some discussions about it over the past year(s) so suggest you use Google to discover which driver to use.

If I am wrong you may be able to add the PPD file to the OS/2 postscript driver; have a look at my previous post for a few details on this.


As regards setting up CUPS on OS/2: the readme does indeed have a couple of examples. I could add 1 or 2 more...

[H:\cups\sbin]lpadmin -p HP2250 -E -v lpd://192.168.2.1/lpt1 -m gutenprint/5.1/en_gb/stp-hp-bij_2250.5.1.ppd.gz

[H:\cups\sbin]lpadmin -p PIXMA -E -v lpd://192.168.2.1/lpt1 -m gutenprint/5.1/en_gb/stp-bjc-iP4000.5.1.ppd.gz


And attempt an explanation (from a lack of knowledge)...

I have a command window open in directory [H:\cups\sbin] which is where lpadmin, used to create/add a printer, resides

-p creates/adds a printer using the detail provided on the rest of the line:

PIXMA (or HP2250) is a printer name so that you can identify which printer

-E  Not sure about this - I use it because the examples do but I'm sure it has a purpose  :-)

-v device address (I think)
In both my examples the printer is connected to a print server (built into a router) that has the ip address 192.168.2.1 with the printer port being /lpt1

lpd is, possibly, a print to this address command

-m model of printer driver to use
This is the path and filename of the driver to use so you need to spot the driver for the printer in the directory
\cups\share\cups\model\gutenprint\5.1\en_gb\

Note: CUPS seems to be hardcoded for some parts of the paths involved so when using the -m switch CUPS automatically starts from \cups\share\cups\model\

Please feel free to reverse the slashes if it helps  :-)


Of course, before trying to create a CUPS printer you should have:-

copied libcups.dll to somewhere on the LIBPATH - either \ecs\dll or \os2\dll are the usual places
installed the libc063 support files to the same location
started \cups\sbin\cupsd.exe


Hopefully the above will get you started.

Regards

Pete




Saijin_Naib

I found a Mac OSX PPD driver pack that includes my HP PSC 1210xi, you are saying that if I can get that PPD file, I may be able to import it for use under OS/2?
Please help!

Pete

Quote from: Saijin_Naib on 2007.10.25, 23:08:30
I found a Mac OSX PPD driver pack that includes my HP PSC 1210xi, you are saying that if I can get that PPD file, I may be able to import it for use under OS/2?
Please help!


Hi

Yes - but "may be able to" is the important phrase.

Secondly, as the above printer is not a postscript printer it would not work if you just import the PPD file, the above PPD file would also need some support files to provide postscript to raster capability so that postscript output actually gets printed on the raster printer.

This is where CUPS comes in.

The psc1210 is probably supported by CUPS - I cannot see a driver file for it at a quick glance but I would take a guess that 1 of the many psc_xxx ppd files included also supports the 1210.

CUPS includes the necessary ps to raster filter(s) required to produce output at the printer.

To be able to use CUPS as the printing system on an OS/2 based system it is necessary to

1] create and test a CUPS printer - the readme gives a few examples

2] add the PPD file - either the CUPS or Mac version - to the OS/2 pscript.drv and create a Printer Object.

3] adjust Properties of OS/2 Printer Object; it needs to print through the eCUPS output port - this sends the output from the OS/2 printer to the CUPS printing system.


I'm going to refer you to my earlier post for more details on how to achieve the above.

You may have to email Paul (CUPS porter) to find out where a package called gccpin.zip is available for download as it contains an updated pin.exe which you need to add the PPD file to the OS/2 pscript.drv


Yes, the above does work here with a Canon PIXMA iP4000 connected to a print server.

I gather there are some additional tricks required to get USB connected printers to work but the readme has some brief instructions.

Have fun  :-)

Pete



Saijin_Naib

Oh boy. This should be exciting, I tried to get cups set up right but  ???
Hopefully this time around I can get somewhere :P

Paul Smedley

Quote from: Saijin_Naib on 2007.10.25, 23:08:30
I found a Mac OSX PPD driver pack that includes my HP PSC 1210xi, you are saying that if I can get that PPD file, I may be able to import it for use under OS/2?
Please help!

You need more than just the PPD file...... For HP printers there is HPLIP (http://hplip.sourceforge.net/) - which I'll work on once the current issues with CUPS are resolved.

I did make some progress in understanding why the second page fails last night.

The cups changes are supposed to introduce a new switch for Ghostscript - NOMEDIAATTRS - with this switch in pstoraster (which cups uses to invoke ghostscript), ghostscript gives an error.

Trying to understand why now......

Cheers,

Paul.

Paul Smedley

Quote from: RobertM on 2007.10.25, 06:58:31
Hey Paul,

I dont know if this is related, but I have a copy of ffMPEG which, only on certain files, crashes... but only on my Athlon 1100 system. On my Xeon based system (which is 4 CPU) it finishes with no crash. Is either issue possibly due to some incompatible optimization in the app or libraries?

It could be CPU optimisation related - IIRC correctly, the ffmpeg build process tries to identify the CPU on which it's running to set appropriate optimisations  (in my case Athlon64 X2 processors).  It possible sets some CPU instructions that a plain Athlon doesn't support (SSE?)

If it's a real problem - I could look at different optimisation levels for better compatability.

Cheers,

Paul.

magog

Quote from: Pete on 2007.10.25, 18:00:34
Quote from: Paul Smedley on 2007.10.25, 06:20:33
Hi Guys,

Quote from: Pete on 2007.10.24, 16:29:39
Are you running dual core cpu?

Note that I don't really understand why this is an issue - almost all of my testing is done on an Athlon X2 6000+ with both cores enabled with ACPI.
Cheers,

Paul.
[..]
I am limited to the ACPI 2.22 package as I do not have a current eCS Software Subscription; mine ran out shortly after eC2beta3 which is where I have "lifted" ACPI support from.

Maybe later ACPI builds work OK - shame Juergen does not mention which version of ACPI he is using.

Just ask. ;)
Ist ACPI v2.22 as newer Versions (3.00-3.03) are totally messed up...at least if you have an Athlon64 X2.
On the other hand my Core2Duo System wasn't able to boot with ACPI 3.0 (?) from the eCS RC2 CD either.
I'm waiting for the next ACPI version which should be available soon.
Regards,
Juergen
*** Java Movie Database - http://www.jmdb.de/