From e58350ab1a00d55e82f7ae97589562e10a77c485 Mon Sep 17 00:00:00 2001 From: Brent Hull Date: Sat, 27 Oct 2012 23:04:21 -0400 Subject: Port to Gsettings based on GNOME patch by Richard Hughes --- data/Makefile.am | 27 +- data/mate-power-manager.schemas.in | 741 -------------------------------- data/org.mate.power-manager.gschema.xml | 338 +++++++++++++++ 3 files changed, 344 insertions(+), 762 deletions(-) delete mode 100644 data/mate-power-manager.schemas.in create mode 100644 data/org.mate.power-manager.gschema.xml (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index 80b8a49..0f0d775 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -1,9 +1,5 @@ SUBDIRS = icons -@INTLTOOL_SCHEMAS_RULE@ -schemadir = $(sysconfdir)/mateconf/schemas -schema_in_files = mate-power-manager.schemas.in -schema_DATA = $(schema_in_files:.schemas.in=.schemas) @INTLTOOL_DESKTOP_RULE@ desktopdir = $(datadir)/applications @@ -23,6 +19,9 @@ service_DATA = $(service_in_files:.service.in=.service) $(service_DATA): $(service_in_files) Makefile @sed -e "s|\@servicedir\@|$(bindir)|" $< > $@ +@GSETTINGS_RULES@ +gsettings_SCHEMAS = org.mate.power-manager.gschema.xml + pkgdata_DATA = \ gpm-statistics.ui \ gpm-statistics-deprecated.ui \ @@ -32,25 +31,12 @@ pkgdata_DATA = \ acme.ui EXTRA_DIST = \ - mate-power-manager.schemas.in \ - $(schema_in_files) \ - $(desktop_in_files) \ - $(autostart_in_files) \ + $(gsettings_SCHEMAS) \ $(service_in_files) \ + $(autostart_in_files) \ + $(desktop_in_files) \ $(pkgdata_DATA) -if MATECONF_SCHEMAS_INSTALL -install-data-local: - -MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) \ - $(MATECONFTOOL) --makefile-install-rule $(schema_DATA) -endif - -if MATECONF_SCHEMAS_INSTALL -uninstall-local: - -MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) \ - $(MATECONFTOOL) --makefile-uninstall-rule $(schema_DATA) -endif - clean-local : rm -f *~ @@ -58,5 +44,4 @@ DISTCLEANFILES = \ mate-power-manager.desktop \ mate-power-preferences.desktop \ mate-power-statistics.desktop \ - mate-power-manager.schemas \ mate-power-manager.service diff --git a/data/mate-power-manager.schemas.in b/data/mate-power-manager.schemas.in deleted file mode 100644 index 4845738..0000000 --- a/data/mate-power-manager.schemas.in +++ /dev/null @@ -1,741 +0,0 @@ - - - - - /schemas/apps/mate-power-manager/actions/sleep_type_battery - /apps/mate-power-manager/actions/sleep_type_battery - string - hibernate - - Whether to hibernate, suspend or do nothing when inactive - The type of sleeping that should be performed when the computer is inactive. Possible values are "hibernate", "suspend" and "nothing". - - - - - /schemas/apps/mate-power-manager/actions/critical_battery - /apps/mate-power-manager/actions/critical_battery - string - hibernate - - Battery critical low action - The action to take when the battery is critically low. Possible values are "hibernate", "suspend", "shutdown" and "nothing". - - - - - /schemas/apps/mate-power-manager/actions/event_when_closed_battery - /apps/mate-power-manager/actions/event_when_closed_battery - mate-power-manager - bool - true - - If the battery event should occur when the lid is shut and the power disconnected - If the battery lid close event should occur (for example 'Suspend when lid closed on battery') when the lid is previously shut and the AC power disconnected at a later time. - - - - - /schemas/apps/mate-power-manager/actions/sleep_type_ac - /apps/mate-power-manager/actions/sleep_type_ac - string - suspend - - Whether to hibernate, suspend or do nothing when inactive - The type of sleeping that should be performed when the computer is inactive. Possible values are "hibernate", "suspend" and "nothing". - - - - - /schemas/apps/mate-power-manager/actions/critical_ups - /apps/mate-power-manager/actions/critical_ups - string - shutdown - - UPS critical low action - The action to take when the UPS is critically low. Possible values are "hibernate", "suspend", "shutdown" and "nothing". - - - - - /schemas/apps/mate-power-manager/actions/low_ups - /apps/mate-power-manager/actions/low_ups - string - hibernate - - UPS low power action - The action to take when the UPS is low. Possible values are "hibernate", "suspend", "shutdown" and "nothing". - - - - - /schemas/apps/mate-power-manager/backlight/enable - /apps/mate-power-manager/backlight/enable - mate-power-manager - bool - true - - Allow backlight brightness adjustment - If the screen brightness should be changed when switching between AC and battery power. - - - - - /schemas/apps/mate-power-manager/backlight/battery_reduce - /apps/mate-power-manager/backlight/battery_reduce - mate-power-manager - bool - true - - Reduce the backlight brightness when on battery power - If the screen should be reduced in brightness when the computer is on battery power. - - - - - /schemas/apps/mate-power-manager/backlight/idle_brightness - /apps/mate-power-manager/backlight/idle_brightness - mate-power-manager - int - 30 - - The brightness of the screen when idle - This is the laptop panel screen brightness used when the session is idle. Only valid when use_time_for_policy is true. - - - - - /schemas/apps/mate-power-manager/backlight/idle_dim_battery - /apps/mate-power-manager/backlight/idle_dim_battery - mate-power-manager - bool - true - - Dim the screen after a period of inactivity when on battery power - If the screen should be dimmed to save power when the computer is idle when on battery power. - - - - - /schemas/apps/mate-power-manager/backlight/idle_dim_time - /apps/mate-power-manager/backlight/idle_dim_time - mate-power-manager - int - 10 - - The default amount of time to dim the screen after idle - The default amount of time to dim the screen after idle. - - - - - /schemas/apps/mate-power-manager/backlight/brightness_dim_battery - /apps/mate-power-manager/backlight/brightness_dim_battery - int - 50 - - LCD dimming amount when on battery - The amount to dim the brightness of the display when on battery power. Possible values are between 0 and 100. - - - - - /schemas/apps/mate-power-manager/backlight/idle_dim_ac - /apps/mate-power-manager/backlight/idle_dim_ac - mate-power-manager - bool - false - - Dim the screen after a period of inactivity when on AC power - If the screen should be dimmed to save power when the computer is idle when on AC power. - - - - - /schemas/apps/mate-power-manager/backlight/dpms_method_ac - /apps/mate-power-manager/backlight/dpms_method_ac - string - off - - Method used to blank screen on AC - The DPMS method used to blank the screen when on AC power. Possible values are "standby", "suspend" and "off". - - - - - /schemas/apps/mate-power-manager/backlight/dpms_method_battery - /apps/mate-power-manager/backlight/dpms_method_battery - string - off - - Method used to blank screen on battery - The DPMS method used to blank the screen when on battery power. Possible values are "standby", "suspend" and "off". - - - - - /schemas/apps/mate-power-manager/backlight/brightness_ac - /apps/mate-power-manager/backlight/brightness_ac - int - 100 - - LCD brightness when on AC - The brightness of the display when on AC power. Possible values are between 0 and 100. - - - - - /schemas/apps/mate-power-manager/buttons/suspend - /apps/mate-power-manager/buttons/suspend - string - suspend - - Suspend button action - The action to take when the system suspend button is pressed. Possible values are "suspend", "hibernate", "interactive", "shutdown" and "nothing". - - - - - /schemas/apps/mate-power-manager/buttons/hibernate - /apps/mate-power-manager/buttons/hibernate - string - hibernate - - Hibernate button action - The action to take when the system hibernate button is pressed. Possible values are "suspend", "hibernate", "interactive", "shutdown" and "nothing". - - - - - /schemas/apps/mate-power-manager/buttons/power - /apps/mate-power-manager/buttons/power - string - interactive - - Power button action - The action to take when the system power button is pressed. Possible values are "suspend", "hibernate", "interactive", "shutdown" and "nothing". - - - - - /schemas/apps/mate-power-manager/buttons/lid_battery - /apps/mate-power-manager/buttons/lid_battery - string - suspend - - Laptop lid close action on battery - The action to take when the laptop lid is closed and the laptop is on battery power. Possible values are "suspend", "hibernate", "blank", and "nothing". - - - - - /schemas/apps/mate-power-manager/buttons/lid_ac - /apps/mate-power-manager/buttons/lid_ac - string - suspend - - Laptop lid close action when on AC - The action to take when the laptop lid is closed and the laptop is on AC power. Possible values are "suspend", "hibernate", "blank" and "nothing". - - - - - /schemas/apps/mate-power-manager/general/installed_schema - /apps/mate-power-manager/general/installed_schema - mate-power-manager - int - 3 - - The default configuration version - The version of the installed version of the schema. Do not edit this value, it is used so that configure changes between versions can be detected. - - - - - /schemas/apps/mate-power-manager/general/use_profile_time - /apps/mate-power-manager/general/use_profile_time - mate-power-manager - bool - true - - If the learnt profile should be used to calculate the time remaining - If the learnt profile should be used to calculate the time remaining. Only turn this off for debugging. - - - - - /schemas/apps/mate-power-manager/general/use_time_for_policy - /apps/mate-power-manager/general/use_time_for_policy - mate-power-manager - bool - true - - Whether to use time-based notifications - If time based notifications should be used. If set to false, then the percentage change is used instead, which may fix a broken ACPI BIOS. - - - - - /schemas/apps/mate-power-manager/general/check_type_cpu - /apps/mate-power-manager/general/check_type_cpu - mate-power-manager - bool - false - - Check CPU load before sleeping - If the CPU load should be checked before doing the idle action. - - - - - /schemas/apps/mate-power-manager/general/network_sleep - /apps/mate-power-manager/general/network_sleep - mate-power-manager - bool - false - - Whether NetworkManager should be connected and disconnected on sleep - Whether NetworkManager should disconnect before suspending or hibernating and connect on resume. - - - - - /schemas/apps/mate-power-manager/lock/use_screensaver_settings - /apps/mate-power-manager/lock/use_screensaver_settings - mate-power-manager - bool - true - - Use mate-screensaver lock setting - Whether to use the screen lock setting of mate-screensaver to decide if the screen is locked after a hibernate, suspend or blank screen. - - - - - /schemas/apps/mate-power-manager/lock/blank_screen - /apps/mate-power-manager/lock/blank_screen - mate-power-manager - bool - true - - Lock screen when blanked - Whether the screen is locked when the screen is turned off. Only used if lock_use_screensaver_settings is false. - - - - - /schemas/apps/mate-power-manager/lock/suspend - /apps/mate-power-manager/lock/suspend - mate-power-manager - bool - true - - Lock screen on suspend - Whether the screen is locked when the computer wakes up from a suspend. Only used if lock_use_screensaver_settings is false. - - - - - /schemas/apps/mate-power-manager/lock/hibernate - /apps/mate-power-manager/lock/hibernate - mate-power-manager - bool - true - - Lock screen on hibernate - Whether the screen is locked when the computer wakes up from a hibernate. Only used if lock_use_screensaver_settings is false. - - - - - /schemas/apps/mate-power-manager/lock/mate_keyring_suspend - /apps/mate-power-manager/lock/mate_keyring_suspend - mate-power-manager - bool - false - - Lock MATE keyring on sleep - Whether the MATE keyring is locked before the computer enters suspend. This means the keyring will have to be unlocked on resume. - - - - - /schemas/apps/mate-power-manager/lock/mate_keyring_hibernate - /apps/mate-power-manager/lock/mate_keyring_hibernate - mate-power-manager - bool - true - - Lock MATE keyring on sleep - Whether the MATE keyring is locked before the computer enters hibernate. This means the keyring will have to be unlocked on resume. - - - - - /schemas/apps/mate-power-manager/disks/spindown_enable_ac - /apps/mate-power-manager/disks/spindown_enable_ac - mate-power-manager - bool - false - - If the low-power mode should be enabled when on AC - If the system low-power mode should be enabled when on AC power. - - - - - /schemas/apps/mate-power-manager/disks/spindown_enable_battery - /apps/mate-power-manager/disks/spindown_enable_battery - mate-power-manager - bool - true - - If the low-power mode should be enabled when on battery - If the system low-power mode should be enabled when on laptop battery power. - - - - - /schemas/apps/mate-power-manager/disks/spindown_timeout_ac - /apps/mate-power-manager/disks/spindown_timeout_ac - mate-power-manager - int - 600 - - Seconds of inactivity to spin down when on AC - The number of seconds of inactivity to spin down the disks when on AC power. - - - - - /schemas/apps/mate-power-manager/disks/spindown_timeout_battery - /apps/mate-power-manager/disks/spindown_timeout_battery - mate-power-manager - int - 60 - - Seconds of inactivity to spin down when on battery - The number of seconds of inactivity to spin down the disks when on battery power. - - - - - /schemas/apps/mate-power-manager/notify/perhaps_recall - /apps/mate-power-manager/notify/perhaps_recall - mate-power-manager - bool - true - - If we should show the recalled battery warning for a broken battery - If we should show the recalled battery warning for a broken battery. Set this to false only if you know your battery is okay. - - - - - /schemas/apps/mate-power-manager/notify/low_capacity - /apps/mate-power-manager/notify/low_capacity - mate-power-manager - bool - true - - If we should show the low capacity warning for a broken battery - If we should show the low capacity warning for a broken battery. - - - - - /schemas/apps/mate-power-manager/notify/discharging - /apps/mate-power-manager/notify/discharging - mate-power-manager - bool - true - - Notify when AC adapter is disconnected - If the user should be notified when the AC adapter is disconnected. - - - - - /schemas/apps/mate-power-manager/notify/fully_charged - /apps/mate-power-manager/notify/fully_charged - mate-power-manager - bool - false - - Notify when fully charged - If a notification message should be displayed when the battery is fully charged. - - - - - /schemas/apps/mate-power-manager/notify/sleep_failed - /apps/mate-power-manager/notify/sleep_failed - mate-power-manager - bool - true - - Notify on a sleep failure - If a notification message should be displayed after suspend or hibernate failed. - - - - - /schemas/apps/mate-power-manager/notify/sleep_failed_uri - /apps/mate-power-manager/notify/sleep_failed_uri - mate-power-manager - string - - - The URI to show to the user on sleep failure - When sleep fails we can show the user a button to help fix the situation. Leave this blank if the button should not be shown. - - - - - /schemas/apps/mate-power-manager/notify/low_power - /apps/mate-power-manager/notify/low_power - mate-power-manager - bool - true - - Notify on a low power - If a notification message should be displayed when the battery is getting low. - - - - - /schemas/apps/mate-power-manager/statistics/show_axis_labels - /apps/mate-power-manager/statistics/show_axis_labels - mate-power-manager - bool - true - - Whether we should show the axis labels in the statistics window - Whether we should show the axis labels in the statistics window. - - - - - /schemas/apps/mate-power-manager/statistics/show_events - /apps/mate-power-manager/statistics/show_events - mate-power-manager - bool - true - - Whether we should show the events in the statistics window - Whether we should show the events in the statistics window. - - - - - /schemas/apps/mate-power-manager/statistics/smooth_data - /apps/mate-power-manager/statistics/smooth_data - mate-power-manager - bool - true - - Whether we should smooth the data in the graph - Whether we should smooth the data in the graph. - - - - - /schemas/apps/mate-power-manager/statistics/graph_type - /apps/mate-power-manager/statistics/graph_type - mate-power-manager - string - power - - The default graph type to show in the statistics window - The default graph type to show in the statistics window. - - - - - /schemas/apps/mate-power-manager/statistics/data_max_time - /apps/mate-power-manager/statistics/data_max_time - mate-power-manager - int - 21600 - - The maximum time displayed on the graph - The maximum duration of time displayed on the x-axis of the graph. - - - - - /schemas/apps/mate-power-manager/thresholds/percentage_low - /apps/mate-power-manager/thresholds/percentage_low - mate-power-manager - int - 10 - - Percentage considered low - The percentage of the battery when it is considered low. Only valid when use_time_for_policy is false. - - - - - /schemas/apps/mate-power-manager/thresholds/percentage_critical - /apps/mate-power-manager/thresholds/percentage_critical - mate-power-manager - int - 3 - - Percentage considered critical - The percentage of the battery when it is considered critical. Only valid when use_time_for_policy is false. - - - - - /schemas/apps/mate-power-manager/thresholds/percentage_action - /apps/mate-power-manager/thresholds/percentage_action - mate-power-manager - int - 2 - - Percentage action is taken - The percentage of the battery when the critical action is performed. Only valid when use_time_for_policy is false. - - - - - /schemas/apps/mate-power-manager/thresholds/time_low - /apps/mate-power-manager/thresholds/time_low - mate-power-manager - int - 1200 - - The time remaining when low - The time remaining in seconds of the battery when it is considered low. Only valid when use_time_for_policy is true. - - - - - /schemas/apps/mate-power-manager/thresholds/time_critical - /apps/mate-power-manager/thresholds/time_critical - mate-power-manager - int - 300 - - The time remaining when critical - The time remaining in seconds of the battery when it is considered critical. Only valid when use_time_for_policy is true. - - - - - /schemas/apps/mate-power-manager/thresholds/time_action - /apps/mate-power-manager/thresholds/time_action - mate-power-manager - int - 120 - - The time remaining when action is taken - The time remaining in seconds of the battery when critical action is taken. Only valid when use_time_for_policy is true. - - - - - /schemas/apps/mate-power-manager/timeout/sleep_computer_battery - /apps/mate-power-manager/timeout/sleep_computer_battery - int - 0 - - Sleep timeout computer when on battery - The amount of time in seconds the computer on battery power needs to be inactive before it goes to sleep. - - - - - /schemas/apps/mate-power-manager/timeout/sleep_computer_ac - /apps/mate-power-manager/timeout/sleep_computer_ac - int - 0 - - Sleep timeout computer when on AC - The amount of time in seconds the computer on AC power needs to be inactive before it goes to sleep. - - - - - /schemas/apps/mate-power-manager/timeout/sleep_computer_ups - /apps/mate-power-manager/timeout/sleep_computer_ups - int - 0 - - Sleep timeout computer when on UPS - The amount of time in seconds the computer on UPS power needs to be inactive before it goes to sleep. - - - - - /schemas/apps/mate-power-manager/timeout/sleep_display_ac - /apps/mate-power-manager/timeout/sleep_display_ac - int - 1800 - - Sleep timeout display when on AC - The amount of time in seconds before the display goes to sleep when the computer is on AC power. - - - - - /schemas/apps/mate-power-manager/timeout/sleep_display_battery - /apps/mate-power-manager/timeout/sleep_display_battery - int - 600 - - Sleep timeout display when on battery - The amount of time in seconds the computer on battery power needs to be inactive before the display goes to sleep. - - - - - /schemas/apps/mate-power-manager/timeout/sleep_display_ups - /apps/mate-power-manager/timeout/sleep_display_ups - int - 600 - - Sleep timeout display when on UPS - The amount of time in seconds the computer on UPS power needs to be inactive before the display goes to sleep. - - - - - /schemas/apps/mate-power-manager/ui/enable_sound - /apps/mate-power-manager/ui/enable_sound - mate-power-manager - bool - true - - If sounds should be used - If sounds should be used when the power is critically low, or inhibit requests have stopped the policy action. - - - - - /schemas/apps/mate-power-manager/ui/show_actions - /apps/mate-power-manager/ui/show_actions - mate-power-manager - bool - true - - If preferences and statistics items should be shown in the context menu - - - - - - /schemas/apps/mate-power-manager/ui/icon_policy - /apps/mate-power-manager/ui/icon_policy - mate-power-manager - string - present - - When to show the notification icon - Display options for the notification icon. Valid options are "never", "low", "critical", "charge", "present" and "always". - - - - - diff --git a/data/org.mate.power-manager.gschema.xml b/data/org.mate.power-manager.gschema.xml new file mode 100644 index 0000000..0d930e5 --- /dev/null +++ b/data/org.mate.power-manager.gschema.xml @@ -0,0 +1,338 @@ + + + + 'hibernate' + Whether to hibernate, suspend or do nothing when inactive + The type of sleeping that should be performed when the computer is inactive. Possible values are "hibernate", "suspend" and "nothing". + + + 'hibernate' + Battery critical low action + The action to take when the battery is critically low. Possible values are "hibernate", "suspend", "shutdown" and "nothing". + + + true + If the battery event should occur when the lid is shut and the power disconnected + If the battery lid close event should occur (for example 'Suspend when lid closed on battery') when the lid is previously shut and the AC power disconnected at a later time. + + + 'suspend' + Whether to hibernate, suspend or do nothing when inactive + The type of sleeping that should be performed when the computer is inactive. Possible values are "hibernate", "suspend" and "nothing". + + + 'shutdown' + UPS critical low action + The action to take when the UPS is critically low. Possible values are "hibernate", "suspend", "shutdown" and "nothing". + + + 'hibernate' + UPS low power action + The action to take when the UPS is low. Possible values are "hibernate", "suspend", "shutdown" and "nothing". + + + true + Allow backlight brightness adjustment + If the screen brightness should be changed when switching between AC and battery power. + + + true + Reduce the backlight brightness when on battery power + If the screen should be reduced in brightness when the computer is on battery power. + + + 30 + The brightness of the screen when idle + This is the laptop panel screen brightness used when the session is idle. Only valid when use-time-for-policy is true. + + + true + Dim the screen after a period of inactivity when on battery power + If the screen should be dimmed to save power when the computer is idle when on battery power. + + + 10 + The default amount of time to dim the screen after idle + The default amount of time to dim the screen after idle. + + + 50 + LCD dimming amount when on battery + The amount to dim the brightness of the display when on battery power. Possible values are between 0 and 100. + + + false + Dim the screen after a period of inactivity when on AC power + If the screen should be dimmed to save power when the computer is idle when on AC power. + + + 'off' + Method used to blank screen on AC + The DPMS method used to blank the screen when on AC power. Possible values are "standby", "suspend" and "off". + + + 'off' + Method used to blank screen on battery + The DPMS method used to blank the screen when on battery power. Possible values are "standby", "suspend" and "off". + + + 100.0 + LCD brightness when on AC + The brightness of the display when on AC power. Possible values are between 0.0 and 100.0. + + + 'suspend' + Suspend button action + The action to take when the system suspend button is pressed. Possible values are "suspend", "hibernate", "interactive", "shutdown" and "nothing". + + + 'hibernate' + Hibernate button action + The action to take when the system hibernate button is pressed. Possible values are "suspend", "hibernate", "interactive", "shutdown" and "nothing". + + + 'interactive' + Power button action + The action to take when the system power button is pressed. Possible values are "suspend", "hibernate", "interactive", "shutdown" and "nothing". + + + 'suspend' + Laptop lid close action on battery + The action to take when the laptop lid is closed and the laptop is on battery power. Possible values are "suspend", "hibernate", "blank", and "nothing". + + + 'suspend' + Laptop lid close action when on AC + The action to take when the laptop lid is closed and the laptop is on AC power. Possible values are "suspend", "hibernate", "blank" and "nothing". + + + 3 + The default configuration version. + The version of the installed version of the schema. Do not edit this value, it is used so that configure changes between versions can be detected. + + + true + If the learnt profile should be used to calculate the time remaining + If the learnt profile should be used to calculate the time remaining. Only turn this off for debugging. + + + true + Whether to use time-based notifications + If time based notifications should be used. If set to false, then the percentage change is used instead, which may fix a broken ACPI BIOS. + + + false + Check CPU load before sleeping + If the CPU load should be checked before doing the idle action. + + + false + Whether NetworkManager should be connected and disconnected on sleep. + Whether NetworkManager should disconnect before suspending or hibernating and connect on resume. + + + true + Use mate-screensaver lock setting + Whether to use the screen lock setting of mate-screensaver to decide if the screen is locked after a hibernate, suspend or blank screen. + + + true + Lock screen when blanked + Whether the screen is locked when the screen is turned off. Only used if lock-use-screensaver is false. + + + true + Lock screen on suspend + Whether the screen is locked when the computer wakes up from a suspend. Only used if lock-use-screensaver is false. + + + true + Lock screen on hibernate + Whether the screen is locked when the computer wakes up from a hibernate. Only used if lock-use-screensaver is false. + + + false + Lock MATE keyring on sleep + Whether the MATE keyring is locked before the computer enters suspend. This means the keyring will have to be unlocked on resume. + + + true + Lock MATE keyring on sleep + Whether the MATE keyring is locked before the computer enters hibernate. This means the keyring will have to be unlocked on resume. + + + false + If the low-power mode should be enabled when on AC + If the system low-power mode should be enabled when on AC power. + + + true + If the low-power mode should be enabled when on battery + If the system low-power mode should be enabled when on laptop battery power. + + + 600 + Seconds of inactivity to spin down when on AC + The number of seconds of inactivity to spin down the disks when on AC power. + + + 60 + Seconds of inactivity to spin down when on battery + The number of seconds of inactivity to spin down the disks when on battery power. + + + true + If we should show the recalled battery warning for a broken battery + If we should show the recalled battery warning for a broken battery. Set this to false only if you know your battery is okay. + + + true + If we should show the low capacity warning for a broken battery + If we should show the low capacity warning for a broken battery. + + + true + Notify when AC adapter is disconnected + If the user should be notified when the AC adapter is disconnected. + + + false + Notify when fully charged + If a notification message should be displayed when the battery is fully charged. + + + true + Notify on a sleep failure + If a notification message should be displayed after suspend or hibernate failed. + + + '' + The URI to show to the user on sleep failure + When sleep fails we can show the user a button to help fix the situation. Leave this blank if the button should not be shown. + + + true + Notify on a low power + If a notification message should be displayed when the battery is getting low. + + + true + Whether we should show the history data points + Whether we should show the history data points in the statistics window. + + + true + Whether we should smooth the history data + Whether we should smooth the history data in the graph. + + + 'power' + The default graph type to show for history + The default graph type to show in the history window. + + + 21600 + The maximum time displayed for history + The maximum duration of time displayed on the x-axis of the history graph. + + + true + Whether we should show the stats data points + Whether we should show the stats data points in the statistics window. + + + true + Whether we should smooth the stats data + Whether we should smooth the stats data in the graph. + + + 'power' + The default graph type to show for stats + The default graph type to show in the stats window. + + + 0 + The index of the page number to show by default + The index of the page number to show by default which is used to return focus to the correct page. + + + '' + The ID of the last device selected + The identifier of the last device which is used to return focus to the correct device. + + + 10 + Percentage considered low + The percentage of the battery when it is considered low. Only valid when use-time-for-policy is false. + + + 3 + Percentage considered critical + The percentage of the battery when it is considered critical. Only valid when use-time-for-policy is false. + + + 2 + Percentage action is taken + The percentage of the battery when the critical action is performed. Only valid when use-time-for-policy is false. + + + 1200 + The time remaining when low + The time remaining in seconds of the battery when it is considered low. Only valid when use-time-for-policy is true. + + + 300 + The time remaining when critical + The time remaining in seconds of the battery when it is considered critical. Only valid when use-time-for-policy is true. + + + 120 + The time remaining when action is taken + The time remaining in seconds of the battery when critical action is taken. Only valid when use-time-for-policy is true. + + + 0 + Sleep timeout computer when on battery + The amount of time in seconds the computer on battery power needs to be inactive before it goes to sleep. + + + 0 + Sleep timeout computer when on AC + The amount of time in seconds the computer on AC power needs to be inactive before it goes to sleep. + + + 0 + Sleep timeout computer when on UPS + The amount of time in seconds the computer on UPS power needs to be inactive before it goes to sleep. + + + 1800 + Sleep timeout display when on AC + The amount of time in seconds before the display goes to sleep when the computer is on AC power. + + + 600 + Sleep timeout display when on battery + The amount of time in seconds the computer on battery power needs to be inactive before the display goes to sleep. + + + 600 + Sleep timeout display when on UPS + The amount of time in seconds the computer on UPS power needs to be inactive before the display goes to sleep. + + + true + If sounds should be used + If sounds should be used when the power is critically low, or inhibit requests have stopped the policy action. + + + true + If preferences and statistics items should be shown in the context menu + + + 'present' + When to show the notification icon + Display options for the notification icon. Valid options are "never", "low", "critical", "charge", and "present". + + + -- cgit v1.2.1 From 060a4507145425c02c6aa0ef810138c04d38f5a9 Mon Sep 17 00:00:00 2001 From: Brent Hull Date: Tue, 30 Oct 2012 15:55:35 -0400 Subject: Use gsettings enums (partially from GNOME) --- data/org.mate.power-manager.gschema.xml | 73 +++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 26 deletions(-) (limited to 'data') diff --git a/data/org.mate.power-manager.gschema.xml b/data/org.mate.power-manager.gschema.xml index 0d930e5..daa78f3 100644 --- a/data/org.mate.power-manager.gschema.xml +++ b/data/org.mate.power-manager.gschema.xml @@ -1,34 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + - + 'hibernate' Whether to hibernate, suspend or do nothing when inactive - The type of sleeping that should be performed when the computer is inactive. Possible values are "hibernate", "suspend" and "nothing". + The type of sleeping that should be performed when the computer is inactive. - + 'hibernate' Battery critical low action - The action to take when the battery is critically low. Possible values are "hibernate", "suspend", "shutdown" and "nothing". + The action to take when the battery is critically low. true If the battery event should occur when the lid is shut and the power disconnected If the battery lid close event should occur (for example 'Suspend when lid closed on battery') when the lid is previously shut and the AC power disconnected at a later time. - + 'suspend' Whether to hibernate, suspend or do nothing when inactive - The type of sleeping that should be performed when the computer is inactive. Possible values are "hibernate", "suspend" and "nothing". + The type of sleeping that should be performed when the computer is inactive. - + 'shutdown' UPS critical low action - The action to take when the UPS is critically low. Possible values are "hibernate", "suspend", "shutdown" and "nothing". + The action to take when the UPS is critically low. - + 'hibernate' UPS low power action - The action to take when the UPS is low. Possible values are "hibernate", "suspend", "shutdown" and "nothing". + The action to take when the UPS is low. true @@ -65,45 +86,45 @@ Dim the screen after a period of inactivity when on AC power If the screen should be dimmed to save power when the computer is idle when on AC power. - + 'off' Method used to blank screen on AC - The DPMS method used to blank the screen when on AC power. Possible values are "standby", "suspend" and "off". + The DPMS method used to blank the screen when on AC power. - + 'off' Method used to blank screen on battery - The DPMS method used to blank the screen when on battery power. Possible values are "standby", "suspend" and "off". + The DPMS method used to blank the screen when on battery power. 100.0 LCD brightness when on AC The brightness of the display when on AC power. Possible values are between 0.0 and 100.0. - + 'suspend' Suspend button action - The action to take when the system suspend button is pressed. Possible values are "suspend", "hibernate", "interactive", "shutdown" and "nothing". + The action to take when the system suspend button is pressed. - + 'hibernate' Hibernate button action - The action to take when the system hibernate button is pressed. Possible values are "suspend", "hibernate", "interactive", "shutdown" and "nothing". + The action to take when the system hibernate button is pressed. - + 'interactive' Power button action - The action to take when the system power button is pressed. Possible values are "suspend", "hibernate", "interactive", "shutdown" and "nothing". + The action to take when the system power button is pressed. - + 'suspend' Laptop lid close action on battery - The action to take when the laptop lid is closed and the laptop is on battery power. Possible values are "suspend", "hibernate", "blank", and "nothing". + The action to take when the laptop lid is closed and the laptop is on battery power. - + 'suspend' Laptop lid close action when on AC - The action to take when the laptop lid is closed and the laptop is on AC power. Possible values are "suspend", "hibernate", "blank" and "nothing". + The action to take when the laptop lid is closed and the laptop is on AC power. 3 @@ -329,10 +350,10 @@ true If preferences and statistics items should be shown in the context menu - + 'present' When to show the notification icon - Display options for the notification icon. Valid options are "never", "low", "critical", "charge", and "present". + Display options for the notification icon. -- cgit v1.2.1 From 6161e23866e73161dc0943c8ff24039edf8c531e Mon Sep 17 00:00:00 2001 From: Brent Hull Date: Tue, 30 Oct 2012 16:33:38 -0400 Subject: Enable translations for gsettings schema --- data/Makefile.am | 8 +- data/org.mate.power-manager.gschema.xml | 359 ----------------------------- data/org.mate.power-manager.gschema.xml.in | 359 +++++++++++++++++++++++++++++ 3 files changed, 365 insertions(+), 361 deletions(-) delete mode 100644 data/org.mate.power-manager.gschema.xml create mode 100644 data/org.mate.power-manager.gschema.xml.in (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index 0f0d775..06aab6e 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -20,7 +20,9 @@ $(service_DATA): $(service_in_files) Makefile @sed -e "s|\@servicedir\@|$(bindir)|" $< > $@ @GSETTINGS_RULES@ -gsettings_SCHEMAS = org.mate.power-manager.gschema.xml +@INTLTOOL_XML_NOMERGE_RULE@ +gsettings_schemas_in_files = org.mate.power-manager.gschema.xml.in +gsettings_SCHEMAS = $(gsettings_schemas_in_files:.gschema.xml.in=.gschema.xml) pkgdata_DATA = \ gpm-statistics.ui \ @@ -35,6 +37,7 @@ EXTRA_DIST = \ $(service_in_files) \ $(autostart_in_files) \ $(desktop_in_files) \ + $(gsettings_schemas_in_files) \ $(pkgdata_DATA) clean-local : @@ -44,4 +47,5 @@ DISTCLEANFILES = \ mate-power-manager.desktop \ mate-power-preferences.desktop \ mate-power-statistics.desktop \ - mate-power-manager.service + mate-power-manager.service \ + org.mate.power-manager.gschema.xml diff --git a/data/org.mate.power-manager.gschema.xml b/data/org.mate.power-manager.gschema.xml deleted file mode 100644 index daa78f3..0000000 --- a/data/org.mate.power-manager.gschema.xml +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - 'hibernate' - Whether to hibernate, suspend or do nothing when inactive - The type of sleeping that should be performed when the computer is inactive. - - - 'hibernate' - Battery critical low action - The action to take when the battery is critically low. - - - true - If the battery event should occur when the lid is shut and the power disconnected - If the battery lid close event should occur (for example 'Suspend when lid closed on battery') when the lid is previously shut and the AC power disconnected at a later time. - - - 'suspend' - Whether to hibernate, suspend or do nothing when inactive - The type of sleeping that should be performed when the computer is inactive. - - - 'shutdown' - UPS critical low action - The action to take when the UPS is critically low. - - - 'hibernate' - UPS low power action - The action to take when the UPS is low. - - - true - Allow backlight brightness adjustment - If the screen brightness should be changed when switching between AC and battery power. - - - true - Reduce the backlight brightness when on battery power - If the screen should be reduced in brightness when the computer is on battery power. - - - 30 - The brightness of the screen when idle - This is the laptop panel screen brightness used when the session is idle. Only valid when use-time-for-policy is true. - - - true - Dim the screen after a period of inactivity when on battery power - If the screen should be dimmed to save power when the computer is idle when on battery power. - - - 10 - The default amount of time to dim the screen after idle - The default amount of time to dim the screen after idle. - - - 50 - LCD dimming amount when on battery - The amount to dim the brightness of the display when on battery power. Possible values are between 0 and 100. - - - false - Dim the screen after a period of inactivity when on AC power - If the screen should be dimmed to save power when the computer is idle when on AC power. - - - 'off' - Method used to blank screen on AC - The DPMS method used to blank the screen when on AC power. - - - 'off' - Method used to blank screen on battery - The DPMS method used to blank the screen when on battery power. - - - 100.0 - LCD brightness when on AC - The brightness of the display when on AC power. Possible values are between 0.0 and 100.0. - - - 'suspend' - Suspend button action - The action to take when the system suspend button is pressed. - - - 'hibernate' - Hibernate button action - The action to take when the system hibernate button is pressed. - - - 'interactive' - Power button action - The action to take when the system power button is pressed. - - - 'suspend' - Laptop lid close action on battery - The action to take when the laptop lid is closed and the laptop is on battery power. - - - 'suspend' - Laptop lid close action when on AC - The action to take when the laptop lid is closed and the laptop is on AC power. - - - 3 - The default configuration version. - The version of the installed version of the schema. Do not edit this value, it is used so that configure changes between versions can be detected. - - - true - If the learnt profile should be used to calculate the time remaining - If the learnt profile should be used to calculate the time remaining. Only turn this off for debugging. - - - true - Whether to use time-based notifications - If time based notifications should be used. If set to false, then the percentage change is used instead, which may fix a broken ACPI BIOS. - - - false - Check CPU load before sleeping - If the CPU load should be checked before doing the idle action. - - - false - Whether NetworkManager should be connected and disconnected on sleep. - Whether NetworkManager should disconnect before suspending or hibernating and connect on resume. - - - true - Use mate-screensaver lock setting - Whether to use the screen lock setting of mate-screensaver to decide if the screen is locked after a hibernate, suspend or blank screen. - - - true - Lock screen when blanked - Whether the screen is locked when the screen is turned off. Only used if lock-use-screensaver is false. - - - true - Lock screen on suspend - Whether the screen is locked when the computer wakes up from a suspend. Only used if lock-use-screensaver is false. - - - true - Lock screen on hibernate - Whether the screen is locked when the computer wakes up from a hibernate. Only used if lock-use-screensaver is false. - - - false - Lock MATE keyring on sleep - Whether the MATE keyring is locked before the computer enters suspend. This means the keyring will have to be unlocked on resume. - - - true - Lock MATE keyring on sleep - Whether the MATE keyring is locked before the computer enters hibernate. This means the keyring will have to be unlocked on resume. - - - false - If the low-power mode should be enabled when on AC - If the system low-power mode should be enabled when on AC power. - - - true - If the low-power mode should be enabled when on battery - If the system low-power mode should be enabled when on laptop battery power. - - - 600 - Seconds of inactivity to spin down when on AC - The number of seconds of inactivity to spin down the disks when on AC power. - - - 60 - Seconds of inactivity to spin down when on battery - The number of seconds of inactivity to spin down the disks when on battery power. - - - true - If we should show the recalled battery warning for a broken battery - If we should show the recalled battery warning for a broken battery. Set this to false only if you know your battery is okay. - - - true - If we should show the low capacity warning for a broken battery - If we should show the low capacity warning for a broken battery. - - - true - Notify when AC adapter is disconnected - If the user should be notified when the AC adapter is disconnected. - - - false - Notify when fully charged - If a notification message should be displayed when the battery is fully charged. - - - true - Notify on a sleep failure - If a notification message should be displayed after suspend or hibernate failed. - - - '' - The URI to show to the user on sleep failure - When sleep fails we can show the user a button to help fix the situation. Leave this blank if the button should not be shown. - - - true - Notify on a low power - If a notification message should be displayed when the battery is getting low. - - - true - Whether we should show the history data points - Whether we should show the history data points in the statistics window. - - - true - Whether we should smooth the history data - Whether we should smooth the history data in the graph. - - - 'power' - The default graph type to show for history - The default graph type to show in the history window. - - - 21600 - The maximum time displayed for history - The maximum duration of time displayed on the x-axis of the history graph. - - - true - Whether we should show the stats data points - Whether we should show the stats data points in the statistics window. - - - true - Whether we should smooth the stats data - Whether we should smooth the stats data in the graph. - - - 'power' - The default graph type to show for stats - The default graph type to show in the stats window. - - - 0 - The index of the page number to show by default - The index of the page number to show by default which is used to return focus to the correct page. - - - '' - The ID of the last device selected - The identifier of the last device which is used to return focus to the correct device. - - - 10 - Percentage considered low - The percentage of the battery when it is considered low. Only valid when use-time-for-policy is false. - - - 3 - Percentage considered critical - The percentage of the battery when it is considered critical. Only valid when use-time-for-policy is false. - - - 2 - Percentage action is taken - The percentage of the battery when the critical action is performed. Only valid when use-time-for-policy is false. - - - 1200 - The time remaining when low - The time remaining in seconds of the battery when it is considered low. Only valid when use-time-for-policy is true. - - - 300 - The time remaining when critical - The time remaining in seconds of the battery when it is considered critical. Only valid when use-time-for-policy is true. - - - 120 - The time remaining when action is taken - The time remaining in seconds of the battery when critical action is taken. Only valid when use-time-for-policy is true. - - - 0 - Sleep timeout computer when on battery - The amount of time in seconds the computer on battery power needs to be inactive before it goes to sleep. - - - 0 - Sleep timeout computer when on AC - The amount of time in seconds the computer on AC power needs to be inactive before it goes to sleep. - - - 0 - Sleep timeout computer when on UPS - The amount of time in seconds the computer on UPS power needs to be inactive before it goes to sleep. - - - 1800 - Sleep timeout display when on AC - The amount of time in seconds before the display goes to sleep when the computer is on AC power. - - - 600 - Sleep timeout display when on battery - The amount of time in seconds the computer on battery power needs to be inactive before the display goes to sleep. - - - 600 - Sleep timeout display when on UPS - The amount of time in seconds the computer on UPS power needs to be inactive before the display goes to sleep. - - - true - If sounds should be used - If sounds should be used when the power is critically low, or inhibit requests have stopped the policy action. - - - true - If preferences and statistics items should be shown in the context menu - - - 'present' - When to show the notification icon - Display options for the notification icon. - - - diff --git a/data/org.mate.power-manager.gschema.xml.in b/data/org.mate.power-manager.gschema.xml.in new file mode 100644 index 0000000..a760c37 --- /dev/null +++ b/data/org.mate.power-manager.gschema.xml.in @@ -0,0 +1,359 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 'hibernate' + <_summary>Whether to hibernate, suspend or do nothing when inactive + <_description>The type of sleeping that should be performed when the computer is inactive. + + + 'hibernate' + <_summary>Battery critical low action + <_description>The action to take when the battery is critically low. + + + true + <_summary>If the battery event should occur when the lid is shut and the power disconnected + <_description>If the battery lid close event should occur (for example 'Suspend when lid closed on battery') when the lid is previously shut and the AC power disconnected at a later time. + + + 'suspend' + <_summary>Whether to hibernate, suspend or do nothing when inactive + <_description>The type of sleeping that should be performed when the computer is inactive. + + + 'shutdown' + <_summary>UPS critical low action + <_description>The action to take when the UPS is critically low. + + + 'hibernate' + <_summary>UPS low power action + <_description>The action to take when the UPS is low. + + + true + <_summary>Allow backlight brightness adjustment + <_description>If the screen brightness should be changed when switching between AC and battery power. + + + true + <_summary>Reduce the backlight brightness when on battery power + <_description>If the screen should be reduced in brightness when the computer is on battery power. + + + 30 + <_summary>The brightness of the screen when idle + <_description>This is the laptop panel screen brightness used when the session is idle. Only valid when use-time-for-policy is true. + + + true + <_summary>Dim the screen after a period of inactivity when on battery power + <_description>If the screen should be dimmed to save power when the computer is idle when on battery power. + + + 10 + <_summary>The default amount of time to dim the screen after idle + <_description>The default amount of time to dim the screen after idle. + + + 50 + <_summary>LCD dimming amount when on battery + <_description>The amount to dim the brightness of the display when on battery power. Possible values are between 0 and 100. + + + false + <_summary>Dim the screen after a period of inactivity when on AC power + <_description>If the screen should be dimmed to save power when the computer is idle when on AC power. + + + 'off' + <_summary>Method used to blank screen on AC + <_description>The DPMS method used to blank the screen when on AC power. + + + 'off' + <_summary>Method used to blank screen on battery + <_description>The DPMS method used to blank the screen when on battery power. + + + 100.0 + <_summary>LCD brightness when on AC + <_description>The brightness of the display when on AC power. Possible values are between 0.0 and 100.0. + + + 'suspend' + <_summary>Suspend button action + <_description>The action to take when the system suspend button is pressed. + + + 'hibernate' + <_summary>Hibernate button action + <_description>The action to take when the system hibernate button is pressed. + + + 'interactive' + <_summary>Power button action + <_description>The action to take when the system power button is pressed. + + + 'suspend' + <_summary>Laptop lid close action on battery + <_description>The action to take when the laptop lid is closed and the laptop is on battery power. + + + 'suspend' + <_summary>Laptop lid close action when on AC + <_description>The action to take when the laptop lid is closed and the laptop is on AC power. + + + 3 + <_summary>The default configuration version. + <_description>The version of the installed version of the schema. Do not edit this value, it is used so that configure changes between versions can be detected. + + + true + <_summary>If the learnt profile should be used to calculate the time remaining + <_description>If the learnt profile should be used to calculate the time remaining. Only turn this off for debugging. + + + true + <_summary>Whether to use time-based notifications + <_description>If time based notifications should be used. If set to false, then the percentage change is used instead, which may fix a broken ACPI BIOS. + + + false + <_summary>Check CPU load before sleeping + <_description>If the CPU load should be checked before doing the idle action. + + + false + <_summary>Whether NetworkManager should be connected and disconnected on sleep. + <_description>Whether NetworkManager should disconnect before suspending or hibernating and connect on resume. + + + true + <_summary>Use mate-screensaver lock setting + <_description>Whether to use the screen lock setting of mate-screensaver to decide if the screen is locked after a hibernate, suspend or blank screen. + + + true + <_summary>Lock screen when blanked + <_description>Whether the screen is locked when the screen is turned off. Only used if lock-use-screensaver is false. + + + true + <_summary>Lock screen on suspend + <_description>Whether the screen is locked when the computer wakes up from a suspend. Only used if lock-use-screensaver is false. + + + true + <_summary>Lock screen on hibernate + <_description>Whether the screen is locked when the computer wakes up from a hibernate. Only used if lock-use-screensaver is false. + + + false + <_summary>Lock MATE keyring on sleep + <_description>Whether the MATE keyring is locked before the computer enters suspend. This means the keyring will have to be unlocked on resume. + + + true + <_summary>Lock MATE keyring on sleep + <_description>Whether the MATE keyring is locked before the computer enters hibernate. This means the keyring will have to be unlocked on resume. + + + false + <_summary>If the low-power mode should be enabled when on AC + <_description>If the system low-power mode should be enabled when on AC power. + + + true + <_summary>If the low-power mode should be enabled when on battery + <_description>If the system low-power mode should be enabled when on laptop battery power. + + + 600 + <_summary>Seconds of inactivity to spin down when on AC + <_description>The number of seconds of inactivity to spin down the disks when on AC power. + + + 60 + <_summary>Seconds of inactivity to spin down when on battery + <_description>The number of seconds of inactivity to spin down the disks when on battery power. + + + true + <_summary>If we should show the recalled battery warning for a broken battery + <_description>If we should show the recalled battery warning for a broken battery. Set this to false only if you know your battery is okay. + + + true + <_summary>If we should show the low capacity warning for a broken battery + <_description>If we should show the low capacity warning for a broken battery. + + + true + <_summary>Notify when AC adapter is disconnected + <_description>If the user should be notified when the AC adapter is disconnected. + + + false + <_summary>Notify when fully charged + <_description>If a notification message should be displayed when the battery is fully charged. + + + true + <_summary>Notify on a sleep failure + <_description>If a notification message should be displayed after suspend or hibernate failed. + + + '' + <_summary>The URI to show to the user on sleep failure + <_description>When sleep fails we can show the user a button to help fix the situation. Leave this blank if the button should not be shown. + + + true + <_summary>Notify on a low power + <_description>If a notification message should be displayed when the battery is getting low. + + + true + <_summary>Whether we should show the history data points + <_description>Whether we should show the history data points in the statistics window. + + + true + <_summary>Whether we should smooth the history data + <_description>Whether we should smooth the history data in the graph. + + + 'power' + <_summary>The default graph type to show for history + <_description>The default graph type to show in the history window. + + + 21600 + <_summary>The maximum time displayed for history + <_description>The maximum duration of time displayed on the x-axis of the history graph. + + + true + <_summary>Whether we should show the stats data points + <_description>Whether we should show the stats data points in the statistics window. + + + true + <_summary>Whether we should smooth the stats data + <_description>Whether we should smooth the stats data in the graph. + + + 'power' + <_summary>The default graph type to show for stats + <_description>The default graph type to show in the stats window. + + + 0 + <_summary>The index of the page number to show by default + <_description>The index of the page number to show by default which is used to return focus to the correct page. + + + '' + <_summary>The ID of the last device selected + <_description>The identifier of the last device which is used to return focus to the correct device. + + + 10 + <_summary>Percentage considered low + <_description>The percentage of the battery when it is considered low. Only valid when use-time-for-policy is false. + + + 3 + <_summary>Percentage considered critical + <_description>The percentage of the battery when it is considered critical. Only valid when use-time-for-policy is false. + + + 2 + <_summary>Percentage action is taken + <_description>The percentage of the battery when the critical action is performed. Only valid when use-time-for-policy is false. + + + 1200 + <_summary>The time remaining when low + <_description>The time remaining in seconds of the battery when it is considered low. Only valid when use-time-for-policy is true. + + + 300 + <_summary>The time remaining when critical + <_description>The time remaining in seconds of the battery when it is considered critical. Only valid when use-time-for-policy is true. + + + 120 + <_summary>The time remaining when action is taken + <_description>The time remaining in seconds of the battery when critical action is taken. Only valid when use-time-for-policy is true. + + + 0 + <_summary>Sleep timeout computer when on battery + <_description>The amount of time in seconds the computer on battery power needs to be inactive before it goes to sleep. + + + 0 + <_summary>Sleep timeout computer when on AC + <_description>The amount of time in seconds the computer on AC power needs to be inactive before it goes to sleep. + + + 0 + <_summary>Sleep timeout computer when on UPS + <_description>The amount of time in seconds the computer on UPS power needs to be inactive before it goes to sleep. + + + 1800 + <_summary>Sleep timeout display when on AC + <_description>The amount of time in seconds before the display goes to sleep when the computer is on AC power. + + + 600 + <_summary>Sleep timeout display when on battery + <_description>The amount of time in seconds the computer on battery power needs to be inactive before the display goes to sleep. + + + 600 + <_summary>Sleep timeout display when on UPS + <_description>The amount of time in seconds the computer on UPS power needs to be inactive before the display goes to sleep. + + + true + <_summary>If sounds should be used + <_description>If sounds should be used when the power is critically low, or inhibit requests have stopped the policy action. + + + true + <_summary>If preferences and statistics items should be shown in the context menu + + + 'present' + <_summary>When to show the notification icon + <_description>Display options for the notification icon. + + + -- cgit v1.2.1 From 1e0bea49d7d1959d063c6ab74c99500067236110 Mon Sep 17 00:00:00 2001 From: Brent Hull Date: Tue, 30 Oct 2012 17:34:02 -0400 Subject: Remove unused key from gsettings schema --- data/org.mate.power-manager.gschema.xml.in | 5 ----- 1 file changed, 5 deletions(-) (limited to 'data') diff --git a/data/org.mate.power-manager.gschema.xml.in b/data/org.mate.power-manager.gschema.xml.in index a760c37..e423182 100644 --- a/data/org.mate.power-manager.gschema.xml.in +++ b/data/org.mate.power-manager.gschema.xml.in @@ -131,11 +131,6 @@ <_summary>The default configuration version. <_description>The version of the installed version of the schema. Do not edit this value, it is used so that configure changes between versions can be detected. - - true - <_summary>If the learnt profile should be used to calculate the time remaining - <_description>If the learnt profile should be used to calculate the time remaining. Only turn this off for debugging. - true <_summary>Whether to use time-based notifications -- cgit v1.2.1 From 972be3627b8b6368a0e8c971ade7963ea7d459de Mon Sep 17 00:00:00 2001 From: Brent Hull Date: Thu, 1 Nov 2012 19:40:46 -0400 Subject: Remove unnecessary schema version check and some unused constants --- data/org.mate.power-manager.gschema.xml.in | 5 ----- 1 file changed, 5 deletions(-) (limited to 'data') diff --git a/data/org.mate.power-manager.gschema.xml.in b/data/org.mate.power-manager.gschema.xml.in index e423182..99ee820 100644 --- a/data/org.mate.power-manager.gschema.xml.in +++ b/data/org.mate.power-manager.gschema.xml.in @@ -126,11 +126,6 @@ <_summary>Laptop lid close action when on AC <_description>The action to take when the laptop lid is closed and the laptop is on AC power. - - 3 - <_summary>The default configuration version. - <_description>The version of the installed version of the schema. Do not edit this value, it is used so that configure changes between versions can be detected. - true <_summary>Whether to use time-based notifications -- cgit v1.2.1