Epson network printer, filter problem?

Issues related to applications and software problems
dolly
Posts: 15
Joined: 2018/01/01 09:32:25

Epson network printer, filter problem?

Postby dolly » 2018/03/26 17:22:18

For months I've been trying to get the all-in-one Epson printer + scanner (Stylus SX535WD, [link]) to work properly with CentOS 6 (32 bit arch).
It's a network printer, meaning I can decide either to connect to it via USB or over the WiFi.
Now, I tried setting it as a network printer, calling it epson, installing its Linux drivers (.rpm files) which I downloaded many times from different sources including the official manufacturer's website, setting its default options via CUPS 1.4 web interface. Still, it DOESN'T WORK!

For instance I send a job to the printer with "sudo lp -d epson -o media=a4 [OPT] file.odt" but the printer either doesn't accept any job (even if "lpq" outputs "epson ready") or it starts printing odd characters only on the 1st line of multiple pages in spite of file.odt being a 1-page document.

Previous error logs generated in /var/log/cups/ said something about "backend error" and other times "filter" problem. Can you help me? What could be the problem? It seems the printer can't interpret the document I'm sending it.

Maybe I should uninstall previous conflicting drivers. How do I track them?

Code: Select all

[dolly@centos /]$ sudo lpoptions -d epson
[sudo] password for dolly:
auth-info-required=none copies=1 device-uri=socket://192.168.1.75:9100 finishings=3 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 media=iso_a4_210x297mm number-up=1 printer-commands=none printer-info='Epson Stylus SX535WD' printer-is-accepting-jobs=true printer-is-shared=true printer-location printer-make-and-model='Epson Stylus SX535WD Series - epson-inkjet-printer 1.0.1-1lsb3.2 (Seiko Epson Corporation LSB 3.2)' printer-state=3 printer-state-change-time=1522080504 printer-state-reasons=none printer-type=135180 printer-uri-supported=ipp://localhost:631/printers/epson sides=two-sided-long-edge
[dolly@centos /]$

User avatar
TrevorH
Forum Moderator
Posts: 22293
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Epson network printer, filter problem?

Postby TrevorH » 2018/03/26 17:43:36

If you want to print a LibreOffice document then you need to open libreoffice and print from there. Using lp with a raw odt file will lead to weird results.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

dolly
Posts: 15
Joined: 2018/01/01 09:32:25

Re: Epson network printer, filter problem?

Postby dolly » 2018/03/27 09:21:56

Tried that first -- print queue gave error msg. Said the remote host isn't responding, unable to communicate.
The filter indicated in the /etc/cups/ppd/epson.ppd file (for the root user) is /usr/share/cups/model/Epson[bla bla bla].ppd. Should it be different? Something like "mono..." instead of "Epson..." ? What do you have as filter?

(I have some vague memory of changing some file manually, back in early January; this may have caused some conflict, I don't know...)

aks
Posts: 2522
Joined: 2014/09/20 11:22:14

Re: Epson network printer, filter problem?

Postby aks » 2018/03/30 10:58:20

If you really want to concatenate to the printer, spool your job in the printer language (PostScript for example) and then cat that file out to the printer. That *should* work.
Otherwise what I'd do is look at the cups admin page (I think it's http://localhost:631 - but Google can help you there) and experiment with the various options presented. Failing that, I'd sent the printer back and buy something that actually works.

dolly
Posts: 15
Joined: 2018/01/01 09:32:25

Re: Epson network printer, filter problem?

Postby dolly » 2018/04/03 11:28:17

aks wrote:If you really want to concatenate to the printer, spool your job in the printer language (PostScript for example) and then cat that file out to the printer. That *should* work.


So what cmd would I write? Something like this..?
lp -d epson < cat file1.pdf


aks wrote: Failing that, I'd sent the printer back and buy something that actually works.

I don't think it's the printer's problem, it works fine with Windows. Somehow I must have messed up the filters by manually changing the location of a file or two... Does anyone know how to set the filters for a printer?

User avatar
TrevorH
Forum Moderator
Posts: 22293
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Epson network printer, filter problem?

Postby TrevorH » 2018/04/03 11:48:31

So what cmd would I write? Something like this..?
lp -d epson < cat file1.pdf


You cannot use lp to print files that are in proprietary formats like odt or pdf. You might be able to use it to print a postscript file if you converted it to that first but mainly, you need to use the utility that understands those file formats. Just dumping the entire file to a printer does not work and will not work.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

MartinR
Posts: 311
Joined: 2015/05/11 07:53:27
Location: UK

Re: Epson network printer, filter problem?

Postby MartinR » 2018/04/03 17:28:03

You can print OpenOffice files directly to the default printer as follows:

Code: Select all

$ soffice -p --headless <filename>
If soffice doesn't work you may need ooffice instead.