Hello List, sorry, that I have to repost my question a third time (last postings on June 23.), but unfortunately my problem remains unsolved. Here we go again: In short: I can print from any application except wine. My systems (first try): Workstation ray (192.168.99.10): Gentoo 2006.0 wine-0.9.15 Cups-1.1.23 no /etc/printcap no local printer connected /etc/cups/client.conf contains the line: ServerName 192.168.99.60 Print server goza (192.168.99.60): Gentoo 2006.0 Cups-1.1.23, running as server Connected to Printer Canon i560 The effective use flags for wine are: USE="X alsa arts cups esd gif jack jpeg ldap ncurses opengl oss truetype xml -debug -glut -lcms -nas -scanner". So wine is compiled with cups support. Printing on my workstation works very well from any application (even lpr on the command line), except wine. When I try to print from a wine application, e.g. notepad, my printer named i560, which is NOT connected locally, but to my print server, shows up in the print dialog properly. But when I click the OK button just nothing happens. This is what i do in detail: - remove ~/.wine - run winecfg from xterm winecfg complains about printer problems, but continues: wine: creating configuration directory '/home/sven/.wine'... To use WINEPS you need to install some AFM files. fixme:winspool:AddPrinterW DocumentPropertiesW on printer 'L"i560"' fails To use WINEPS you need to install some AFM files. wine: '/home/sven/.wine' created successfully. - create a text file test.txt in ~/.wine/drive_c/ containing "This is a test" - open test.txt with notepad from xterm - try to print the file, printer dialog shows up, offers printer i560, but no button has any effect, except "Cancel" (even print to file doesn't work). Everytime i press "Properties" or "OK" the error messages "To use WINEPS you need to install some AFM files." or "fixme:commdlg:PRINTDLG_UpdatePrintDlgW No lpdm ptr? fixme:commdlg:PRINTDLG_WMCommandW Update printdlg was not successful!" show up in my xterm. All my AFM files are in /usr/share/fonts/Type1. I also have gnu-gs-fonts-other and gnu-gs-fonts-std installed. So I think missing fonts can't be the problem... The other error messages are incomprehensible to me. Since there is no local /etc/printcap on my workstation, but wine (notepad) lists my printer i560 in the print dialog, it seems that wine is at least able to fetch some information about my printing environment, although it is unable to actually print. I searched Google-Groups and found some postings about these or similar error messages. Most of them saying "Update to a newer version", on of them saying "It works when you remove gimp-print" and one (Huw Davies) saying that this is a bug, that was fixed in wine-0.9. None of these hints was of any help for me, and since wine switched from config files to registry, searching for misconfigurations is a real pain, if possible at all. Wincfg has a lot of options, but none of them seem to be related to cups or printing, so now I'm stuck. Maybe wine is generally unable to print, if the printer isn't connected locally? (I believe not) List member Duane Clark suggested to change my cups configuration from client server to server server. That's what I did. Now I have a local cupsd running, which forwards all print jobs to the cupsd on goza. In my local /etc/cups/client.conf I commented out the server line: # ServerName 192.168.99.60 Unfortunately the results and error messages remain the same. I can print from any application, except wine. Any further or new suggestions would be very appreciated! Maybe I should post this on the wine developers list? Thanks in advance Sven Rudolph
Hi Sven! SR>When I try to print from a wine application, e.g. notepad, my printer SR>named i560, which is NOT connected locally, but to my print server, SR>shows up in the print dialog properly. But when I click the OK button SR>just nothing happens. I've got a similar problem with wine 0.9.16 on openSuse 10.0: The printer is installed correctly in Cups (OpenOffice will print), and it's in wine's printer dialogue also. But as for you, nothing is printed. In my case, the printer is connected both locally (via USB) and on the network, as it's got network capabilities also. Neither path will work from within wine :-( I don't get any error messages, though. It just does nothing. With best regards Ekkehard
Hello Sylvain, I didn't mean to annoy you or anybody. I just had the impression, that a posting that is older than two or three days is ignored. Another point is, what started as an inconvenience for me now turned into a real problem. I absolutely must be able to print with wine. Otherwise I have to buy and install windows. I'm used to track down and solve problems by myself, but this time I have no idea what the cause is or what the error messages mean, therefore I ask. Unfortunately I'm not closer to a solution, so I'm getting a little bit nervous. Sorry for that, I won't ask again. Sven> ^^ saying its a repost wont make it go faster, > there is no need to start a new thread everytime.
Hello Detlef, thanks for your reply!> "+wineps" does not work for WINEDEBUG. "+psdrv" is correct: > WINEDEBUG="+winspool,+psdrv,+file" wine app.exe 2>log.txt > > > You will see the Failure from "DocumentProperties": > --- cut --- > trace:winspool:DocumentPropertiesA > ((nil),(nil),<your_printername>,(nil),(nil),0) > err:commdlg:PRINTDLG_ChangePrinterW DocumentProperties fails on > L"<your_printername>" > fixme:commdlg:PRINTDLG_UpdatePrintDlgW No lpdm ptr? > --- cut ---I'm not sure how this would help me.> You need a PPD-File for your Printer, as I already mentioned in: > http://www.winehq.org/pipermail/wine-users/2006-June/022383.htmlYes, I remember your reply. You wrote: "Peinting with lpr requires an entry in "/etc/printcap" and a ppd-File for the Printer." At this point I decided to post my problem again with a more detailed description: http://www.winehq.org/pipermail/wine-users/2006-June/022469.html There I mention that I already have a working printing environment and that I can print with lpr from the command line, even without /etc/printcap or any ppd files, just by configuring /etc/cups/client.conf. Anyway. I followd your advice and copied /usr/share/wine/generic.ppd to /usr/share/cups/model/generic.ppd on my local machine. Then I configured a local cupsd, which forwards all print jobs to my print server (ipp://goza/printers/i560), using the generic.ppd. (It seems, that wine requires a local cupsd.) Unfortunately I still can't print, although the error messages disappeared. But now I'm able to print to a file. The file is called "FILE:" (can't choose a name or path), a postscript file that I can print with Konqueror. I can live with that for now.> With a PPD-File, you find the results from PSDRV_ParsePPD: > --- cut --- > trace:psdrv:PSDRV_ParsePPD file '/var/tmp/44a835909b8f2' > trace:psdrv:PSDRV_ParsePPD NickNameI believe you, but I don't understand what you are trying to tell me. ;-) Thanks a lot! Sven P.S. You sign your postings with "Detlef", but the list shows you as "Derlef"
Hi Detlef! DR>You need to install the BSD-Printing-commands from CUPS (lpr and DR>others) DR> DR>On my ubuntu 5.04, the Package is named "cupsys-bsd" Ah okay. Well, I'll be trying this, but won't have access to that machine before friday evening. Have to find the appropriate package for Suse first also. DR>I'm working on the printing-issues, but that takes a while. Take your time. If there only were some hints in the GUI instead of cryptic error messages in the console... mit freundlichem Gru? aus Bubenreuth Ekkehard
Duane Clark wrote:> Now that you have gotten rid of the error messages (I think that is a > good sign), have you tried completely deleting (or renaming) your > current .wine directory, and allowed Wine to create a new one from > scratch? Perhaps some entries were left in the registry that are > affecting thing.I tried it, but I get the same error messages as before, when I run winecfg: wine: creating configuration directory '/home/rudolph/.wine'... To use WINEPS you need to install some AFM files. fixme:winspool:AddPrinterW DocumentPropertiesW on printer 'L"i560"' fails To use WINEPS you need to install some AFM files. wine: '/home/rudolph/.wine' created successfully. err:winecfg:on_remove_click unixpath: / Printing is also not possible, though without error messages. Printing to file works. Sven
Duane Clark wrote:> I'll renew my offer. Set a WINEDEBUG environment variable to psdrv. > Delete your .wine. Rerun winecfg. Compress the resulting messages with > bzip2 and post it. I'll take a look and see if I can figure out what you > are missing.Do you mean something like WINEDEBUG="+psdrv" winecfg 2> log Oops. I'm not allowed to post attachements to this group. Sven
Duane Clark wrote:> I'll renew my offer. Set a WINEDEBUG environment variable to psdrv. > Delete your .wine. Rerun winecfg. Compress the resulting messages with > bzip2 and post it. I'll take a look and see if I can figure out what you > are missing.This group doesn't allow me to post binary data, so I would have to post the uncomressed log. Is that OK for you? Sven
Hello Duane, thanks again for your help!> In the meantime, try just copying the entries from the Wine supplied > generic.ppd file into the i560.ppd file that is presumably in > /etc/cups/ppd or somewhere similar. That might make things work for you. > Delete the ~/.wine and let winecfg recreate it; Wine won't detect that > the PPD file has changed.I will try that, but I'm currently compiling xorg-7.0, so it might be not today.> Also, where did you get the PPD file that you are using with the i560?I use drivers from http://www.canon-sales.co.jp/drv-upd/bj/other.html#linux or ftp://download.canon.jp/pub/driver/bj/linux Sven
Hi Detlef! DR>Please let me know the results then. Okay, here's what happened: 1) The lpr package for CUPS is called cups-client in SUSE. 2) It was installed. 3) lpr threw error messages when started from commandline. 4) linuxquestions.org had this problem back in 2003 5) Possible error: wrong version of lpr binary 6) Solution: re-install cups-client 7) lpr "FILE:" works :-) 8) Wine applications print directly to paper now. With best regards Ekkehard
Hello Duane, well I have good news. It works! :-) Thanks a lot for your help! Sven P.S. This hint should really make it into the docs.> the PPD file you are using does not have any entries > (usually at the end of the file) like these: > *DefaultFont: Courier > *Font AvantGarde-Book: Standard "(001.006S)" Standard ROM > *Font AvantGarde-BookOblique: Standard "(001.006S)" Standard ROM > ...> In the meantime, try just copying the entries from the Wine supplied > generic.ppd file into the i560.ppd file that is presumably in > /etc/cups/ppd or somewhere similar. That might make things work for you. > Delete the ~/.wine and let winecfg recreate it; Wine won't detect that > the PPD file has changed.