CAPS Universe documentation  1.0.4
All you need to know to be successful
Driver Usage
Note
Verbosity is "info"

If the components of the CAPS universe are already present at your host, but no matching printer driver yet, you will get the following systemd journal entry:

CAPS kernel: usb 1-1: new full-speed USB device number 2 using musb-hdrc
CAPS kernel: usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0027
CAPS systemd[1]: Created slice system-caps\x2dprinter.slice.
CAPS systemd[1]: Starting Printing Driver at /dev/usb/lp0...
CAPS caps-printer-prep[150]: Reading config settings from INI file '/etc/caps/caps.ini'
CAPS caps-printer-prep[150]: Merging more config settings from INI file '/etc/caps/capsmanagement.ini'
CAPS caps-printer-prep[150]: Starting printer discovering process for device node '/dev/usb/lp0'...
CAPS caps-printer-prep[150]: Error: no printer driver available for the discovered 'HL-2030 series' printer made by 'Brother'
CAPS caps-printer-prep[150]: Info: printer's USB vendor ID is 04f9, its USB product ID is 0027
CAPS caps-printer-prep[150]: Info: printer's serial number (less important) is: XXXXXXXX
CAPS caps-printer-prep[150]: Info: printer's IEEE ID is: MFG:Brother;CMD:PJL,HBP;MDL:HL-2030 series;CLS:PRINTER;
CAPS caps-printer-prep[150]: Solution: install a printer driver for this printer device first
CAPS systemd[1]: caps-printer@-dev-usb-lp0.service: Control process exited, code=exited status=22
CAPS systemd[1]: caps-printer@-dev-usb-lp0.service: Failed with result 'exit-code'.
CAPS systemd[1]: Failed to start Printing Driver at /dev/usb/lp0.

If the matching printer driver is already installed, the journal entry differs:

CAPS kernel: usb 1-1: new full-speed USB device number 3 using musb-hdrc
CAPS kernel: usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0027
CAPS systemd[1]: Starting Printing Driver at /dev/usb/lp0...
CAPS caps-printer-prep[167]: Reading config settings from INI file '/etc/caps/caps.ini' <---- LOUD
CAPS caps-printer-prep[167]: Merging more config settings from INI file '/etc/caps/capsmanagement.ini' <--- LOUD
CAPS caps-printer-prep[167]: Starting printer discovering process for device node '/dev/usb/lp0'...
CAPS caps-printer-prep[167]: Printer device at '/dev/usb/lp0' is already known. Preparation skipped.
CAPS systemd[1]: Started Printing Driver at /dev/usb/lp0.
CAPS caps-printer[169]: Reading config settings from INI file '/etc/caps/caps.ini' <--- LOUD
CAPS caps-printer[169]: Merging more config settings from INI file '/etc/caps/capsmanagement.ini' <--- LOUD
CAPS caps-printer[169]: Going to launch printer driver for device node '/dev/usb/lp0'...
CAPS caps-printer[169]: Info: driver configuration file: 'caps-brother-HL2030-driver.ini' <--- LOUD
CAPS caps-printer[169]: Info: device specific parameter directory: 'printer_6PqHu2' <--- LOUD
CAPS caps-printer[169]: - Brief description: 'Brother, HL-20 monochrome laser printer' <--- LOUD
CAPS caps-printer[169]: - Vendor: 'Brother' <--- LOUD
CAPS caps-printer[169]: - Device: 'HL-2030' <--- LOUD
CAPS caps-printer[169]: HL series driver is starting
CAPS caps-printer[169]: Reading the base settings from INI file '/etc/caps/drivers/capsdriver.ini' <--- LOUD
CAPS caps-printer[169]: Reading the default settings from INI file '/usr/share/caps/drivers/caps-brother-HL2030-driver.ini' <--- LOUD
CAPS caps-printer[169]: Merging more default features from INI file '/etc/caps/drivers/hl20-driver.ini' <--- LOUD
CAPS caps-printer[169]: Reading device specific INI files from parameter directory '/var/lib/caps/printer_6PqHu2' <--- LOUD
CAPS caps-printer[169]: HL series driver is up and running

Die Angaben über INI-Dateien könnte auch einfach "LOUD" und nicht INFO sein:

CAPS kernel: usb 1-1: new full-speed USB device number 3 using musb-hdrc
CAPS kernel: usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0027
CAPS systemd[1]: Starting Printing Driver at /dev/usb/lp0...
CAPS caps-printer-prep[167]: Starting printer discovering process for device node '/dev/usb/lp0'...
CAPS caps-printer-prep[167]: Printer device at '/dev/usb/lp0' is already known. Preparation skipped. <--- hier die Infos des Benutzers ausgeben? Also die Gerätespezifischen INI-Sachen eher "Preparation skipped eher" weglassen. Es fügt keine wirkliche Info hinzu.
CAPS systemd[1]: Started Printing Driver at /dev/usb/lp0.
CAPS caps-printer[169]: Info: description: 'Brother, HL-20 monochrome laser printer'
CAPS caps-printer[169]: Info: connected to: '/dev/usb/lp0'
CAPS caps-printer[169]: Info: vendor: 'Brother'
CAPS caps-printer[169]: Info: device: 'HL-2030'
CAPS caps-printer[169]: Going to launch printer driver for 'Brother, HL-20 monochrome laser printer'

Then the driver itself is launching:

CAPS caps-printer[169]: HL series driver is starting
CAPS caps-printer[169]: HL series driver is up and running