: can anyone tell me why linux thinks my colour deskjet 400 is offline
: when it is not. it prints from dos so it's not a win only printer.
: could i have it connected to the wrong /dev/lpx. printcap is expecting
: it to be on /dev/lp0, but i don't remember if i had to set this up when
: i installed linux (redhat 4.0), or know how to check this out. can
: anyone save me.
Which /dev/lp? Look in your kernel log messages (dmesg | grep lp)
or in /var/adm/syslog
Mine says...
May 27 21:15:19 notout kernel: lp1 at 0x0378, (polling)
May 27 21:15:19 notout kernel: lp2 at 0x0278, (polling)
DOS numbers LPT's as it finds them; drivers/char/lp.c numbers /dev/lp's
for specific addresses from it's table..
struct lp_struct lp_table[] = {
{ 0x3bc, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, 0, 0, 0, {0} },
{ 0x378, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, 0, 0, 0, {0} },
{ 0x278, 0, 0, LP_INIT_CHAR, LP_INIT_TIME, LP_INIT_WAIT, NULL, NULL, 0, 0, 0, {0} },
Quote:};
So /dev/lp0 is at 0x3bc, which is not where your LPT1 is I suspect.
Jim