LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 03-09-2013, 10:51 PM   #1
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Rep: Reputation: 44
Epson WF3540 in CUPS with all features working


Hey guys! How should I proceed with installing an Epson WF3540 in CUPS for networked usage? I want all features to be fully functional.

I actually gave a first shot at installing it, but its not (really not) working..

First, I have downloaded the full feature driver for the WF3540 at http://download.ebz.epson.net/dsc/se...duleFromResult then downloaded the file epson-inkjet-printer-201212w-1.0.0-1lsb3.2.x86_64.rpm

(64bit version since my machine is running Slack64-13.37) then converted the RPM to TGZ and extracted the PPD file from the TGZ.

In CUPS, I added the printer (was listed under discovered network printer), then I provided the PPD file extracted before...

CUPS did not say anything / I didnt get any error messages..

Now to the problem symptoms:

When I try to scan with xsane, I get a message saying "Failed to start scanner: Error during device I/O" and nothing happens.. Meanwhile, the scanner seems to be waiting for a command or a response from the computer as it is waiting. I have to close xsane for the printer to return to its home page and the computer will never receive the scanned picture..

Duplex scanning is not available (or cannot be found) in xsane.. How do you duplex scan in xsane? Stock Slackware 64 13.37 xsane (0.998)

When printing, none of the application's printing dialog boxes are offering advanced printing options such as duplex printing, or paper types, etc... only basic printing is offered (one page per sheet, not scaled in black...)

Printing simply doesnt work. I printed a simple PDF file (1 page) and made the mistake to walk away for a few minutes, when I came back the printer had printed about 25 pages of unreadable garbage...

Clearly, I did not install the printer properly.. TO be honest, navigating in the jungle of linux files and installation methods is generally a nightmare and extraordinarily confusing. Can anyone help with the installation of this printer in CUPS? As I said, I am using Slackware on my machine (Slack64-13.37)

Thanks!!
 
Old 03-10-2013, 03:04 PM   #2
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
ok I managed to progress, but its still not working...

Basically, I did (in this very specific order):

-Delete the printer from CUPS and made sure it was gone from Slackware's printing manager as well
-I went to http://www.linuxquestions.org/questi...re-4175448790/ and followed their instructions to the letter. That is, I downloaded

Code:
epson-inkjet-printer-201212w-1.0.0-1lsb3.2.x86_64.rpm
iscan-2.29.1-5.usb0.1.ltdl3.x86_64.rpm
iscan-2.29.1-5.usb0.1.ltdl7.x86_64.rpm
then converted them to Slack packages using

Code:
rpm2txz -c -S -n -d epson-inkjet-printer-201212w-1.0.0-1lsb3.2.x86_64.rpm
rpm2txz -c -S -n -d iscan-2.29.1-5.usb0.1.ltdl3.x86_64.rpm
rpm2txz -c -S -n -d iscan-2.29.1-5.usb0.1.ltdl7.x86_64.rpm
And installed all three of them using

Code:
installpkg <package-name>
So far so good.

Then I tried printing and got a CUPS error message saying

Code:
Started filter /opt/epson-inkjet-printer-201212w/cups/lib/filter/epson_inkjet_printer_filter: failed
Which is identical to the other thread here at LQ. I followed their instruction to create a symlink from:

Code:
ln -s /lib64/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3
Which got me further to trying to print again and getting in CUPS's web interface:

Code:
 "/usr/lib64/cups/filter/pstoraster failed"
And in CUPS's logs

Code:
D [10/Mar/2013:15:01:35 -0400] [Job 77] Data file sent successfully
D [10/Mar/2013:15:01:35 -0400] [Job 77] prtMarkerSuppliesLevel.1.1 = 100
D [10/Mar/2013:15:01:35 -0400] [Job 77] prtMarkerSuppliesLevel.1.2 = 100
D [10/Mar/2013:15:01:35 -0400] [Job 77] prtMarkerSuppliesLevel.1.3 = 100
D [10/Mar/2013:15:01:35 -0400] [Job 77] prtMarkerSuppliesLevel.1.4 = 100
D [10/Mar/2013:15:01:35 -0400] [Job 77] ATTR: marker-levels=100,100,100,100
D [10/Mar/2013:15:01:35 -0400] [Job 77] End of messages
D [10/Mar/2013:15:01:35 -0400] [Job 77] printer-state=3(idle)
D [10/Mar/2013:15:01:35 -0400] [Job 77] printer-state-message="Data file sent successfully"
D [10/Mar/2013:15:01:35 -0400] [Job 77] printer-state-reasons=none
E [10/Mar/2013:15:01:52 -0400] PID 3071 (/usr/lib64/cups/filter/pstoraster) crashed on signal 11!
Otherwise, when printing a JPEG file, I get

