Jakob Lenfers
2019-Sep-04 07:23 UTC
[Samba] Printer with driver from Samba prints only b/w
Hi, sorry if this is off topic, but it only happens when samba is involved, maybe anybody here has an idea. System info: - Clients used were Win10, ranging from 1803 to 1903. - The DCs are running Samba 4.7.6. - The print server is a member server. I tried both scenarios with two samba print servers, Ubuntu 18.04, Cups 2.7. One had Ubuntus Samba, 4.7.6. The other used Louis van Belles 4.10.7. - The print servers run fine with other printers We got a new (used) printer, a HP CP 4525. I'm experiencing two distinct problems with it: The windows clients can only print b/w. I installed it in CUPS with a raw queue and exported it via samba. Added a driver (HP Universal Printing PS) as described in the wiki with the windows print management. Set some sensible default options like duplex (but in later tests also just left everything on default) and installed the printer on a fresh test client. As mentioned above, it only prints b/w. If I install/use the same driver version (61.230.1.24296) and install the printer directly via IP, the same client prints in color. When I setup the samba printer on my Linux machine with CUPS, it prints fine in color. So it seems to be a windows problem, but only if the driver comes through samba. Second problem feels even more like a windows problem: Before using the HP universal printer driver, I tried the fitting driver for the CP 4525 from HPs homepage. Added the driver with the print management. Assigned it to the new printer, clicking no when asked to look for a driver. After assigning the driver, i try to open the printer properties again and then the print management crashes without any notice, the window just disappears. Reproduced on both print servers with various windows 10 client versions. I have the feeling if I could solve only one of those problems I would be happy :) I've been at this for two weeks now. :( Thanks in advance, Jakob
L.P.H. van Belle
2019-Sep-04 08:33 UTC
[Samba] Printer with driver from Samba prints only b/w
Hai, A quick reply. As far i can tell, the steps you did are fine. The only diffence here compaired to my setup. And i also use(d) an HP CP 3525, i used the PCL6 6.0.0 and 6.2.1 and 6.5.0 drivers. Off these i know they should work. Only thing here is i cant really the exact setup, its years old already and i changed to kyocera printers. One major thing here, i configured this all from a win7 x64 pc, not win10. Based on : https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Print_Server The part : Adding a printer to the Print Server Back End I only use : AppSocket/HP JetDirect Why? Because i noticed it always workes, i let the computer make the print job then send it. Same for my Kyocera printers, all use : socket://x.x.x.x:9100 And you could increase the debuglevel of cups and samba then make it crash. And check the logs of these, and also check the windows eventlog. Somewhere it should show why it crashes. I first guest would be a missing right somewhere. So far, Greetz, Louis Ps. new packages will be online today.> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Jakob Lenfers via samba > Verzonden: woensdag 4 september 2019 9:24 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Printer with driver from Samba prints only b/w > > Hi, > > sorry if this is off topic, but it only happens when samba is > involved, > maybe anybody here has an idea. > > System info: > - Clients used were Win10, ranging from 1803 to 1903. > - The DCs are running Samba 4.7.6. > - The print server is a member server. I tried both scenarios with two > samba print servers, Ubuntu 18.04, Cups 2.7. One had Ubuntus Samba, > 4.7.6. The other used Louis van Belles 4.10.7. > - The print servers run fine with other printers > > > We got a new (used) printer, a HP CP 4525. I'm experiencing > two distinct > problems with it: The windows clients can only print b/w. > > I installed it in CUPS with a raw queue and exported it via > samba. Added > a driver (HP Universal Printing PS) as described in the wiki with the > windows print management. Set some sensible default options > like duplex > (but in later tests also just left everything on default) and > installed > the printer on a fresh test client. As mentioned above, it only prints > b/w. If I install/use the same driver version (61.230.1.24296) and > install the printer directly via IP, the same client prints in color. > > When I setup the samba printer on my Linux machine with CUPS, > it prints > fine in color. So it seems to be a windows problem, but only if the > driver comes through samba. > > > Second problem feels even more like a windows problem: Before > using the > HP universal printer driver, I tried the fitting driver for > the CP 4525 > from HPs homepage. Added the driver with the print > management. Assigned > it to the new printer, clicking no when asked to look for a driver. > After assigning the driver, i try to open the printer properties again > and then the print management crashes without any notice, the window > just disappears. Reproduced on both print servers with various windows > 10 client versions. > > I have the feeling if I could solve only one of those problems I would > be happy :) I've been at this for two weeks now. :( > > Thanks in advance, > Jakob > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > >
Jakob Lenfers
2019-Sep-05 07:23 UTC
[Samba] Printer with driver from Samba prints only b/w
Am 04.09.19 um 10:33 schrieb L.P.H. van Belle via samba:> I only use : AppSocket/HP JetDirect > Why? Because i noticed it always workes, i let the computer make the print job then send it. > Same for my Kyocera printers, all use : socket://x.x.x.x:9100Wait, you don't print through CUPS? You print directly from client to printer, but use Samba for driver distribution? I used this for printer creation in CUPS, so I print directly via jetdirect from CUPS as well: | sudo lpadmin -p 5.4_Color_SOC-GP -v socket://w.x.y.z:9100 -L "Haus 5 Ebene 4 (5.4445)" -D "Color Printer GP (5.4445)" -E> And you could increase the debuglevel of cups and samba then make it crash. > And check the logs of these, and also check the windows eventlog. > > Somewhere it should show why it crashes. > I first guest would be a missing right somewhere.Yeah, I didn't debug that part too much yet and concentrated on the universal driver instead. Will check it again. Thanks for your reply, Jakob
L.P.H. van Belle
2019-Sep-05 07:36 UTC
[Samba] Printer with driver from Samba prints only b/w
Hai,> -----Oorspronkelijk bericht----- > Van: Jakob Lenfers [mailto:lenfers at bigsss-bremen.de] > Verzonden: donderdag 5 september 2019 9:24 > Aan: L.P.H. van Belle; samba at lists.samba.org > Onderwerp: Re: [Samba] Printer with driver from Samba prints only b/w > > Am 04.09.19 um 10:33 schrieb L.P.H. van Belle via samba: > > > I only use : AppSocket/HP JetDirect > > Why? Because i noticed it always workes, i let the computer > make the print job then send it. > > Same for my Kyocera printers, all use : socket://x.x.x.x:9100 > > Wait, you don't print through CUPS? You print directly from client to > printer, but use Samba for driver distribution?No, i do print through cups. The clients uses printpath \\printserver.FQDN\printershare The client (winpc) generated the print job which gets spooled through \\printserver.FQDN\printershare Cups processes this and send it too socket://x.x.x.x:9100> > I used this for printer creation in CUPS, so I print directly via > jetdirect from CUPS as well: > > | sudo lpadmin -p 5.4_Color_SOC-GP -v socket://w.x.y.z:9100 -L "Haus 5 > Ebene 4 (5.4445)" -D "Color Printer GP (5.4445)" -E > > > And you could increase the debuglevel of cups and samba > then make it crash. > > And check the logs of these, and also check the windows eventlog. > > > > Somewhere it should show why it crashes. > > I first guest would be a missing right somewhere. > > Yeah, I didn't debug that part too much yet and concentrated on the > universal driver instead. Will check it again. > > Thanks for your reply, > Jakob >Greetz, Louis
Jakob Lenfers
2019-Sep-09 05:45 UTC
[Samba] Printer with driver from Samba prints only b/w
Am 04.09.19 um 09:23 schrieb Jakob Lenfers via samba:> I installed it in CUPS with a raw queue and exported it via samba. Added > a driver (HP Universal Printing PS) as described in the wiki with the > windows print management. Set some sensible default options like duplex > (but in later tests also just left everything on default) and installed > the printer on a fresh test client. As mentioned above, it only prints > b/w. If I install/use the same driver version (61.230.1.24296) and > install the printer directly via IP, the same client prints in color.I finally found a workaround, downgrading the driver to 5.9.0 (61.170.1.18326) did the trick for me. It still feels like a problem between the driver and samba, but I don't have a windows server to make sure. Thanks! Jakob