2.6.0: lp not working
A message that is not in the archive (sent off-list or not yet received): [email protected]
| 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
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/ ~
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/moduleswhen 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/modulesipt_LOG 5376 1 - Live 0xf891a000ipt_limit 2496 1 - Live 0xf8915000ipt_state 1792 2 - Live 0xf8913000iptable_filter 2752 1 - Live 0xf88d3000ip_tables 22080 4 ipt_LOG,ipt_limit,ipt_state,iptable_filter, Live 0xf88d8000 ip_conntrack_ftp 72308 0 - Live 0xf88fe000ip_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
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
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