Code:
D [10/Mar/2013:15:03:03 -0400] [Job 78] printer-state=3(idle)
D [10/Mar/2013:15:03:03 -0400] [Job 78] printer-state-message="/usr/lib64/cups/filter/pstoraster failed"
D [10/Mar/2013:15:03:03 -0400] [Job 78] printer-state-reasons=none
E [10/Mar/2013:15:03:09 -0400] [Job 79] Unable to get scanline 0!
As you can see, so far its not going very well. Any CUPS Guru's around here?

Last edited by lpallard; 03-10-2013 at 03:05 PM.
 
Old 03-10-2013, 04:31 PM   #3
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 147Reputation: 147
Your error is essentially
Code:
E [10/Mar/2013:15:01:52 -0400] PID 3071 (/usr/lib64/cups/filter/pstoraster) crashed on signal 11!
I searched the Internet for "pstoraster crashed on signal 11" and got several results. Does any of then help?
 
Old 03-10-2013, 04:34 PM   #4
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Hey guanx!

Not really... The best I could come up with is upgrading the Ghostscript that comes with Slack64 -13.37 (9.00 I believe) to the latest available (I have found GS 9.05 for Slack -current) and installed (actually upgraded) it. So far, the segfault 11 disappeared but now I get:

Code:
D [10/Mar/2013:16:21:09 -0400] [Job 81] printer-state=3(idle)
D [10/Mar/2013:16:21:09 -0400] [Job 81] printer-state-message="Data file sent successfully"
D [10/Mar/2013:16:21:09 -0400] [Job 81] printer-state-reasons=none
E [10/Mar/2013:16:29:09 -0400] [Job 82] Can't copy stdin to temporary file
Which I believe is better than a segfault... Some way I think CUPS or GS tries to write to a location which it doesnt have rights...

Can you enlighten me further?
 
Old 03-10-2013, 04:50 PM   #5
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
OK Im moving ahead!

