You are not logged in.

#1 2004-03-15 13:09:30

nagoola
Member
From: Germany / Ahrensburg
Registered: 2004-03-15
Posts: 52

Parallel Port & Printing

Hi,

I am new to ArchLinux and have been using Gentoo since qutie a while. After installing nearly everything I need I am now struggling with the printer setup. I guess this is due to a problem with my parallel port, cause it does not show up in the selection box of cups. I can choose serial and usb ports, but no parallel ports. I have installed some modules like
lp & parport
I also have cups running of course and it connects. My question is the kernel (2.6.4) must be compiled with support for the parallel port by default, right? At least after loading these modules it should work. What am I missing?
Thanks already!!!

Offline

#2 2004-03-15 13:28:59

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,366
Website

Re: Parallel Port & Printing

nagoola wrote:

I guess this is due to a problem with my parallel port, cause it does not show up in the selection box of cups. I can choose serial and usb ports, but no parallel ports. I have installed some modules like
lp & parport
I also have cups running of course and it connects. My question is the kernel (2.6.4) must be compiled with support for the parallel port by default, right? At least after loading these modules it should work. What am I missing?

the 2.6. kernel is not compiled with parallel inside it, but the module exist

modprobe lp

should load it as you already said

is your /etc/modprobe.conf existent?

do you have a standard lp?

can you use it from another OS?

what says:

dmesg | grep lp 

?

[damir@Asteraceae /]$ dmesg | grep lp
lp0: using parport0 (polling).

?

have you tried 2.4.25?


The impossible missions are the only ones which succeed.

Offline

#3 2004-03-15 13:32:50

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: Parallel Port & Printing

Check section 3.2 of http://wiki.archlinux.org/index.php/CUPS%20setup
(and if you got it to work for the aprallel port, you may adjust the wiki accordingly ;-) )

Also, I was about to post what dp posted. To give us an idea what your system is like, post the output of

dmesg | grep lp
lsmod

Offline

#4 2004-03-15 13:47:24

nagoola
Member
From: Germany / Ahrensburg
Registered: 2004-03-15
Posts: 52

Re: Parallel Port & Printing

Seems like we also could communicate in german ;-)
Okay, dmesg says that is loading the module but does not find a port - which is wierd, because it is working under windows plus i have been running linux on this box since i got it and it always worked - with a 2.4 kernel though. So is there anything else that could cause this problem??

Offline

#5 2004-03-15 16:52:16

skeeter
Member
From: Woodstock, CT
Registered: 2003-02-01
Posts: 77

Re: Parallel Port & Printing

Try putting "parport_pc" in your rc.conf along with "lp" and I believe this might help. FWIW


Skeeter

Rule #1:  There are NO RULES!

Offline

#6 2004-03-15 21:27:50

nagoola
Member
From: Germany / Ahrensburg
Registered: 2004-03-15
Posts: 52

Re: Parallel Port & Printing

Thanks, that did it. Now I have my port at /dev/lp0.
THANKS

Offline

#7 2004-03-16 02:52:52

skeeter
Member
From: Woodstock, CT
Registered: 2003-02-01
Posts: 77

Re: Parallel Port & Printing

No problem.  Enjoy Arch, I think it's the best but then again I'm a little prejudiced.  lol


Skeeter

Rule #1:  There are NO RULES!

Offline

#8 2004-03-16 10:51:29

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: Parallel Port & Printing

nagoola wrote:

Thanks, that did it. Now I have my port at /dev/lp0.
THANKS

All right, I can' resist. So forgive me ;-) ... it did come up very recently : a discussion about throwing RTFM's at newbies or not. So, i really mean this in a polite manner (seriously). The use of the parport_pc module was in the link I supplied. So, I really recommend reading documentation. We all know what we know because we did read documentation. Furthermore, when I read your repsonse that it still does not work, I assumed you did read up the documentation and I was quite puzzled why it still does not work and was awaiting more info.
As I said, I didn't want to make this a simple RTFM, but a friendly reminder. (pick some : :-) smile big_smile ;-) )

Offline

#9 2004-03-18 18:52:44

billbar
Member
Registered: 2004-02-14
Posts: 100

Re: Parallel Port & Printing

Believe me!  Read everything.  Still not connected.

A test print in both Cups and KDE control center report that test print was sent to printer successfully but, there is never a response.

Here is an extract from dmesg:
lp: driver loaded but no devices found
parport0: PC-style at 0x378 [PCSPP,EPP]
parport0: cpp_daisy: aa5500ff(98)
parport0: assign_addrs: aa5500ff(98)
parport0: Printer, HEWLETT-PACKARD DESKJET 950C
lp0: using parport0 (polling).
parport_pc: Via 686A parallel port: io=0x378

Here is the message from dmesg | grep lp

[root@bill billb]# dmesg | grep lp
On node 0 totalpages: 196592
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
lp: driver loaded but no devices found
lp0: using parport0 (polling).

How is this "no devices found" consistent with "Printer, HEW*"
in dmesg.

TIA
Bill Barnes

Offline

#10 2004-03-18 19:14:46

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: Parallel Port & Printing

