206. PowerManagement

PowerManagement settings, input and output functions

206.1. Authors

  • Jiri Srain <jsrain@suse.cz>

206.2. Summary of Module Globals

List of Global Functions

List of Global Variables

  • modified - Data was modified?

  • proposal_valid -

  • write_only - Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.

206.3. Global Functions

206.3.1. Abort

Abort function

Return value

  • boolean - blah blah lahjk

206.3.2. AutoPackages

Return packages needed to be installed and removed during Autoinstallation to insure module has all needed software installed.

Return value

  • map - with 2 lists.

206.3.3. Export

Dump the power-management settings to a single map (For use by autoinstallation.)

Return value

  • map - Dumped settings (later acceptable by Import ())

206.3.4. FetchScheme

fetch a scheme

Function parameters

  • integer index

  • integer clone

Return value

  • void

206.3.5. FetchSchemes

Fetch all schemes

Return value

  • void

206.3.6. FindScheme

Find index of a scheme

Function parameters

  • string name

Return value

  • integer - scheme index (-1 if not found)

206.3.7. Import

Get all power-management settings from the first parameter (For use by autoinstallation.)

Function parameters

  • map settings

Return value

  • boolean - True on success

206.3.8. Modified

Was the settings modified?

Return value

  • boolean - true if modified

206.3.9. Modified

Data was modified?

Return value

  • boolean - true if modified

206.3.10. Read

Read all power-management settings

Return value

  • boolean - true on success

206.3.11. StoreScheme

Store the current scheme

Return value

  • void

206.3.12. StoreSchemes

Store all schemes

Return value

  • void

206.3.13. Summary

Create a textual summary and a list of unconfigured cards

Return value

  • list<string> - summary of the current configuration

206.3.14. TranslatePowersaveText

Translate a text using powersave mo-file

Function parameters

  • string text

Return value

  • string - translated text

206.3.15. TranslateSchemeDescription

Get localized scheme description

Function parameters

  • string descr

Return value

  • string - localized scheme decription

206.3.16. TranslateSchemeName

Get localized scheme name

Function parameters

  • string name

Return value

  • string - localized scheme name

206.3.17. Write

Write all power-management settings

Return value

  • boolean - true on success

206.4. Global Variables

206.4.1. modified

Data was modified?

206.4.2. proposal_valid

206.4.3. write_only

Write only, used during autoinstallation. Don't run services and SuSEconfig, it's all done at one place.

206.5. Module Requirements

206.5.1. Module Imports

  • Mode
  • PackageSystem
  • Progress
  • Report
  • Service
  • String

206.5.2. Module Includes