A google and translate job later (https://bbs.archlinux.de/viewtopic.php?id=21500), I found that / was 100% full... I uninstalled some useless packages and now I can print!

The new problems now...

1-duplex is not working from LibreOffice. I select Duplex mode in the application print dialog, and the machine prints the 2 pages as separate paper sheets... No errors in CUPS logs.
EDIT: According to http://ubuntuforums.org/showthread.php?t=2071008 it may be a Libreoffice bug...

2- Printing a PDF with Okular, I select duplex printing, then I launch the print job, the printer prints the 1st page then beeps and says Incorrect page size. Please load the proper size and press the buttons... I dont get it because in CUPS, I have set the page sizes to Letter everywhere and in the applications (Okular, Firefox, etc) I also set the size to letter...

Last edited by lpallard; 03-10-2013 at 06:39 PM.
 
Old 03-10-2013, 09:48 PM   #6
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,519

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Quote:
1-duplex is not working from LibreOffice. I select Duplex mode in the application print dialog, and the machine prints the 2 pages as separate paper sheets.
One thought here would be to run 'spadmin', select your printer, and check Properties -> Device -> Option -> Two-Sided. It has also been reported in the past that changing the Printer Language type from Automatic:PDF to a Postscript option can resolve some problems.

Quote:
2- Printing a PDF with Okular, ...
Have you tried printing the PDF from another viewer e.g. xpdf?
 
Old 03-11-2013, 06:03 PM   #7
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Quote:
Originally Posted by allend View Post
One thought here would be to run 'spadmin', select your printer, and check Properties -> Device -> Option -> Two-Sided. It has also been reported in the past that changing the Printer Language type from Automatic:PDF to a Postscript option can resolve some problems.


Have you tried printing the PDF from another viewer e.g. xpdf?
in spadmin, under the Paper tab, I see "Duplex" and from the dropdown list it is set to: "On - binding edge - left"

So I believe Duplex is enabled in LibreOffice but for whatever reason (a bug?) its not printing duplex.

Again, according to http://ubuntuforums.org/showthread.php?t=2071008 it may be a libreoffice bug.. Can anyone with a duplex capable printer confirm???

Xpdf cannot print properly. It prints a gray line at the top of a page and that's it. I tried to print from within the app, clicked on the printer icon, selected: "Print with command" and entered "lp"... Not sure if its the right way to print from xpdf...

Printing from evince (The Document Viewer) works well in Duplex. I conclude it depends on the application sending the print command to CUPS or the printer, not sure of the details of how it works..

How can it be application dependent??? Thats a mess..... Not acceptable for the least. Linux needs a complete overhaul.

New issue: ADF scanning

Scanning from the ADF also doesnt work at all. Not sure how to setup the ADF scanner since the printer is ethernet connected. I installed the drivers from Epson, xsane seems to see the ADF as it is listed in the drop down list along with Flatbed next to the scanner icon but when I try to scan, I get a error message saying

"Failed to start scanner: Error duging device I/O"

Somehow, xsane must be able to communicate with the scanner because the first time I tried to scan a paper, I forgot to load the ADF with it and clicked scan before loading the document. xsane sent me a error message saying

"Failed to start scanner: Document feeder out of documents"

As you can see, some stuff works, most doesnt. Im exhausted just setting up a all in one printer. I am more than willing to try whatever can be done as long as I can use the machine as advertised on the box (with some variations of course). This is for some serious work.

Anyone using this printer or who know how to setup so all the fundamental functions work, please share.

Last edited by lpallard; 03-11-2013 at 06:06 PM.
 
Old 03-12-2013, 01:46 AM   #8
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,519

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Quote:
Not acceptable for the least. Linux needs a complete overhaul
Perhaps some due diligence on your part prior to purchasing the printer/scanner would have been in order. Choosing a device from a manufacturer that only supplies third party driver support is fraught with potential problems. (Could have been worse, I suppose. Canon offers no Linux support whatever.)

Problems with the Epson ADF scanning probably should be addressed to the driver developers.

xpdf requires an edit in xpdfrc to enable printing.

You have not reported whether changing the Printer Language type in LibreOffice had an effect.
 
Old 03-12-2013, 12:35 PM   #9
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Quote:
Perhaps some due diligence on your part prior to purchasing the printer/scanner would have been in order
I fully agree with you. Good lesson for me! But nevertheless, it shouldnt be that complicated in 2013 to use a simple all in one device. Anyways, cant talk too much as I dont develop drivers.

Quote:
Choosing a device from a manufacturer that only supplies third party driver support is fraught with potential problems
Also agree with you. Again, my choices were HP (not interested, Ive had too many bad experiences with their pruducts), Lexmark (bad quality IMO), Canon (kinda OK but as you pointed out no Linux support), and finally Epson. That day, the WF 3540 was 45% off as a sale...

Anyways, Ive ended up with this device and im not returning it because linux cant support it. Id much rather try to make it work and share my journey with fellow linux users instead of changing it. If all else fails, then ill simply change OS.

Quote:
You have not reported whether changing the Printer Language type in LibreOffice had an effect.
Sorry, I simply forgot to try this.. Ill try tonight and post back.

At least for now I can use the flatbed scanner without any glitches. Printing kinda works as well.. Its a starting point!
 
Old 03-15-2013, 09:27 PM   #10
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
OK setting the printer language in spadmin to Postscript level 3 helped the duplex printing...
Thanks for the hint!


I have sent an email to Epson to ask them for a working driver. I have searched the web for hours with no working solution. I *think* UDEV is the culprit, but being no expert, I am not entirely sure... You see, I can use the flatbed scanner without problems. The same thing should be true for the ADF as well... I am not sure what is the difference between the ADF and the flatbed scanner..

Other info: their scanning app (Image Scan!) cant even launch properly. I get

Code:
Could not send command to scanner.  Check the scanner's status
Also trying "sane-find-scanner" I get

Code:
could not fetch string descriptor: Pipe error
could not fetch string descriptor: Pipe error
This thread has similar experiences...
http://www.linuxquestions.org/questi...32-bit-881257/

As suggested iin the thread above, I tried with Skanlite as well... I also get a similar error message as with XSane.

Code:
"Error during device I/O"
Slackware seems to be the common denominator. Can anybody help me pin-point the root cause of this?
 
Old 03-16-2013, 01:00 AM   #11
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,519

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
I also see the "could not fetch string descriptor: Pipe error" messages when I use 'sane-find-scanner' with my Brother MFC-J825DW printer/scanner, but all works OK including the ADF.

Does the output of 'scanimage --help' provide any clues?
I see
Code:
Options specific to device `brother4:net1;dev0':
  Mode:
    --mode Black & White|Gray[Error Diffusion]|True Gray|24bit Color|24bit Color[Fast] [24bit Color[Fast]]
        Select the scan mode
    --resolution 100|150|200|300|400|600|1200|2400|4800|9600dpi [200]
        Sets the resolution of the scanned image.
    --source FlatBed|Automatic Document Feeder(left aligned)|Automatic Document Feeder(centrally aligned) [Automatic Document Feeder(left aligned)]
        Selects the scan source (such as a document-feeder).
    --brightness -50..50% (in steps of 1) [inactive]
        Controls the brightness of the acquired image.
    --contrast -50..50% (in steps of 1) [inactive]
        Controls the contrast of the acquired image.
 
Old 03-16-2013, 11:52 AM   #12
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
allend, I see

Code:
Options specific to device `epson2:net:192.168.0.105':
Optional equipment:
    --source Flatbed|Automatic Document Feeder [Flatbed]
        Selects the scan source (such as a document-feeder).
    --auto-eject[=(yes|no)] [no]
        Eject document after scanning
    --film-type Positive Film|Negative Film|Positive Slide|Negative Slide [inactive]   
    --focus-position Focus on glass|Focus 2.5mm above glass [inactive]
        Sets the focus position to either the glass or 2.5mm above the glass
    --bay 1|2|3|4|5|6 [inactive]
        Select bay to scan
    --eject []
        Eject the sheet in the ADF
    --adf-mode Simplex|Duplex [inactive]
        Selects the ADF mode (simplex/duplex)
However, when I try to scan with the scanimage command, I get:

Code:
bash-4.1$ scanimage -d epson2:net:192.168.0.105 --source ADF
scanimage: setting of option --source failed (Invalid argument)
EDIT: searching the web, I have found that apparently you need to install "iscan-network-nt" that would be a plug in to allow imagescan to find networked scanners since the default setup assumes USB connections o other local connections. Apparently what they mean by network scanner would be for someone on a network trying to scan with a scanner hooked up to a networked machine (a host more or less). Its not my case as my scanner has its own IP.

On top of that, Avasys (the Jap company that was in charge of Epson's linux drivers), permanently dropped linux as of January 20th 2013... Damn it! Ill try to find the network plugin somewhere else..

For reference, it was supposedly http://linux.avasys.jp/drivers/scann...0-2.x86_64.rpm

I have searched this file everywhere... I checked pkgs.org, all the RPM repositories I could find, the slackbuilds website, a few slackware contributor's blogs, etc. To no avail.

Last edited by lpallard; 03-16-2013 at 12:36 PM.
 
Old 03-16-2013, 09:58 PM   #13
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,519

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
It appears that Epson is bringing the Linux support in-house! Your device is on the list here with a last driver update as of February 12 2013.
http://download.ebz.epson.net/dsc/du...d2d6d8b481d435

I got this by going to http://download.ebz.epson.net/dsc/se...h/searchModule and entering WF-3540 as the product.

Try
Code:
scanimage -d epson2:net:192.168.0.105 --source "Automatic Document Feeder [Flatbed]"
or just
Code:
scanimage -d epson2:net:192.168.0.105 --source "Automatic Document Feeder"

Last edited by allend; 03-16-2013 at 10:06 PM.
 
Old 03-17-2013, 03:04 PM   #14
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Original Poster
Rep: Reputation: 44
Its returning:

Code:
bash-4.1$ scanimage -d epson2:net:192.168.0.105 --source "Automatic Document Feeder [Flatbed]"scanimage -d epson2:net:192.168.0.105 --source "Automatic Document Feeder" > /home/lpallard/output.pdf
scanimage: sane_start: Error during device I/O
I have also tried as root. Same thing. I dont only get this error but the whole printer crashes with all lights blinking and it needs a shutdown to be back to normal..

I will try more stuff in the next few days... At least now we know that sane might be the problem..

Last edited by lpallard; 03-17-2013 at 03:07 PM.
 
Old 03-20-2013, 12:06 PM   #15
fmcdavid
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
I'm going thru this today...1 year old wp-4530 died, got this one as a cheaper replacement...last one seemed to work about as well as this one...printing works, flatbed works, but no adf. No linux support. On the surface, with the driver development moving back in-house, this looks more promising down the road. If you still haven't found them, here's dropbox links to the iscan-network-nt debs I downloaded for my last printer. For what it's worth, I've got them installed and I'm no better off for it.

https://dl.dropbox.com/u/110395234/i....0-2_amd64.deb
https://dl.dropbox.com/u/110395234/i...1.0-2_i386.deb

I did manage to scan a single page once using the adf (enough to get my hopes up) by specifying the number of pages (it was set to one). When I changed the setting to "all", it no longer worked, even if I specified the number of pages again. Restarting the printer and the sane daemon didn't help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS-gutenprint (with Epson printer) not working on Debian Lenny / Mandriva 2009.1 Hartmut Linux - Newbie 2 05-29-2009 09:58 AM
Epson LX-300, how to use it with cups? stormrider_may Linux - Hardware 1 01-25-2006 02:20 PM
Epson C64 and CUPS 1.1.19 DarkSun84 Slackware 2 04-12-2004 12:45 PM
EPSON Stylus C82 not working even after ins CUPS and Foomatic filters cevjr Linux - Hardware 8 03-18-2004 05:33 PM
CUPS and Epson impact ionmich Slackware 1 10-09-2003 10:14 PM


All times are GMT -5. The time now is 07:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration