File kpowersave.spec of Package kpowersave

#
# spec file for package kpowersave (Version 0.7.3_svn3167)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           kpowersave
Url:            http://sourceforge.net/projects/powersave/
BuildRequires:  dbus-1-qt3-devel dummy-release hal-devel kdelibs3-devel lsb
License:        GPL v2 only
Group:          System/GUI/KDE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        KDE Frontend for Battery Monitoring, Suspend, CPU Freq and General Power Management Support
Version:        0.7.3_svn3167
Release:        1
ExclusiveArch:  %ix86 x86_64 ia64 ppc ppc64
Requires:       /sbin/pidof xorg-x11
Source:         %{name}-%{version}.tar.bz2
%if %suse_version > 1020
Requires:       %{name}-lang = %{version}
%endif

%description
KPowersave provides battery monitoring, CPU frequency control and
suspend/standby triggers, and more power management features for KDE.
It uses HAL (formerly the powersave daemon) and supports APM and ACPI
for several architectures. Together with the powersave package and the
YaST power management module, it is the preferred package that should
be used for battery monitoring and control of power management related
tasks.



Authors:
--------
    Thomas Renninger (trenn@suse.de, mail@renninger.de)
    Danny Kukawka (dkukawka@suse.de, danny.kukawka@web.de)

%if %suse_version > 1020
%lang_package
%endif

%prep
%setup -n %{name}-%{version} -q
echo "BUILD_DIST: $BUILD_DIST"
. /etc/opt/kde3/common_options
update_admin

%build
. /etc/opt/kde3/common_options
%if 0%{?sles_version} > 0
./configure --enable-yast-entry --enable-suse-sles
%else
./configure 
%endif
make %{?jobs:-j %jobs}

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
%suse_update_desktop_file %name Utility TrayIcon
%find_lang %name

%post
%{run_ldconfig} 

%postun
%{run_ldconfig} 

%clean
rm -rf $RPM_BUILD_ROOT
%if %suse_version > 1020

%files lang -f %name.lang

%files
%else

%files -f %name.lang
%endif
%defattr(-,root,root)
%doc README AUTHORS ChangeLog COPYING INSTALL NEWS
/opt/kde3/bin/*
/opt/kde3/share/config/kpowersaverc
/opt/kde3/share/autostart/kpowersave-autostart.desktop
/opt/kde3/share/apps/kpowersave
/opt/kde3/share/icons/??color
/opt/kde3/share/applications/kde/kpowersave.desktop
/opt/kde3/lib*/kde3/kpowersave.*
/opt/kde3/lib*/libkdeinit_kpowersave.*

