File: README.versions

package info (click to toggle)
powersave 0.14.0-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,764 kB
  • ctags: 999
  • sloc: sh: 11,357; cpp: 8,103; ansic: 2,631; makefile: 388
file content (144 lines) | stat: -rw-r--r-- 4,687 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
@verb{|
Version 0.9

1) Configuration
dropped variables for schemes in /etc/sysconfig/powersave/schemes_*:
    POWERSAVE_DISABLE_DISPLAY_SETTINGS=
    POWERSAVE_DISABLE_SCREEN_SAVER=
    POWERSAVE_DISABLE_DPMS=
    POWERSAVE_DPMS_STANDBY=
    POWERSAVE_DPMS_SUSPEND=
    POWERSAVE_DPMS_OFF=
These settings are no longer handled by the helper scripts but by the
graphical clients like kpowersave (which can do this more easily).

2) events / scripts in /usr/lib/powersave/scripts
It was already possible in version 0.8 to put executables into
/usr/lib/powersave/scripts and use the names of these executables as event
names.
In version 0.8, only the exit status of the script was used to determine
success or failure. In version 0.9, you must now use
/usr/lib/powersave/scripts/powersaved_script_return to tell powersaved if
the event was executed successfully or not. Read more in README.events

3) Clients
Clients can now register with powersaved and get notified for specific
events, so polling is no longer needed. Take a look at the "testclient"
source code for further information.
Clients can also be notified by e.g. proxy scripts to popup a messagebox,
a progress bar or to lock the screen.

#########################################################################

Version 0.8

1) Configuration
configuration merged into one directory.
powersave.conf (etc/) and common (/etc/sysconfig/powersave)
have been merged into the files common, events, cpufreq, thermal,
sleep and battery.

Following config Variables have are new or have changed:

New general variables:
/etc/sysconfig/powersave/cpufreq:
POWERSAVED_CPU_HYSTERESIS=
POWERSAVED_CONSIDER_NICE=
POWERSAVED_JUMP_CPU_FREQ_MAX_LIMIT=

/etc/sysconfig/powersave/events:
POWERSAVE_EVENT_DAEMON_SCHEME_CHANGE=
POWERSAVE_EVENT_TEMPERATURE_CRITICAL=
POWERSAVE_EVENT_TEMPERATURE_HOT=
POWERSAVE_EVENT_TEMPERATURE_PASSIVE=
POWERSAVE_EVENT_TEMPERATURE_ACTIVE=
POWERSAVE_EVENT_TEMPERATURE_OK=

/etc/sysconfig/powersave/thermal:
POWERSAVE_ENABLE_THERMAL_MANAGEMENT=

new variables for schemes in /etc/sysconfig/powersave/schemes_*:
POWERSAVE_DISABLE_DISPLAY_SETTINGS=
POWERSAVE_DISABLE_SCREEN_SAVER=
POWERSAVE_DISABLE_DPMS=
POWERSAVE_DPMS_STANDBY=
POWERSAVE_DPMS_SUSPEND=
POWERSAVE_DPMS_OFF=

Because of confusing naming of sleep states those have been renamed:

there was:
suspend (ACPI S4, APM suspend)
standby (ACPI S3, APM standby)

now there is:
suspend to disk (ACPI S4, APM suspend)
suspend to ram  (ACPI S3, APM suspend)
standby         (ACPI S1, APM standby) 

Therefore following variables changed in 
/etc/sysconfig/powersave/events and
/etc/sysconfig/powersave/sleep:
POWERSAVE_EVENT_GLOBAL_SUSPEND2DISK=
POWERSAVE_EVENT_GLOBAL_SUSPEND2RAM=
POWERSAVE_EVENT_GLOBAL_RESUME_SUSPEND2DISK=
POWERSAVE_EVENT_GLOBAL_RESUME_SUSPEND2RAM=
POWERSAVE_UNLOAD_MODULES_BEFORE_SUSPEND2DISK=
POWERSAVE_UNLOAD_MODULES_BEFORE_SUSPEND2RAM=
POWERSAVE_SUSPEND2DISK_RESTART_SERVICES=
POWERSAVE_SUSPEND2RAM_RESTART_SERVICES=
POWERSAVED_DISABLE_USER_SUSPEND2DISK=
POWERSAVED_DISABLE_USER_SUSPEND2RAM=
POWERSAVE_SUSPEND2DISK_DELAY=
POWERSAVE_SUSPEND2RAM_DELAY=
POWERSAVE_STANDBY_DELAY=

2) Thermal Management
Thermal management is supported from now on.
see README.thermal.

3) Switch Schemes Manually

Schemes can now switched by hand using the powersave -x (overview of
all schemes) and the powersave -e scheme_to_set (switch scheme)
parameters.

4) Socket Interface

Other progs can now query the daemon for:
      AC state
      Suspend_to_disk enabled by admin
      Suspend_to_ram  enabled by admin
      Standby         enabled by admin
      Current cpufreq policy (powersave, dynamic, performance)
      Battery state (no_bat, normal, warning, low, critical)
      Battery charging state (unknown, charge/discharge, charge, discharge)
      Remaining percent battery capacity

by one socket connect using the send_Action_get_States() and evaluate
the return value using evaluate_States(int64_t states, int data_to_evaluate)
(in libpower/powersave_daemonlib.c)

Other progs can also switch query for a list of existing schemes using
send_Action_get_all_Schemes(SchemeList* s) and switch schemes
using the send_Action_ActivateScheme(const char *schemeName).


5) Screen Saver / DPMS

Screensaver (at least KDE) can be enabled/disabled and DPMS values can
be modified depending on the current schemes.
This allows to configure a presentation scheme (no DPMS/Screensaver)
and a more effective powersave/battery scheme (more extreme DPMS values)

Use the following variables in the scheme configuration files:

POWERSAVE_DISABLE_SCREEN_SAVER
POWERSAVE_DISABLE_DPMS
POWERSAVE_DPMS_STANDBY
POWERSAVE_DPMS_SUSPEND
POWERSAVE_DPMS_OFF


Version < 0.7
|}