YaST2 Developers Documentation: Configuration of power-management



functions
files
intro

Configuration of power-management

include/power-management/misc.ycp
Dialogs definitions

Imports

  • Label
  • Popup
  • PowerManagement

Local Variables

Local Functions

local acpi_event_labels -> map

Labels of ACPI events

local acpi_event_handlers -> list

ACPI event items

local acpi_actions -> list

Known ACPI actions

local GetAcpiEventHandlers () -> list

Get ACPI event items (to combo box)

Return value:
of items

local GetBatteryStatusAction (string status) -> string

Set battery status action

Parameters:
status the battery status
Return value:
the action

local SetBatteryStatusAction (string status, string action) -> void

Set battery status action

Parameters:
status the battery status
action string the action

local GetBatteryStatusCapacity (string status) -> integer

Get battery status capacity

Parameters:
status the battery status
Return value:
the capacity

local SetBatteryStatusCapacity (string status, integer capacity) -> void

Set battery status capacity

Parameters:
status the battery status
capacity integer the capacity

local GetAcpiButtonAction (string button) -> string

Get ACPI button action

Parameters:
button string the ACPI button
Return value:
the action

local SetAcpiButtonAction (string button, string action) -> void

Set ACPI button action

Parameters:
button string the ACPI button
action string the action

local GetActionAllowed (string action) -> boolean

Get if action is to be allowed

Parameters:
action string the action
Return value:
true if should be allowed

local SetActionAllowed (string action, boolean allowed) -> void

Set if action is to be allowed

Parameters:
action string the action
allowed boolean true if should be allowed

YaST2 Developers Documentation