%changelog
* Thu Nov 20 2008 dkukawka@suse.de
- updated to latest SVN (r3267):
  - updated translation files, added new korean and thai files
  (see also bnc#445779)
* Mon Nov 10 2008 dkukawka@suse.de
- updated to latest SVN (r3265):
  - fixed autosuspend problems (bnc#441352)
* Fri Nov 07 2008 hmacht@suse.de
- remove kpowersave-energy-star.patch (fate#305393)
* Fri Sep 19 2008 ro@suse.de
- buildreq dummy-release instead of openSUSE-release
  (use rpm macros for other tests if really needed)
* Fri Sep 12 2008 hmacht@suse.de
- kpowersave-energy-star.patch: Enable Energy Star compliant
  default configuration (fate#304708)
* Wed Jun 18 2008 dkukawka@suse.de
- update to latest SVN (r3263):
  - fix for bnc#401214: force recheck of policy/permissions on
  session state changes to prevent trouble after resume
* Mon Jun 09 2008 dkukawka@suse.de
- updated to latest SVN (r3262):
  - added 18 test cases to source (./testcases/case_*)
* Mon Jun 09 2008 dkukawka@suse.de
- updated to latest SVN (r3161)
- fixed bugs:
  - bnc#396241: add zypper and rpm to autosuspend blacklist to
  prevent autosuspend whule update process
* Fri Jun 06 2008 dkukawka@suse.de
- updated to latest SVN (r3160)
- fixed bugs:
  - bnc#397871
  - bnc#395042#c10 / bnc#395042#c17
- removed patches:
  - kpowersave-enable_do_setScheme.diff
  - kpowersave-fix-bnc392877.diff
  - kpowersave-svk_r3169.diff
  - kpowersave-svn-r3155.diff
  - kpowersave-svn-r3156.diff
  - kpowersave-svn_r3115-r3132.diff
* Mon May 26 2008 dkukawka@suse.de
- added new patches:
  - kpowersave-svn-r3156.diff: an other fix for bnc#392877 for
  problems with detailed dialog on multi battery systems
  - kpowersave-svn-r3155.diff: first step to fix bnc#385312, added
  code to differ between KDE3, KDE4 and GNOME
* Fri May 23 2008 dkukawka@suse.de
- added new patch:
  - kpowersave-fix-bnc392877.diff: fix for bnc#392877. The kernel
  removes the whole power_supply device if a battery get removed
  from the bay. handle now this new behavior
* Wed Jan 23 2008 dkukawka@suse.de
- added new patch:
  - Added new dcop function: isOnBattery() to get the info if the
  machine is on battery or not.
* Wed Jan 09 2008 dkukawka@suse.de
- updated to current SVN HEAD (kpowersave-svn_r3115-r3132.diff)
- removed patches:
  - kpowersave-svn_r3117.diff
  - kpowersave-fix-batteryRescanOnResumeNotify.diff
- fixed bugs:
  - b.n.c #349083: force set scheme if session get active again
* Wed Dec 12 2007 dkukawka@suse.de
- added new patch:
  - kpowersave-fix-batteryRescanOnResumeNotify.diff: Add a 1.5sec
  timeout after resume to not change the applet icon to a
  battery warning state or notify about state changes to prevent
  trouble while hal rescan battery and other devices.
- fixed bugs:
  - b.n.c #333744: see above
* Mon Dec 10 2007 dkukawka@suse.de
- added patch:
  - kpowersave-enable_do_setScheme.diff: reenable do_setScheme()
  DCOP call (for hschaa)
* Fri Nov 02 2007 dkukawka@suse.de
- updated to SVN r3117:
  - show 'Power Consumption' only on discharging
  - s/Consumtion:/Consumption:/
  - fixed bugs:
    - b.n.c #327442: be sure that 'specific display PM' is enabled
  before change the state of the DPMS related
  objects (enabled/disabled).
* Mon Sep 17 2007 dkukawka@suse.de
- released KPowersave 0.7.3:
  - Changed return value types (uint to int) due to changes in HAL
  and our HAL package
  - reworked code for mouse wheel events to reuse code for
  brightness key events
  - When use DBUS_TYPE_BOOLEAN use as variable type dbus_bool_t
  to avoid possible trouble on big endian machines
  - prepared KPowersave to work also with HAL >= 0.5.10
  (handle renamed policy names in HAL)
  - updated translations: cs, zh_CN, fi, pt, de, sl_SI
  - enable build also for ppc64 (may be usefull for PS3)
  - updated NEWS, Changelogs etc due to new release
  - fixed bugs:
    - b.n.c #307431: (prevent AC notifications if session state
  get changed)
    - b.n.c #309491: (fix crash if started in GNOME)
    - b.n.c #293707: (missing space between text and ellipsis)
* Thu Aug 30 2007 dkukawka@suse.de
- updated to current HEAD v0.7.2_SVN20070830 (r3066):
  - fixed bugs:
    - b.n.c #302493 (don't use kdFatal() befor call exit(-1), it
  would only look like a crash)
* Mon Aug 27 2007 dkukawka@suse.de
- updated to current HEAD v0.7.2_SVN20070827 (r3065):
  - force update detailed dialog on AC events to get always e.g.
  the correct scheme info in the dialog
  - fixed bugs:
    - b.n.c #301692 (fix again detection of session state, fixed
  possible segfault on ix86)
* Sun Aug 26 2007 dkukawka@suse.de
- updated to current HEAD v0.7.2_SVN20070826 (r3063):
  - fixed configure to undef ENABLE_YAST_ENTRY if the Yast entry
  should not get added to the applet menu
- fixed spec-file to don't use --enable-yast-entry as configure
  option on openSUSE >= 10.3 (b.n.c #299577)
* Sat Aug 25 2007 dkukawka@suse.de
- updated to current SVN HEAD v0.7.2_SVN20070826 (r3062):
  - translation files:
    - updated: ar,bg,cs,el,es,fr,ja,nl,pa,pt_BR,tr
    - removed largely untranslated files: sk,sl_SI
    - added new: hi,lt
  - fixed configure script to detect if we should use HAL to get
  information about policies instead of PolicyKit
  - fixed bugs:
    - b.n.c #301692 (no scheme switch on AC event because of
  missdetected Session state)
    - b.n.c #303963 (fix segfault if XDG_SESSION_COOKIE is not set)
* Mon Aug 20 2007 dkukawka@suse.de
- updated to current SVN HEAD v0.7.2_SVN20070820 (r3057):
  - fixed/cleaned up brightness handling/code
  - dimm brightness up if user get inactive in 750ms instead of
  1500ms
  - added new DCOP functions to get, set up/down brightness
  - fixed typo to show up the logviewer dialog if suspend fail
  - added new dialog shown up 30 seconds before autosuspend call
  the suspend to warn the user and allow chancel the suspend
  - don't show yast module applet entry for openSUSE >= 10.3
  - added code to work with new PolicyKit/ConsoleKit/HAL combi
  to check if the user is privileged
  - added code to check if the current desktop session is avtive
  and handle if the session get inactive (for more see Changelog
  of the pacakge)
  - added code to release/aquire org.freedesktop.Policy.Power if
  the session get inactive/active to allow powersaved or other
  active KPowersave instances to handle powermanagement
  - fixed parameter types for call of SetPowerSave() on HAL
  - comment out calls of getSchedPowerSavings(), the needed HAL
  interface didn't make it into HAL yet
  - fixed several compiler warnings
  - removed Portuguese version of the help, since only one
  paragraph was translated
  - updated translations: da,de,el,fi,hu,it,km,nb,pa,pl,pt,ru,sv,uk
  - fixed bugs:
    - b.n.c #298332 (crash, fixed typo)
    - b.n.c #299577 (Yast module)
    - b.n.c #282640 (brightness up/down handling)
    - b.n.c #182609 (autosuspend warn dialog, feature request)
    - b.n.c #301692 (fix switch schemes on AC events)
* Sun Aug 05 2007 ro@suse.de
- dropped requires for yast2-power-management (dropped package)
* Tue Jul 24 2007 dkukawka@suse.de
- updated to current SVN HEAD v0.7.2_SVN20070724 (r3000):
  - reworked brighness support detection to workaround a bug in
  HAL on some DELL laptop machines if laptop_panel.num_levels
  is 1 which mean in fact the machine don't support brightness.
  - set more useful default values for autoDimmTo in config file
  - use float for internal calculation of battery values
* Tue Jul 24 2007 dkukawka@suse.de
- updated to current SVN HEAD v0.7.2_SVN20070724 (r2998):
  - added new feature: autodimm (see b.n.c #274705)
  - added some initial base code for planed new features:
    - get-/setSchedPowerSavings
  NOTE: not available to the user atm
  - call setPowerSave() always depending on the AC state if a
  scheme get set. This should fix problems on startup.
  - Added new config variable (callSetPowerSaveOnAC in [General]
  section) to disable call SetPowerSave() on HAL.
  - Fixed Segmentation Fault from b.n.c bug #284622.
  - added arabic po-file from Youssef Chahibi <chahibi@gmail.com>
  - fixed laptop panel/backlight device handling to react if a
  device get added/removed to/from HAL
  - use now kdebug/kdDebug() functions to debug instead of own
  macros, added --dbg-trace option to allow trace function entry
  and leave points.
  - fix code to guess if a 6-hour-timeout occours while suspend/
  resume or if there was really a error
  - fixed return value handling for SetPowerSave() on HAL
  - make also AC Adapter events intependent from QT3/D-Bus event
  loop.
  - code cleanups
* Fri Jun 15 2007 stbinner@suse.de
- fix lang requirement after split
* Thu Jun 14 2007 stbinner@suse.de
- seperate translations into special subpackage
* Wed May 09 2007 dkukawka@suse.de
- updated to current SVN HEAD v0.7.2_SVN20070509:
  - added more debug messages to trace function calls
  - fixed detection if brightness is really supported by the system
  - change default timeout to fake keyevent for locked screen to
  2.5 seconds
  - don't fake key event after locked screen and lidopen if config
  variable timeToFakeKeyAfterLock < 0
  - Added support to handle brightness key events if the machine
  not already handle this in the hardware directly (as e.g.
  IBM/Lenovo Thinkpads). The events get directly translated to
  change the brightness level +-1 per key event.
* Tue Apr 24 2007 dkukawka@suse.de
-  updated to current SVN HEAD v0.7.2_SVN20070424:
   - changed set CPU Freq governor to reuse code and integrated
  patch for b.n.c #229234
   - fixed b.n.c #266243: check if info.capability contains
  laptop_panel instead for info.category
* Wed Apr 18 2007 dkukawka@suse.de
- Updated to current SVN HEAD v0.7.2_SVN20070418:
  - fixed wrong unit for power consumption (removed 'h' from unit)
  - removed old powersave daemon related code and strings from
  actual messages
  - added new dialog to show logfiles if a suspend/resume fail
  (need a patch for pm-utils to return not always 0) and allow
  the user to save the log
  - added wodim to autosuspend blacklist
  - force settings for current battery warning level if they
  get changed via config dialog
  - fixed problems with usage of enum cpufreq_type: don't assign
  integer values to a enum (lead to segfault since enum is a
  8bit char object)
  - changed logic for resume if a timeout happen
  - only suspend on button events if we resumed (successful) to
  avoid double suspends
  - several fixes to make signals from HAL/DBus idependent from
  the QT eventloop due to problems with the QT3 DBus bindings
  (should also fix Debian bug #413811)
  - several fixes realated to segfaults/crashes
  - moved unused strings to new dummy class/file
  - cleanup code and removed doubled code
  - patches from Mandriva (lmontel@mandriva.com):
    - fixed problems with formated messages from KDE media manager
    - avoid double translate strings/msg
    - Make moc files being included to speed up build and to fix
  some parallel build issues
    - fixed several memory leaks
  - fixed bugs:
    - Debian #413638: if config dialog is minimized and the user
  try to start config dialog via applet reactivate the dialog.
    - Debian #413811
    - (K)Ubuntu: https://launchpad.net/bugs/94396: stop autosuspend
  before suspend
    - b.n.c #257326: ignore battery warnings if on AC
    - b.n.c #256372: make HAL events independent from QT eventloop
* Mon Mar 12 2007 schwab@suse.de
- Restore fallback to userspace governor.
* Mon Mar 12 2007 dkukawka@suse.de
- removed part of the patch. See comments in bug #229234
* Sun Mar 11 2007 schwab@suse.de
- Fix crash.
- Properly fall back to userspace governor.
* Wed Feb 14 2007 dkukawka@suse.de
- released new version 0.7.2:
  - changes (for more see NEWS/Changelog file in the source):
    - extended configure dialog to provide this functionality:
  * schemes settings:
       - add new and delete existing (no default) schemes
       - define a CPU Frequency policy for each scheme
  * general settings:
       - define battery warning levels and actions if a level
  reached as e.g. Suspend to disk, Shutdown or change the
  display brightness
       - configure actions for button events (Power/Lid/Suspend/
  Sleep buttons)
       - define the default AC and battery schemes
    - show the power consumtion of the battery in the detailed info
  dialog
    - umount external media before suspend (need a patch of the KDE
  media manager) to avoid data loss and remount on resume
    - reset the CPU Freq settings on resume to avoid different
  settings for the CPU governor on multicore machines
    - call now SetCPUFreqConsiderNice(), SetCPUFreqPerformance() on
  dynamic CPU Freq policy (as poweruser setting only changeable
  via config file), and also SetPowerSave() with true on
  battery and false otherwise.
    - support also conservative governor as DYNAMIC fallback
    - fixed brightness handling in the configure dialog if not
  activated
    - removed accelerator tags from i18n() strings. KDE handle this
  by itself. Improved config GUI to be better accessible via
  keyboard.
    - code and code documentation cleanups and updates
  - fixed bugs (from bugzilla.novell.com if no other comment):
    - #245081: KPowersave does not set (ondemand) governor on
  startup
    - #244052: Close lid of a laptop and suspend to ram cause
  100%% CPU usage
    - #229960: CPUFREQ_DYNAMIC_PERFORMANCE seems to be ignored
  during boot and scheme change
    - #230686: KPowersave need to be restarted to apply changed
  DPMS settings
    - #230965: puzzling battery state info
    - #231709: kpowersave-0.7.1-12: comparison with string literal
    - #231184: KPowersave crashes due to uninitalized LibHalContext
    - #229234: KPowersave does not fall back to userspace governor
    - #215262: Suspend to disk with attached usb storage not
  working
    - #223164: After suspend, second core has performance governor
  set
    - #223517: Powersave: CPU scheme "dynamic" reduces speed if
  only nice -19 processes run
    - #223637: kpowersave crashes in first login
    - #225212: KPowersave crash on ThinkPad X60s
    - #221715: Functionality for configuring lid close event etc.
  missing in KPowersave
    - #223922: System not shuting down on pressing power button
  - updated translations:
    - german:  Danny Kukawka
    - danish:  Stefan Skotte
    - turkish: S.Çağlar Onur
    - chinese: Zhengpeng Hou
* Tue Nov 21 2006 dkukawka@suse.de
- fixed bugs:
  - b.n.c #220289: emit warning messages only on discharging
  - fixed applet tooltip to show correct battery info if the
  machine is charging
* Mon Nov 20 2006 dkukawka@suse.de
- released new version 0.7.1:
  - closed bugs: #220271, #220222, #220212, #220553, #167919
  - KPowersave should now basicly provide the same major functions
  as last stable version of KPowersave. For more read NEWS and
  Changelog.
* Tue Nov 14 2006 schwab@suse.de
- Remove bogus startup check.
* Mon Nov 06 2006 dkukawka@suse.de
- release new version 0.7.0:
  - changes:
    - depends no longer on powersave, use now only DBUS/HAL
  - known issues/bugs:
    - scheme switching does not work (also not on AC events)
    - currently no reaction if battery reach a warning state or
  is emptry !!!
    - complete brightness support untested
    - lock screen (on lidclose/suspend) untested
* Sat Oct 28 2006 ro@suse.de
- completely disable all dbus parts to avoid crash for the moment
* Mon Oct 23 2006 dkukawka@suse.de
- added patch:
  - kpowersave-disable_errorMsg.diff: disable DBUS/HAL/powersave
  error messages for now.
* Thu Oct 12 2006 ro@suse.de
- just get it to build for the moment
  functionality is severely limited
* Tue Sep 12 2006 aj@suse.de
- Adjust BuildRequires.
* Tue Aug 22 2006 schwab@suse.de
- Fix broken dependency.
* Wed Jun 14 2006 dmueller@suse.de
- build parallel
* Sun Jun 11 2006 dkukawka@suse.de
- released offical update version 0.6.2 with following changes:
  - KPowersave depends now on powersave >= 0.12.18
  - fixed bugs:
    - sf.net #1483392/ SUSE #177792: set changes for autosuspend
  state via DCOP back to the applet menu, added DCOP functions
  to set the current scheme, the current CPUFreq policy and to
  open/close the detailed dialog.
    - sf.net #1483392/ SUSE #177788,180000: added workaround to
  fix two bugs in the DPMS- and Screensaver extension of X,
  related to autosuspend and detect user inactivity, which
  prevent autosuspend within the timeout escpecially if the
  autosuspend timeout is longer than a DPMS timout.
  Problems: DPMS timeouts are abstracted from current idle
  time, but shouldn't and DPMS timeouts are currently additive,
  but the spec say they should all start together at zero.
    - SUSE #168619: changed errorhandling if HAL, DBUS or the
  powersave daemon is not running or if the user has not the
  needed rights to access the powersave daemon via DBUS.
  Added new errormessages and translations.
    - SUSE #182515: Changed configure dialog to respect rules for
  DPMS timeouts (a timeout must be larger than the prior state)
    - SUSE #176782: patch from Timo Hönig <thoenig@suse.de> to
  allow (if hardware supported and enabled in the scheme)
  change brighness via mousewheel over the applet icon.
    - SUSE (SLED) #183745: fixed detection of SUSE Linux/SLES/SLED
  and added configure option to force SLES/SLED as distro
  with --enable-suse-sles. Fixed bugzilla link for SLED/SLES
    - SUSE #184076: fixed wrong command to start dbus daemon in
  errormessage.
    - added additional check before autosuspend if this was
  disabled via applet to avoid autosuspend if it was temorary
  disabled by the user
  - added new configure check to detect Ubuntu/Kubuntu
  - changed link to Ubuntu bugzilla to launchpad.net and use now
  the same link for applet menu entry "Report a bug ..." if
  compiled for Ubuntu/Kubuntu
  - updated default blacklist for autosuspend with gmplayer,
  kaffeine,xine,mencoder
  - updated translation: cs, de, es, fi, fr, hu, it, km, pl, pt_BR,
  zh_CN,zh_TW
  - updated (cs) and fixed translation of eventsrc for KNotify
  - fixed and updated code documentation
* Mon Apr 24 2006 dkukawka@suse.de
- released official update version 0.6.1 with following changes:
  - fixed bug #168838; event for resumeFromSuspendToDisk displayed
  twice in knotify dialog (typo and translation issue in eventsrc)
  - updated russian translations including desktop files and
  eventsrc from Anton Farygin <rider@altlinux.com>
* Tue Apr 18 2006 dkukawka@suse.de
- released update version 0.6.1 with following changes:
  - fixed SUSE bug #167296: fixed tooltip and removed unneeded
  checks for battery related infos. Should fix display wrong
  remaining time on charging with APM
  - fixed SUSE bug #165462: removed utf8 tag from eventsrc which
  results in "unknown source ..." message in knotify dialog
  - fixed detailed dialog for multiprocessor/-core machines without
  CPUFreq or throttling support and offline CPUs/Cores
  - updated transaltions (fi,km,pl)
  - added configure check for dbus-1-qt3-devel headers
* Sun Apr 09 2006 dkukawka@suse.de
- rereleased official stable version 0.6 with this changes:
  * fixed bug #164683 (fixed detailed dialog for machines without
  CPUFreq support and more than one CPU/Core and/or throttling)
  * reduced unneeded calls of getCPUNum()
  * added fix from Daniel Gollub to be able to fake CPU info from
  /proc and /sys for development and QA tests
  * fixed compiler warnings
* Tue Apr 04 2006 dkukawka@suse.de
- released official stable version 0.6 with this changes:
  * added german version of the handbook
  * added support for lock screen via gnome-screensaver (only under
  GNOME)
  * added fake keyevent (shift) after resume if machine was locked
  before suspend, to show the login dialog automatically
  * fixed errorhandling for YaST power management module
  * fixed bug report address in the about dialog (to
  powersave-users@forge.novell.com)
  * changed timeout for recheck powersave on startup from 10 secs
  to 20 to avoid annoying messages on slow machines or autologin
  * changed address to report bugs if distro is SUSE, which is used
  via the applet menu, to opensuse.org wiki page.
  * fixed errorhandling for YaST power management module
* Tue Mar 28 2006 dkukawka@suse.de
- fixed UTF-8 in desktop files
* Mon Mar 27 2006 dkukawka@suse.de
- updated to new stable release 0.6.0:
  - changed powersave dependency to stable version >= 0.12.7
  - reduced the size of the package by optimize the size of
  included png files.  The size off all png files is now reduced
  by ~709KByte.
  - fixed processor bar in detailed dialog to set correct for the
  first call.
  - fixed tooltip for machines which always report charging also
  if 100%% charged and on AC
  - fix notify about autosuspend after resume and a remove no
  longer needed check from configure
  - translation updates
  - updated README with install/compile and help/bugreport
  information
  - updated code docu (added planed features/enhancements for
  0.7/0.8 tree)
  - updated spec files for packaging
* Mon Mar 13 2006 dkukawka@suse.de
- updated to new release 0.5.11-rc5:
  * added function to check if the machine is a laptop to allow
  hide laptop specific widget items if the machine is a
  workstation (in this case: 'Lock screen on Lidclose'-checkbox)
  * changed brightness settings to allow only to change to min
  defined brightness level. This should avoid off the display
  on schemeswitch e.g. on new pmu brightness interface
  * reworked some parts of the code, cleanups
  * added patch from Holger Macht to allow root always s2ram
  * translation updates
  * replaced TRUE, which is deprecated with QT4, with true
  * code documentation adds, updates and fixes
  * fixed file attributes for several files from SVN
* Mon Mar 06 2006 dkukawka@suse.de
- updated to new release 0.5.10-rc4:
  * KPowersave depends now on: powersave >= 0.12.2
  * fixed lidclose handling: added call xset to off the backlight
  of LCD displays and reset DPMS settings on lidopen
  * fixed read throttling state for multiprocessor machines
  (patch from Daniel Gollub <dgollub@suse.de>)
  * fixed display processor infos on multiprocessor/-core machines
  dislay now values for each CPU/core also on non CPUfreq and
  non-throttling machines
  * fix to display battery infos only if at least min. one battery
  slot is available
  * translation updates (po files and handbook) from SUSE/Novell
  translation team and Dawid Wróbel <cromo@klej.net>
  * added and updated screenshots for handbook
  * added missing icon on non-SUSE distributions
  * autotools releated fixes: better detection of Mandriva, use
  now pkgconfig from powersave for checks and linking, read
  name/location of dbus system socket from pkgconfig.
  * added rpm-spec file for Mandriva 2006.1
  * pics cleanups (removed no longer files)
* Tue Feb 28 2006 dkukawka@suse.de
- removed patch from schwab@suse.de on ix86 and x86_64. Note: this
  patch is not correct/complete and unsupported
* Mon Feb 27 2006 dkukawka@suse.de
- updated to new release 0.5.9-rc3:
  * fixed APM battery and processor info support in the information
  dialog and the applet tooltip (need a fix in powersave)
  * fixed battery state in the info dialog if no battery is
  available (need a fix in powersave)
  * translation and handbook fixes/updates
* Mon Feb 27 2006 schwab@suse.de
- Remove useless ACPI check [#141957].
* Mon Feb 20 2006 dkukawka@suse.de
- fixed problem with pidof on Fedora Core 4. Removed path to pidof
  from call because pidof should be in PATH of user env.
* Mon Feb 20 2006 dkukawka@suse.de
- updated to new release 0.5.8-rc2:
  * removed sound settings from configure dialog and added KNotify
  support and more events, KNotify config dialog is available via
  applet menu and in the configure dialog
  * added dcop function to open configure dialog
  * fixed path to powersaved in code and translations to be more
  portable (Michael Biebl)
  * fixed cpu info in the info dialog to display also for machines
  which only support throttling (Daniel Gollub/Danny Kukawka)
  * fixed battery part in the info dialog to have same sized
  progressbars
  * fixed strings in the code, fixed sting in tooltip if charging
  (see #146492)
  * removed no longer needed parts from handbook
  * updated translations related to the changes
  * cleanups (code and files)
* Mon Feb 13 2006 dkukawka@suse.de
- updated to new release 0.5.7-rc1:
  * fixed bugs:
  * fixed again problems write text if CPU Freq Policy not
  supported
  * autotools releated fixes (Michael Biebl)
  * added brightness support and battery state info to detailed
  dialog overview
  * updated translations: bg,cs,es,fr,it,ja,pt,nb,pt_BR,zh_CN,zh_TW
  * added translation: km
  * added new handbook: Finnish
* Mon Feb 06 2006 dkukawka@suse.de
- updated to new release 0.5.6:
  * fixed bugs:
    - detailed dialog:
  * removed connect setProcessor() to signals from powersave
  because of excessive CPU usage
  * fixed problems write text if CPU Freq Policy not supported
  * fixed autosuspend (replace path to pidof and added error
  msg if call of pidof fails to be more portable)
  * fixed auto-tools related issues
  * cleanups (removed unneeded enum defines and replaced with
  defines from powersave)
  * added ifdef'd header for Slackware 10.2
  * added summary battery progress bar if more than one batterybay
  is available
  * updated translation files (nb,nl,pl,pt,zh_CN)
  * added new helpfiles for Czech and Portuguese (not complete
  translated), removed some pics to reduce package size
* Mon Jan 30 2006 dkukawka@suse.de
- updated to new release 0.5.5:
  * complete reworked detailed dialog, plus:
  * fixed problems with offline CPUs (Daniel Gollub)
  * changed interval for refresh CPU infos to powersave default
  * fixed battery handling
  * added new help menu to the applet with a about dialog and a
  link to report bugs back to developers
  * Updated language files, finished german translation
  * added new icon for 'Advanced Powersave' scheme
  * fixed scheme related autosuspend page in configure dialog to
  prevent unneeded resize of the dialog
  * added new dir with spec/build files (currently for SUSE and FC)
  * some cleanups
* Sun Jan 29 2006 aj@suse.de
- Require dbus-1-qt3-devel for build.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 dkukawka@suse.de
- updated to new release 0.5.4:
  * added new information dialog to left mouse button with:
    - CPU, Batttery, AC status info (by Daniel Gollub)
    - additional powersave related infos (Danny Kukawka)
  * removed currently CPU Freqency from the applet tooltip
  (maybe add later CPU releated infos)
* Wed Jan 18 2006 dkukawka@suse.de
- readded help files to spec file
* Tue Jan 17 2006 dkukawka@suse.de
- release 0.5.3-3 for sf.net:
  * added capability for brightness to tell powersave daemon that
  KPowersave do this, patch from <hmacht@suse.de>
  * changed scheme 'Aggressive' to 'Advanced' Powersave
  * added default config/settings for 'Advanced Powersave' scheme
* Tue Jan 17 2006 dkukawka@suse.de
- updated to new release 0.5.3:
  * added set scheme specific brigthness settings to kpowersave
  and the configuration dialog
  * added patch to fix compiler warning from Daniel Gollub
  <dgollub@suse.de>
  * updated translation (nl) and code documentation
  * replaced usage of QString::null with QString()
  * added warning if 'Agressive Powersave' scheme is selected
  * updated version strings
* Tue Jan 10 2006 dkukawka@suse.de
- updated to new release 0.5.2:
  - updated to new powersave (>= v0.11.2)
  - fixed bug #121965: added new dialog/error message if powersave
  is not running, with 'Don't show again' checkbox
  - changed handling with not available connection to powersave on
  startup of KDE (special for autologin)
  - added popup if HAL is not running (and also powersave not
  available) and kpowersave get no battery/AC information
  - changed settings of sounds filedialog to be more portable
  - removed old and not needed qt1/qt2 includes
  - updated help files and added new Norsk and Hungarian help files,
  added language specific screenshots
  - updated translation files and code documentation
  - code and file cleanups
* Wed Dec 21 2005 ro@suse.de
- fix build with current powersave
* Mon Dec 19 2005 dmueller@suse.de
- use dbus-1-qt3
* Thu Oct 13 2005 dkukawka@suse.de
- updated to current CVS version:
  - added admin dir to src for easier port to other distributions
  - added ru and fi translation files
  - updated doc, help, readme and changelogs
  - removed unneeded variables for icon names
  - fixes from KDE fixuifiles script
  - several fixes to respect KDE user interface style guide
  - several typo fixes in i18n stings and related fixes in
  translation files
- added powersave-libs and powersave-devel to needforbuild and
  powersave-libs to Requirements
* Mon Sep 12 2005 dkukawka@suse.de
- fixed bug #116079: added function to parse for translation in the
  suspend progress dialog
- fixed bug #116353: wrong translation in hu.po
- fixed bug #116438: added missing Polish translation file
- fixed bug #116439: added updated translations [sv,tr,uk,sk,ru]
- fixed bug #116440: added missing space [de,fr,it,pt_BR]
- updated code documentation
* Fri Sep 09 2005 dkukawka@suse.de
- fixed and merged german translation
- fixed ui file for configure dialog: removed direct keyboard
  accelerators from strings, which break all translation files
* Fri Sep 09 2005 dkukawka@suse.de
- fixed bug #116079: fixed translation of suspend progress dialog
- fixed bug #115903: hide scheme menu if not connected to daemon
- fixed bug #115914: prevent overlay of widgets in the blacklist
  edit dialog and fix resizeing
- fixed bug #115584: added new signal to differ between service
  terminated from powersave and dbus. Display error message now
  only for signa dbus.terminate
- fixed applet menu: added a new seperator above help menu entry
- fixed/updated code documentation
- added new configure option --enable-yast-entry to remove need for
  build dependency on suse-release
- removed no longer needed need for build dependency on resmgr
* Tue Sep 06 2005 dkukawka@suse.de
- fixed bug #78953: added option --force-acpi-check to dektop
  file and added a new file for autostart
- fixed command line options and information
- changed version from 0.5.0-RC1 to 0.5.0
* Mon Sep 05 2005 dkukawka@suse.de
- fixed makefile fro build
- changed Requires to new powersave version
* Mon Sep 05 2005 dkukawka@suse.de
- fixed bug #95250: added help entry to the applet menu and a
  help button to the configure dialog
- removed bo longer needed include
- updated tranlations
- tweaked debug messages and removed some debug messages
- several cleanups
* Sat Sep 03 2005 aj@suse.de
- Fix to build with changed powersave interface.
* Thu Sep 01 2005 dkukawka@suse.de
- merged DBUS_INTEGRATION branch back to cvs-head and use now for
  this package
- fixed and updated code documentation
- fixed bug #95250, now KPowersave have a online help
- removed several debug messages
- fixed redefinition of DBUS_API_SUBJECT_TO_CHANGE
* Mon Aug 29 2005 dkukawka@suse.de
- fixed bug #106177: use now scaling_cur_freq
- fixed activaton of widgets in configure dialog
- added and changed english helpfile (from srhoades@novell.com)
- fixes to prevent crash of kpowersave if connection to D-BUS lost
- fixed bug #113559 for autosuspend after a resume
- fixed store changes of time for autosuspend in the configure
  dialog
- changed configure: detection of distributions and changed to
  pkg-config to find the includes and libs for dbus
- translation updates
* Mon Aug 22 2005 dkukawka@suse.de
- fixed bug #105555
- updated translations
* Mon Aug 15 2005 dkukawka@suse.de
- fixed bug #104382 and some memory leaks
- fixed bugs #104603, #104445 and #104338
- merged 64bit fix to CVS
- updated translations: cs, hu, nb, pa, de
- added new translations: pt
* Thu Aug 11 2005 seife@suse.de
- ported to the new DBUS interface, removed old socket code
- removed dependency on obsolete powersave_daemonlib
* Sun Aug 07 2005 seife@suse.de
- fix 64bit build
* Sun Aug 07 2005 aj@suse.de
- Add hal libraries to neededforbuild.
* Fri Aug 05 2005 dkukawa@suse.de
- ported KPowersave to new powersave dbus structure (hmacht and
  dkukawka)
- updated version to 0.4.100, final will be 0.5.0
* Wed Jul 20 2005 dkukawka@suse.de
- added dbus and dbus-devel to neededforbuild
- enhanced the configure dialog to preselect the current scheme
  within the list of schemes
- added fix to blacklistedit dialog to display the name of the
  current scheme or to display "General Blacklist" in the dialog.
- corrected typo of i18n-strings and merged en_US.po changes to
  the source code
- updated de.po
- fixed bug #95279, now the suspend/progress dialog is
  Qt::WDestructiveClose and kpowersave connect to the destroyed()
  signal of the dialog
- changed workflow for schemes to enable/disable autosuspend.
  (added new checkbox and new config key)
- added misc-icon to configure dialog (scheme part)
- some documentation updates and code cleanups
* Tue Jul 05 2005 dkukawka@suse.de
- added ppc to buildarch
* Fri Jun 24 2005 dkukawka@suse.de
- implemented new feature:
  - configurable sound for battery warning states, ac events and
  autosuspend
- fixed bug within parsing messages for progress dialog.
- updated (code-)documentation
- updated README for compile kpowersave on other distributions
* Thu May 26 2005 dkukawka@suse.de
- added new menu entry to disable autosuspend trough applet-menu if
  autosuspend activated on the current scheme, if not the menu-item
  is not visible
- fixed bug with initalise import of global blacklist to scheme
  blacklist. Now the imported blacklist is maked as changed.
- cleaned up and changed size policy related values in the
  configure dialog
* Wed May 25 2005 dkukawka@suse.de
- added suse-release to neededforbuild to detect the correct
  distribution in autobuild system
* Tue May 24 2005 dkukawka@suse.de
- added scheme specific autosuspend blacklist
- changed and improved config dialog:
  - added autosuspend blacklist edit dialog and button to general
  settings
  - added enable scheme specific autosuspend blacklist and edit
  dialog
  - redesigned scheme settings page
  - added icons to schemes in scheme settings page
- added fix/workaround for bug #85611
- changed params of autosuspend->start() to QStringList
* Fri May 13 2005 dkukawka@suse.de
- implemented blacklist for autosuspend (if a program in the
  blacklist is detected as running autosuspend is stopped)
- added dcop interface function to stop/start autosuspend
- updated documentation
* Tue May 10 2005 dkukawka@suse.de
- implemented autosuspend (detect userinactivity from X-Server)
* Tue May 10 2005 dkukawka@suse.de
- fixed bug #82880
* Sun May 08 2005 dkukawka@suse.de
- additional fix for bug #81681
* Fri May 06 2005 dkukawka@suse.de
- fixed bug #81681:
  - added a new suspend dialog which is now toplevel
  - added icons to dialog for the related suspend/standby
  - updated documentation
* Wed Apr 13 2005 dkukawka@suse.de
- fixed for gcc 4.0
* Mon Mar 21 2005 dkukawka@suse.de
- added updated translation file
- fixed string in en_US
* Fri Mar 18 2005 dkukawka@suse.de
- fixed bug #73810, now we restart XScreensaver to be shure that
  the user default settings are set
- fixed bug #73805 (closed file descriptor leak)
- updated Changelog and code doc
- updated version to final 0.4.0
* Thu Mar 17 2005 dkukawka@suse.de
- implemented progressbar for powersave suspend
- removed 'Disable Screensaver' from menu (and also all related
  functions and variables) because this is not needed anymore since
  the user can change scheme related screensaver settings
- updated documentation
* Wed Mar 16 2005 dkukawka@suse.de
- fixed bug #72939, now on quit reset KDE settings
- fixed setSchemesettings(), now we check for KDE befor reset to KDE
  settings
- updated documentation, Changelogs and version strings
* Tue Mar 15 2005 dkukawka@suse.de
- added new [zh_CN, zh_TW] and updated translation files
- fixed blocker bug #72846
- fixed bug within the activation of widgets in the configure dialog
- fixed text on labels in configure dialog
- fixed bug in load KDE settings from configfile, to prevent wrong
  settings if user changed KDE settings in KDE Control Center while
  KPowersave is running
- updated version to 0.3.99 for the final release in SuSE 9.3final
  (should be 0.4)
* Mon Mar 14 2005 dkukawka@suse.de
- updated icon for kmenu (now 16x16 and 32x32 the same)
- added new [en_US, pa, uk] and updated translation files
- fixed lable width in configure dialog
- fixed bug, now kcmdisplayrc is loaded for KDE DPMS settings
* Fri Mar 11 2005 dkukawka@suse.de
- undo change in QPowersaveClientSocket::connect() depends on
  undo in last powersave fixes
* Thu Mar 10 2005 dkukawka@suse.de
- fixed bugs #71955 and #71875 (kpowersave related part and needed
  adaptations to changed powersave)
- removed unneeded functions and declarations
- added errormessages to do_setSpeedPolicy() and
  lockscreen_on_lidcloseEvent()
* Wed Mar 09 2005 dkukawka@suse.de
- Fixed bug #71192, changed sequence of enable/disable the
  widget/items for DPMS settings.
- added new functions to dcop interface: allowed_sleepingStates()
  and list_schemes()
* Mon Mar 07 2005 dkukawka@suse.de
- fixed bug #71016
- added dcop interfaces for lock screen, suspend/standby and
  to get information about current scheme and CPUFreqPolicy
- fixed bug: now the configure entry in kpowersave isn't displayed
  if the powersavedaemon is not running
- fixed message strings
- updated documentation
* Fri Mar 04 2005 dkukawka@suse.de
- Added enterEvent( QEvent * ) eventhandler to reduce polling. Now
  the tooltip updated only if this event is triggered for the
  kpowersace systray/kicker icon.
* Fri Mar 04 2005 dkukawka@suse.de
- implemented 'AutostartNeverAsk' to quell the dialog on exit
- added and implemented configure entry for 'lock screen method'
  Now the user can configure which method (KScreensaver,
  XScreensaver, Xlock, or autoselected) used for lock on suspend/
  standby and lid closed
- full implementation of powersave client notification, we now
  need only poll active for information if powersave died
- different cleanups
- updated code documentation and additional doc files
* Sun Feb 27 2005 dkukawka@suse.de
- removed unneeded config values from kpowersaverc
- implemented all functions to read the general, scheme and KDE
  settings from the kpowersave/KDE configuration file(s)
- added functions for 'lock screen' and 'blank only screen'
- integrated screensaver and lock settings to kpowersave.cpp
* Fri Feb 25 2005 dkukawka@suse.de
- fixed configure dialog for better look with bigger fonts
- fix/workaround for the kpowersave related part of bug #66502 on
  Workstations
- fixed dialog bug, now the user can open only one configure
  dialog at the same time
- changed displayed application name from kpowersave to KPowersave
- added function to load the general settings in the dialog
- added 'user-inactivity-actions' to dialog, configfiles and menu.
  This is atm only 'dummy' and not visible for the user.
- added autostart options to dialog and a new option to prevent the
  dialog on exit kpowersave
- updated the default config file
- updated strings for translation
* Tue Feb 22 2005 dkukawka@suse.de
- updated configure dialog
- changed configure dialog, renamed widgets, integrated schemes and
  general config section
- changed call of the configure dialog, now kpowersave not blocked
  while dialog is open
- added different slots and logic to disable/enable widgets
- added load and store the configuration
- added configoptions and funtions to make 'lock screen'
  configureable by user
- added default configfile
- updated documentation
* Mon Feb 21 2005 trenn@suse.de
- enable notification popup through daemon
* Tue Feb 15 2005 dkukawka@suse.de
- update to 0.3.10:
  - added configure dialog to make user specific configuration
  possible
* Sat Jan 22 2005 ro@suse.de
- added resmgr to neededforbuild
* Mon Jan 17 2005 dkukawka@suse.de
- remove some xscreensaver related (unneeded) code in screen.cpp
- remove some unused variables and function declaration in
  pdaemon.cpp
- added full code documentation for doxygen and changed the settings
  in the Doxyfile
- fixed bug #49844 user selected 'disable screensaver' prefered if
  the AC adapter is plugged out
- fixed bug #49845 now XScreensaver also detected under KDE
- fixed bug #49632 in po-files (correct a wrong path in translation
  files)
* Tue Dec 21 2004 dkukawka@suse.de
- added new cs-translation. File was empty (since SUSE 9.2final)
  in the cvs-tree (unknown why) Bug #49445
* Wed Dec 15 2004 dkukawka@suse.de
- added new icons to the applet for stand-by, suspend* and
  the different schemes
- modified kpowersave desktop icon
- changed some code in kpowersave, fixed some little bugs
  (not reported), removed some unneeded or unreachable code
* Mon Dec 13 2004 dkukawka@suse.de
- implemented new icons/iconfunctions for better better user
  interaction if the battery is in the different states WARNING,
  LOW, CRITICAL. Now the icon background flashes every second
  orange [WARNING,LOW] or red [CRITICAL]
- changed Icons (removed some white pixel)
* Sat Dec 11 2004 dkukawka@suse.de
- fixed Bug #48202
* Tue Oct 12 2004 dkukawka@suse.de
- fix Bugzilla #47113 (hopefully), remove some debug messages,
  change version
- fix problem from Bugzilla #46685, now kpowersave check really if
  scheme is successfully set by powersaved
* Mon Oct 04 2004 dkukawka@suse.de
- fixed bug in screensaver menuentry, now only checked on start if
  screensaver and dpms off or if screensaver off and no dpms
  support by machine -> see: Bugzilla #46728
* Sat Oct 02 2004 dkukawka@suse.de
- fixed bug (Bugzilla #46685): now the real scheme names (not i18n
  version) are sent to powersaved
* Fri Oct 01 2004 dkukawka@suse.de
- added new an revised translationfiles
- make a workaround to reduce systemload if powersaved not present
  and kpowersave need to get systeminformations from /proc/
* Wed Sep 29 2004 dkukawka@suse.de
- correct redrawPixmap so that now kpowersave correctly func under
  GNOME
- added new translations (jp, sk), added revised translations (bg,
  cs,es,nb)
* Mon Sep 27 2004 dkukawka@suse.de
- added 2 lines in update() were falsely removed by last changes
* Mon Sep 27 2004 trenn@suse.de
- correct charging state, when requesting daemon
  initialise has_DPMS
  xscreensaver enable/disable support
  update translations
* Wed Sep 22 2004 dkukawka@suse.de
- added screensaver options (disable screensaver and DPMS) to menu
  do not poll for scheme changes -> only update on right mouse clck
* Mon Sep 20 2004 trenn@suse.de
- changes from l.lunak@suse.cz to faster start kpowersave through
  kdeinit
* Tue Aug 31 2004 trenn@suse.de
- disk<->ram typo which prevented suspend2ram to be enabled
  correctly
* Mon Aug 23 2004 trenn@suse.de
- renamed suspend/standby to suspend2disk and suspend2ram
  introduced new sleep state standby
* Tue Jun 29 2004 trenn@suse.de
- switch schemes, enable/disable screensaver and dpms
  proper update functions
* Mon May 17 2004 trenn@suse.de
- color of remaining capacity always green when on ac power
  (Version 0.2.2)
* Fri May 14 2004 trenn@suse.de
- modified message:
  system group is not mentioned in popup any more (#40473)
- introduced sub-version nr. (Version 0.2.1)
* Thu May 06 2004 trenn@suse.de
- added battery charge information to Tooltip
  fixed fd leak
* Thu Apr 29 2004 trenn@suse.de
- added cpufreq speed to Tooltip
  corrected color when on low level and recharged (was red, should be green)
  merged diffs after 9.1
* Wed Apr 07 2004 trenn@suse.de
- changed Autostart to AutoStart (#38075)
* Mon Apr 05 2004 seife@suse.de
- increase AC adapter polling interval to 2.5 seconds
* Sat Apr 03 2004 coolo@suse.de
- do not rely on daemon but read AC infos right away
- cleanly fixing double start
- disabling suspend/standby menu entries if not available
* Fri Apr 02 2004 trenn@suse.de
- avoid double start of kpowersave
  added italian and russian translation
* Wed Mar 31 2004 trenn@suse.de
- delay window that daemon is not running (possible restart of daemon)
  no battery capacity on workstations
* Mon Mar 29 2004 trenn@suse.de
- rcpowersave to rcpowersaved
  open notification window when on low battery and when requesting info from daemon
  fixed 0:02 mins remaining bug
  ask user to restart on next login when exiting
* Mon Mar 15 2004 trenn@suse.de
- added several languages
* Thu Mar 11 2004 trenn@suse.de
- a lot of little fixes for usability
- corrections of translators and some translations
  by adrian@suse.de :
- fix linking (no non-mt qt needed anymore)
- fix multiple packaging of files
* Tue Mar 09 2004 ro@suse.de
- do not use non-mt
* Wed Mar 03 2004 ro@suse.de
- call correct yast2 module
* Wed Feb 25 2004 trenn@suse.de
- use bz2 instead of gz archive
* Mon Feb 23 2004 trenn@suse.de
- corrected .spec -> file inconsistence
* Mon Feb 23 2004 trenn@suse.de
- cleaned up
* Mon Feb 16 2004 trenn@suse.de
- initial build
openSUSE Build Service is sponsored by