You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5128 lines
171 KiB

2007-09-17 Danny Kukawka <>
Tagged new release v0.7.3
2007-09-17 Danny Kukawka <>
* ChangeLog.package: updated for 0.7.3
2007-09-17 Danny Kukawka <>
* packaging/openSUSE10.3.kpowersave.spec: added new SPEC
file for openSUSE 10.3
2007-09-17 Danny Kukawka <>
* po/de.po: Added missing space between text and ellipsis
(...) (see b.n.c #293707)
* NEWS: Updated news file.
2007-09-17 Danny Kukawka <>
Updated language files with min 75% from :
* po/fi.po:
* po/pt.po:
2007-09-17 Danny Kukawka <>
* po/sl_SI.po: added now complete Slovenian po-file from
Jure Repinc <>.
2007-09-17 Danny Kukawka <>
Prepared v0.7.3 release:
* ChangeLog.package: Updated package changelog with the
Changelog from the SUSE package
* NEWS: Added news for 0.7.3 release
* README: updated recommended dependencies, updated bugzilla
2007-09-17 Danny Kukawka <>
* po/sl_SI.po: added new (not complete) Slovenian po-file
from Jure Repinc <>.
2007-09-12 Danny Kukawka <>
When use DBUS_TYPE_BOOLEAN use as variable type dbus_bool_t
to avoid possible trouble on big endian machines:
* src/dbusHAL.cpp: Replaced int variables with dbus_bool_t.
* src/dbusHAL.h: included dbus/dbus.h
* src/hardware.cpp: Replaced int variables with dbus_bool_t.
2007-09-11 Danny Kukawka <>
* src/screen.cpp: Fixed b.n.c #309491. Fixed code to free
TDEProcess object if gnome-screensaver is running (which
mean unfortunately GNOME is running).
2007-09-11 Danny Kukawka <>
* src/tdepowersave.cpp: Fixed handleACStatusChange(), notify
only if notifyEvent == true. Print notifyEvent on debug.
2007-09-05 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Fixed b.n.c #307431: prevent
send events about AC status change on changes of the
session state.
2007-09-05 Danny Kukawka <>
Prepared KPowersave to work with HAL >= 0.5.10 and the
changed policy/privileges names which KPowersave use to
lookup what is allowed for a user:
* Added detection of HAL >= 0.5.10
* src/ added privileges.h
* src/hardware.cpp: use now privileges.h defines
* src/privileges.h: New file with defines for the policy
names depending on the HAL version.
2007-09-03 Danny Kukawka <>
Updated language files with min 75% from :
* po/cs.po:
* po/zh_CN.po:
2007-09-03 Danny Kukawka <>
* src/tdepowersave.cpp: Changed function to set the
brightness up/down on vertical wheel events over the applet
icon to use also do_brightnessUp/Down with 5-percentage
steps to avoid problems with machines with a high number
of brightness levels.
2007-09-03 Danny Kukawka <>
Changed return value types due to changes in HAL
* src/dbusHAL.cpp: Changed for suspend calls.
* src/hardware.cpp: Changed for GetBrightness and for
SetPowerSave() calls.
2007-08-30 Danny Kukawka <>
* src/hardware.cpp: Fix an other case of use bool to get
DBUS_TYPE_BOOLEAN variables in currently unused code.
* src/tdepowersave.cpp: Don't use kdFatal() before exit
in kpowersave::kpowersave() otherwise DrKonqi get called.
2007-08-27 Danny Kukawka <>
* src/detaileddialog.cpp: Call setInfos() on AC events
to force update of e.g. scheme and CPU Freq information.
2007-08-27 Danny Kukawka <>
* src/hardware.cpp: Fixed checkConsoleKitSession() again.
Don't use boolean to get DBUS_TYPE_BOOLEAN variables from
D-Bus. This lead to strange results on ix86 (the stange
is: it fails only on free local variables if leave the
function, but only on ix86 and not on x96_64).
2007-08-26 Danny Kukawka <>
* Cleaned up configure to undefine
ENABLE_YAST_ENTRY if the Yast entry in the applet should
not added as e.g. at openSUSE >= v10.3.
2007-08-25 Danny Kukawka <>
* src/hardware.cpp: Fixed b.n.c #301692 again, but with an
other source of the problem: fixed parameter for D-Bus
call to ConsoleKit to get info if the session is active.
2007-08-25 Danny Kukawka <>
Merged unmerged files with kpowersave.pot:
* po/[ar,bgi,el,es,fr,ja,pt_BR,tr].po:
Removed largely untranslated files from SVN:
* po/[sk,sl_SI].po:
2007-08-25 Danny Kukawka <>
Updated language files with min 80% from :
* po/[cs,nl,pa].po:
New translations from the same repo:
* po/hi.po: Hindi (220/69/27)
* po/lt.po: Lithuanian (243/23/50)
2007-08-24 Danny Kukawka <>
* Don't check any longer for PolicyKit
>= v0.4, simply check if libhal provide the following
function: libhal_device_is_caller_privileged() to check
if KPowersave should use libhal or the old PolicyKit
D-Bus interface.
2007-08-23 Danny Kukawka <>
* src/hardware.cpp: Fixed possible segfault if the
XDG_SESSION_COOKIE isn't set. Set sessionIsActive to true
in this case and skip the rest of the checks.
2007-08-20 Danny Kukawka <>
Updated language files from :
* po/[da,el,fi,hu,it,km,nb,pa,pl,pt,ru,sv,uk].po:
2007-08-20 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: Added function to check if the
org.freedesktop.Policy.Power has an owner (new function
is isPolicyPowerIfaceOwned()).
* src/hardware.[cpp,h]: Added helper to call
* src/kpowersave.[cpp,h]: Added active session handling
for schemes (don't react on AC state changes if the
session get inactive and apply default schemes based on
AC state if the session get active again).
Changed handleActionCall() to check if the current session
is active and deny request if not. If there is no owner of
org.freedesktop.Policy.Power allow shutdown on battery
critical events.
TODO: Think about the situation if the session get inactive
and there is no owner of org.freedesktop.Policy.Power
2007-08-20 Danny Kukawka <>
* src/hardware.cpp: If the desktop session (if detected
via ConsoleKit) get inactive call releasePolicyPowerIface()
and if the session is active again try to acquire the
org.freedesktop.Policy.Power interface again.
This should happen:
- the session get inactive:
- release org.freedesktop.Policy.Power:
powersaved or if there is an other desktop session
an other KPowersave instance can acquire the name and
handle powermanagement.
- the session get active again:
- the current active KPowersave instance acquire the
interface/name from powersaved (if there is an other
KPowersave instance holding the name it should release
the name ...) and handle powermanagement again.
2007-08-20 Danny Kukawka <>
Added code to detect if we get a NameOwnerChanged signal
from DBus for org.freedesktop.Policy.Power and check if
this KPowersave instance caused the signal.
* src/dbusHAL.[cpp,h]:
* src/hardware.cpp:
2007-08-20 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: Split up the code to acquire the
org.freedesktop.Policy.Power name service to a new own
function. Added new function to release the service
name again. Call now dbus_bus_release_name() if close()
get called.
2007-08-19 Danny Kukawka <>
Updated svn:ignore for src/ to ignore new files.
2007-08-19 Danny Kukawka <>
* src/tdepowersave.cpp: Fix b.n.c #301692, switch schemes
correctly on AC plug in/out events.
2007-08-17 Danny Kukawka <>
Update TODOs (about tasks for new ConsoleKit session
* src/tdepowersave.cpp:
2007-08-17 Danny Kukawka <>
* src/hardware.cpp: Don't emit events for: power, sleep
and s2disk button if the session is inactive.
2007-08-17 Danny Kukawka <>
* src/hardware.cpp: Fixed commit r3046: really ignore
the brightness up/down key event if session inactive.
2007-08-17 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Handle desktopSessionIsActive()
signal from class HardwareInfo:
- stop/start autosuspend and autodimm depending on the
session state
- don't call may configured actions for the lidclose event
if the session is inactive.
2007-08-17 Danny Kukawka <>
* src/hardware.[cpp,h]: Added new function to get the
private sessionIsActive.
Ignore brightness up/down key events from HAL if the
session is marked as inactive.
2007-08-17 Danny Kukawka <>
Implemented code to check on ConsoleKit vi D-Bus if the
current desktop session is active and monitor if the
state change.
* src/dbusHAL.[cpp,h]: Listen to D-Bus if the state of the
session change and inform class HardwareInfo about the
* src/hardware.[cpp,h]: Added new function to get the name
and the state of the current Session from ConsoleKit.
Added code into the DBus event filter function to detect
if the state change and send a new signal if this happen.
TODO: Integrate this into class kpowersave to stop e.g.
autosuspend and autodimm if the session get
2007-08-17 Danny Kukawka <>
Comment out variable names of unused function parameters
and remove no longer needed checks to prevent compiler
* src/dbusHAL.cpp:
* src/inactivity.cpp:
* src/tdepowersave.cpp:
2007-08-17 Danny Kukawka <>
* po/de.po: Updated german language file.
2007-08-17 Danny Kukawka <>
* src/countdown_Dialog.ui: removed include hints
2007-08-16 Danny Kukawka <>
* src/hardware.cpp: Fix parameter types for call
SetPowerSave() on HAL.
2007-08-16 Danny Kukawka <>
* src/hardware.cpp: Comment out calls of
getSchedPowerSavings(), the needed HAL interface didn't
make it into HAL yet.
2007-08-16 Danny Kukawka <>
* src/dbusHAL.cpp: Show some debug messages only if
kpowersave started with --dbg-trace.
2007-08-16 Danny Kukawka <>
Finished work on new Autosuspend warn/countdown dialog
to fix bug/feature request from b.n.c #182609:
* src/config/kpowersaverc_default: Added new config
variables to enable/disable the dialog and to set the
time how long the countdown should be.
* src/settings.[cpp,h]: integrate them into general
* src/countdown_Dialog.ui: Fixed dialog to resize
* src/countdowndialog.cpp: Init Progressbar before show
up the dialog, set dialog caption, adjust the size and
call show().
* src/dummy.cpp: removed no longer in this file needed
* src/kpowersave.[cpp,h]: Integrate the dialog in the
logic for start/setup and handle autosuspend.
2007-08-15 Danny Kukawka <>
* src/hardware.cpp: Fix code to set brightness up/down
and add some debug code. This should fix b.n.c #282640.
2007-08-14 Danny Kukawka <>
* src/configuredialog.cpp: Fix pB_resetBrightness_clicked()
to use hwinfo->setBrightness() correctly (set level and
not percentage with level).
2007-08-14 Danny Kukawka <>
* src/hardware.cpp: Change type of parameter of
SetPowerSave() on HAL to from DBUS_TYPE_BOOLEAN to
2007-08-14 Danny Kukawka <>
Extended and added new debug message for CPU code in the
detailed dialog to trace problems within Virtualbox.
* src/detaileddialog.cpp:
* src/hardware_cpu.cpp:
2007-08-13 Danny Kukawka <>
* src/hardware.[cpp,h]: Maked isCpuFreqAllowed() not
const to be able to check the Policy on each call directly
from libhal.
* src/tdepowersave.cpp: Don't enable 'CPU Freq Policy' entry
in the applet menu if we know KPowersave isn't allowed to
call the interface on HAL.
2007-08-13 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: Extended isUserPrivileged()
depending on USE_LIBHAL_POLICYCHECK to ask HAL if the
user is privileged to call a interface.
* src/hardware.[cpp,h]: Ported existing calls of
dbusHAL::isUserPrivileged() to changed function param.
Added new checks for Brightness/SetPowersave HAL calls
if USE_LIBHAL_POLICYCHECK is defined (because they didn't
exist in the old HAL < 0.5.10)
2007-08-13 Danny Kukawka <>
* Changed detection if we need to call
new PolicyKit/HAL instead of PolicyKit D-Bus daemon to
check for libhal_device_is_caller_privileged() in libhal.
2007-08-13 Danny Kukawka <>
* Added checks for HAL >= 0.5.10 and
PolicyKit >= 0.4 to check if we have to ask HAL if the
user is privileged instead of the no longer existing
PolicyKit D-Bus daemon.
2007-08-13 Danny Kukawka <>
Moved code to set brightness a step up/down from class
kpowersave to HardwareInfo.
* src/hardware.[cpp,h]: Use new function to set brightness
up/down on keyevents.
* src/tdepowersave.cpp: Forward on dcop call to new
functions in class HardwareInfo.
2007-08-12 Danny Kukawka <>
* Fix detection of the SUSE distributions
to fix value of ENABLE_YAST_ENTRY. Since openSUSE 10.3 there
is no longer a powermanagement module in Yast.
This should fix b.n.c #299577.
2007-08-12 Danny Kukawka <>
* src/ Added countdown dialog related files.
* src/countdown_Dialog.ui: Added Pixmap object and changed
Progressbar from QProgressBar to KProgress.
* src/countdowndialog.[cpp,h]: Finished code for the
countdown dialog.
2007-08-10 Danny Kukawka <>
* src/eventsrc: Added new events (autodimm down/up, brigtness
key up/down) for translation we may use in the future.
2007-08-10 Danny Kukawka <>
* po/kpowersave.pot: Updated pot file from current code.
2007-08-10 Danny Kukawka <>
* src/dummy.cpp: SUSE 'string freeze' for 10.3 is comming.
Added some new strings we may need later for some planed
2007-08-09 Danny Kukawka <>
* src/tdepowersave.cpp: Added missing '<< endl' to a kdDebug()
call to prevent crash of KPowersave directly before exit(-1).
This fix b.n.c #298332
2007-08-09 Danny Kukawka <>
Added initial files for new dialog shown (30 sec) before the
machine go into autosuspend. The code is not running atm.:
* src/countdown_Dialog.ui:
* src/countdowndialog.[cpp,h]:
* src/tdepowersave.cpp: added missing debug call.
2007-07-30 Danny Kukawka <>
* src/tdepowersave.cpp: Fixed show suspend log for SLED/SLES,
show the powersave related logs. This go not into the CODE10
branch for now.
2007-07-29 Danny Kukawka <>
* src/tdepowersave.cpp: Fixed typo which prevented show up
the logviewer dialog if suspend fail and pm-utils return
a value != (0|INT_MAX).
2007-07-29 Danny Kukawka <>
* src/hardware.cpp: Fixed typo to use correct variable.
* src/kpowersave.[cpp,h]: Added three new dcop functions to
get the current brightness (in percentage) and to set the
brightness up and down. For the new brightness up/down
functions the default step is +/- 10%, but you can change
this via the function parameter. If the step not change the
brightness level the default is +/- one level to have a
2007-07-26 Danny Kukawka <>
* src/tdepowersave.cpp: Speed-up dimm brightness up if the user
get active again. Try to dimm up within 750 ms instead of
2007-07-26 Danny Kukawka <>
* src/dbusHAL.h: Code docu update.
2007-07-25 Danny Kukawka <>
* doc/pt/*: removed Portuguese version of the doc to reduce
package size since the doc only contain one translated
2007-07-25 Danny Kukawka <>
Replaced s/char */const char */ of function parameter types to
prevent compiler warnings:
warning: deprecated conversion from string constant to 'char*'
* src/dbusHAL.[cpp,h]: in dbusMethodCallSuspend()
* src/hardware.[cpp,h]: in setCPUFreqGovernor()
2007-07-25 Danny Kukawka <>
Removed <includehints/> tags from UI files (caused warnings).
* src/detailed_Dialog.ui:
* src/log_viewer.ui:
* src/hardware.h: Fixed typo in code docu.
2007-07-24 Danny Kukawka <>
* src/hardware.h: Make checkBrightness() to a private SLOT.
2007-07-24 Danny Kukawka <>
* src/hardware.cpp: Reduce calls of checkBrightness() in the
setBrightness() function. Only call the check if brightness
is currently not supported (as fallback check).
Added code to monitor if a laptop_panel* property get changed,
e.g. if key get removed. Call checkBrightness() in this case
to prevent problems with state of brightness support.
2007-07-24 Danny Kukawka <>
* src/hardware.cpp: Cleanup setBrightness() to check always
the current brightness before return.
2007-07-24 Danny Kukawka <>
Fixed brightness handling. HardwareInfo::brightness is now
only true if laptop_panel.num_levels >= 2. This should fix
some reported problems with DELL machines which have only one
brightness level available.
* src/configuredialog.cpp:
* src/configuredialog.h:
* src/detaileddialog.cpp:
* src/hardware.cpp:
2007-07-24 Danny Kukawka <>
* src/config/kpowersaverc_default: set autoDimmTo=50 as
default value for: default-scheme, Performance and Acoustic
* src/hardware_battery.cpp: Cast to float for internal
calculation to avoid false values.
2007-07-24 Danny Kukawka <>
* src/autodimm.cpp: Added missing code documentation.
2007-07-24 Danny Kukawka <>
* src/autodimm.cpp: Fixed QTimer start parameter and moved
some code around.
* src/autodimm.h: make startCheckForActivity() public to
handle this from outside the class.
* src/configuredialog.cpp: Activate autodimm feature in the
configure dialog.
* src/tdepowersave.cpp: Fixed dimm level handling (use float for
calculation to avoid invalid values). Reset autodimm if the
user is active again.
2007-07-23 Danny Kukawka <>
* src/kpowersave.[cpp,h]: added new function setAutoDimm() and
integrated autoDimm feature into the workflow.
NOTE: This feature is complete untested at the moment.
2007-07-23 Danny Kukawka <>
Make stop autosuspend before suspend/after resume more robust:
* src/inactivity.cpp: Be sure that timeToInactivity has a
usefull value (> 0) before check for inactivity. This should
force to stop every running check if stop() was called, where
timeToInactivity was set to 0 after stop the running QTimer.
* src/tdepowersave.cpp: Added additional call of stop() if
2007-07-23 Danny Kukawka <>
* src/tdepowersave.cpp: Fixed autodimm related signacl connect
and added new connect for the case if the user get active
* src/kpowersave.h: Added code documentation.
2007-07-23 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Added new functions do dimm up
and down the brightness, needed for autodimm.
2007-07-03 Danny Kukawka <>
Added autodimm settings to the configure dialog and the
settings class.
* src/config/kpowersaverc_default: added default settings
* src/configure_Dialog.ui:
* src/configuredialog.[cpp,h]:
* src/settings.[cpp,h]:
* src/pics/cr22-action-autodimm.png: added new icon.
NOTE: This is currently disabled in the configure dialog
until the real autodimm functions are integrated.
TODO: Add functions to autodimm the display brightness down.
2007-07-02 Danny Kukawka <>
* kpowersave.tdevelop: Changed settings to abort on errors.
* src/ Fixed typo to compile autodimm class.
* src/autodimm.[cpp,h]: Added new code to autodimm to check
if the user is active again. Currently the code poll each
second the XScreenSaverInfo extension to detect if the user
start again to use the mouse/keyboard.
TODO: Check if 1 second is the correct/useful intervall.
2007-07-02 Danny Kukawka <>
* src/inactivity.cpp: SILENT: moved code within the file.
2007-07-01 Danny Kukawka <>
* src/hardware.cpp:Changed get-/setSchedPowerSavings() to use
bool instead of int for parameter and return values.
2007-07-01 Danny Kukawka <>
* src/ Added new files to make.
* src/autodimm.[cpp,h]: Added new empty files for new planed
autodimm feature.
2007-07-01 Danny Kukawka <>
* src/hardware.cpp: removed TODOs and replaces with info about
possible values for the new get-/setSchedPowerSavings()
functions. The kernel only allow 0/1 as parameter.
TODO: Discuss with <> about change the
type of param/retval of the HAL methodes to boolean
2007-06-30 Danny Kukawka <>
* src/hardware.[cpp,h]: Added basic functions to support
'mc/smt power savings sched policy' via hopefully upcomming new
HAL functions GetSchedPowerSavings()/SetSchedPowerSavings()
TODO: check the allowed parameter and return values of the
kernel (in sysfs) and may change the existing HAL patch to
work with boolean instead of integer
2007-06-26 Danny Kukawka <>
* src/tdepowersave.cpp: comment out some code
2007-06-18 Danny Kukawka <>
* src/config/kpowersaverc_default: Added callSetPowerSaveOnAC
with default value true.
* src/tdepowersave.cpp: Call setPowerSave() in setSchemeSettings()
to be sure it get set on startup correctly.
* src/settings.[cpp,h]: Added new config variable to enable/
disable call SetPowerSave() on HAL depending on the AC state
(callSetPowerSaveOnAC for [General] section)
2007-06-18 Danny Kukawka <>
Fixed debug messages:
* src/dbusHAL.cpp:
* src/hardware.cpp:
2007-06-17 Danny Kukawka <>
* src/inactivity.cpp: Fix Segmentation Fault from b.n.c bug
2007-06-13 Danny Kukawka <>
* src/tdepowersave.cpp: removed one more useless *.latin() from
debug messages.
2007-06-13 Danny Kukawka <>
* po/ar.po: Added new Arabic language file from Youssef Chahibi
2007-06-13 Danny Kukawka <>
* src/hardware.cpp: Remove laptop_panel entry from the
QDict<QString> udis if no device with laptop_panel found. This
should prevent problems if the laptop panel device get removed
from HAL.
2007-06-13 Danny Kukawka <>
* src/hardware.cpp: Added code to react if a latop panel device
get added/remove. Added also all device_type values to the
switch of the HAL_DEVICE case.
Removed several *.latin1() calls due to new usage of kdDebug().
* src/hardware.h: Added new value to enum device_type for laptop
panels (for brightness).
2007-06-13 Danny Kukawka <>
* src/dbusHAL.cpp: Make the code easier by group initial checks
for HAL/D-Bus connection and parameter checks, add goto's to
reduce kdDebugFuncOut() codelines before each return.
This include also some whitespace/tab replacements.
2007-06-12 Danny Kukawka <>
* kpowersave.tdevelop: Magic change with new version ...
Moved kpowersave to use functions from kdebug.h instead of own
myDebug() macro. Added some smaller marcos to: trace function
entry and leave points and to add time infos to output of
e.g. kdDebug() (funcinfo). Via kpowersave option --dbg-trace
the user can enable (additional ) function tracing. This should
fix feature request #1721072.
* src/autosuspend.cpp:
* src/configuredialog.cpp:
* src/dbusHAL.cpp:
* src/detaileddialog.cpp:
* src/hardware.cpp:
* src/hardware_battery.cpp:
* src/hardware_batteryCollection.cpp:
* src/hardware_cpu.cpp:
* src/inactivity.cpp:
* src/kpowersave.[cpp,h]:
* src/tdepowersave_debug.h:
* src/main.cpp:
* src/screen.cpp:
2007-05-10 Danny Kukawka <>
* src/hardware.[cpp,h]: Added code to stop the elapsed time
between suspend call and the resume event. Emit in this case
resumed(INT_MAX) from HardwareInfo::handleResumeSignal() to
allow us to guess better if this was really the much-loved
6 hour D-Bus timeout.
* src/tdepowersave.cpp: Changed debug message from myDebug()
to qdebug() and extended the message text if we assume the
resume error is a D-Bus timeout.
2007-05-10 Danny Kukawka <>
* src/dbusHAL.cpp: Added code to check if the returned
* src/hardware.cpp: Changed debug message due to a bug in
HAL or the spec: SetPowerSave() doesn't return a INT32 but
2007-05-10 Danny Kukawka <>
* src/dbusHAL.cpp: added TODO
* src/hardware.[cpp,h]: Fixed call for SetPowerSave to get
also the returnvalue from the HAL method.
2007-05-10 Danny Kukawka <>
* src/hardware.[cpp,h]: Make also AC Adapter events
intependent from QT3/DBus event loop.
2007-05-09 Danny Kukawka <>
* TODO: updated/cleaned up TODOs
2007-05-09 Danny Kukawka <>
* src/hardware.[cpp,h]: Added support to handle brightness
key events if the machine not already handle this in the
hardware directly (as e.g. IBM/Lenovo Thinkpads).
There is no configuration for this feature. The events get
directly translated to change the level +-1 level per
key event.
2007-05-03 Danny Kukawka <>
* src/screen.cpp: Add debug message and code comment.
2007-05-02 Danny Kukawka <>
* src/config/kpowersaverc_default: Change default timeout
to fake keyevent for locked screen to 2.5 seconds
* src/tdepowersave.cpp: Changed behavior and timeouts to
fake keyevents if screen is locked and if resume/open Lid
to use activateLoginScreen() function and to check first
if timeToFakeKeyAfterLock >= 0. This allow the user to
deactivate the faked key events by set value for configkey
timeToFakeKeyAfterLock to -1 in the [General] section.
2007-05-02 Danny Kukawka <>
* src/hardware.h: set checkLidcloseState() as private slot.
2007-05-02 Danny Kukawka <>
* src/configuredialog.cpp: Fix detection if brightness
changes are really supported. If max. level of brightness
-1 is <= 0 brightness changes are now unsupported. If the
result is > 0 it is supported. Thanks to Dawid Wróbel
<> for report and help to find the problem.
2007-05-02 Danny Kukawka <>
* src/configuredialog.cpp: Add debug messages to trace the
function calls.
2007-04-24 Danny Kukawka <>
* src/hardware.cpp: Fixed b.n.c bug #266243. Check if
info.capability contains laptop_panel instead of check for
info.category=laptop_panel because not all machines which
provide capability to change brightness have info.category
correct set in HAL atm.
2007-04-22 Danny Kukawka <>
* src/hardware.[cpp,h]: Added new function to set a CPUFreq
governor via DBus call to avoid code duplication. Added
new QStringList for dynamic CPUFreq and iter about the
list to set a governor.
Ported patch from Andreas Schwab <> for
b.n.c #229234, get return value from call for set CPUFreq
governor (Could not reproduce the problem!).
2007-04-16 Danny Kukawka <>
* src/inactivity.[cpp,h]: Added new function and moved code
from checkXInactivity() to getXInactivity() to be able to
reuse the code in derived classes.
2007-04-13 Danny Kukawka <>
* src/tdepowersave.cpp: Only go to suspend on a button event
if we already resumed successful. This should solve problems
if we get may e.g. a event for the powerbutton if there
machine was waked up via power button which could lead to
a second suspend.
2007-04-12 Danny Kukawka <>
* src/tdepowersave.cpp: Fixed resume behavior. If KPowersave
assume that a timeout for the suspend call happend do the
same as on succesful resume including remount, but print a
debug message.
2007-04-12 Danny Kukawka <>
* src/hardware.[cpp,h]: Fixed usage of enum cpufreq_type.
Pointed out by Doug Goldstein <>. Enum isn't
int - it's (8bit) char, enum = int would lead to a segmentation
fault. It's not allowed/possible in C++. Added new
'UNKNOWN_CPUFREQ = -1' to the enum and use this instead of -1.
Changed also the type of currentCPUFreqPolicy and the
return type of checkCurrentCPUFreqPolicy() to cpufreq_type.
This should fix problems where we can't access the CPUFreq
interface on HAL e.g. because of the new ConsoleKit.
2007-04-11 Danny Kukawka <>
* src/kpowersave.h: update Copyright header to the same as
the cpp file. Removed not needed include.
2007-04-11 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Removed no longer used code for the
suspend dialog we used to show the progress while suspend with
2007-04-11 Danny Kukawka <>
* src/tdepowersave.cpp: cleanup doubled code, use existing
function showDetailedDialog() to show detailed dialog on
2007-04-10 Danny Kukawka <>
Cleanup class kpowersave - moved code to reset XScreensaver
to class screen where already also all the screensaver stuff
is located:
* src/kpowersave.[cpp,h]:
* src/screen.[cpp,h]:
2007-04-10 Danny Kukawka <>
* src/tdepowersave.cpp: Removed notifyAutosuspend() and moved
code to do_autosuspend() this should prevent two connects to
the same event - can do this all better in one function.
Call delete() also for autosuspend on destructor.
2007-04-10 Danny Kukawka <>
* src/logviewer.cpp: Include moc file. Fixed possible file
descriptor leak.
2007-04-10 Laurent Montel <>
Fixed several memory leaks and removed checks for pointer which
are NULL before call delete(), because this is waht delete()
also do internly:
* src/inactivity.cpp:
* src/tdepowersave.cpp:
* src/screen.cpp:
* src/screen.h:
* src/settings.cpp:
2007-04-10 Danny Kukawka <>
* src/configuredialog.cpp: Applied slightly adopted patch from
Laurent Montel <> to avoid problems with
html tags in KMessageBox dialog text.
2007-04-10 Danny Kukawka <>
Moved all moc includes to end of cpp-files, added some code
comments and smaller code formatting changes:
* src/autosuspend.[cpp,h]:
* src/blacklisteditdialog.cpp:
* src/configuredialog.cpp:
* src/dbusHAL.cpp:
* src/hardware.cpp:
* src/hardware_battery.cpp:
* src/hardware_batteryCollection.cpp:
* src/inactivity.cpp:
* src/infodialog.cpp:
* src/screen.cpp:
2007-04-10 Laurent Montel <>
Make moc files being included to speed up build and to fix some
parallel build issues:
* src/autosuspend.cpp:
* src/dbusHAL.cpp:
* src/hardware.cpp:
* src/hardware_battery.cpp:
* src/hardware_batteryCollection.cpp:
* src/hardware_cpu.cpp:
* src/inactivity.cpp:
* src/screen.cpp:
2007-04-10 Danny Kukawka <>
Moved unused string to dummy class for later reuse.
* src/configuredialog.cpp:
* src/dummy.cpp:
2007-04-10 Danny Kukawka <>
Updated file templates:
* templates/cpp:
* templates/h:
2007-04-09 Danny Kukawka <>
* src/hardware.cpp: Slightly changed checkCurrentCPUFreqPolicy()
to avoid problems if the DBus call return something wrong or
nothing (as e.g. NULL).
2007-04-09 Danny Kukawka <>
* src/dbusHAL.cpp: make isUserPrivileged() more robust to
avoid possible segmentation faults.
2007-04-03 Danny Kukawka <>
Fixed problems with current battery warning level if the
values for the level get changed via the config dialog:
* src/hardware.cpp: Call refreshInfo() for the primary
battery collection if the warning levels get set/changed and
force the recheck of the current level.
* src/hardware_batteryCollection.[cpp,h]: Added new parameter
to refreshInfo to force recheck the battery warning levels also
if the percentage of the battery not changed. This would help
to get the actual warning level due to changes in the settings
for the level immediately after the change.
2007-04-03 Danny Kukawka <>
* src/hardware.[cpp,h]: Add new helper functions/SLOTS to
forward the events for Power, Sleep and s2disk buttons and the
lidclose event. Changed current code to emit the Q_SIGNALS not
directly but to call a QTimer:singleShot() with the new SLOTS
instead. This should make the eventhandling from QT3 D-Bus
bindings independent from the event loop (including may
blocking dialogs in KPowersave).
This fix hopefully fix b.n.c #256372.
2007-03-26 Danny Kukawka <>
* src/tdepowersave.cpp: Applied patch from Laurent Montel
<> to avoid double translation.
2007-03-26 Danny Kukawka <>
* src/tdepowersave.cpp: Applied patch from Laurent Montel
<> to fix problems with error messages
from the KDE Media Manager, which can be formated with html-
Added comment to code about the change.
2007-03-26 Danny Kukawka <>
* src/tdepowersave.cpp: Fixed b.n.c bug #257326. Ignore battery
warnings if the machine is on AC. This case can happen if e.g
the battery charging state is not up-to-date if we get the low
level warnings.
2007-03-22 Danny Kukawka <>
* src/tdepowersave.cpp: Applied slightly adopted patch from to show log of pm-utils on Pardus.
2007-03-22 Danny Kukawka <>
* src/config/kpowersaverc_default: Added wodim to autosuspend
2007-03-22 Danny Kukawka <>
* src/tdepowersave.cpp: Stop autosuspend before call suspend and
also if autosuspend get disabled (this worked also before and
produced no unintentional suspend because this was checked before
the suspend get called). I could not reproduce this bug reported
for (K)Ubuntu:, but it maybe help.
2007-03-16 Danny Kukawka <>
Fixed Debian bug #413811 and display message to the user if the
suspend/resume fail:
* src/kpowersave.[cpp,h]: Added new function forwardResumeSignal()
to independent handleResumeSignal() from the event loop to avoid
problems with QT3 D-Bus bindings. Emit KNotify before handle the
error codes. If a error occurs display a KMessageBox::error() to
the user. If the system is a SUSE product offer the user to show
the /var/log/pm-suspend.log file and save the file.
NOTE: - if other distributions want to show the log to the user
they have to provide code.
- pm-utils currently always return 0, also on failure,
need a fixe in pm-utils to get a error code
2007-03-16 Danny Kukawka <>
* src/logviewer.cpp: fixed check if we can use the filename
given by to user to save the logfile. Continue if the filname is
2007-03-16 Danny Kukawka <>
* src/tdepowersave.cpp: ident changes
2007-03-16 Danny Kukawka <>
* src/kpowersave.[cpp,h]: s/KPOWERSAVE_CONFIGURE_/CONFIGURE_/
2007-03-16 Danny Kukawka <>
Added new dialog to show log files:
* src/ added new files
* src/kpowersave.[cpp,h]: small cleanups and added pointer to new
* src/log_viewer.ui: UI file of the new dialog
* src/logviewer.[cpp,h]: Implementation of new logviewer dialog
with option to save the logfile to a user-selectable file.
2007-03-15 Danny Kukawka <>
* kpowersave.tdevelop: again a minor tdevelop change
* src/tdepowersave.cpp: Fixed Debian bug #413638: if config dialog
is minimized and the user try to start config dialog via applet
reactivate the dialog.
2007-03-12 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Added helper funtion to translate the
type of a suspend to a usefull i18n()-string. Replace existing
code. Added a debug msg if suspend/resume fail.
2007-03-12 Danny Kukawka <>
* src/tdepowersave.cpp: Applied patch from Andreas Schwab
<> to avoid possible segmentation fault.
2007-03-09 Danny Kukawka <>
Fixed event message for scheme switching.
* src/eventsrc: Removed 'Powersave' from generic and german
message (need new translations for the rest). Removed complete
message event handling for no longer existing "Advanced Powersave"
* src/tdepowersave.cpp: removed 'Powersave' from message
2007-03-09 Danny Kukawka <>
Updated dates in copyright headers:
* src/dbusHAL.[cpp,h]:
* src/detaileddialog.cpp:
* src/hardware*.[cpp,h]:
* src/inactivity.cpp:
* src/tdepowersave.cpp:
* src/main.cpp:
* src/screen.[cpp,h]:
2007-03-09 Danny Kukawka <>
* src/dbusHAL.cpp: emit signal about resume first if the
pending call and the messages get unrefed.
2007-02-28 Danny Kukawka <>
* src/detaileddialog.cpp: Fixed by Jozef Sakáloš
<> reported bug about wrong unit for
power consumption. Since HAL not provide info about the unit
of battery.*.rate keys, I removed simply the 'h' from the
unit string reported by HAL for the battery level keys.
2007-02-22 Danny Kukawka <>
* packaging/mandriva.2007.1.kpowersave.spec: Due to f***ing
package name conventions for 64bit on Mandriva added more
%ifarch calls for required packages to spec file.
2007-02-22 Danny Kukawka <>
Renamed mdk.cooker.*.spec to mandriva.2006.1.*.spec and added
new spec file for Mandriva Cooker 2007.1
* packaging/mandriva.2006.1.kpowersave.spec:
* packaging/mandriva.2007.1.kpowersave.spec:
* packaging/mdk.cooker.kpowersave.spec:
2007-02-22 Danny Kukawka <>
* packaging/FC6.kpowersave.spec: Added new spec file for Fedora
Core 6.
2007-02-14 Danny Kukawka <>
Tagged new release version 0.7.2
2007-02-14 Danny Kukawka <>
Updated Changelogs for the release v0.7.2:
* ChangeLog.package:
* doc/doxy/changelog.dox:
2007-02-14 Danny Kukawka <>
* NEWS: added news for v0.7.2 release
* src/hardware_battery.cpp: fixed code docu
2007-02-14 Danny Kukawka <>
* doc/doxy/fixed_bugs.dox: Updated list of fixed bugs for docu.
2007-02-14 Danny Kukawka <>
* src/hardware.[cpp,h]: Added new private member to hold the
current governor from checkCurrentCPUFreqPolicy() call. Added a
check for the DYNAMIC CPU Freq policy case if the current
governor is ondemand or not. If not, try to set always ondemand.
This should fix b.n.c bug #245081 (Kpowersave does not set
ondemand governor on startup if e.g. current is userspace).
2007-02-13 Danny Kukawka <>
* README: Applied patch from S.Çağlar Onur to fix typo
* doc/doxy/main.dox: Fixed the same typo
2007-02-13 Danny Kukawka <>
* doc/doxy/README: fixed typo
* doc/doxy/fixed_bugs.dox: Removed no longer available reference.
* doc/doxy/main.dox: Updated with actual data and added contact
2007-02-13 Danny Kukawka <>
* doc/doxy/enhance.dox: Removed already implemented and outdated
2007-02-13 Danny Kukawka <>
* doc/doxy/process.dox: Update/cleanup
2007-02-13 Danny Kukawka <>
Removed no longer needed doxygen site about implemented features.
This file is useless and cost to much time to be always
up-to-date, all the info can also be found in the Changelogs and
the SVN:
* doc/doxy/README:
* doc/doxy/implemented.dox:
2007-02-13 Danny Kukawka <>
* README: updated websites and help information, added Link to
Pardus Bugzilla to the list.
2007-02-12 Danny Kukawka <>
* TODO: Cleanup
2007-02-12 Danny Kukawka <>
* src/tdepowersave.cpp: Changed KMessageBox notify option for
handleMount() error dialog to get a notify sound (especially if
the lid get closed).
2007-02-12 Danny Kukawka <>
* src/tdepowersave.cpp: Fixed b.n.c #244052. On button events which
call suspend2* and the system get problems with umount partitions
which at least cause open a blocking KMessageBox result in 100%
CPU usage. This happen because the QT D-Bus bindings wait for a
result from the related KPowersave filter function (return a
DBUS_HANDLER_RESULT_* to the bus). This happen also because the
Q_SIGNALS in QT are only function calls which not are really emitted
to the QT event loop as assumed (the KMessageBox block the filter-
Fixed this by use QTimer::SingleShot() to call the suspend, in the
handleActionCall() function, because QTimer shots uncouple the
suspend call from the filter function workflow.
2007-02-12 Danny Kukawka <>
* src/tdepowersave.cpp: Only lock the screen and force DPMS if there
is no action for lidclose event/button defined. Otherwise the
related action as e.g. suspend2disk (should) handle the lock and
in this case there is no need to force DPMS off.
2007-02-12 Danny Kukawka <>
Added new translation files send by Zhengpeng Hou
* po/zh_CN.po: (295/0/1)
* po/zh_TW.po: (296/0/0)
2007-02-12 Danny Kukawka <>
Don't allow action LOGOUT_DIALOG for lidclose button. It make
absolute no sense to show the logout dialog with closed lid ;-) :
* src/configuredialog.cpp:
* src/settings.cpp:
2007-02-09 Danny Kukawka <>
* src/tdepowersave.cpp: Applied patch from S.Çağlar Onur
<> to fix typo in a hwinfo->setCPUFreq() call.
2007-02-07 Danny Kukawka <>
Move CPU information related functions from HardwareInfo class to
a new class CPUInfo since they are only used by the detailed
dialog and don't depend on the other code of HardwareInfo:
* kpowersave.tdevelop: call external qtdesigner from now
* src/ Added new files.
* src/detaileddialog.[cpp,h]: adopted changes
* src/hardware.[cpp,h]: Removed cpu information related code.
* src/hardware_cpu.[cpp,h]: Added new files/class to handle all
CPU information related functionality which was former in the
HardwareInfo class/file.
2007-02-05 Danny Kukawka <>
* po/da.po: Added new (296/0/0) danish translation from Stefan
Skotte <>
2007-02-05 Danny Kukawka <>
Fixed b.n.c #229960 and added support for SetCPUFreqPerformance
to the HAL CPU freq interface to set the limit for the dynamic CPU
freq policy:
* src/config/kpowersaverc_default: Added new config value for the
to set the performance limit on dynamic CPU freq policy for each
scheme and added useful default values.
* src/hardware.[cpp]: Added code to call SetCPUFreqPerformance on
dynamic CPU freq. Removed no longer needed enum and case for
* src/tdepowersave.cpp: Changed function calls to give the needed
config value to hwinfo->setCPUFreq() as param.
* src/settings.[cpp,h]: Added code to read the new config key and
value for the schemes from the config file.
2007-02-02 Danny Kukawka <>
* po/tr.po: Applied new updated turkish translation file (296/0/0)
from S.Çağlar Onur <>
2007-02-01 Danny Kukawka <>
Fixed b.n.c #239771: added support for SetPowerSave HAL method.
* src/hardware.[cpp,h]: Added new function to call the related
D-Bus call for HAL.
* src/tdepowersave.cpp: Call HardwareInfo::setPowerSave() with true
if on battery and with false otherwise.
2007-02-01 Danny Kukawka <>
* po/da.po: Merged and slightly updated translation from
Stefan Skotte <> (stat: 254/41/1)
2007-02-01 Danny Kukawka <>
* po/de.po: completed translation due to last change.
2007-02-01 Danny Kukawka <>
Updated translation strings and merged back to po files.
* po/*.po:
* po/kpowersave.pot:
2007-02-01 Danny Kukawka <>
Added new typ of action to call the KDE logout dialog on events:
* src/config/kpowersaverc_default: Added LOGOUT_DIALOG to allowed
button events. This action make no sence on battery events.
* src/configuredialog.cpp: Updated mapping and translate string.
* src/tdepowersave.cpp: Added code to call the KDE lougout dialog.
* src/settings.[cpp,h]: Added code to read the setting and map
the config value to the actions.
2007-02-01 Danny Kukawka <>
Removed '&' from translation due to last changes. German and
Turkisch translation are now complete again.
* po/de.po:
* po/tr.po:
2007-02-01 Danny Kukawka <>
* po/*.po: Merged with actual pot file.
2007-02-01 Danny Kukawka <>
* po/kpowersave.pot: Updated pot file due to last changes.
2007-02-01 Danny Kukawka <>
Removed Accelerator tag ('&') from text of several widgets.
This should fix problems with change translations if a GUI get
changed. Actual KDE versions should handle this automatically.
* src/blacklistedit_Dialog.ui:
* src/configure_Dialog.ui:
* src/configuredialog.cpp: Need to call
TDEAcceleratorManager::manage() manually because it did not work.
* src/detailed_Dialog.ui:
* src/info_Dialog.ui:
2007-01-31 Danny Kukawka <>
* src/configure_Dialog.ui: Fixed tab order for all widgets.
2007-01-31 Danny Kukawka <>
* kpowersave.tdevelop: updated to new KDevelop 3.4.0/KDE 3.5.6
2007-01-31 Danny Kukawka <>
* src/configure_Dialog.ui: set buddy to QLabel widgets for
easier access to e.g. QSpinBox or QComboBox widgets.
2007-01-30 Danny Kukawka <>
Applied new updated turkish translation file and two small
fixes from S.Çağlar Onur <> :
* po/sl_SI.po: removed left over line from cleanup
* po/tr.po: full translated
* po/zh_TW.po: removed left over line from cleanup
2007-01-26 Danny Kukawka <>
* po/*.po: cleanup translation, removed no longer needed and
already unused strings/translations and removed wrong/
useless header comments
2007-01-26 Danny Kukawka <>
* po/de.po: updated/completed german translation
2007-01-26 Danny Kukawka <>
* po/*.po: Merged new pot file with existing po files.
2007-01-26 Danny Kukawka <>
* po/kpowersave.pot: updated pot file due to last changes
2007-01-26 Danny Kukawka <>
Fixed usage of D-Bus in strings and code comments
(s/DBUS/D-Bus/ and s/D-BUS/D-Bus/).
* src/dbusHAL.[cpp,h]:
* src/dummy.cpp:
* src/hardware.[cpp,h]:
* src/tdepowersave.cpp:
* src/main.cpp:
2007-01-26 Danny Kukawka <>
* src/main.cpp: Fixed description of KPowersave.
2007-01-26 Danny Kukawka <>
* src/configure_Dialog.ui: Fixed widgets to avoid resize the
config dialog in some tabs of the scheme settings.
2007-01-26 Danny Kukawka <>
* po/de.po: update german translation file, now complete.
2007-01-26 Danny Kukawka <>
* src/tdepowersave.cpp: Fixed b.n.c #230686. Load the settings
for the current scheme if the config GUI get closed to force
changes on a scheme to the system. Also set the battery
warning levels to the primary battery object to get the
correct warnings if they maybe changed.
2007-01-25 Danny Kukawka <>
* po/de.po: removed no longer needed strings from file
2007-01-25 Danny Kukawka <>
* po/*.po: Merged new pot file with existing po files.
2007-01-25 Danny Kukawka <>
* po/kpowersave.pot: updated pot file for new translation
round, removed useless strings from 'make messages'
2007-01-25 Danny Kukawka <>
* src/configure_Dialog.ui: fixed string to match existing
translation strings
* src/settings.cpp: removed empty lines
2007-01-25 Danny Kukawka <>
Added feature: show power consumtion of battery in the
detailed information dialog:
* src/detailed_Dialog.ui: Added new widgets to show the new
information about power consumtion as QLabels, added spacer
to the AC related info in the battery area for a better look.
* src/detaileddialog.[cpp,h]: Added code to fill and update
the new widgets related on battery state and events. This
mean: the current rate/power consumtion get only updated if
we get the info from HAL - KPowersave do not poll for this
info. The widget get hide if there is no info.
* src/hardware_battery.cpp: Emit signal to monitor current
rate of battery.
* src/hardware_batteryCollection.[cpp,h]: Added some code to
hold the current rate and the rate unit. Emit Q_SIGNALS if the
current rate change (don't emit general change signal, since
this maybe produce useless calls in other parts of KPowersave
than only in the detailed dialog).
Added some function to get the new private class members.
2007-01-24 Danny Kukawka <>
* src/detaileddialog.cpp: Fixed b.n.c #230965. Always reset
the QProgressBar before update the infos in the bar, otherwise
the first bar get randomly updated!
2007-01-24 Danny Kukawka <>
* src/configure_Dialog.ui: Changed some descriptive strings.
2007-01-24 Danny Kukawka <>
* src/configuredialog.cpp: Changed icon name because char.png
is not defaultly in the system.
* src/pics/cr22-action-button.png: added new icon for the
buttons tab in the 'General Settings' part of the config dialog.
2007-01-23 Danny Kukawka <>
* src/configure_Dialog.ui: Added new Q_SLOTS to catch changes.
* src/configuredialog.[cpp,h]: Implemented new Q_SLOTS to
hide/show the QSpinboxes for the brightness settings in the
battery tab of the general settings, depending of the selected
2007-01-23 Danny Kukawka <>
* src/configure_Dialog.ui: fixed one more string to match
existing translations.
2007-01-23 Danny Kukawka <>
Added code to support also switch to CPU Freq policy
performance via actions on events:
* src/config/kpowersaverc_default:
* src/configuredialog.cpp:
* src/tdepowersave.cpp:
* src/settings.[cpp,h]:
2007-01-23 Danny Kukawka <>
* po/cs.po: fixed spelling bug from b.n.c #232058
2007-01-23 Danny Kukawka <>
* src/tdepowersave.cpp: removed unused variable
2007-01-23 Danny Kukawka <>
* src/configure_Dialog.ui: removed not needed sizePolicy
2007-01-23 Danny Kukawka <>
* src/configure_Dialog.ui: Fixed strings to fit to already
existing translations. Fixed some spacer to avoid resize.
2007-01-23 Danny Kukawka <>
Changed Licence text in source files to only accept GPLv2
from now on:
* src/*.[cpp,h]:
* templates/[cpp,h]:
2007-01-23 Danny Kukawka <>
* src/configure_Dialog.ui: fixed slot name for edit general
autosuspend blacklist.
* src/configuredialog.cpp: fixed call to open the edit
autosuspend blacklists to get displayed over the config
2007-01-23 Danny Kukawka <>
* src/configuredialog.cpp: Added code to store the values
from the new 'General Settings' widgets to the config file.
2007-01-23 Danny Kukawka <>
* src/configure_Dialog.ui: changed param of battery level
QSpinBox Q_SLOTS (no param instead of int)
* src/configuredialog.[cpp,h]: Added Q_SLOTS to set the battery
level QSpinBoxes to correct values: warning > low > critical.
2007-01-22 Danny Kukawka <>
* src/configure_Dialog.ui: fixed tab label
* src/configuredialog.cpp: Fill QComboBoxes for ac/battery
default schemes now within setSchemeList(). Changed position
of call setGeneralSettings() on init the dialog and added
code to fill the 'Default Schemes' tab of the general
settings. Set now a icon for this tab.
2007-01-22 Danny Kukawka <>
* src/config/kpowersaverc_default: added new config key
for allowed actions on button events and change the name of
the key for allowed battery actions.
* src/configuredialog.cpp: related changes to above and added
code to fill the buttons tab with related values.
2007-01-22 Danny Kukawka <>
* src/configuredialog.cpp: Added code to fill the battery
tab of the general settings with the values from the config
2007-01-22 Danny Kukawka <>
* src/configuredialog.[cpp,h]: Changed strings for 'set
brightness' action and added a new helper function to fill
a QComboBox with a list of actions (mapped to descriptive
and translated strings) and select a given action.
2007-01-22 Danny Kukawka <>
* src/configure_Dialog.ui: removed some spacer and changed
some widget names.
2007-01-22 Danny Kukawka <>
* src/configuredialog.cpp: Added checks if CPUFreq,
suspend and brightness is really supported by the machine
to the map action helper functions. Otherwise return a
empty QString.
2007-01-22 Danny Kukawka <>
* src/configure_Dialog.ui: added suffixes to QSpinBox
2007-01-22 Danny Kukawka <>
* src/configure_Dialog.ui: added widgets for set value of
brightness on battery warning levels. Fixed max level for
several QSpinbox widgets.
2007-01-22 Danny Kukawka <>
* src/configuredialog.[cpp,h]: Added two helper functions
to map the keys for actions in the config to a usefull
string for the GUI and back.
2007-01-22 Danny Kukawka <>
Move some more dummy strings:
* src/detaileddialog.cpp:
* src/dummy.cpp:
2007-01-21 Danny Kukawka <>
* src/configuredialog.cpp: set icons for general settings
Toolbox tabs.
2007-01-21 Danny Kukawka <>
* src/configure_Dialog.ui: Fixed layout and (re)added
Q_SLOTS for Q_SIGNALS and actions.
2007-01-21 Danny Kukawka <>
Added new class/file to collect translation dummy strings
from other classes. This cleanupt the code of the files
and make it easier to maintain translation strings:
* src/dummy.cpp: new file
* src/
Removed dummy strings from:
* src/configuredialog.cpp:
* src/tdepowersave.cpp:
* src/screen.cpp:
* src/settings.cpp:
2007-01-19 Danny Kukawka <>
* src/configure_Dialog.ui: Added first new version of the
configure dialog to be able to set the new non-scheme
specific settings.
NOTE: It build currently, but the new widget have no
2007-01-16 Danny Kukawka <>
* src/settings.cpp: Applied patch from Olivier Blin
<> to fix handling of sleep and s2disk
button actions.
2007-01-15 Danny Kukawka <>
* src/configuredialog.cpp: Change the brightness in the
config dialog only if really activated.
2007-01-15 Danny Kukawka <>
* src/configuredialog.cpp: Added support to delete a user
specific scheme. The user can't delete on of the currently
4 default schemes or if the selected scheme is the AC or
battery default scheme.
2007-01-08 Danny Kukawka <>
Added support for sleep/suspend and s2disk/hibernate buttons
and related action calls:
* src/config/kpowersaverc_default: added new config keys to
define the default action for the two keys
* src/hardware.[cpp,h]: Added new signal and filter all the
related keys from HAL interface.
* src/kpowersave.[cpp,h]: Addes functions to catch the events
of the button get pressed and call the allowed actions (for
the moment only s2ram and s2disk is allowed to these events)
* src/settings.[cpp,h]: Added support to read the new config
keys and to store them in member variables. For now added a
check to be sure that only s2ram and s2disk are allowed actions
for these key events.
2007-01-08 Danny Kukawka <>
Commited unsaved change, updated Changelog:
* src/tdepowersave.cpp: Changed lockScreen() DCOP function to
lock simply the screen unrelated to the setting for suspend
on suspend.
2007-01-08 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Fixed lock screen on suspend and
removed no longer needed code/functions. Thanks to Andrey
Borzenkov <> for the report.
* src/settings.cpp: Changed fallback values for lock on
suspend and lidclose from false to true due to security
and privacy reasons.
2007-01-04 Danny Kukawka <>
* src/tdepowersave.cpp: fixed b.n.c #231709 by fixing minor
compiler warning about "comparison with string literal"
by using strcmp().
2006-12-27 Danny Kukawka <>
* src/configuredialog.cpp: Removed done TODO's and debug code.
2006-12-27 Danny Kukawka <>
* src/configuredialog.[cpp,h]: Seperated code to set the
current scheme (based on the scheme name) to a own function.
Added code to add a new scheme. For now the new scheme get
initialized with the values from the default-scheme.
2006-12-26 Danny Kukawka <>
Extendended configure GUI to config the CPU Freqency policy
for each scheme. The related page in the dialog is deactivated
if the machine doesn't support CPU Freq.
Added buttons to add new and delete existing schemes (TODO:
add related code).
Renamed some widgets.
* src/configure_Dialog.ui:
* src/configuredialog.cpp:
2006-12-25 Danny Kukawka <>
* src/hardware.cpp: Added support for conservative governor
as a DYNAMIC CPU frequency policy fallback and some debug
2006-12-17 Danny Kukawka <>
Fixed b.n.c bug #229234:
* src/hardware.[cpp,h]: Changed checkCurrentCPUFreqPolicy()
from void to int to return the current CPU Freq policy to
the caller.
Added check to setCPUFreq() for the DYNAMIC case to check
if the 'ondemand' governor was really set and try then
the 'userspace' governor.
2006-12-15 Danny Kukawka <>
* src/tdepowersave.cpp:
* src/settings.[cpp,h]:
2006-12-15 Danny Kukawka <>
* src/tdepowersave.cpp: Little fix for disable s2ram and
standby menu entry if not allowed while call action.
2006-12-08 Danny Kukawka <>
* src/dbusHAL.cpp: fixed compiler warning from b.n.c bug
#226875 with proposed change from David Binderman
2006-12-04 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Added code to handle the power
button event and to call the related action.
2006-12-01 Danny Kukawka <>
Added new config key to be able to config actions if the
power button get pressed.
* src/config/kpowersaverc_default:
* src/settings.[cpp,h]:
2006-12-01 Danny Kukawka <>
* src/hardware.cpp: removed no longer needed init for some
class memebers.
2006-11-27 Danny Kukawka <>
* src/tdepowersave.cpp: Fix to set the type of suspend before
call handleMounts() and reset in the error case to show the
correct caption for the error dialog if the umount fail.
Added i18n() call to translate the caption correct.
2006-11-27 Danny Kukawka <>
* src/tdepowersave.cpp: Added "Don't ask again" checkbox to
error message box if KPowersave get a error from kded for
umount partitions before suspend.
Fixed dialog caption to display the correct type of suspend.
2006-11-27 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Fixed battery critical action if
the actiontype is SHUTDOWN. We can't call a slot from a QT
single shot with parameter as it looks.
2006-11-27 Danny Kukawka <>
* src/hardware.cpp: Added code to call SetCPUFreqConsiderNice
depending on DYNAMIC CPU Freq Policy and the state of the
AC adapter. The code should set ConsiderNice with true
if the AC adapter is online and false if the machine is on
2006-11-27 Danny Kukawka <>
Make KPowersave more stable (hopefully), added some checks
and (re)set some variables in error cases.
* src/dbusHAL.cpp:
* src/hardware.cpp:
2006-11-22 Danny Kukawka <>
* src/hardware.cpp: typo and whitespace fix
* src/tdepowersave.cpp: reset the cPU Freq Policy after resume,
after resume (IMO to workaround a bug in the kernel, because
the kernel should resume with the same CPU Freq settings as
on suspend)
2006-11-22 Danny Kukawka <>
* src/tdepowersave.cpp: Added some code to display error msg
to the user on suspend and display a dialog to choose between
stop and continue the suspend. Default should be stop suspend
as also ESC is.
2006-11-22 Danny Kukawka <>
* src/tdepowersave.cpp: Added code to remount the before
suspend/standby unmounted external storage volumes.
Show the user a passive popup if there is a error while try
to remount.
2006-11-22 Danny Kukawka <>
* src/tdepowersave.cpp: Added initial code to umount before
TODO: add code to inform the user about the error and offer
a way to suspend also if KPowersave can't umount.
2006-11-22 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Added function to handle umounts/
remounts on suspend/resume via kded mediamanager DCOP calls.
2006-11-22 Danny Kukawka <>
* src/config/kpowersaverc_default: added new config variable
for umount/remount on suspend
* src/settings.[cpp,h]: added code to read the new variable
from the config file and store the value to a class member.
2006-11-21 Danny Kukawka <>
* admin: removed property svn:mime-type from files
2006-11-21 Danny Kukawka <>
* src/tdepowersave.cpp: Fixed applet tooltip to show correct
information if the battery is in state CHARGING.
2006-11-21 Danny Kukawka <>
* src/tdepowersave.cpp: Fix battery warning level handling and
show warning messages to the user only if battery state is
2006-11-20 Danny Kukawka <>
* admin/ added support for automake 1.10
2006-11-20 Danny Kukawka <>
Tagged new offical release 0.7.1
2006-11-20 Danny Kukawka <>
* TODO: updated
2006-11-20 Danny Kukawka <>
* NEWS: added new for new release 0.7.1
2006-11-20 Danny Kukawka <>
Updated required D-Bus version numnber:
* doc/doxy/main.dox:
Fixed code comments, added missing function parameter docu,
removed file-version tags, update date of some files:
* src/dbusHAL.[cpp,h]:
* src/hardware.[cpp,h]:
* src/hardware_battery.[cpp,h]:
* src/hardware_batteryCollection.[cpp,h]:
* src/screen.[cpp,h]:
2006-11-20 Danny Kukawka <>
* doc/doxy/implemented.dox: removed not existing reference
Fixed code comments and documentation (e.g. undocumented
function parameter):
* src/dbusHAL.cpp:
* src/hardware.cpp:
* src/hardware.h:
* src/tdepowersave.cpp:
* src/settings.h:
2006-11-20 Danny Kukawka <>
* doc/doxy/powersave_msgs.dox: removed no longer needed
code documentation file
2006-11-20 Danny Kukawka <>
* doc/doxy/main.dox: update to current KPowersave version
2006-11-20 Danny Kukawka <>
* TODO: removed done tasks
* src/kpowersave.[cpp,h]: fixed code comments and removed
references to the powersave daemon
* src/main.cpp: changed version string
2006-11-20 Danny Kukawka <>
* NEWS: added news from already released stable versions
0.6.1 and 0.6.2
* TODO: removed done tasks and updated status of some
2006-11-20 Danny Kukawka <>
* packaging/openSUSE10.2.kpowersave.spec: added specfile
for openSUSE 10.2
2006-11-20 Danny Kukawka <>
* src/tdepowersave.cpp: Adapted new function to reset the
KDE screensaver (and DPMS) settings.
* src/screen.[cpp,h]: Added new function to call the
configure() at the KScreensaverIface to reset the current
settings to the correct KDE settings from the config files.
This happen currently only if the screensaver is not
active (but enabled).
* src/settings.cpp: Fixed code.
2006-11-20 Danny Kukawka <>
* src/settings.[cpp,h]: Added code to check if KDE use
currently the blank screensaver.
2006-11-19 Danny Kukawka <>
* TODO: removed done issues
* src/dbusHAL.[cpp,h]: Added code to claim/acquire the
org.freedesktop.Policy.Power interface from D-Bus to stop
the powersave daemon/client and to be allowed to handle
the powermanagement policy.
2006-11-19 Danny Kukawka <>
* README: Update dependencies/requirements.
2006-11-19 Danny Kukawka <>
* src/tdepowersave.cpp: Added some linebreaks to warning
messages for battery states.
2006-11-19 Danny Kukawka <>
* src/hardware_batteryCollection.cpp: fixed handling
for battery collections if there are no batteries present.
This should abvoid false alarm for battery warning levels.
2006-11-18 Danny Kukawka <>
* src/hardware_battery.cpp: fixed handling if battery
get removed from the system. Don't forget to check the
battery type if reset the battery.
Also fixed emit Q_SIGNALS. Emit them first if have read
the values from Hardware and filled the related variables.
2006-11-18 Danny Kukawka <>
* src/settings.cpp: Added some usefull default values
for the KDE settings if we can't read the related values.
2006-11-17 Danny Kukawka <>
* src/kpowersave.[cpp,h]: applied slightly adopted patch
from Dirk Mueller <> to add a DCOP
function to check if KPowersave already handle DPMS
settings in KDE. This should, togehter with a patch for
KDE, avoid interfere between KDE and KPowersave.
2006-11-17 Danny Kukawka <>
Added new turkish translations from S.Çağlar Onur
* po/tr.po:
* src/kpowersave-autostart.desktop:
* src/kpowersave.desktop:
2006-11-17 Danny Kukawka <>
Added patch from S.Çağlar Onur <>
to add support for Pardus Linux.
* added detect Pardus Linux
* src/tdepowersave.cpp: added bugreport address
2006-11-17 Danny Kukawka <>
* src/tdepowersave.cpp: fixed bugreport address for
2006-11-17 Danny Kukawka <>
* src/tdepowersave.cpp: Reduced function calls to
dbusHAL with updateTooltip().
2006-11-16 Danny Kukawka <>
* src/tdepowersave.cpp: fixed set CPUFreq via the applet
menu and reduced calls if a scheme switched.
2006-11-16 Danny Kukawka <>
* src/dbusHAL.cpp: Fixed free() error, if D-Bus is not
running on startup.
2006-11-16 Danny Kukawka <>
* src/kpowersave.[cpp,h]: s/new_screen/display/
2006-11-16 Danny Kukawka <>
* ChangeLog.package: updated with info about already
released version 0.7.0
2006-11-16 Danny Kukawka <>
* src/kpowersave.[cpp,h]: fixed notifySuspend() and
call the function before call suspend/standby via HAL.
2006-11-16 Danny Kukawka <>
* src/kpowersave.[cpp,h]: fixed handling of AC plug
in/out event. Now switch, based on the state of the
AC plug, the AC/Battery scheme.
Also merged other AC state releaded functions to the
new and renamed handleACStatusChange() for a better
control of the workflow.
2006-11-16 Danny Kukawka <>
* src/tdepowersave.cpp: changed position of call
setPrimaryBatteriesWarningLevel() to do this first
if the scheme was set.
2006-11-16 Danny Kukawka <>
* src/hardware.[cpp,h]: Added support to check for
PMU support and renamed checkACPI_APM() to more
general name checkPowermanagement()
* src/tdepowersave.cpp: extended startup check to
exit only if not ACPI/APM/PMU/CPUFreq/s2disk/2sram.
2006-11-16 Danny Kukawka <>
* TODO: updated TODO to current state of development
2006-11-14 Danny Kukawka <>
* src/kpowersave.[cpp,h]: added code to fetch and
handle the resume signal. Trigger fake key event after
resume if the scree was locked and emit the correct
KNotify signal.
2006-11-14 Danny Kukawka <>
* src/screen.cpp: changed left send() for lock the
screen for KScreenSaver with usage of call().
2006-11-14 Danny Kukawka <>
* src/hardware.[cpp,h]: Adopted suspend function to
use the new pending calls instead of the old, normal
Added code to fetch, forward and handle the resume
signal from the dbusHAL class.
2006-11-14 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: added new functions to be able
to handle suspend as pending D-Bus calls. This should
allow us to get a resume signal etc.
Added a new signal to be emitted if we resumed and
to return the result of the resume as a integer value.
2006-11-13 Danny Kukawka <>
* src/screen.cpp: Changed DCOP screen lock call from
send() to call() and try now, if the lock fail, to
use XScreensaver for lock instead.
2006-11-13 Danny Kukawka <>
* src/kpowersave.[cpp,h]: handle lid close/open events
now in one function. If the screen was locked on the
lidclose signal, fake keyevent on open lid.
2006-11-13 Danny Kukawka <>
* src/tdepowersave.cpp: display error message on scheme
switch only if the scheme is not known and not if the
current scheme get selected.
2006-11-13 Danny Kukawka <>
* TODO: updated/remove done issues
* src/config/kpowersaverc_default: Added new variables
to call a action of the lid was closed.
* src/kpowersave.[cpp,h]: handle now actions on lidclose
and renamed function to reuse code from battery actions.
* src/settings.[cpp,h]: Read new config values to member
variables for general settings. Renamed some members
and definitions to reuse the action stuff.
Sorted code in settings.h to differ between general and
scheme setttings.
2006-11-13 Danny Kukawka <>
* src/tdepowersave.cpp: Added fix from Michael Biebl
<> for debian bug #398201 to avoid crash
of KPowersave if showDetailedDialog() called via DCOP.
2006-11-13 Danny Kukawka <>
* src/kpowersave.[cpp,h]: s/current_settings/settings/
2006-11-13 Danny Kukawka <>
* src/tdepowersave.cpp: fixed event handling for battery
warning states to call related actions also if notify
is disabled.
2006-11-12 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Added some code to call a
defined battery action if a battery warning state
reached. Added special handling for BAT_CRITICAL and
* src/settings.[cpp,h]: changed some types and return
types: s/int/battery_action/
TODO: test and handle brightess/cpufreq changes if
the warning state get reduced to set back to
normal values. Maybe simply switch back to the
current scheme settings.
2006-11-12 Danny Kukawka <>
* src/ removed schemes.* from make
* src/schemes.[cpp,h]: removed no longer needed class
and related files
2006-11-12 Danny Kukawka <>
* src/tdepowersave.cpp: Added some code comments and
code to set the CPU Freq Policy for each scheme.
* src/settings.[cpp,h]: changed type of CPU Freq
Policy from int to cpufreq_type.
2006-11-12 Danny Kukawka <>
* src/config/kpowersaverc_default: added new entries
to store the CPU Freq Policy for a scheme. Use as
default for all schemes DYNAMIC for now.
* src/settings.[cpp,h]: added code to read the new
entries for the CPU Freqency policy.
2006-11-11 Danny Kukawka <>
* kpowersave.tdevelop: some changes from KDevelop
* src/config/kpowersaverc_default: added some new
configure variables to allow to set a action if a
battery warning level reached.
* src/settings.[cpp,h]: added code to read the values
of the new config values and set them to new member
2006-11-10 Danny Kukawka <>
* src/hardware.cpp: fixed lock screen if lid closed
2006-11-10 Danny Kukawka <>
* src/detaileddialog.cpp: added connect to new signal
for CPUFreq Policy changes to show allways correct
information in the dialog.
* src/hardware.[cpp,h]: added signal emitted if the
CPU Frequency policy was successful (or from other
side) changed/switched.
Reduced code in setCPUFreq() and added a check if the
Policy was really check and emit new signal.
* src/kpowersave.[cpp,h]: added connect for new signal
to set the CPUFreq menu correct if something changed
2006-11-09 Danny Kukawka <>
* src/hardware.[cpp,h]: Added new function to reinit
all hardware information after a HAL or D-Bus restart.
This should reduce the code and ensure that we do
always the same.
Fixed handling of Q_SIGNALS if D-Bus restart related to
HAL and D-Bus itself status.
* src/tdepowersave.cpp: added a comment
2006-11-08 Danny Kukawka <>
* src/tdepowersave.cpp: fixed slot do_setActiveScheme()
to check if the requested scheme is available, load
the scheme settings, call setSchemeSettings() to
set the related changes and inform KNotify.
TODO next: (1) add support to read the missing config
keys and (2) fix setSchemeSettings() to
set the changes to the kpowersave class
2006-11-08 Danny Kukawka <>
* src/kpowersave.[cpp,h]: renamed some functions
2006-11-08 Danny Kukawka <>
* src/tdepowersave.cpp: fixed connect to not existing
slot/function to show error message from autosuspend
2006-11-08 Danny Kukawka <>
* src/hardware.cpp: Fixed detection of suspend/standy
support. HAL also provide the related methodes if
there is no support in the kernel.
TODO: take a look at this in HAL and if we can fix
2006-11-07 Danny Kukawka <>
* TODO: added some information and currently TODOs
2006-11-07 Danny Kukawka <>
Fixed battery warning state handling and events for
the primary batteries:
* src/hardware.[cpp,h]: added some private variables
to store the current warning state level which are set
with new function setPrimaryBatteriesWarningLevel().
We use this function also to reset the warning level
to the current one directly her e.g. after D-Bus or
HAL restart.
Changed signal for reached warning state to emit also
the type and the state of the battery. This should
be more generic and can be reused later for other
battery types.
* src/hardware_batteryCollection.[cpp,h]: changed
Q_SIGNALS to emit also battery type.
* src/tdepowersave.cpp: changed debug msg and set the
battery warning level temporary in the constructor
to HardwareInfo object.
2006-11-07 Danny Kukawka <>
* src/configuredialog.cpp: fixed brightness related
code to handle new HAL level mapping to percent.
* src/hardware.[cpp,h]: changed setBrightness() to
work with level and percent (added mapping from
percentage to level) and fixed min and max values.
* src/tdepowersave.cpp: related changes.
2006-11-06 Danny Kukawka <>
* src/hardware.cpp: Fixed setBrightness (fixed wrong
usage of dbusSystemMethodCall and int as param)
2006-11-06 Danny Kukawka <>
* src/dbusHAL.cpp: Fixed dbusHAL::isUserPrivileged()
to use 'const char *' instead of QString.
2006-11-06 Danny Kukawka <>
* src/hardware.cpp: Fixed case if HAL wasn't present
at startup. Now if hal reconnect recheck all hardware
* src/tdepowersave.cpp: Fixed creation of the applet
menu if HAL or D-Bus disappear or/and reconnect.
Fixed applet Icon if HAL/D-Bus is not available.
2006-11-06 Danny Kukawka <>
* src/kpowersave.[cpp,h]: Added new function to show
messages from other classes as e.g. autosuspend to the
Moved some functions within the code.
2006-11-06 Danny Kukawka <>
* src/dbusHAL.cpp: set dbus_is_connected to false if
D-Bus is gone
* src/tdepowersave.cpp: fixed display D-Bus error message
and avoid display HAL related error msg if D-Bus is
2006-11-06 Danny Kukawka <>
* src/hardware.cpp: fixed detection of terminated D-Bus
and reconnect to the service and HAL
2006-11-06 Danny Kukawka <>
* src/kpowersave.[cpp,h]: fixed display message if HAL
is gone.
2006-11-06 Danny Kukawka <>
* src/kpowersave.[cpp,h]: removed no longer needed code
2006-11-06 Danny Kukawka <>
* src/hardware.cpp: Fixed init the class (set a default
value for currentCPUFreqPolicy otherwise we can't detect
the initial changes).
Fixed setCPUFreq(), use char* instead instead of direct
usage of e.g. "performance".
* src/hardware.h: make checkCurrentCPUFreqPolicy() public
* src/tdepowersave.cpp: force a check of current CPUFreq
policy after set the policy to be sure the CPUFreq
Policy is correct displayed in the applet.
2006-11-06 Danny Kukawka <>
* src/hardware.cpp: fixed detection of the current CPU
Freq policy. Use char* instead of QString for return
2006-11-06 Danny Kukawka <>
* src/hardware.cpp: fixed detection of changes in current
CPU Freq Policy (_use_ temp variable correct )
* src/tdepowersave.cpp: removed debug
2006-11-05 Danny Kukawka <>
* src/hardware.cpp: fixed connect to Q_SIGNALS from the
primary battery collection. This should fix the applet
icon to show the correct battery fill level.
2006-11-05 Danny Kukawka <>
* src/hardware.[cpp,h]: added and emit new signal if the
primary battery collection changed a value
* src/tdepowersave.cpp: Fixed change applet icon if the AC
plug added/removed
2006-11-05 Danny Kukawka <>
* src/detailed_Dialog.ui: removed <includehint>
* src/detaileddialog.cpp: connect to signal for changes
of the primary batteries.
* src/hardware.cpp: fixed connect to changes of batteries
2006-11-05 Danny Kukawka <>
* src/detaileddialog.cpp: fixed typo in function call and
removed already comment out include of kpowersave.h
2006-11-05 Danny Kukawka <>
Removed no longer needed sourcecode files from repository:
* src/dbusPowersave.cpp:
* src/dbusPowersave.h:
* src/pdaemon.cpp:
* src/pdaemon.h:
2006-11-05 Danny Kukawka <>
Replaced complete (active) pdaemon and powersave related
code from KPowersave class:
* src/ removed pdaemon.* and dbusPowersave.* ,
reformated the list of source files
* src/kpowersave.[cpp,h]:
TODO: test and remove/fix open TODO's
2006-11-05 Danny Kukawka <>
* src/hardware.[cpp,h]: Added code to handle reconnect to
the D-Bus daemon. Added some variables to show if something
in class HardwareInfo changed. This new variables should
allow finder grained and easier refresh/handle of battery
Fixed code to update battery information and connect to
related Q_SIGNALS.
2006-11-05 Danny Kukawka <>
* src/hardware_battery.[cpp,h]: added also a signal to
the battery object, wich we emit if a value of the
battery changed.
2006-11-05 Danny Kukawka <>
* src/hardware_batteryCollection.[cpp,h]: added new signal
if _something_ changed in the collection.
2006-11-05 Danny Kukawka <>
* src/dbusHAL.cpp: Removed include of powersave_dbus.h.
Replaced usage of dbusGetMessageString() from old powersave
library with dbus_message_get_args() and fixed code to
fetch event if HAL go down.
2006-11-03 Danny Kukawka <>
Replaced complete pdaemon and powersave related code from
the configuration dialog.
* src/configuredialog.[cpp,h]:
* src/tdepowersave.cpp: related changes to open/create the
2006-11-03 Danny Kukawka <>
Renamed class s/settings/Settings and related changes
* src/detaileddialog.h:
* src/kpowersave.[cpp,h]:
* src/settings.[cpp,h]:
2006-11-02 Danny Kukawka <>
* src/hardware_battery.cpp: read battery serial only if the
battery is present.
2006-11-02 Danny Kukawka <>
* src/pdaemon.[cpp,h]: Removed no longer needed code to get
CPU information directly from sysfs
2006-11-02 Danny Kukawka <>
Replaced usage of pdaemon class in the detailed dialog with
class HardwareInfo:
* src/dbusHAL.cpp: fixed debug message
* src/dbusPowersave.cpp: comment out some code to get the
applet run temporary, before remove the class complete.
* src/detaileddialog.[cpp,h]: replaced complete pdaemon code
* src/tdepowersave.cpp: related changes to call the constructor
of class detaileddialog.
2006-11-02 Danny Kukawka <>
* src/hardware.[cpp,h]: fixed CPU Freq stuff, added new member
to check if the hardware/kernel support cpufreq in general,
also without HAL. We need this to show CPU information in
the detailed dialog also if there is no support vi HAL.
Added fix to get the battery information. Need to update the
primary battery collection on init.
2006-11-02 Danny Kukawka <>
* src/hardware_battery.cpp: fixed detection of battery type,
don't check if the battery present for the battery type. The
information about the type is always present, also for empty
battery bay.
2006-11-02 Danny Kukawka <>
* src/hardware.[cpp,h]: Added some new functions to get access
to battery list and the primary battery collection.
Fixed bug in checkBrightness(), check always if the list of
devices is not empty before use them.
Fixed some minor bugs in debug messages
2006-11-02 Danny Kukawka <>
* src/config/kpowersaverc_default: added new config entries to
save the default ac and battery scheme
* src/dbusPowersave.[cpp,h]: renamed some enums to avoid
conflicts while remove this class.
* src/detaileddialog.[cpp,h]: replaced scheme information from
powersave with new from class settings. Added pointer to current
settings to constructor.
* src/hardware_battery.[cpp,h]: renamed some enum to avoid
* src/tdepowersave.cpp: replaced scheme handling parts where we
tried to get scheme information from the pdaemon class. commented
out some code which we should replace later.
* src/kpowersave.h: added new member to hold HardwareInfo class
* src/pdaemon.[cpp,h]: renamed enum, removed scheme handling
from code of the class. We use now the new structure. Use some
enums from hardware_battery.h temporary.
* src/settings.[cpp,h]: added new members to handle the default
ac and battery scheme
2006-10-30 Danny Kukawka <>
* removed no longer needed dependencies and
updated HAL and D-Bus version dependencies.
2006-10-29 Danny Kukawka <>
Added some new configure variables to the default settings.
* src/config/kpowersaverc_default: added new battery state level
related variables and a new variable for the available schemes.
Removed no longer needed sound related variables.
* src/settings.[cpp,h]: Added new enum level_action to define
actions if a battery level state reached. Added code to read the
available schemes and the battery warning states from the config
2006-10-28 Danny Kukawka <>
Fixed creation of D-Bus connection. Don't use private connection
anymore. Simply call dbus_bus_get() instead. This should fix
b.n.c #214881.
* src/dbusHAL.cpp:
* src/dbusPowersave.cpp:
2006-10-25 Danny Kukawka <>
* src/hardware.cpp: Fixed updateBatteryValues() to call the new
member function of the battery to update the values.
* src/hardware_battery.cpp: Fixed checkBatteryPresent() to call
depending on the new state of the battery all depending updates.
2006-10-25 Danny Kukawka <>
* src/hardware.cpp: Fixed function to trigger a update of the
primary battery collection and added some intial code to handle
DeviceAdded/DeviceRemoved events from HAL.
* src/hardware.hi: added battery collection for primary
batteries and renamed related update function.
* src/hardware_batteryCollection.[cpp,h]: added new function
isBatteryHandled() to check if this Collection already handle
this udi/battery
2006-10-25 Danny Kukawka <>
* src/hardware.[cpp,h]: Added new function to check if we should
handle a special device (e.g. on a HAL_DEVICE::DeviceAdded
event) and to get the type of the device (added a new enum
Added some new Q_SIGNALS for: HAL error handling, data changes and
if the sleep button was pressed.
2006-10-24 Danny Kukawka <>
Cleanup: removed not handled msg_type NAME_AQUIRED.
* src/dbusHAL.[cpp,h]:
* src/hardware.cpp:
2006-10-24 Danny Kukawka <>
* src/hardware.[cpp,h]: Added check for privileges for CPUFreq
interface via PolicyKit and check before try to use the
interface. Added function to get this info from outside.
2006-10-24 Danny Kukawka <>
* src/hardware.[cpp,h]: Added PolicyKit check for suspend/
standby interface.
2006-10-24 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: changed return type of new function
isUserPrivileged() from bool to int to get a info if we can't
connect to the PolicyKit interface on DBUS.
2006-10-24 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: Added function to check PolicyKit
for a privilege for a given user.
2006-10-23 Danny Kukawka <>
* src/hardware_battery.[cpp,h]: make get* functions const
2006-10-23 Danny Kukawka <>
* src/hardware_battery.cpp: added some code to check if the
battery is really present. If not, we don't need to run all
updates or the calls to HAL.
2006-10-23 Danny Kukawka <>
* src/hardware_battery.cpp: removed calls of minRecheck() in
the get* methodes. The data should always be up to date because
of the HAL events. If not, we have a problem and should fix
this instead of call minRecheck() on each get methodes. If
this is really needed, we can call this function also from
outside (isn't a private function).
2006-10-23 Danny Kukawka <>
* src/hardware.cpp: removed todo, code comment update
* src/hardware_battery.[cpp,h]: Added variable to check if the
battery is inialised and added event handling including emit
related Q_SIGNALS if something changed.
Set crit_level as default to 2 as in old powersave config.
* src/hardware_batteryCollection.cpp: set crit_level as default
to 2 as in old powersave config
2006-10-23 Danny Kukawka <>
* src/hardware_battery.cpp: if battery was removed, set the
battery members back to default.
2006-10-23 Danny Kukawka <>
* src/hardware_battery.cpp: fixed typo for a HAL property
2006-10-23 Danny Kukawka <>
* src/hardware_battery.cpp: added code to filter events and
call the related function to update the key.
TODO: add code to check if really something was changed and
emit some Q_SIGNALS.
2006-10-23 Danny Kukawka <>
* src/hardware_battery.[cpp,h]: separated code from recheck()
and minRecheck() to query information from HAL to new small
functions for each property.
2006-10-23 Danny Kukawka <>
* src/hardware_battery.[cpp,h]: Small update in code docu and
added inital code for a new function to update a battery
property on a HAL event.
TODO: fill with code to filter the events and seperate current
code to get a value from HAL into smaller functions to
reuse them.
2006-10-22 Danny Kukawka <>
* src/hardware_battery.[cpp,h]: first remove of no longer
needed code for some kind of battery collection in this class.
This is now done by class BatteryCollection.
TODO: check left code and get methodes. Seperate and split of
the code to get info from HAL.
2006-10-22 Danny Kukawka <>
* src/hardware_batteryCollection.cpp: clean up list of udis
before start the update process.
2006-10-22 Danny Kukawka <>
* src/hardware_batteryCollection.[cpp,h]: emit now also all
the other Q_SIGNALS for percentage, minutes, present batteries
and the charging state.
2006-10-22 Danny Kukawka <>
* src/hardware_batteryCollection.[cpp,h]: emit Q_SIGNALS for
reached battery warning states.
2006-10-22 Danny Kukawka <>
* src/hardware_batteryCollection.[cpp,h]: return a bool for
the set functions to detect incorrect values.
2006-10-22 Danny Kukawka <>
* src/hardware_batteryCollection.[cpp,h]: Completed code to
collect the values from the batteries.
Added new members to get the number of present batteries and
to get the battery state.
TODO: add Q_SIGNALS and emit them.
2006-10-20 Danny Kukawka <>
* src/hardware_batteryCollection.[cpp,h]: added needed
functions to set/get access to privat members.
TODO: add code to read the batteries into the class.
2006-10-20 Danny Kukawka <>
* src/ added new files to Makefile
* src/hardware_battery.h: minor changes
* src/hardware_batteryCollection.[cpp,h]: added new class to
handle battery collections. This class should allow us to get
e.g. only the needed information from all primary batteries.
2006-10-20 Danny Kukawka <>
* src/hardware.[cpp.h]: Added new initial function to collect
battery information from all primary batteries.
2006-10-20 Danny Kukawka <>
* src/hardware.[cpp,h]: replaced QValueList as datatype for
BatteryList with QPtrList. QValueList can't contain objects
which are derived from QObject.
NOTE: For QPtrList as for QDict we need always deep copies
2006-10-19 Danny Kukawka <>
* src/hardware.[cpp,h]: Added initial code to filter battery
events from HAL and update the battery objects.
TODO: check if the construct with the QValueList for batteries
is correct and add code to update the objects.
2006-10-19 Danny Kukawka <>
* src/hardware.[cpp,h]: Filter powerbutton event and emit a
2006-10-19 Danny Kukawka <>
* src/hardware.[cpp,h]: Filter lidclose event and emit a signal.
Fixed emit signal: first set new value to variable and emit then
the signal.
2006-10-19 Danny Kukawka <>
* src/hardware.[cpp,h]: filter ac adapter in/out event and emit
a signal.
2006-10-19 Danny Kukawka <>
* src/dbusHAL.h: removed unused event type HAL_EVENT
* src/hardware.cpp: Added initial code to filter the DBUS and
HAL events we need in KPowersave.
TODO: add code to do what we need if a event happen and
evaluate if we need all the events.
2006-10-19 Danny Kukawka <>
* src/hardware.cpp: check if the new udi is already in the
list of all udis. QStringList add strings without check if
they are already in.
2006-10-19 Danny Kukawka <>
* src/hardware.[cpp,h]: fixed intialiseHWInfo() to use only
one QStringList for the devices. Added new code to the func
to collect the battery UDIs.
Added code to store the UDIs of all devices we handle and
want to monitor. This should allow us a finer grained filter
functions for HAL events.
* src/hardware_battery.[cpp,h]: Changed one constructor to
give always as first the reference to dbus_HAL.
2006-10-19 Danny Kukawka <>
* src/hardware_battery.h: removed no longer needed define
2006-10-19 Danny Kukawka <>
* kpowersave.tdevelop: updated some KDevelop project settings
* src/settings.h: removed unneeded empty class
2006-10-16 Danny Kukawka <>
* src/hardware_battery.[cpp,h]: More cleanups, changes in code
style and code documentation. Removed not needed hasHalError().
2006-10-16 Danny Kukawka <>
* src/hardware_battery.[cpp,h]: Sorted private members of the
class by type and added function to init private members with
default values instead to use a define. This should avoid
compiler warnings.
Added some code comments for doxygen.
2006-10-15 Danny Kukawka <>
* src/hardware.[cpp,h]: Added function to get the current
CPU Frequency policy from HAL and a function to get this
value from the privat class member.
TODO: check if we also can get info for DYNAMIC_SET.
2006-10-15 Danny Kukawka <>
* src/hardware.[cpp,h]: added function to get the current
brightness level from HAL. This should allow get current
brightness without recheck the interface.
2006-10-15 Danny Kukawka <>
* src/hardware.[cpp,h]: s/PMStates/SuspendStates/ and
s/pm_states/suspend_states/ to be more clear
2006-10-15 Danny Kukawka <>
* src/hardware.[cpp,h]: replaced QDict for powermanagement states
with a struct which should be easier to handle. Added new members
to the struct to represent information if call the related
interface is allowed
2006-10-11 Danny Kukawka <>
* src/hardware.[cpp,h]: Added function to set CPU frequency
policy via the HAL interface (support the currently) available
tree policies.
2006-10-10 Danny Kukawka <>
* src/hardware.[cpp,h]: added function to check if the machine
support change the CPU frequency via HAL.
TODO: add check for PolicyKit policy
2006-10-10 Danny Kukawka <>
* src/hardware.cpp: cleanup QDict<bool> pm in checkSuspend() if
not empty before reuse.
2006-10-10 Danny Kukawka <>
* src/hardware.[cpp,h]: added get functions for suspend/standby
support info and if DBUS/HAL are running.
2006-10-10 Danny Kukawka <>
* src/hardware.[cpp,h]: Added some functions to read private
class members from outside. Changed existing get functions to
* src/hardware_battery.cpp: code style changes
2006-10-10 Danny Kukawka <>
* src/hardware.h: Changed function params to show also the
variable names in code completion of KDevelop.
2006-10-10 Danny Kukawka <>
* src/hardware.[cpp,h]: Added function to change the brightness
of the laptop display (if supported by the hardware).
Added code comments and fixed some debug messages.
2006-10-10 Danny Kukawka <>
* src/hardware.cpp: added missing debug messages
2006-10-09 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: changed DBus method call functions for
easier usage than the old one and removed one no longer needed
* src/dbusHAL.h: Changed function params to show also the
variable names in code completion of KDevelop.
* src/hardware.cpp: Adapted exsting code the new functions.
2006-10-06 Danny Kukawka <>
* src/hardware.[cpp,h]: Replaced strings with defines
Added new initial function to trigger a suspend and added new
enum (suspend_type) to select the suspend/standby method for
the call.
TODO: add check for PolicyKit policy for the suspend and
rework the dbus method call functions. We can maybe
merge some functions.
2006-10-05 Danny Kukawka <>
* src/hardware.[cpp,h]: added new boolean member to hold info
if the machine is a laptop. Changed existing function to check
the formfactor and set laptop value, added new function to get
laptop value.
Added some code do constructor to init members and to get some
initial hardware information.
2006-10-05 Danny Kukawka <>
Fixed some code comments (line breaks etc.).
* src/hardware.cpp:
* src/hardware_battery.h:
2006-10-03 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: removed HAL specific function to call
a powermanagement related function and added three generic
functions to call a method on a DBUS interface (taked and
adapted code from current powersave code base).
* src/hardware.[cpp,h]: added a new function to get init
brightness information as e.g. if change brightness is
supported, how many brightness level are available and the
current level.
2006-10-01 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: added function to check the supported
powermanagement/suspend functions and store the information
if e.g. suspend2disk is available as HAL interface and if not
if the machine support this via the kernel in general.
* src/hardware.[cpp,h]: added function to get a stringlist
property from HAL for a given device.
2006-09-29 Frank Seidel <>
* src/hardware_battery.[cpp,h]: Very very first implementation
of class Battery. Probably full of many ugly bugs, but its
a start.
2006-09-28 Frank Seidel <>
* src/dbusHAL.cpp: Fixed typo in halQueryCapability (libhal
function call).
2006-09-28 Danny Kukawka <>
* src/hardware.[cpp,h]: Added some more code comments and new
functions to init hardware information about AC adapter and the
lidclose button.
2006-09-26 Danny Kukawka <>
* src/dbusHAL.[cpp,h]: code comments
* src/hardware.[cpp,h]: addes some empty functions and a QDicr
for udis of devices except batteries (e.g. AC, Lid, buttons ...)
* src/pdaemon.cpp: added comments about the state of port code
and functions to class dbusHAL
2006-09-25 Danny Kukawka <>
* src/hardware.cpp: Fixed typo in debug msg. Filled destructor.
2006-09-25 Danny Kukawka <>
* src/hardware.[cpp,h]: added functions to check if the machine
is a laptop and if the machine support ACPI/APM.
TODO: add some line of code to check for ACPI/APM if HAL is not
2006-09-25 Danny Kukawka <>
* src/hardware.[cpp,h]: Added more to constructor and init. Copied
code to get CPU Freq information for the detailed dialog from
pdaemon.[*] to this file. Updated some code docu.
2006-09-25 Danny Kukawka <>
* src/dbusHAL.cpp: init HAL context in constructor
* src/hardware.[cpp/h]: conntect to DBUS/HAL in constructor and
added initial function to filter and handle events from DBUS/HAL
via signal from dbusHAL class.
2006-09-23 Danny Kukawka <>
Added new basic classes to handle hardware information, as e.g.
battery, lid state or AC adapter state, and the powermanagement
related functions as e.g. suspend2*/standby or CPU freq.
NOTE: this are only initial files and classes, we maybe replace or
rename them while development.
* src/
* src/hardware.cpp:
* src/hardware.h:
* src/hardware_battery.cpp:
* src/hardware_battery.h:
2006-09-23 Danny Kukawka <>
* Doxyfile: changed version string
* src/ added dbusHAL class to make
* src/dbusHAL.[cpp,h]: Changed name of the class to dbusHAL and
added connection to HAL and code to hold LibHalContext. The class
contains now mew functions to search for devices and to get device
information from HAL. Also added: new function to call
org.freedesktop.Hal.Device.SystemPowerManagement methodes on HAL
via DBUS.
2006-09-04 Danny Kukawka <>
Added new class to monitor HAL Q_SIGNALS (DeviceAdded, DeviceRemoved,
PropertyModified, Condition) and Connect/Disconnect events via DBUS.
This class is not used atm in the code, but should replace the class
dbusPowersave in the future.
TODO: add code to init and hold hal_context for libhal.
* src/dbusHAL.cpp:
* src/dbusHAL.h:
2006-09-04 Danny Kukawka <>
* kpowersave.tdevelop: fixed tdevelop file to get code completion
2006-08-15 Frank Seidel <>
Trivial fix for SUSE bug #198237 (when powersaved wasn't
running and kpowersave starts, a wrong error about dbus
was shown).
* src/pdaemon.cpp:
2006-08-11 Danny Kukawka <>
updated files to current admin dir from KDE 3.5.4 and added
two missing files from the KDE SVN directory.
* admin/*:
2006-08-11 Danny Kukawka <>
* doc/doxy/fixed_bugs.dox: updated list
* src/infodialog.cpp: added string "KPowersave" to window
caption (SUSE bug #198237) of warning messages via infodialog
2006-08-11 Danny Kukawka <>
* src/pdaemon.cpp: cleanup: removed unused code and replaced
code comment with debug message.
2006-08-11 Danny Kukawka <>
Prepared for QT4 where FALSE is depricated. Replaced with false.
* src/blacklisteditdialog.cpp:
* src/detaileddialog.cpp:
* src/tdepowersave.cpp:
* src/pdaemon.cpp:
* src/pdaemon.h:
2006-08-11 Danny Kukawka <>
Changed returnvalue of checkDaemon() and type of daemon_running
(in class pDaemon) from int to bool:
* src/detaileddialog.cpp:
* src/tdepowersave.cpp:
* src/pdaemon.cpp:
* src/pdaemon.h:
2006-07-17 Danny Kukawka <>
* src/detaileddialog.cpp: undo kpowersave part of commit r2374
which not solve SUSE bug #186197
2006-06-12 Danny Kukawka <>
again (re)tagged and released official update release v0.6.2
2006-06-12 Danny Kukawka <>
Fixed SUSE bug #184076:
* ChangeLog.package, doc/doxy/changelog.dox: updated changelogs
* doc/doxy/fixed_bugs.dox: added fixed bug to list
* po/*.po, po/kpowersave.pot: removed "(messagebus)" and
s/messagebus/dbus/ in all translations
* src/infodialog.cpp: added command to adjust the size of the
dialog before open.
* src/tdepowersave.cpp: fixed message if dbus daemon is not
running. Use correct script name and not the name from Fedora.
2006-06-12 Danny Kukawka <>
(re)tagged and released official update release, version 0.6.2
2006-06-12 Danny Kukawka <>
Fixed SLED bug ##183745:
* added configure check to differ between
SUSE Linux and SLES/SLED as enterprise products
* README: changed link to bugzilla for SUSE Linux and SLED/SLES
* doc/doxy/fixed_bugs.dox: added fixed bug to list
* src/tdepowersave.cpp: added new link for SLES/SLED bugzilla
* ChangeLog.package, doc/doxy/changelog.dox: updated changelogs
* packaging/*.spec: updated specs to current version
* packaging/FC5.kpowersave.spec: added new Fedora Core 5 spec
2006-06-11 Danny Kukawka <>
tagged and released official update release, version 0.6.2
2006-06-11 Danny Kukawka <>
* ChangeLog.package, doc/doxy/changelog.dox: updated
changelogs from stable tree
2006-06-11 Danny Kukawka <>
* added configure check to detect K/Ubuntu
* README: changed link to Ubuntu bugzilla to
* src/tdepowersave.cpp: added address for ALT Linux and Ubuntu
bugzilla for "Report a bug ..."
2006-06-11 Danny Kukawka <>
* kpowersave.tdevelop: added KDE and QT3 libs to code completion
* src/inactivity.cpp: fixed compiler warning
* src/kpowersave.[cpp/h]: added DCOP function to open/close
the detailed information dialog
2006-06-07 Danny Kukawka <>
Updated translations back from SUSE/Novell translation team,
reworked and merged the files with existing translations:
* po/es.po:
* po/fr.po:
* po/it.po:
* po/pt_BR.po:
* po/zh_CN.po:
* po/zh_TW.po:
2006-06-07 Danny Kukawka <>
* doc/doxy/fixed_bugs.dox: updated list of fixed bugs in doc.
2006-06-07 Danny Kukawka <>
* src/kpowersave.[cpp/h]: Added slightly adopted patch from
Timo Hönig <> to fix SUSE bug #176782 and
enable change display brightness (if supported and enabled in
the current scheme) via the mousewheel over the applet icon.
2006-06-07 Danny Kukawka <>
Updated dependencies to powersave version 0.12.18 in docs:
* doc/doxy/main.dox:
2006-06-07 Danny Kukawka <>
Fixed SUSE bug #182515: Changed configure dialog to respect the
rules for DPMS timouts from
* src/configure_Dialog.ui: Added new signal handlers to QSpinBoxes
for the DPMS timeouts
* src/configuredialog.[cpp/h]: added code to correct values for
the timouts to guaranty correct DPMS settings
2006-06-05 Danny Kukawka <>
* po/de.po: updated translation, added missing string
2006-06-05 Danny Kukawka <>
Fixed errorhandling for DBUS,HAL and powersave connections (this
fix partly SUSE bug #168619) to display correct state:
* src/dbusPowersave.[cpp/h]: added new checks to detect: if HAL
detached from the system message bus and if the user has the rights
to connect to powersaved dbus interface. Added function to access
information if user has the needed rights (check with a "Ping").
Also fixed some typos, removed withespaces, and replaced printf()
with myDebug().
* src/kpowersave.[cpp/h]: Added new function to show errormessages
related to problems with dbus (showDBusErrorMsg()), extended/
reorganised showHalErrorMsg(). Removed no longer needed code
since we now are directly informed if HAL gone. Changed
updateTooltip() to get correct tooltip if HAL not running.
* src/pdaemon.[cpp/h]: reworked handling regarding to the changes
above and to handle new information about the tree central services
for KPOwersave (DBUS,powersave,HAL). Updated code doc.
* changed dependencies to powersave 0.12.18
because of needed changes related to REPLY_NO_RIGHTS.
2006-06-05 Danny Kukawka <>
* src/inactivity.cpp: added a check to catch the case, where (unknow
if this ever the case) the idletime is correct get from the X-Server.
2006-06-02 Danny Kukawka <>
* po/fi.po: updated translations back from SUSE/Novell translation
2006-06-02 Danny Kukawka <>
* src/config/kpowersaverc_default: added more programs to the
autosuspend default blacklist: gmplayer,kaffeine,xine,mencoder
2006-06-02 Danny Kukawka <>
* src/tdepowersave.cpp: added check before autosuspend, if autosuspend
was disabled via the applet menu
2006-06-02 Danny Kukawka <>
Code documentation fixes and updates to current code:
* doc/doxy/fixed_bugs.dox: Added fixed bug to list, back from
kpowersave-CODE10 branch.
* doc/doxy/implemented.dox:
* doc/doxy/process.dox:
* src/inactivity.cpp:
* src/infodialog.cpp:
* src/tdepowersave.cpp:
* src/kpowersave.h:
* src/screen.cpp:
2006-06-02 Danny Kukawka <>
* doc/doxy/fixed_bugs.dox: added fixed buginfo
* src/inactivity.[cpp,h]: Added new function to workaround XServer bug
regarding to idleTime (dpms timeouts are abstracted, but should not)
and DPMS timeouts (are currently additive - bug #180000). New function
correct the idleTime if needed (related SUSE bug: #177788 /
#1483392). For more info see comment in fixed_bugs.dox
Todo: evaluate if there is a way to identify the versions of X where
this was changed or get fixed.
2006-06-01 Danny Kukawka <>
* po/de.po: fixed german translation
2006-05-29 Danny Kukawka <>
* po/hu.po: updated translations back from SUSE/Novell translation
2006-05-27 Danny Kukawka <>
* po/{bg,da,el,es,fi,fr,it,ja,km,nb,nl,pa,pl,pt,pt_BR,ru,sk,sl_SI,sv,
tr,uk,zh_CN,zh_TW.}.po: merged two new dummy strings from pot file
2006-05-27 Danny Kukawka <>
* po/de.po: updated german translation
2006-05-27 Danny Kukawka <>
* po/{cs,hu}.po: updated translations back from SUSE/Novell
translation team
2006-05-27 Danny Kukawka <>
* po/{fi,km,pl}.po: fixed strings (from last typo fixes)
* po/kpowersave.pot: added dummy strings for better error messages if
powersaved or the DBUS daemon is not running or accessable.
2006-05-22 Danny Kukawka <>
* src/tdepowersave.cpp/h: (list_CPUFreqPolicys): Added dcop function to
list the supported CPU Frequency policies.
(do_setCPUFreqPolicy): Added dcop function to set the current CPUFreq
2006-05-22 Danny Kukawka <>
* src/tdepowersave.cpp/h: (do_setScheme): added new dcop function to
allow set the current scheme via kpowersave (see bug #1483392)
(disableAutosuspend): litte change, set first applet item to avoid
possible double action
2006-05-22 Danny Kukawka <>
* src/eventsrc: updated missing translations back from SUSE/Novell
translation team.
2006-05-22 Danny Kukawka <>
* po/de.po: fixed typo in german translation
2006-05-22 Danny Kukawka <>
* src/tdepowersave.cpp: (disableAutosuspend): fixed bug #1483392
and set changes on autosuspend state via dcop interface back to the
2006-04-25 Danny Kukawka <>
* src/eventsrc: added czech translations from SUSE/Novell translation
team, removed wrong translations of resume_from_suspend2ram_event
2006-04-24 Danny Kukawka <>
Added russian translations from Anton Farygin <>
* src/eventsrc:
* src/kpowersave.desktop:
* src/kpowersave-autostart.desktop:
2006-04-24 Danny Kukawka <>
* README: updated translation with file from Anton Farygin
* po/ru.po: Changed link to ALT Linux bugzilla
2006-04-24 Danny Kukawka <>
* src/eventsrc: fixed a description and translation in eventsrc
2006-04-18 Danny Kukawka <>
* kpowersave.tdevelop: updated version string for project to
"0.7.x - TRUNK"
2006-04-18 Danny Kukawka <>
updated svn:ignore properties
2006-04-18 Danny Kukawka <>
* src/*.cpp, src/*.h: removed doxygen \version tag from source files
to avoid annoying change of version with each new release.
2006-04-18 Danny Kukawka <>
* doc/doxy/fixed_bugs.dox: added fixed bug to list.
2006-04-18 Danny Kukawka <>
* added check for headers from dbus-qt3-devel
package (copied from KNetworkMananger source).
2006-04-18 Danny Kukawka <>
* src/detaileddialog.cpp: fixed processorbar for multiprocessor/
-core machines without CPUFreq or Throttling support, if a CPU/
Core was deactivated (thanks to Daniel fot the hint).
2006-04-18 Danny Kukawka <>
* src/pdaemon.cpp: fixed problems with remaining time until full
charged with APM. Also cleaned up the code and removed no longer
needed/useless checks. (see SUSE bug #167296)
2006-04-13 Danny Kukawka <>
Updated translations, back from SUSE/Novell translation team:
* po/fi.po:
* po/km.po:
* po/pl.po:
2006-04-12 Danny Kukawka <>
* doc/doxy/fixed_bugs.dox: added fixed bug to doc
* src/eventsrc: removed bad formated UTF8
2006-04-09 Danny Kukawka <>
Retagged v0.6.0 and released new version.
2006-04-09 Danny Kukawka <>
* ChangeLog.package, doc/doxy/changelog.dox: updated Changelogs
* NEWS: updated release news for v0.6.0
2006-04-09 Danny Kukawka <>
* doc/doxy/fixed_bugs.dox: added SUSE/Novell bug #164683
* src/detaileddialog.cpp: Added call setProcessorThrottling()
every 2 secs if throttling is supported or if there is more than
one CPU/core in the system. Added call checkCPUSpeedThrottling()
in setProcessorThrottling() to get always actual data. Fixed
connects to use local pointer to pdaemon object.
This all (including changes since 2006-04-07) should fix
SUSE/Novell bug #164683
* src/inactivity.cpp: fixed compiler warning
2006-04-09 Danny Kukawka <>
Added slightly adopted patch from Daniel Gollub to fake the CPU
system information in proc and sys for development and tests:
* added configure option --enable-fake-cpu
* src/pdaemon.cpp: added ifdef and related changes to fake
the path to the CPU informations under /tmp/foo
* src/pdaemon.cpp: fixed warning for compare unsigned and signed
2006-04-09 Danny Kukawka <>
* src/detaileddialog.cpp: set processorbar to deactivated if the
cpuspeed < 0 (cpu is offline) and the machine only support
* src/pdaemon.cpp: fixed throttling-case if cpu is offline
2006-04-08 Danny Kukawka <>
* src/detaileddialog.cpp: reduced usage of getCPUNum(), fixed
display processor freq, if the cPU is back from offline. Added
check to reduce unneded changes in processorbars if nothing changed.
* src/detaileddialog.h: added private variable to store the numbers
in the system
* src/pdaemon.cpp: reduced usage of getCPUNum() by replace with
a variable (numOfCPUs)
* src/pdaemon.h: added private variable to store the numbers in
the system
2006-04-07 Danny Kukawka <>
Tagged release v0.6.0
2006-04-07 Danny Kukawka <>
Released new version v0.6.0
2006-04-07 Danny Kukawka <>
* ChangeLog.package, doc/doxy/changelog.dox: updated changelogs
for release 0.6.0
* NEWS: updated release news for release 0.6.0
2006-04-07 Danny Kukawka <>
* src/pdaemon.cpp: changed waiting intervall for powersave on
startup from 10 sec to 20 to avoid problems on slow machines and
with autologin (again).
2006-04-05 Danny Kukawka <>
fixed date strings to last changes and reemoved the date from
the future:
* doc/cs/index.docbook:
* doc/de/index.docbook:
* doc/en/index.docbook:
* doc/fi/index.docbook:
* doc/hu/index.docbook:
* doc/nb/index.docbook:
* doc/pt/index.docbook:
2006-04-05 Danny Kukawka <>
Branch official stable release 0.6.0. Add two new Branches:
- kpowersave-CODE10 (for SUSE 10.1, SLES 10 and SLED 10)
- kpowersave-0.6 (general stable branch)
2006-04-05 Danny Kukawka <>
* po/de.po, src/eventsrc: fixed typos in german translations
* src/kpowersave-autostart.desktop, src/kpowersave.desktop:
copied missing translations from SUSE desktop files and
removed not translated strings
2006-04-04 Danny Kukawka <>
* src/tdepowersave.cpp: changed address for bug reports if this
is a SUSE package to opensuse wiki page for bug reports
* src/main.cpp: fixed address for bugreports in the about
dialog. This should be a mail adress, use now powersave-users ML.
* ChangeLog.package, doc/doxy/changelog.dox: updated Changelogs
* NEWS: updated release news.
2006-04-04 Danny Kukawka <>
Prepared offical stable release v0.6.0:
* ChangeLog.package, doc/doxy/changelog.dox: updated Changelogs
* NEWS: update release news
2006-04-04 Danny Kukawka <>
Prepare offical stable release 0.6 and remove kpowersave-CODE10
and kpowersave-0.6 branches to add new offical release 0.6.
Reason: kpowersave is now featurecomplete for CODE10 and STABLE
and 0.6 was not released outside SUSE.
* ChangeLog.package, doc/doxy/changelog.dox: backported Changes
from deleted branches
2006-04-04 Danny Kukawka <>
* doc/de/, doc/de/index.docbook, doc/de/*.png: Added new
german version of the handbook
2006-04-03 Danny Kukawka <>
* doc/doxy/enhance.dox, doc/doxy/process.dox: Updated gnome-screensaver
related enhancement request.
2006-04-03 Danny Kukawka <>
* src/screen.cpp: fixed fake shift keyevent, use correct keycode
and set delay to 0
2006-04-03 Danny Kukawka <>
Added support for GNOME Screensaver for lock in a GNOME desktop
* po/de.po, po/kpowersave.pot: added string for GNOME screensaver
* src/configuredialog.cpp, src/configuredialog.h: added GNOME
screensaver to configure dialog (only if a GNOME session is running)
* src/tdepowersave.cpp: Fixed detection of GNOME session
* src/screen.cpp, src/screen.h: Added support for detection of and
lock with GNOME screensaver
2006-04-02 Danny Kukawka <>
* src/config/kpowersaverc_default: added new configure variable
for emit faked keyevent after resume from suspend
* src/tdepowersave.cpp, src/kpowersave.h: added function to call
screen:fakeShiftKeyEvent() after resume
* src/screen.h: changed fakeShiftKeyEvent to public SLOT
* src/settings.cpp, src/settings.h: added read new variable
timeToFakeKeyAfterLock from config file
2006-04-01 Danny Kukawka <>
* src/ added -lXtst
* src/screen.cpp, src/screen.h: added new function so fake press
shift key to show the login screen on resume if the machine was
locked on supend.
2006-03-29 Danny Kukawka <>
* src/tdepowersave.cpp: fixed errorhandling for YaST power-management
module. Added returncode 16 (user clicked on Cancel) as successful
case to avoid error message.
2006-03-28 Danny Kukawka <>
Fixed UTF-8 in desktop files:
* src/kpowersave-autostart.desktop:
* src/kpowersave.desktop:
2006-03-27 Danny Kukawka <>
Branch stable release 0.6.0 for SUSE.
2006-03-27 Danny Kukawka <>
* ChangeLog.package, doc/doxy/changelog.dox: updated changelogs
2006-03-27 Danny Kukawka <>
* NEWS: added last changes
* doc/doxy/enhance.dox: added gnome-screen-saver related
feature request for 0.6.x code tree (at least for SLES/SLED).
2006-03-27 Danny Kukawka <>
Added older spec files for SUSE 9.3 and 9.2:
* packaging/SUSE9.2.kpowersave.spec:
* packaging/SUSE9.3.kpowersave.spec:
2006-03-27 Danny Kukawka <>
Updated spec files for upcomming stable version:
* packaging/FC4.kpowersave.spec:
* packaging/SUSE10.0.kpowersave.spec:
* packaging/SUSE10.1.kpowersave.spec:
* packaging/mdk.cooker.kpowersave.spec:
2006-03-27 Danny Kukawka <>
* NEWS: added release news
* README: Updated install section and added section with
dependency information and help/bugreport info
* updated powersave dependency to current
stable version 0.12.7
2006-03-27 Danny Kukawka <>
* doc/doxy/enhance.dox, doc/doxy/process.dox: Added new planed
features/enhancements for 0.7.x (devel)/0.8.x (stable) to the
2006-03-27 Danny Kukawka <>
Prepare new release (v0.6.0-stable):
* Doxyfile: updated version string for code doc
* src/*.{cpp,h}: updated version strings
2006-03-27 Danny Kukawka <>
* src/tdepowersave.cpp: fixed tooltip to avoid adding string for
charging battery (" -- battery is charging") if the battery is
full (100%) and the machine is on AC, but the battery is reporting
charging (broken ACPI case).
2006-03-27 Danny Kukawka <>
* po/*.po, po/kpowersave.pot: merged changes to po and pot file(s)
* src/configuredialog.cpp: fixed strings as proposed by Stefan
2006-03-27 Danny Kukawka <>
* po/bg.poi, po/da.po, po/el.po, po/km.po, po/nl.po, po/pa.po,
po/ru.po, po/sk.po, po/sl_SI.po, po/sv.po, po/tr.po, po/uk.po:
Added merged versions of translation files
2006-03-27 Danny Kukawka <>
Added patch from Michael Biebl:
* removed no longer needed check
* src/tdepowersave.cpp: fixed connect for autosusend notify on resume
2006-03-25 Danny Kukawka <>
* doc/fi/index.docbook: merged changes/fixes from the SUSE/Novell
translation team to the handbook
2006-03-25 Danny Kukawka <>
* po/es.po, po/fi.po, po/fr.po, po/it.po, po/ja.po, po/pl.po,
po/pt.po, po/pt_BR.po, po/zh_CN.po, po/zh_TW.po: Updated language
files with new translations from the SUSE/Novell translation team
2006-03-24 Danny Kukawka <>
Updated and merged translations of comment and GenericName strings
from the SUSE/Novell translation team:
* src/eventsrc:
* src/kpowersave-autostart.desktop:
* src/kpowersave.desktop:
2006-03-24 Danny Kukawka <>
* po/cs.po, po/de.po, po/hu.po, po/nb.po, po/pt.po: Updated
translations, back from SUSE/Novell translation team
* po/kpowersave.pot: added current pot file
2006-03-19 Danny Kukawka <>
* NEWS: added some infos for the next release
2006-03-19 Danny Kukawka <>
* src/*.png, src/pics/*.png: optimized the size of the applet icons
also with optipng and advdef
2006-03-19 Danny Kukawka <>
* doc/$LANG/*.png: optimized the size of the png files
additional with advdef -z -4. This reduce the file minus
~ 3%
2006-03-19 Danny Kukawka <>
* doc/$LANG/*.png: optimized the size of the png files with
optipng -i0 -o5. This reduced the size of the files between
minus ~18% and ~28%
2006-03-19 Danny Kukawka <>
* src/pics/cr22-action-laptoppower.png: fixed some pixel
2006-03-19 Danny Kukawka <>
* kpowersave.tdevelop: some automatic changes from tdevelop
* src/ Added new files (inactivity.*)
* src/autosuspend.cpp, src/autosuspend.h: moved basic code to
a new class inactivity for reuse on dimm brightness on incativity
* src/inactivity.cpp, src/inactivity.h: new files/class with
basic functions to detect inactivity and check blacklist
* src/tdepowersave.cpp: changed name of signal for autosuspend
2006-03-19 Danny Kukawka <>
* src/pdaemon.cpp: changed adding scheme to schemelist. First add
the scheme to list and then set specific schemes.
* src/schemes.cpp: Removed some todos and added checks to the
adding of specific schemes as e.g. ac_scheme. Set the specific
scheme only if the scheme is in the scheme list. Added check to
append() to avoid add scheme multiple times.
2006-03-19 Danny Kukawka <>
* src/detaileddialog.cpp: fixed set processor bar for the first
open of the dialog.
2006-03-16 Danny Kukawka <>
* src/pdaemon.h: changed possition of include for Slackware to
be sure that config.h is loaded befor the check.
2006-03-13 Danny Kukawka <>
* src/configuredialog.cpp: added string dummys for scheme specfic
CPU hotplugging support in the next development tree and planed
feature for CODE 10 SP1.
Added some additional strings for 'Dimm dispaly on inactivity'.
All this strings added for new translation round.
* src/tdepowersave.cpp: Added some string dummys for translate
s2ram message
2006-03-13 Danny Kukawka <>
* src/main.cpp: updated code documentation and copyright header
2006-03-13 Danny Kukawka <>
tagged release v0.5.11 (rc5)
2006-03-13 Danny Kukawka <>
Prepared new release 0.5.11 (rc5):
* ChangeLog.package, doc/doxy/changelog.dox: udapted changelogs
* NEWS: added release news for 0.5.11
* src/*.cpp, src/*.h: updated version in code doc
2006-03-13 Danny Kukawka <>
* src/detaileddialog.cpp: added slightly adopted patch from Timo
Hoenig <> to replace 'Mhz' with correct 'MHz'
* po/*.po, po/kpowersave.pot: updated translation files for this
2006-03-13 Danny Kukawka <>
* doc/fi/index.docbook: fixed names of screenshots
* po/fi.po: updated from SUSE/Novell translation team
* po/pt.po: updated version from Hugo Costelha
* src/eventsrc: added translation for Portuguese from Hugo Costelha
2006-03-12 Danny Kukawka <>
* src/configuredialog.cpp: hide 'lock in lidclose' checkbox if the
machine is not a laptop
2006-03-12 Danny Kukawka <>
* src/pdaemon.cpp, src/pdaemon.h: fixed double include and moved
one include to cpp-file instead of header to avoid unneeded includes
2006-03-12 Danny Kukawka <>
* src/pdaemon.cpp, src/pdaemon.h: added function to check if the
machine is a Lpatop or not.
2006-03-12 Danny Kukawka <>
Prepared for QT4 where TRUE is depricated. Replaced with true.
* src/blacklisteditdialog.cpp:
* src/detaileddialog.cpp:
* src/tdepowersave.cpp:
* src/pdaemon.cpp:
* src/pdaemon.h:
* src/settings.cpp:
2006-03-11 Danny Kukawka <>
Code documentation related cleanups, added new todo
* src/configuredialog.cpp:
* src/dbusPowersave.h:
* src/detaileddialog.cpp:
2006-03-11 Danny Kukawka <>
* src/pdaemon.cpp: added a check to setBrightness() which should
prevent set the lowest brightness level if this is not the same as
level from BrightnessMin. This should avoid set off the display
via scheme specific brightness settings (e.g. on ppc/pmu where
lowest level 0 mean display off). (I don't like this fuzzy work-
around, but the powersave brightness interface does not work as
I would prefer ... atm)
* src/pdaemon.h: added new private variable for the number of
available brightness level to avoid unneeded dbus calls, extended
setBrightness() with a force_min option to force the given value.
2006-03-11 Danny Kukawka <>
* src/configuredialog.cpp, src/configuredialog.h,
src/detaileddialog.cpp, src/detaileddialog.cpp:
renamed: s/maxBrightnessLevels/brightnessLevels/
* src/pdaemon.cpp, src/pdaemon.h: renamed variable and function
related to get the number of availabale brightness level, added new
helper function to simply get a integer value from powersave via DBUS
- this should reduce the code in this class, replaced code with call
the new helper function simpleGetIntegerValue(...)
2006-03-10 Danny Kukawka <>
* removed SVN property executable from several files
2006-03-09 Danny Kukawka <>
* src/detaileddialog.cpp: applied patch from Daniel Gollub to set the
processor icon correct if no battery is available and the battery
groupbox is hide.
2006-03-09 Danny Kukawka <>
* src/schemes.cpp, src/schemes.h: added missing code documentation
2006-03-09 Danny Kukawka <>
* src/kpowersave.h: whitespace fix
* src/tdepowersave_debug.h: added copyright header and a doxygen comment
2006-03-09 Danny Kukawka <>
* Doxyfile: updated EXCLUDE filelist related to the last name changes
of sourcefiles
2006-03-08 Danny Kukawka <>
Added patch from Holger Macht <> to allow root always
to suspend/standby machine.
* src/tdepowersave.cpp: Added check if current user is root and use
* src/pdaemon.cpp: If user is root set suspend/standby always to
2006-03-08 Danny Kukawka <>
* Doxyfile: Changed version from CVS-HEAD to SVN-trunk
* doc/doxy/enhance.dox: reorganized items and added new enhancement
for dimm display on inactivity
* doc/doxy/main.dox: updated infos and dependencies, added list
of distributions for which KPowersave is available and the related
* kpowersave.tdevelop: automatical changes from tdevelop
2006-03-07 Danny Kukawka <>
tagged release v0.5.10 (rc4)
2006-03-07 Danny Kukawka <>
* po/pl.po, src/eventsrc: added pl translations from Dawid Wróbel
* src/kpowersave-autostart.desktop, src/kpowersave.desktop: added
pl translations from Dawid Wróbel <> and cs translation
from the SUSE/Novell translation team
2006-03-06 Danny Kukawka <>
* ChangeLog.package, doc/doxy/changelog.dox: added last change to
the changelogs for the release
* NEWS: added info for new dependeny
* added check for powersave >= 0.12.2
2006-03-06 Danny Kukawka <>
Prepared new release 0.5.10 (rc4):
* ChangeLog.package, doc/doxy/changelog.dox: updated changelogs
* NEWS: added release news
* src/*.cpp, src/*.h: updated release version strings
2006-03-06 Danny Kukawka <>
* src/config/kpowersaverc_default: added new config key to disable
force dpms of on lidclose
* src/tdepowersave.cpp, src/kpowersave.h: Added new function to handle
lidopen event (now reset screen settings to avoid problems after call
xset on lidclose). Added call screen::forceDPMSOff() on lidclose to set
light on LCD off. Removed notification functions for lidclose and
lidopen Q_SIGNALS and merged them to existing functions/Q_SLOTS.
* src/screen.cpp, src/screen.h: added new function forceDPMSOff() to
shutdown the display via DPMS (call xset dpms force off).
* src/settings.cpp, src/settings.h: adde new variable and related
read from config file to enable/disable force dpms off on lidclose.