billbar wrote:

How is this "no devices found" consistent with "Printer, HEW*"
in dmesg.

That is just a matter of the order in which the modules/drivers start up (and the same on my system). When lp0 starts it can't find a driver (yet). Then parport finds the actual parallel port, and later on lp0 is reporting "using parport". At that point, the parallel port printer device is there. Verify it and check

ls -l /dev/lp*
ls -l /dev/printers/*

However, I can't say why cups cannot talk to it. What do the following commands say :

lpstat -l -t
lpq -l

Offline

#11 2004-03-18 20:28:27

billbar
Member
Registered: 2004-02-14
Posts: 100

Re: Parallel Port & Printing

Thanks for looking.

The printer works in at least a half-dozen other distros, even (gasp) Windows.

Here is a command line attempt to print.
[root@bill /]# lp /etc/rc.conf
request id is lpr-12 (1 file(s))


[root@bill /]# ls -l /dev/lp*
lr-xr-xr-x  1 root root 10 Mar 18 12:18 /dev/lp0 -> printers/0

[root@bill /]# ls -l /dev/printers/*
crw-rw-rw-  1 billb users 6, 0 Jan  1  1970 /dev/printers/0

[root@bill /]# lpstat -l -t
scheduler is running
system default destination: lpr
device for lpr: parallel:/dev/lp0
lpr accepting requests since Jan 01 00:00
printer lpr is idle.  enabled since Jan 01 00:00
        Form mounted:
        Content types: any
        Printer types: unknown
        Description: HP Deskjet 952C
        Alerts: none
        Location: local
        Connection: direct
        Interface: /etc/cups/ppd/lpr.ppd
        On fault: no alert
        After fault: continue
        Users allowed:
                (all)
        Forms allowed:
                (none)
        Banner required
        Charset sets:
                (none)
        Default pitch:
        Default page size:
        Default port settings:

[root@bill /]# lpq -l
lpr is ready
no entries
[root@bill /]#

Bill Barnes

Offline

#12 2004-03-18 20:36:34

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: Parallel Port & Printing

Looks good so far.

Now, I would start digging through
/var/log/cups/
and see if there is anything suspicious.

Offline

#13 2004-03-19 00:32:01

billbar
Member
Registered: 2004-02-14
Posts: 100

Re: Parallel Port & Printing

Good advice!  Haven't solved it yet, but FWIW I can read the cups documentation.  So I set the log to debug mode and here it is: 

This log content follows
    lp fstab
18/Mar/2004:18:13:15 +0000] AcceptClient() 5 from localhost:631.
ReadClient() 5 POST / HTTP/1.1
ProcessIPPRequest: 5 status_code=1
CloseClient() 5
AcceptClient() 5 from localhost:631.
ReadClient() 5 POST / HTTP/1.1
ProcessIPPRequest: 5 status_code=1
CloseClient() 5
AcceptClient() 5 from localhost:631.
ReadClient() 5 POST / HTTP/1.1
ProcessIPPRequest: 5 status_code=0
ReadClient() 5 POST /printers/lpr HTTP/1.1
print_job: auto-typing file...
print_job: request file type is text/plain.
check_quotas: requesting-user-name = 'root'
print_job: requesting-user-name = 'root'
Adding start banner page "none" to job 16.
Adding end banner page "none" to job 16.
Job 16 queued on 'lpr' by 'root'.
Job 16 hold_until = 0
StartJob(16, 0x8093b70)
StartJob() id = 16, file = 0/1
job-sheets=none,none
banner_page = 0
StartJob: argv = "lpr","16","root","fstab","1","","/var/spool/cups/d00016-001"
StartJob: envp[0]="PATH=/usr/lib/cups/filter:/bin:/usr/bin"
StartJob: envp[1]="SOFTWARE=CUPS/1.1"
StartJob: envp[2]="USER=root"
StartJob: envp[3]="CHARSET=iso-8859-1"
StartJob: envp[4]="LANG=en"
StartJob: envp[5]="PPD=/etc/cups/ppd/lpr.ppd"
StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
StartJob: envp[7]="RIP_MAX_CACHE=8m"
StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
StartJob: envp[9]="CONTENT_TYPE=text/plain"
StartJob: envp[10]="DEVICE_URI=parallel:/dev/lp0"
StartJob: envp[11]="PRINTER=lpr"
StartJob: envp[12]="CUPS_DATADIR=/usr/share/cups"
StartJob: envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
StartJob: envp[14]="CUPS_SERVER=localhost"
StartJob: envp[15]="IPP_PORT=631"
StartJob: statusfds = [ 7 8 ]
StartJob: filterfds[1] = [ 9 -1 ]
StartJob: filter = "/usr/lib/cups/filter/texttops"
StartJob: filterfds[0] = [ 10 11 ]
start_process("/usr/lib/cups/filter/texttops", 0xbffeff30, 0xbffef2a0, 9, 11, 8)
Started filter /usr/lib/cups/filter/texttops (PID 2486) for job 16.
StartJob: filter = "/usr/lib/cups/filter/pstops"
StartJob: filterfds[1] = [ 9 12 ]
start_process("/usr/lib/cups/filter/pstops", 0xbffeff30, 0xbffef2a0, 10, 12, 8)
I [18/Mar/2004:18:13:15 +0000] Started filter /usr/lib/cups/filter/pstops (PID 2487) for job 16.
StartJob: filter = "/usr/lib/cups/filter/foomatic-rip"
StartJob: filterfds[0] = [ 10 11 ]
start_process("/usr/lib/cups/filter/foomatic-rip", 0xbffeff30, 0xbffef2a0, 9, 11, 8)
Started filter /usr/lib/cups/filter/foomatic-rip (PID 2488) for job 16.
StartJob: backend = "/usr/lib/cups/backend/parallel"
StartJob: filterfds[1] = [ -1 9 ]
start_process("/usr/lib/cups/backend/parallel", 0xbffeff30, 0xbffef2a0, 10, 9, 8)
Started backend /usr/lib/cups/backend/parallel (PID 2489) for job 16.
ProcessIPPRequest: 5 status_code=0

This looks like the problem?  Can't find status 22 explanation but must be the next line.
PID 2488 stopped with status 22!
[Job 16] /usr/lib/cups/filter/foomatic-rip: No such file or directory

[Job 16] Page = 612x792; 0,0 to 612,792
[Job 16] ppd->num_fonts = 35
[snip]
[Job 16] ppd->fonts[8] = Courier
[Job 16] Page = 612x792; 0,0 to 612,792
[Job 16] slowcollate=0, slowduplex=0, sloworder=0
[Job 16] 0 %%BoundingBox: 0 0 612 792
[Job 16] 0 %%Creator: texttops/CUPS v1.1.20
[Job 16] 0 %%CreationDate: Thu Mar 18 18:13:15 2004
[Job 16] 0 %%Title: fstab
[Job 16] 0 %%For: root
[Job 16] 0 %%Pages: (atend)
[Job 16] 0 %%DocumentNeededResources: font Courier-Bold
[Job 16] 0 %%+ font Courier
[Job 16] 0 %%DocumentSuppliedResources: procset texttops 1.1 0
[Job 16] 0 %%+ font Courier-Bold
[Job 16] 0 %%+ font Courier
[Job 16] 0 %%EndComments
[Job 16] 0 %%BeginProlog
[Job 16] 0 %%BeginResource: font Courier-Bold
[Job 16] 0 %%CreationDate: Wed Dec 22 1999
[Job 16] 0 %%EndResource
[Job 16] 0 %%BeginResource: font Courier
[Job 16] 0 %%CreationDate: Wed Dec 22 1999
[Job 16] 0 %%EndResource
[Job 16] 0 %%BeginResource: procset texttops 1.1 0
D [18/Mar/2004:18:13:15 +0000] [Job 16] 0 %%EndResource
[Job 16] 0 %%EndProlog
[Job 16] 0 %%Page: 1 1
[Job 16] 0 %%Page: 1 1
[Job 16] pw = 612.0, pl = 792.0
[Job 16] PageLeft = 0.0, PageRight = 612.0
[Job 16] PageTop = 792.0, PageBottom = 0.0
[Job 16] PageWidth = 612.0, PageLength = 792.0
[Job 16] 0 %%Trailer
[Job 16] Saw Trailer!
[Job 16] Saw EOF!
UpdateJob: job 16, file 0 is complete.
CancelJob: id = 16
StopJob: id = 16, force = 0
StopJob: printer state is 3
CloseClient() 5


Bill Barnes

Offline

#14 2004-03-19 01:37:54

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Parallel Port & Printing

You'd be surprised at how many people /can't/ read the cups documentation wink

[jchu@hercules jchu]$ pacman -Qo /usr/lib/cups/filter/foomatic-rip
/usr/lib/cups/filter/foomatic-rip is owned by foomatic-filters 3.0.1-1

Figured I'd swoop in and steal this one... though everyone else that worked on it deserve a lot more credit than me.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#15 2004-03-19 05:56:37

billbar
Member
Registered: 2004-02-14
Posts: 100

Re: Parallel Port & Printing

Well, maybe I'm one of them after all.  Meant to say that this experience has immersed me in cups documentation, but, obviously, I just scratched the surface.

Next problem follows:

>Targets: foomatic-filters-3.0.1-1

Proceed with upgrade? [Y/n] y

checking package integrity... done.
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
  /usr/bin/foomatic-gswrapper: exists in filesystem
  /usr/man/man1/foomatic-gswrapper.1.gz: exists in filesystem
<

Now what?

Offline

#16 2004-03-19 06:21:21

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Parallel Port & Printing

Figure out which package owns that file.  Most likely it's a different/older version of foomatic.  Remove it.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#17 2004-03-19 07:14:33

billbar
Member
Registered: 2004-02-14
Posts: 100

Re: Parallel Port & Printing

Got it!  Thanks.

foomatic-gswrapper is installed by foomatic-filters.

Must have come from my earlier misuse of pacman.

Thanks to all for the help.

Bill Barnes

Offline

Board footer

Powered by FluxBB