lptcontrol(8)

lptcontrol8

A utility for manipulating the lpt printer driver

Usage

lptcontrol {-e | -i | -p | -s [-d control_device]}

Overview

The lptcontrol utility is used to set either the interrupt-driven, extended, standard, or polling mode of individual lpt(4) devices. When a printer is switched from a mode to another, this change will only take effect the next time the device is opened.

Extended mode is anything the parallel port interface can support. For an ECP/ISA parallel port, it may be FIFO+DMA or ECP.

The following command line options are supported:

-e

Turn on extended mode.

-i

Turn on interrupt-driven mode.

-p

Turn on polled mode.

-s

Turn on standard mode, i.e., turn off extended mode.

-d control_device

Set the mode of the printer control device specified by control_device. The default value for control_device is /dev/lpt0.ctl.

One of -e, -i, -p or -s must be specified.

Files

/dev/lpt?

printer devices

/dev/lpt?.ctl

printer control devices

/sys/i386/conf/GENERIC

kernel configuration file

/boot/device.hints

device hints for the parallel port chipset driver, ppc(4)

Releases

86 releases since FreeBSD 2.0.5-RELEASE; the text changed 49 times.

  1. 2.0.5
  2. 2.1.5–2.1.7.1
  3. 2.2.2
  4. 2.2.5–2.2.6
  5. 2.2.7–2.2.8
  6. 2.2.9
  7. 3.0
  8. 3.1–3.2
  9. 3.3–3.4
  10. 3.5–3.5.1
  11. 4.0–4.2
  12. 4.3
  13. 4.4–4.7
  14. 4.8–4.11
  15. 5.0–5.2.1
  16. 5.3
  17. 5.4–5.5
  18. 6.0–6.3
  19. 6.4
  20. 7.0
  21. 7.1
  22. 7.2
  23. 7.3
  24. 7.4
  25. 8.0
  26. 8.1
  27. 8.2
  28. 8.3
  29. 8.4
  30. 9.0
  31. 9.1
  32. 9.2
  33. 9.3
  34. 10.0
  35. 10.1
  36. 10.2
  37. 10.3
  38. 10.4
  39. 11.0
  40. 11.1
  41. 11.2
  42. 11.3
  43. 11.4
  44. 12.0
  45. 12.1
  46. 12.2
  47. 12.3
  48. 12.4
  49. 13.0–13.2
  50. 13.3–16.0

-d since FreeBSD 3.1-RELEASE; -e since FreeBSD 3.1-RELEASE; -s since FreeBSD 3.3-RELEASE.

-u until FreeBSD 3.0-RELEASE.

History

The lptcontrol utility first appeared in FreeBSD 1.1.5

Authors

Geoffrey M. Rehmet

Bugs

The control device name should never have been an option, but should have been an optional argument. Because of this, a single argument is treated as a device name.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.