16dc3c6f7SGeoff Rehmet.\" 26dc3c6f7SGeoff Rehmet.\" lptcontrol - a utility for manipulating the lpt driver 36dc3c6f7SGeoff Rehmet.\" 46dc3c6f7SGeoff Rehmet.\" Redistribution and use in source and binary forms, with or without 56dc3c6f7SGeoff Rehmet.\" modification, are permitted provided that the following conditions 66dc3c6f7SGeoff Rehmet.\" are met: 76dc3c6f7SGeoff Rehmet.\" 1. Redistributions of source code must retain the above copyright 86dc3c6f7SGeoff Rehmet.\" notice, this list of conditions and the following disclaimer. 96dc3c6f7SGeoff Rehmet.\" 2. Redistributions in binary form must reproduce the above copyright 106dc3c6f7SGeoff Rehmet.\" notice, this list of conditions and the following disclaimer in the 116dc3c6f7SGeoff Rehmet.\" documentation and/or other materials provided with the distribution. 124ae6befaSJens Schweikhardt.Dd October 1, 2004 1312365022SGeoff Rehmet.Dt LPTCONTROL 8 14a4c37c81SRuslan Ermilov.Os 1512365022SGeoff Rehmet.Sh NAME 16610a5778SRuslan Ermilov.Nm lptcontrol 17fe577fe9SPhilippe Charnier.Nd a utility for manipulating the lpt printer driver 1812365022SGeoff Rehmet.Sh SYNOPSIS 19e97407b4SRuslan Ermilov.Nm 204ae6befaSJens Schweikhardt.Fl e | i | p | s 214ae6befaSJens Schweikhardt.Op Fl d Ar control_device 2212365022SGeoff Rehmet.Sh DESCRIPTION 236dc3c6f7SGeoff RehmetThe 24fe577fe9SPhilippe Charnier.Nm 254ae6befaSJens Schweikhardtutility is used to set either the interrupt-driven, extended, standard, 264ae6befaSJens Schweikhardtor polling mode of individual 2712365022SGeoff Rehmet.Xr lpt 4 28610a5778SRuslan Ermilovdevices. 29610a5778SRuslan ErmilovWhen a printer is switched from 303876b692SNicolas Souchua mode to another, this change will only take effect 316dc3c6f7SGeoff Rehmetthe next time the device is opened. 323876b692SNicolas Souchu.Pp 33f2e366a1SSheldon HearnExtended mode is anything the parallel port interface can support. 34f2e366a1SSheldon HearnFor an 353876b692SNicolas SouchuECP/ISA parallel port, it may be FIFO+DMA or ECP. 36a51764b5SPhilippe Charnier.Pp 3712365022SGeoff RehmetThe following command line options are supported: 3812365022SGeoff Rehmet.Bl -tag -width indent 394ae6befaSJens Schweikhardt.It Fl e 404ae6befaSJens SchweikhardtTurn on extended mode. 4112365022SGeoff Rehmet.It Fl i 42fe577fe9SPhilippe CharnierTurn on interrupt-driven mode. 4312365022SGeoff Rehmet.It Fl p 44fe577fe9SPhilippe CharnierTurn on polled mode. 4586cebc98SGuy Helmer.It Fl s 4607bfccd7SRuslan ErmilovTurn on standard mode, i.e., turn off extended mode. 474ae6befaSJens Schweikhardt.It Fl d Ar control_device 484ae6befaSJens SchweikhardtSet the mode of the printer control device specified by 494ae6befaSJens Schweikhardt.Ar control_device . 506dc3c6f7SGeoff RehmetThe default value for 514ae6befaSJens Schweikhardt.Ar control_device 526dc3c6f7SGeoff Rehmetis 534ae6befaSJens Schweikhardt.Pa /dev/lpt0.ctl . 5412365022SGeoff Rehmet.El 5512365022SGeoff Rehmet.Pp 566dc3c6f7SGeoff RehmetOne of 574ae6befaSJens Schweikhardt.Fl e , i , p 583876b692SNicolas Souchuor 594ae6befaSJens Schweikhardt.Fl s 606dc3c6f7SGeoff Rehmetmust be specified. 6112365022SGeoff Rehmet.Sh FILES 62fe577fe9SPhilippe Charnier.Bl -tag -width /sys/i386/conf/GENERIC -compact 63fe577fe9SPhilippe Charnier.It Pa /dev/lpt? 64a51764b5SPhilippe Charnierprinter devices 650eba89e3SDavid E. O'Brien.It Pa /dev/lpt?.ctl 66a51764b5SPhilippe Charnierprinter control devices 67fe577fe9SPhilippe Charnier.It Pa /sys/i386/conf/GENERIC 68a51764b5SPhilippe Charnierkernel configuration file 694ae6befaSJens Schweikhardt.It Pa /boot/device.hints 701a74e6a1SRuslan Ermilovdevice hints for the parallel port chipset driver, 714ae6befaSJens Schweikhardt.Xr ppc 4 7212365022SGeoff Rehmet.El 73610a5778SRuslan Ermilov.Sh SEE ALSO 744ae6befaSJens Schweikhardt.Xr lpt 4 , 754ae6befaSJens Schweikhardt.Xr ppc 4 , 764ae6befaSJens Schweikhardt.Xr device.hints 5 7712365022SGeoff Rehmet.Sh HISTORY 78610a5778SRuslan ErmilovThe 79610a5778SRuslan Ermilov.Nm 80490d5836SPhilippe Charnierutility 81fe577fe9SPhilippe Charnierfirst appeared in 82fe577fe9SPhilippe Charnier.Fx 1.1.5 8359a3c79dSRuslan Ermilov.Sh AUTHORS 8459a3c79dSRuslan Ermilov.An Geoffrey M. Rehmet 8559a3c79dSRuslan Ermilov.Sh BUGS 8659a3c79dSRuslan ErmilovThe control device name should never have been an option, 8759a3c79dSRuslan Ermilovbut should have been an optional argument. 8859a3c79dSRuslan ErmilovBecause of this, a single argument is treated as a device name. 89