Document Printconf Write Module
Author Jan Holesovsky, <kendy@suse.cz>, Petr Blahos <pblahos@suse.cz>
Id $Id: write.html,v 1.1.1.1 2002/06/27 08:53:18 jsrain Exp $

Overview

princonf_write.ycp can work in two modes. If there is second argument it means that test page is about to be printed. If there is only one argument -- user_settings, it is going on final save.

Input

printconf_write.ycp takes following arguments:

  1. map user_settings -- described in user_settings.txt
  2. integer index of queue to print test page to, optional
  3. string "ps"|"ascii" type of test page, optional

Process of saving

Settings are saved now. For testpage printing: If no testpage is going to be printed, additional settings are saved:

Parallel ports settings

By default, SuSE linux installs parport_pc io=0x378 irq=none,none into /etc/modules.conf. Io ports can be changed in bios on some machines. libhd can read these settings from bios and reload parport_pc module with there settings. This happens when Read(.probe.byclass.comm.par) is called. So printconf reads .probe.byclass.comm.par in the beggining to have correct parport settings. When saving configuration, settings of parports are saved to /etc/modules.conf. But there can be more parports that that configured in bios. Hence if there are settings for more parports in /etc/modules.conf then detected parports, additional parports settings are not overwritten.