Skip to content

PowerSaver

Inherits: Node

TODO: Use inputmanager to send power_save events for every input!!

Properties

Type Name Default
DisplayManager display
SettingsManager settings
UPowerInstance power_manager
GamescopeInstance gamescope
bool dim_screen_enabled true
int dim_after_inactivity_mins 5
int dim_percent 10
bool dim_when_charging true
bool auto_suspend_enabled true
int suspend_after_inactivity_mins 20
bool suspend_when_charging false
Timer dim_timer
Timer suspend_timer
Timer gamescope_timer
bool dimmed false
Dictionary prev_brightness {}
bool supports_brightness
bool has_battery false
UPowerDevice display_device
Dictionary[int, int] gamescope_input_counters {}
CustomLogger logger

Property Descriptions

display

DisplayManager display

Note

There is currently no description for this property. Please help us by contributing one!

settings

SettingsManager settings

Note

There is currently no description for this property. Please help us by contributing one!

power_manager

UPowerInstance power_manager

Note

There is currently no description for this property. Please help us by contributing one!

gamescope

GamescopeInstance gamescope

Note

There is currently no description for this property. Please help us by contributing one!

dim_screen_enabled

bool dim_screen_enabled = true

Note

There is currently no description for this property. Please help us by contributing one!

dim_after_inactivity_mins

int dim_after_inactivity_mins = 5

Note

There is currently no description for this property. Please help us by contributing one!

dim_percent

int dim_percent = 10

Note

There is currently no description for this property. Please help us by contributing one!

dim_when_charging

bool dim_when_charging = true

Note

There is currently no description for this property. Please help us by contributing one!

auto_suspend_enabled

bool auto_suspend_enabled = true

Note

There is currently no description for this property. Please help us by contributing one!

suspend_after_inactivity_mins

int suspend_after_inactivity_mins = 20

Note

There is currently no description for this property. Please help us by contributing one!

suspend_when_charging

bool suspend_when_charging = false

Note

There is currently no description for this property. Please help us by contributing one!

dim_timer

Timer dim_timer

Note

There is currently no description for this property. Please help us by contributing one!

suspend_timer

Timer suspend_timer

Note

There is currently no description for this property. Please help us by contributing one!

gamescope_timer

Timer gamescope_timer

Note

There is currently no description for this property. Please help us by contributing one!

dimmed

bool dimmed = false

Note

There is currently no description for this property. Please help us by contributing one!

prev_brightness

Dictionary prev_brightness = {}

Note

There is currently no description for this property. Please help us by contributing one!

supports_brightness

bool supports_brightness

Note

There is currently no description for this property. Please help us by contributing one!

has_battery

bool has_battery = false

Note

There is currently no description for this property. Please help us by contributing one!

display_device

UPowerDevice display_device

Note

There is currently no description for this property. Please help us by contributing one!

gamescope_input_counters

Dictionary[int, int] gamescope_input_counters = {}

Note

There is currently no description for this property. Please help us by contributing one!

logger

CustomLogger logger

Note

There is currently no description for this property. Please help us by contributing one!