On Fri, 23 Jun 2000, KPKN Purwakarta wrote:

> I've set my '/etc/dosemu.conf' to be like this:
> 
> # $_printer= "lpr"
> # $_printer_timeout= "20"
> $_ports = "device /dev/lp1 fast range 0x378 0x37f"
> 
> but... I didn't work. There's no activity when I send the command:
> ' dir > lpt1 ' (BTW, I use MSDOS 6.22 for my DOSEMU)

Maybe /dev/lp0 instead of /dev/lp1 works better. The /dev/lp? assignments
changed from Linux kernel 2.0 to 2.2, AFAIK, and now /dev/lp0 points to
the first printer.

Kernel documentation about parallel ports: if you only have one port, it
will default to being /dev/lp0, regardless of base address. 

But in older kernels there were static ports assignments: /dev/lp1 always
pointed to 0x378. Some DOSEMU documentation is known to be well out of
date, and this is one thing we should mention at some point in the DOSEMU 
docs.

Under DOS you should still use PRN or LPT1, not LPT2.
 
> If the ' $_ports = ""  -----> I mean blank (no parameter) and
> the first two lines above comment (no #), the command is work
> but it seems an emulation printing, taking setup from the kcontrol (KDE)

That is entirely predictable, since "lpr" takes its config from
/etc/printcap which can be configured by kcontrol.

Bart

Reply via email to