User avatar
penguintutor
Posts: 358
Joined: Tue May 08, 2012 9:11 am
Location: UK
Contact: Website

Printing

Thu Jul 12, 2012 4:04 pm

Has anyone got printing working on the Pi?

I installed CUPS and then installed the standard driver for my Epson printer. At first it looked good - I was able to print a test page and printing from Iceweasel worked, but then I tried printing from Midora which failed with a problem on Ghostscript.

I've now tried using the EPSON provided drivers compiling from source. They have much more functionality. Although I was able to get the driver to compile and install OK it fails whenever I try to print (including the test page).

I have tried running gs on it's own and it can cope with a simple conversion, but if I try the pdftops filter that just hangs.

Below is the relevant bit from cups/error_log

Code: Select all

 [12/Jul/2012:11:30:57 -0400] [Job 11] ATTR: marker-levels=73,52,21,100,62,34
D [12/Jul/2012:11:30:57 -0400] [Job 11] new_supply_state=0, change_state=0
D [12/Jul/2012:11:30:57 -0400] [Job 11] new_state=0, change_state=0
D [12/Jul/2012:11:30:57 -0400] [Job 11] Error: /undefined in --setpagedevice--
D [12/Jul/2012:11:30:57 -0400] [Job 11] Operand stack:
D [12/Jul/2012:11:30:57 -0400] [Job 11] (/var/spool/cups/tmp/gs_JNsHhT)   --nostringval--   --dict:6/6(L)--   --dict:6/6(L)--   setpagedevice   --dict:30/32(L)--   true
D [12/Jul/2012:11:30:57 -0400] [Job 11] Execution stack:
D [12/Jul/2012:11:30:57 -0400] [Job 11] %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1914   1   3   %oparray_pop   1913   1   3   %oparray_pop   1897   1   3   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   2   1   1   --nostringval--   %for_pos_int_continue   --nostringval--   1882   4   7   %oparray_pop   --nostringval--   --nostringval--
D [12/Jul/2012:11:30:57 -0400] [Job 11] Dictionary stack:
D [12/Jul/2012:11:30:57 -0400] [Job 11] --dict:1172/1684(ro)(G)--   --dict:1/20(G)--   --dict:82/200(L)--   --dict:82/200(L)--   --dict:109/127(ro)(G)--   --dict:291/300(ro)(G)--   --dict:23/31(L)--
D [12/Jul/2012:11:30:57 -0400] [Job 11] Current allocation mode is local
D [12/Jul/2012:11:30:57 -0400] [Job 11] Last OS error: 12
D [12/Jul/2012:11:30:57 -0400] [Job 11] GPL Ghostscript 9.05: Unrecoverable error, exit code 1
D [12/Jul/2012:11:30:57 -0400] [Job 11] Rendering completed
D [12/Jul/2012:11:30:57 -0400] [Job 11] Set job-printer-state-message to "Rendering completed", current level=INFO
D [12/Jul/2012:11:30:57 -0400] [Job 11] Can't open CUPS raster file.
D [12/Jul/2012:11:30:57 -0400] [Job 11] End of messages
D [12/Jul/2012:11:30:57 -0400] [Job 11] printer-state=3(idle)
D [12/Jul/2012:11:30:57 -0400] [Job 11] printer-state-message="/usr/lib/cups/filter/epson_inkjet_printer_filter failed"
D [12/Jul/2012:11:30:57 -0400] [Job 11] printer-state-reasons=none
E [12/Jul/2012:11:35:57 -0400] [Job 11] Stopping unresponsive job!

Has anyone else tried printing? Anyone actually got a printer to work?

User avatar
penguintutor
Posts: 358
Joined: Tue May 08, 2012 9:11 am
Location: UK
Contact: Website

Re: Printing

Fri Jul 13, 2012 11:15 pm

I've now got my printer working, and it's usable although slow.

I reimaged the SD card before trying again using the standard CUPS drivers. I had used the previous image for lots of different things previously so it may have just been the amount of software running.

I believe this was a performance issue and as such it may vary depending upon the printer you use, what resolution you print at and the complexity of the print job.

Actual experience may vary.

chris57100
Posts: 521
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
Contact: Website

Re: Printing

Tue Feb 05, 2013 8:32 pm

Hi,
You only restarted from scratch with a new SD ?
I installed a fresh ArchLinux and no way to print. I have the same error :

Code: Select all

Error: /undefined in --setpagedevice--
No way to print the test page
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software and electronic tutorials : Samba, Airplay, CUPS, Time machine, Nginx, Owncloud, rTorrent, Wordpress, etc.
Full Wi-Fi hotspot installation on a RPi 3 including a captive portal and freeradius management: https://github.com/pihomeserver/Kupiki-Hotspot-Script

User avatar
penguintutor
Posts: 358
Joined: Tue May 08, 2012 9:11 am
Location: UK
Contact: Website

Re: Printing

Tue Feb 05, 2013 9:47 pm

What version Raspberry Pi are you using - do you have the 256Mb or the 512MB?

I found the older 256MB struggled with printing, but since trying on the 512MB version it works better.
It appears to be a performance issue with Ghostscript due to the lack of available memory. It takes so long to perform the conversion that the job times out.

Are you using the standard CUPS printer drivers?
Do you get any other error messages?
What other applications have you got running at the time?

chris57100
Posts: 521
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
Contact: Website

Re: Printing

Wed Feb 06, 2013 8:37 am

I use a B-model with 256Mo on an ArchLinux with nothing installed on it.
I also found that it could be a memory issue. I will try with a Raspberry with 512Mo.
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software and electronic tutorials : Samba, Airplay, CUPS, Time machine, Nginx, Owncloud, rTorrent, Wordpress, etc.
Full Wi-Fi hotspot installation on a RPi 3 including a captive portal and freeradius management: https://github.com/pihomeserver/Kupiki-Hotspot-Script

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 27 guests