New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Printer not working after upgrade

Got problems with your B2 or B3? Share and get helped!
Post Reply
Krudtugle
Posts: 35
Joined: 21 Oct 2010, 03:01

Printer not working after upgrade

Post by Krudtugle »

Hi!

I recently upgraded to 2.5.1.1. Since then my USB attached printer doesn't work. Anyone know if something printer related has changed in the B3 SW?

When looking at the printer admin page, I just see this for the printouts I have tried to do:
State: stopped "/usr/lib/cups/filter/rastertosamsungspl failed"

In the B3 admin page, the printer is there:
Attached printers Samsung ML-1865W Series

So, it seems like the B3 knows it has a printer attached, but the printer driver fails by some unknown reason. The printer log (/var/log/cups/error_log) doesn't say anything much than:
/usr/lib/cups/filter/rastertosamsungspl: Exec format error

Could there perhaps be some new or changed lib in 2.5.1.1 release that makes the driver not work?
Gordon
Posts: 1462
Joined: 10 Aug 2011, 03:18

Re: Printer not working after upgrade

Post by Gordon »

Does that file /usr/lib/cups/filter/rastertosamsungspl exist on your system? It doesn't on mine, so you must have added it at some time if it worked before. The upgrade may then have either removed it or it may have become incompatible with its dependencies. In either case reinstall of the driver should fix the issue.
Krudtugle
Posts: 35
Joined: 21 Oct 2010, 03:01

Re: Printer not working after upgrade

Post by Krudtugle »

Yes, the /usr/lib/cups/filter/rastertosamsungspl is there. I tried to reinstall the driver, but still no success.

BTW, is the B3 32 bit or 64 bit? In the Samsung driver package there are two different versions of rastertosamsungpl, one for 32 bit and one for 64 bit.
Gordon
Posts: 1462
Joined: 10 Aug 2011, 03:18

Re: Printer not working after upgrade

Post by Gordon »

Krudtugle wrote:Yes, the /usr/lib/cups/filter/rastertosamsungspl is there. I tried to reinstall the driver, but still no success.

BTW, is the B3 32 bit or 64 bit? In the Samsung driver package there are two different versions of rastertosamsungpl, one for 32 bit and one for 64 bit.
Good point...

The B3 is ARM, so that driver is a no go. From what I read HERE you can however use the rastertosamsungpl binary as a sort of placeholder to define the printer in Cups using the PPD file. Whether that's very useful I really don't know. Best bet I think would be to try the SpliX driver (an opensource implementation for SPL - Samsung Printer Language) that is already provided by Excito. However it appears that this particular printer model also supports PCL 5e for which you can use the ghostscript built-in driver foomatic/pxlmono.
Nrde
Posts: 75
Joined: 17 Nov 2010, 06:41

Re: Printer not working after upgrade

Post by Nrde »

I have (still) the same error as before, i.e., Printer not working. I'm not sure if my printer is supposed to work out of the box or not, but it's the same model as Johannes bought for Excito to test earlier this year (or was it last year?)

So my symptom is the same as original poster had, I see the printer in web UI, but when I print I don't get anything. (I have Samsung driver installed on my Windows/Linux machines).

I have no idea if this is because I have tried to fix the problem by modifying CUPS settings based on the advice given here or if it's not really meant to work just like that anyway.

So can Excito/Johannes verify the Samsung models mentioned in the earlier printer threads (mine is ML-1670) really work out of the box, and if yes, provide a link to a default CUPS config file to enable me to do the same... :)

cups error log has this:

Code: Select all

W [20/Nov/2012:06:25:03 +0100] Duplicate listen address "/var/run/cups/cups.sock" ignored!
W [20/Nov/2012:06:25:03 +0100] Duplicate listen address "::1" ignored!
W [20/Nov/2012:06:25:03 +0100] Duplicate listen address "127.0.0.1" ignored!
W [20/Nov/2012:06:25:03 +0100] Duplicate listen address "/var/run/cups/cups.sock" ignored!
E [20/Nov/2012:06:25:03 +0100] Unable to bind socket for address ::1:631 - Address already in use.
E [20/Nov/2012:06:25:03 +0100] Unable to bind socket for address 127.0.0.1:631 - Address already in use.
Gordon
Posts: 1462
Joined: 10 Aug 2011, 03:18

Re: Printer not working after upgrade

Post by Gordon »

That log seems to indicate that you tried to start Cups while it was already running.

In any case, from my point of view I'd try to get Linux printing working first and be able to print a Cups test page. So for the 1670 that would have to be de SpliX driver and for the 1865W pxlmono. Once you have that verified then you're left with two options on the Windows client, to either use a generic Postscript driver and let Cups run it through the Linux driver or to use the Windows driver and let Cups handle it as a "raw" file. You might want to check if raw mode is enabled on your system for that last option.

/usr/share/cups/mime/mime.types

Code: Select all

########################################################################
#
# Raw print file support...
#
# Comment the following type to prevent raw file printing.
#

application/octet-stream
/usr/share/cups/mime/mime.convs

Code: Select all

########################################################################
#
# Raw filter...
#
# Uncomment the following filter to allow printing of arbitrary files
# without the -oraw option.
#

application/octet-stream	application/vnd.cups-raw	0	-
Nrde
Posts: 75
Joined: 17 Nov 2010, 06:41

Re: Printer not working after upgrade

Post by Nrde »

Gordon wrote:In any case, from my point of view I'd try to get Linux printing working first and be able to print a Cups test page.
Tried that. Everything seems to be ok, but no page is printed. (EDIT: after resetting the driver to "Samsung ML-1640, SpliX V. 2.0.0 (grayscale, 2-sided printing)" the printer prints a page with "Internal error - please use the proper driver". There's no ML-1670 on the list. The pxlmono driver does nothing.

SYSLOG:

Code: Select all

Nov 22 18:42:59 b3 kernel: [9336635.989907] usb 1-1.1: new high speed USB device number 4 using orion-ehci
Nov 22 18:42:59 b3 kernel: [9336636.124321] usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x04E8 pid 0x3313
Nov 22 18:42:59 b3 udev-configure-printer: add /devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0
Nov 22 18:42:59 b3 udev-configure-printer: parent devpath is /devices/platform/orion-ehci.0/usb1/1-1/1-1.1
Nov 22 18:42:59 b3 udev-configure-printer: Device vendor/product is 04E8:3313
Nov 22 18:42:59 b3 udev-configure-printer: failed to claim interface
Nov 22 18:42:59 b3 udev-configure-printer: invalid or missing IEEE 1284 Device ID
Nov 22 18:42:59 b3 udev-configure-printer: add /devices/platform/orion-ehci.0/usb1/1-1/1-1.1/1-1.1:1.0/usb/lp0
Nov 22 18:42:59 b3 udev-configure-printer: parent devpath is /devices/platform/orion-ehci.0/usb1/1-1/1-1.1
Nov 22 18:42:59 b3 udev-configure-printer: MFG:Samsung MDL:ML-1670 Series SERN:- serial:Z6FZBKAB500565A.
Nov 22 18:43:00 b3 kernel: [9336637.681702] usb 1-1.1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Nov 22 18:43:15 b3 udev-configure-printer: URI matches without serial number: usb://Samsung/ML-1670%20Series
Nov 22 18:43:15 b3 udev-configure-printer: No serial number URI matches so using those without
Nov 22 18:43:15 b3 udev-configure-printer: Queue ipp://localhost:631/printers/laser has matching device URI
Nov 22 18:43:15 b3 udev-configure-printer: Re-enabled printer ipp://localhost:631/printers/laser
CUPS log:

Code: Select all


localhost - - [22/Nov/2012:18:43:00 +0100] "POST / HTTP/1.1" 401 191 CUPS-Get-Devices successful-ok
localhost - root [22/Nov/2012:18:43:00 +0100] "POST / HTTP/1.1" 200 974 CUPS-Get-Devices -
localhost - - [22/Nov/2012:18:43:15 +0100] "POST /admin/ HTTP/1.1" 401 125 Resume-Printer successful-ok
localhost - root [22/Nov/2012:18:43:15 +0100] "POST /admin/ HTTP/1.1" 200 125 Resume-Printer successful-ok
localhost - - [22/Nov/2012:18:48:09 +0100] "POST /printers/laser HTTP/1.1" 200 481 Print-Job successful-ok

Gordon
Posts: 1462
Joined: 10 Aug 2011, 03:18

Re: Printer not working after upgrade

Post by Gordon »

Nrde wrote:
Gordon wrote:In any case, from my point of view I'd try to get Linux printing working first and be able to print a Cups test page.
Tried that. Everything seems to be ok, but no page is printed. (EDIT: after resetting the driver to "Samsung ML-1640, SpliX V. 2.0.0 (grayscale, 2-sided printing)" the printer prints a page with "Internal error - please use the proper driver". There's no ML-1670 on the list. The pxlmono driver does nothing.
Figures. The pxlmono driver is for PCL (HP printer language). The ML-1670 is indeed not listed as a supported printer on the SpliX homepage. On the positive side: it did actually access the printer, so with raw printing enabled (see the code snippits I posted earlier) this should enable you to print from Windows.
Krudtugle
Posts: 35
Joined: 21 Oct 2010, 03:01

Re: Printer not working after upgrade

Post by Krudtugle »

I tried to reinstall the printer from the CUPS admin page, both with the SpliX driver and with the foomatic/pxlmono driver (I guess you can choose any printer from the list with those drivers?).

Still not working. The only thing that happens is that I can print a self test page. Not via the admin page, only via my Linux laptop printer admin tool.

The self test page says "If you can read this, you are using the wrong driver for ythour printer."

Although it's not too happy reading, I must say I'm glad it does print something and it's actually informative. Now, the question is, what driver shall I use?...
Gordon
Posts: 1462
Joined: 10 Aug 2011, 03:18

Re: Printer not working after upgrade

Post by Gordon »

The logical choice would be to use Samsungs own unified printer driver. On your laptop of course...
Krudtugle
Posts: 35
Joined: 21 Oct 2010, 03:01

Re: Printer not working after upgrade

Post by Krudtugle »

Breaking news!

I tried some different drivers in the list of drivers (for Samsung printers) in the CUPS admin page and at last it worked with the CUPS+Gutenprint v5.2.6 driver. I chose the Samsung ML-85 printer, but probably there are more printers in the list with this driver.

After deleting and adding the printer in my Linux laptop (and choosing the same driver), it worked!
Gordon
Posts: 1462
Joined: 10 Aug 2011, 03:18

Re: Printer not working after upgrade

Post by Gordon »

Good job...

Do note though that if you can get it to print a correct testpage from cups on the B3, it should also be possible to use a generic postscript driver on the client machine (your laptop).
Krudtugle
Posts: 35
Joined: 21 Oct 2010, 03:01

Re: Printer not working after upgrade

Post by Krudtugle »

OK, thanks! I haven't tried that, but I could try it on my other laptop (with Windows).
Nrde
Posts: 75
Joined: 17 Nov 2010, 06:41

Re: Printer not working after upgrade

Post by Nrde »

Gordon wrote:Figures. The pxlmono driver is for PCL (HP printer language). The ML-1670 is indeed not listed as a supported printer on the SpliX homepage. On the positive side: it did actually access the printer, so with raw printing enabled (see the code snippits I posted earlier) this should enable you to print from Windows.
Yep, I did this and now I'm able to print from Windows with Samsung driver. Too bad my linux machines are still pending. But that is not Bubba's fault :) The mime stuff was already in place om my B3.

So my problem was that B3 didn't want to do anything with the printer earlier, when it started to see it properly the knot opened.

Anyway, would be nice to be able to print test pages from CUPS too, but that is one low priority for me.
Gordon
Posts: 1462
Joined: 10 Aug 2011, 03:18

Re: Printer not working after upgrade

Post by Gordon »

Krudtugle wrote:OK, thanks! I haven't tried that, but I could try it on my other laptop (with Windows).
For Windows I'd suggest you use the HP 4/4M PS driver (monochrome) or HP Color Laserjet PS. Don't use the generic MS Publisher print drivers - they create huge bitmap style print files which take ages to print.
Post Reply