LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-04-2006, 02:48 PM   #1
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
printer: job completed, no printout


debian etch
samsung ML-1740
parallel port
cups

lp
parport
parport_pc all built as modules and loaded

i downloaded the driver from samsung, but the print server is a headless machine with no X, so i couldn't run the gui installer. i just copied the ppd to /usr/share/cups/model (tried both ML-1740 and 1710), and some other "filter" file it was complaining about (ppmtospl2) to /usr/lib/cups/filter/, and with that configuration it says job completed, but nothing prints out (yes, there is paper in the printer ).

the error log said it couldn't parse the XML of /etc/linuxprint.cfg, which i didn't have, so i started over following this method for another samsung printer that someone posted on linuxprinting.org (changing the ppd name in the .cfg file, etc.):

Quote:
Set up the printer without Samsung's shit setup tool!
The setup-tool that Samsung had offered doesn't work on my Debian GNU/Linux Sarge.
But I have found a Way to setup the printer without it. It's even better to do
it this way:

get the driver package from the samsung website.
unpack it:

tar zxvf 20050425144636875_lpp-1.1.7-27-i386.tar.gz

Make a directory somwhere in the system:

mkdir /usr/local/samsung

Copy the ppd directory:

cp -R image/ppd /usr/local/samsung

The directory image/bin/Linux/x86/filters contains the various
proprietary "printer drivers"

For the CLP-500 you need only ppmtosplc and pscms
You have to copy them to /usr/local/samsung/filters
and symlink them into /usr/lib/cups/filter
this quirks seems to be needed by the drivers:

mkdir /usr/local/samsung/filters
cd image/bin/Linux/x86/filters
cp ppmtosplc pscms /usr/local/samsung/filters
cd /usr/local/samsung/filters
ln -s ppmtosplc pscms /usr/lib/cups/filter

Now you have to set up a config file /etc/linuxprint.cfg needed by ppmtosplc:
write in /etc/linuxprint.cfg this:

------------------------------------------------------------
Code:
<?xml version="1.0"?>
<linux root="/usr/local/samsung" system="cups">
  <option name="ghostscript" value="/usr/bin/gs"/>
  <printer ppd="ppd/C/CLP-500splc.ppd" queue="colorlaser">
    <option name="Resolution" value="600"/>
    <option name="Duplex" value="None"/>
    <option name="PageSize" value="A4"/>
    <option name="InputSlot" value="AUTO"/>
    <option name="MediaType" value="Normal"/>
    <option name="JCLJamrecovery" value="RWJOff"/>
  </printer>
</linux>
now it totally aborts the printing job, and besides something about needing fonts (?) there's nothing obvious that i can see in the error log. i'll post it in case i'm missing something:

