181. PowerManagement

PowerManagement settings, input and output functions

181.1. Summary of Module Globals

List of Global Functions

  • ACPI - Check if ACPI is being used

  • ACPIModes - List all supported ACPI modes

  • APM - Check if APM is being used

  • Abort - Abort function

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

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

  • FetchScheme - fetch a scheme

  • FetchSchemes - Fetch all schemes

  • FindScheme - Find index of a scheme

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

  • Modified - Was the settings modified?

  • Modified - Data was modified?

  • Read - Read all power-management settings

  • StoreScheme - Store the current scheme

  • StoreSchemes - Store all schemes

  • Summary - Create a textual summary and a list of unconfigured cards

  • TranslatePowersaveText - Translate a text using powersave mo-file

  • TranslateSchemeDescription - Get localized scheme description

  • TranslateSchemeName - Get localized scheme name

  • Write - Write all power-management settings

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.

181.2. Global Functions

181.2.1. ACPI

Check if ACPI is being used

Return value

  • boolean - true if ACPI is being used

181.2.2. ACPIModes

List all supported ACPI modes

Return value

  • list<string> - a list containing all supported ACPI modes

181.2.3. APM

Check if APM is being used

Return value

  • boolean - true if APM is being used

181.2.4. Abort

Abort function

Return value

  • boolean - blah blah lahjk

181.2.5. 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.

181.2.6. Export

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

Return value

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

181.2.7. FetchScheme

fetch a scheme

Function parameters

  • integer index

  • integer clone

Return value

  • void

181.2.8. FetchSchemes

Fetch all schemes

Return value

  • void

181.2.9. FindScheme

Find index of a scheme

Function parameters

  • string name

Return value

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

181.2.10. Import

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

Function parameters

  • map settings

Return value

  • boolean - True on success

181.2.11. Modified

Was the settings modified?

Return value

  • boolean - true if modified

181.2.12. Modified

Data was modified?

Return value

  • boolean - true if modified

181.2.13. Read

Read all power-management settings

Return value

  • boolean - true on success

181.2.14. StoreScheme

Store the current scheme

Return value

  • void

181.2.15. StoreSchemes

Store all schemes

Return value

  • void

181.2.16. Summary

Create a textual summary and a list of unconfigured cards

Return value

  • list<string> - summary of the current configuration

181.2.17. TranslatePowersaveText

Translate a text using powersave mo-file

Function parameters

  • string text

Return value

  • string - translated text

181.2.18. TranslateSchemeDescription

Get localized scheme description

Function parameters

  • string descr

Return value

  • string - localized scheme decription

181.2.19. TranslateSchemeName

Get localized scheme name

Function parameters

  • string name

Return value

  • string - localized scheme name

181.2.20. Write

Write all power-management settings

Return value

  • boolean - true on success

181.3. Global Variables

181.3.1. modified

Data was modified?

181.3.2. proposal_valid

181.3.3. write_only

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

181.4. Module Requirements

181.4.1. Module Imports

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

181.4.2. Module Includes