Skip to contentSkip to conversation

2.6.0: lp not working

DISCUSSION Randy.Dunlap 2 participants 5 messages Aug 7, 2003 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
| Date: Tue, 5 Aug 2003 22:43:17 -0700 (PDT)
| From: Russell Whitaker <[email protected]>
| To: [email protected]
| Subject: 2.6.0: lp not working
| 
| 
| Hi
| Edited lilo.conf so I can boot either kernel-2.6.0-test2
| (default) or kernel-2.4.21, using hda1.
| 
| lpr a small file, no print. ctrl-alt-del and rebooted using
| 2.4.21, file printed. Checked the two config files and could
| not find any difference in this area.
| 
| Printer is a Panasonic dot-matrix running in text mode.
| Also using patch bk5.

Is "Parallel Printer support" built into your kernel or built as a module? If built as a module, are you sure that the module is loaded? If modular, please provide contents of /proc/modules when you try to print.

--
~Randy

#2 lore raw

On Wed, 6 Aug 2003 22:38:20 -0700 "Randy.Dunlap" <[email protected]> wrote:

| | Date: Tue, 5 Aug 2003 22:43:17 -0700 (PDT)
| | From: Russell Whitaker <[email protected]>
| | To: [email protected]
| | Subject: 2.6.0: lp not working
| | 
| | 
| | Hi
| | Edited lilo.conf so I can boot either kernel-2.6.0-test2
| | (default) or kernel-2.4.21, using hda1.
| | 
| | lpr a small file, no print. ctrl-alt-del and rebooted using
| | 2.4.21, file printed. Checked the two config files and could
| | not find any difference in this area.
| | 
| | Printer is a Panasonic dot-matrix running in text mode.
| | Also using patch bk5.
| 
| Is "Parallel Printer support" built into your kernel or built as a
| module?  If built as a module, are you sure that the module is
| loaded?  If modular, please provide contents of /proc/modules
| when you try to print.

I dug out my old (Panasonic) dot matrix printer (only parallel port printer that was handy) and some continuous/fan-fold paper. I'm using 2.6.0-test2 and it prints. However, it's not in USASCII characters that I can read, but I suspect that's a different problem. The good news is that my PC sends data to it.

--
~Randy
~ http://developer.osdl.org/rddunlap/ ~ http://www.xenotime.net/linux/ ~

#3 lore raw
In reply to Randy.Dunlap
Quoted 17 lines · Randy.Dunlap
| Date: Tue, 5 Aug 2003 22:43:17 -0700 (PDT)
| From: Russell Whitaker <[email protected]>
| To: [email protected]
| Subject: 2.6.0: lp not working
|
|
| Hi
| Edited lilo.conf so I can boot either kernel-2.6.0-test2
| (default) or kernel-2.4.21, using hda1.
|
| lpr a small file, no print. ctrl-alt-del and rebooted using
| 2.4.21, file printed. Checked the two config files and could
| not find any difference in this area.
|
| Printer is a Panasonic dot-matrix running in text mode.
| Also using patch bk5.
Quoted 5 lines

Is "Parallel Printer support" built into your kernel or built as a module? If built as a module, are you sure that the module is loaded? If modular, please provide contents of /proc/modules when you try to print.

Built as a module
Found lp.ko in /lib/modules/2.6.0-test2-bk4/kernel/drivers/char lp <file> then lpq shows <file> in queue

contents of /proc/modules
ipt_LOG 5376 1 - Live 0xf891a000
ipt_limit 2496 1 - Live 0xf8915000
ipt_state 1792 2 - Live 0xf8913000
iptable_filter 2752 1 - Live 0xf88d3000
ip_tables 22080 4 ipt_LOG,ipt_limit,ipt_state,iptable_filter, Live 0xf88d8000 ip_conntrack_ftp 72308 0 - Live 0xf88fe000
ip_conntrack 43092 2 ipt_state,ip_conntrack_ftp, Live 0xf88df000 ide_cd 41536 0 - Live 0xf88ba000
cdrom 35168 1 ide_cd, Live 0xf88c6000

Hope this helps
Russ

#4 lore raw

On Thu, 7 Aug 2003 02:31:53 -0700 (PDT) Russell Whitaker <[email protected]> wrote:

| On Wed, 6 Aug 2003, Randy.Dunlap wrote:
| 
| > | Date: Tue, 5 Aug 2003 22:43:17 -0700 (PDT)
| > | From: Russell Whitaker <[email protected]>
| > | To: [email protected]
| > | Subject: 2.6.0: lp not working
| > |
| > |
| > | Hi
| > | Edited lilo.conf so I can boot either kernel-2.6.0-test2
| > | (default) or kernel-2.4.21, using hda1.
| > |
| > | lpr a small file, no print. ctrl-alt-del and rebooted using
| > | 2.4.21, file printed. Checked the two config files and could
| > | not find any difference in this area.
| > |
| > | Printer is a Panasonic dot-matrix running in text mode.
| > | Also using patch bk5.
| >
| > Is "Parallel Printer support" built into your kernel or built as a
| > module?  If built as a module, are you sure that the module is
| > loaded?  If modular, please provide contents of /proc/modules
| > when you try to print.
| >
| Built as a module
| Found lp.ko in /lib/modules/2.6.0-test2-bk4/kernel/drivers/char
| lp <file> then lpq shows <file> in queue
| 
| contents of /proc/modules
| ipt_LOG 5376 1 - Live 0xf891a000
| ipt_limit 2496 1 - Live 0xf8915000
| ipt_state 1792 2 - Live 0xf8913000
| iptable_filter 2752 1 - Live 0xf88d3000
| ip_tables 22080 4 ipt_LOG,ipt_limit,ipt_state,iptable_filter, Live 0xf88d8000
| ip_conntrack_ftp 72308 0 - Live 0xf88fe000
| ip_conntrack 43092 2 ipt_state,ip_conntrack_ftp, Live 0xf88df000
| ide_cd 41536 0 - Live 0xf88ba000
| cdrom 35168 1 ide_cd, Live 0xf88c6000

I guess I don't get it. Why isn't "lp" listed in /proc/modules? Did you load it or is that the problem -- that it's not being auto-loaded?
Does the <file> print if you load the lp module?

--
~Randy For Linux-2.6, see:
http://www.kernel.org/pub/linux/kernel/people/davej/misc/post-halloween-2.5.txt

#5 lore raw
Quoted 41 lines · Randy.Dunlap

On Thu, 7 Aug 2003 02:31:53 -0700 (PDT) Russell Whitaker <[email protected]> wrote:

| On Wed, 6 Aug 2003, Randy.Dunlap wrote:
|
| > | Date: Tue, 5 Aug 2003 22:43:17 -0700 (PDT)
| > | From: Russell Whitaker <[email protected]>
| > | To: [email protected]
| > | Subject: 2.6.0: lp not working
| > |
| > |
| > | Hi
| > | Edited lilo.conf so I can boot either kernel-2.6.0-test2
| > | (default) or kernel-2.4.21, using hda1.
| > |
| > | lpr a small file, no print. ctrl-alt-del and rebooted using
| > | 2.4.21, file printed. Checked the two config files and could
| > | not find any difference in this area.
| > |
| > | Printer is a Panasonic dot-matrix running in text mode.
| > | Also using patch bk5.
| >
| > Is "Parallel Printer support" built into your kernel or built as a
| > module?  If built as a module, are you sure that the module is
| > loaded?  If modular, please provide contents of /proc/modules
| > when you try to print.
| >
| Built as a module
| Found lp.ko in /lib/modules/2.6.0-test2-bk4/kernel/drivers/char
| lp <file> then lpq shows <file> in queue
|
| contents of /proc/modules
| ipt_LOG 5376 1 - Live 0xf891a000
| ipt_limit 2496 1 - Live 0xf8915000
| ipt_state 1792 2 - Live 0xf8913000
| iptable_filter 2752 1 - Live 0xf88d3000
| ip_tables 22080 4 ipt_LOG,ipt_limit,ipt_state,iptable_filter, Live 0xf88d8000
| ip_conntrack_ftp 72308 0 - Live 0xf88fe000
| ip_conntrack 43092 2 ipt_state,ip_conntrack_ftp, Live 0xf88df000
| ide_cd 41536 0 - Live 0xf88ba000
| cdrom 35168 1 ide_cd, Live 0xf88c6000
Quoted 5 lines

I guess I don't get it. Why isn't "lp" listed in /proc/modules? Did you load it or is that the problem -- that it's not being auto-loaded?
Does the <file> print if you load the lp module?

By golly I think you got it - it's not being auto-loaded. As su, "modeprobe lp" and the file printed. Sorry I didn't think of that myself.

Thanks,
Russ