Code:
I [04/Jun/2006:15:33:50 -0400] New printer 'printer' added by 'root'.
D [04/Jun/2006:15:33:50 -0400] ProcessIPPRequest: 7 status_code=0
D [04/Jun/2006:15:33:50 -0400] CloseClient: 7
D [04/Jun/2006:15:34:21 -0400] ReadClient: 5 GET /printers/printer HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID                                                         = 4363
I [04/Jun/2006:15:34:21 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436                                                        3)
D [04/Jun/2006:15:34:21 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:21 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:21 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:21 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:21 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:21 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:21 -0400] CloseClient: 7
D [04/Jun/2006:15:34:23 -0400] ReadClient: 5 GET /printers/printer?op=print-test-pag                                                        e HTTP/1.1
D [04/Jun/2006:15:34:23 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID                                                         = 4364
I [04/Jun/2006:15:34:23 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436                                                        4)
D [04/Jun/2006:15:34:23 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:23 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:23 -0400] ReadClient: 7 POST /printers/printer HTTP/1.1
D [04/Jun/2006:15:34:23 -0400] print_job: request file type is application/postscrip                                                        t.
D [04/Jun/2006:15:34:23 -0400] check_quotas: requesting-user-name = 'root'
D [04/Jun/2006:15:34:23 -0400] print_job: requesting-user-name = 'root'
D [04/Jun/2006:15:34:23 -0400] Adding default job-sheets values "none,none"...
I [04/Jun/2006:15:34:23 -0400] Adding start banner page "none" to job 4.
I [04/Jun/2006:15:34:23 -0400] Adding end banner page "none" to job 4.
I [04/Jun/2006:15:34:23 -0400] Job 4 queued on 'printer' by 'root'.
D [04/Jun/2006:15:34:23 -0400] Job 4 hold_until = 0
D [04/Jun/2006:15:34:23 -0400] StartJob(4, 0x80cc0b8)
D [04/Jun/2006:15:34:23 -0400] StartJob() id = 4, file = 0/1
D [04/Jun/2006:15:34:23 -0400] job-sheets=none,none
D [04/Jun/2006:15:34:23 -0400] banner_page = 0
D [04/Jun/2006:15:34:23 -0400] StartJob: argv = "printer","4","root","Test Page","1"                                                        ,"","/var/spool/cups/d00004-001"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/us                                                        r/bin"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[2]="USER=root"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[3]="CHARSET=utf-8"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[4]="LANG=en_US"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[5]="TZ=US/Eastern"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[6]="PPD=/etc/cups/ppd/printer.ppd"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[7]="CUPS_SERVERROOT=/etc/cups"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[8]="RIP_MAX_CACHE=8m"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[9]="TMPDIR=/var/spool/cups/tmp"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[10]="CONTENT_TYPE=application/postscri                                                        pt"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[11]="DEVICE_URI=parallel:/dev/lp0"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[12]="PRINTER=printer"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[13]="CUPS_DATADIR=/usr/share/cups"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[14]="CUPS_FONTPATH=/usr/share/cups/fon                                                        ts"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[15]="CUPS_SERVER=localhost"
D [04/Jun/2006:15:34:23 -0400] StartJob: envp[16]="IPP_PORT=631"
D [04/Jun/2006:15:34:23 -0400] StartJob: statusfds = [ 9 10 ]
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[1] = [ 11 -1 ]
D [04/Jun/2006:15:34:23 -0400] StartJob: filter = "/usr/lib/cups/filter/pstops"
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[0] = [ 12 14 ]
D [04/Jun/2006:15:34:23 -0400] start_process("/usr/lib/cups/filter/pstops", 0xbf8c59                                                        80, 0xbf8c4ef8, 11, 14, 10)
I [04/Jun/2006:15:34:23 -0400] Started filter /usr/lib/cups/filter/pstops (PID 4365)                                                         for job 4.
D [04/Jun/2006:15:34:23 -0400] StartJob: filter = "/usr/lib/cups/filter/ppmtospl2"
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[1] = [ 11 15 ]
D [04/Jun/2006:15:34:23 -0400] start_process("/usr/lib/cups/filter/ppmtospl2", 0xbf8                                                        c5980, 0xbf8c4ef8, 12, 15, 10)
I [04/Jun/2006:15:34:23 -0400] Started filter /usr/lib/cups/filter/ppmtospl2 (PID 43                                                        66) for job 4.
D [04/Jun/2006:15:34:23 -0400] StartJob: backend = "/usr/lib/cups/backend/parallel"
D [04/Jun/2006:15:34:23 -0400] StartJob: filterfds[0] = [ -1 12 ]
D [04/Jun/2006:15:34:23 -0400] start_process("/usr/lib/cups/backend/parallel", 0xbf8                                                        c5980, 0xbf8c4ef8, 11, 12, 10)
I [04/Jun/2006:15:34:23 -0400] Started backend /usr/lib/cups/backend/parallel (PID 4                                                        367) for job 4.
D [04/Jun/2006:15:34:23 -0400] ProcessIPPRequest: 7 status_code=0
E [04/Jun/2006:15:34:23 -0400] PID 4366 stopped with status 22!
D [04/Jun/2006:15:34:23 -0400] [Job 4] /usr/lib/cups/filter/ppmtospl2: Too many leve                                                        ls of symbolic links
D [04/Jun/2006:15:34:23 -0400] [Job 4] Page = 612x792; 12,12 to 600,780
D [04/Jun/2006:15:34:23 -0400] [Job 4] slowcollate=0, slowduplex=0, sloworder=0
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%BoundingBox: 0 0 612 792
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Pages: 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%LanguageLevel: 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%DocumentData: Clean7Bit
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%DocumentSuppliedResources: procset testpr                                                        int/1.1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%DocumentNeededResources: font Helvetica H                                                        elvetica-Bold Times-Roman
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Creator: Michael Sweet, Easy Software Pro                                                        ducts
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%CreationDate: May 11, 1999
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Title: Test Page
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EndComments
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%BeginProlog
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%BeginResource procset testprint 1.1 0
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EndResource
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EndProlog
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Page: 1 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%Page: 1 1
D [04/Jun/2006:15:34:23 -0400] [Job 4] pw = 587.0, pl = 767.0
D [04/Jun/2006:15:34:23 -0400] [Job 4] PageLeft = 12.5, PageRight = 599.5
D [04/Jun/2006:15:34:23 -0400] [Job 4] PageTop = 779.5, PageBottom = 12.5
D [04/Jun/2006:15:34:23 -0400] [Job 4] PageWidth = 612.0, PageLength = 792.0
D [04/Jun/2006:15:34:23 -0400] [Job 4] 0 %%EOF
D [04/Jun/2006:15:34:23 -0400] [Job 4] Saw EOF!
D [04/Jun/2006:15:34:23 -0400] UpdateJob: job 4, file 0 is complete.
D [04/Jun/2006:15:34:23 -0400] CancelJob: id = 4
D [04/Jun/2006:15:34:23 -0400] StopJob: id = 4, force = 0
D [04/Jun/2006:15:34:23 -0400] StopJob: printer state is 3
D [04/Jun/2006:15:34:23 -0400] CloseClient: 7
D [04/Jun/2006:15:34:25 -0400] ReadClient: 5 GET /printers/printer HTTP/1.1
D [04/Jun/2006:15:34:25 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID                                                         = 4368
I [04/Jun/2006:15:34:25 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436                                                        8)
D [04/Jun/2006:15:34:25 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:25 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:25 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:25 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:26 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:26 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:26 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:26 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:26 -0400] CloseClient: 7
D [04/Jun/2006:15:34:28 -0400] ReadClient: 5 GET /printers/printer?which_jobs=comple                                                        ted HTTP/1.1
D [04/Jun/2006:15:34:28 -0400] CGI /usr/lib/cups/cgi-bin/printers.cgi started - PID                                                         = 4369
I [04/Jun/2006:15:34:28 -0400] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=436                                                        9)
D [04/Jun/2006:15:34:28 -0400] SendCommand: 5 file=8
D [04/Jun/2006:15:34:28 -0400] AcceptClient: 7 from localhost:631.
D [04/Jun/2006:15:34:28 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:28 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:29 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:29 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:29 -0400] ReadClient: 7 POST / HTTP/1.1
D [04/Jun/2006:15:34:29 -0400] ProcessIPPRequest: 7 status_code=1
D [04/Jun/2006:15:34:29 -0400] CloseClient: 7
[code]

i've read that a lot of people have this printer working even on debian, pretty much out of the box, so i don't know what i'm doing wrong. appreciate any help, thanks.
 
Old 06-04-2006, 04:15 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Did you read the replies on this article? Especially #6 looks promising I also found this contribution
 
Old 06-04-2006, 04:27 PM   #3
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
yep, that post by nathanbullock was the first one i followed. i tried apsfilter with the generic PS/gs driver, but also got no results. i'll try it again with samsunggdi. right now i'm rebuiding the kernel with the parallel port options built in instead of modules in case something is getting missed on boot. i notice the printer is also not powering down into powersaving mode, so maybe it's just not being detected as a /dev properly. will post back with update, thanks.

Last edited by slackhack; 06-04-2006 at 05:33 PM.
 
Old 06-04-2006, 04:48 PM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
no luck with the samsunggdi. it's almost like the printer isn't even hooked up, but is just sitting there. i had this printer working perfectly in arch, slack, winxp, and win2k over the network, hooked up to winxp. now that it's on debian, it's just turning into a nightmare. i'm totally stumped.

this is what /dev/lp0 is listed as, does that look right?

crw-rw---- 1 root lp 6, 0 2006-06-04 17:40 lp0

Last edited by slackhack; 06-04-2006 at 04:49 PM.
 
Old 06-04-2006, 05:18 PM   #5
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
It's difficult to fix problems remotely, but as we say here: "if you don't shoot you've always missed"

Are you sure that:
a) Cups is talking to the right port?
b) Cups is talking the same langauge as the printer understands? (Ghostscript and such)
c) the printer is powered (duh ) and all cables are ok and connected correctly?

You might want to try installing the printer remotely via Webmin. At least you've got a GUI to work on

On the "crw-rw----": that means that the owner (root) and group (most likely also root) have rights to read and write to that 'file' (Linux sees basicly everything as a file ) but nobody else has access. Dunno what that c means though...
 
Old 06-04-2006, 05:34 PM   #6
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
GOT IT!!! man, what a hassle! i was getting that /etc/linuxprint.cfg error again, so i went back to trying the first method i quoted. this time i noticed an error about "too many levels of symbolic links" (huh? there was only one), so i removed the symlink and just put the actual ppmtospl2 file in the /usr/lib/cups/filter directory. success.

now i've to get it working in samba, that should be fun. </verbal irony>
 
  


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
PAGE PRO Printer aborted job banner Linux - Hardware 1 06-11-2005 05:43 PM
smb printer job problem lynchmob09 Linux - Networking 4 02-04-2004 05:50 PM
Printer one job behind ntloser Linux - General 2 10-06-2003 10:08 AM
Print job doesn't get to the printer bsnider Linux - Hardware 1 08-04-2003 07:46 PM
can not cancel printer job? heero82 Linux - Hardware 4 07-20-2003 07:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:03 AM.

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
Open Source Consulting | Domain Registration