GNOME Power Manager is a GNOME session daemon that acts as a policy
agent. It listens for system events and responds with
user-configurable actions.
This package provides an applet to disable and reenable powersaving on
the fly.

License

GPLv2+

Changelog

* Thu Feb 17 2011 vuntz@opensuse.org
- Replace gnome-session Requires with gnome-session-core: we don't
need the full GNOME session, but simply the gnome-session
program.
- Add gnome-power-manager-no-xfce.patch to not start
gnome-power-manager in XFCE since XFCE has xfce4-power-manager.
* Sun Feb 13 2011 vuntz@opensuse.org
- Call relevant macros in %post/%postun:
+ %desktop_database_post/postun because the package ships at
least one desktop file.
+ %icon_theme_cache_post/postun because the package ships themed
icons.
+ %mime_database_post/postun because the package ships a mime
type definition.
- Pass %{?no_lang_C} to %find_lang so that english documentation
can be packaged with the program, and not in the lang subpackage.
- Change Requires of lang subpackage to Recommends, since the
english documentation is not there anymore.
* Wed Dec 15 2010 vuntz@opensuse.org
- Add polkit Requires since pkexec is used.
- Own /usr/share/polkit-1 and /usr/share/polkit-1/actions to fix
build. We could instead add a polkit BuildRequires, but it's
really an abuse in this case, especially as we won't notice if it
will not be needed anymore.
* Mon Sep 27 2010 vuntz@opensuse.org
- Update to version 2.32.0:
+ Updated translations.
* Fri Sep 17 2010 vuntz@opensuse.org
- Update to version 2.31.92:
+ Only disable deprecated code for --enable-strict builds
+ Remove last traces of DeviceKit-power
+ Updated translations.
- Remove sed hack to build with deprecated symbols.
* Wed Sep 01 2010 vuntz@opensuse.org
- Update to version 2.31.91:
+ brightness-applet: Add missing include
+ inhibit-applet: Add missing include and re-enable deprecated
GDK functions
+ bgo#613984: Do not autoscale the percentage graph in the
history tab
+ Do not dist org.gnome.power.policy in the tarball
+ bgo#627711: Don't crash on systems which don't have XBACKLIGHT
+ Only connect the UpClient::device-added signal after the
coldplug
+ Re-enable deprecated GDK functions for brightness applet
+ Use the correct backlight step value when using the legacy
fallback device
+ Updated translations.
* Wed Aug 18 2010 dimstar@opensuse.org
- Update to version 2.31.90:
+ Deal with the deprecation of GtkNotebookPage
+ Cast idle_time_in_msec to appropriate type
+ Updated translations.
- Remove gnome-power-manager-gtknotebook-deprectaed.patch, fixed
upstream.
- Remove hack around po/POTFILES.in, no longer needed.
- Add sed hack on configure to support building with gtk 2.21.6
building: we need some deprecated symbols.
* Wed Aug 18 2010 dimstar@opensuse.org
- Add gnome-power-manager-gtknotebook-deprectaed.patch to fix build
with gtk 2.21.6. Patch taken from upstream git.
* Fri Aug 06 2010 vuntz@opensuse.org
- Update to version 2.31.6:
+ New Features:
- Add new 6 hours period in power history stats
- Use device icons from the icon name specification
+ Bugfix:
- Adjust dim timeout when necessary
- As we no longer have more than one backlight mechanism,
remove a ton of abstract code
- Backport support for new devices recognised in UPower
- Backport various translation fixes and translator comments
from git master
- Do not assume the lid is open at boot. bgo#622026
- Do not show gnome-power-statistics in the menus
- Do not show the prefs menu on LiveCD's and with GDM.
bgo#621674
- Don't treat percentage=0 as error condition
- Fix a crash when displaying the 'No GConf schema warning'
- Port from DeviceKit-power to UPower
- Provide a pkexec helper for systems that do not have
xbacklight capability
- Remove hardcoded paths from pkexec setup
- Remove the use of HAL from gnome-power-manager
- Change DeviceKit-power-devel BuildRequires to
libupower-glib-devel.
- Change DeviceKit-power Requires to upower.
- Add small hack to remove non-existing file from po/POTFILES.in so
that translation-update-upstream doesn't fail.
- Drop gnome-power-manager-manpage_generation.patch: fixed
upstream.
* Fri Jun 11 2010 dimstar@opensuse.org
- Add gnome-power-manager-manpage_generation.patch: manpages that
are created contain output from the docbook2man command at
random positions in the text (bnc#613336)
* Wed May 26 2010 vuntz@opensuse.org
- Remove hal-devel BuildRequires: we don't use --enable-hal for
configure, so it won't get used anyway. And it should work fine
without hal now.
* Mon May 03 2010 dimstar@opensuse.org
- Do not explicitly require hal.
* Thu Apr 29 2010 dimstar@opensuse.org
- Update to version 2.30.1:
+ Only dim the screen on idle when on the active console
+ Make EggConsoleKit a singleton
+ Fix up a critical warning from the GpmScreensaver code
+ Updated translations.
* Mon Mar 29 2010 vuntz@opensuse.org
- Update to version 2.30.0:
+ Check for libpanel only if building the applets
+ Check for XRR* functions using library version instead of proto
version
+ Use pkg-config instead of autoconf macros to find X libs and
protos
+ Declare GError in gpm_brightness_hal_init to fix build failure
+ Do not set a charge warning if the device is on AC
+ Do not use EggDbusProxy in GpmScreensaver
+ Don't query the capabilities of the notification daemon
+ Ensure we close any 'battery low' notifications when we switch
to being on AC
+ Fix a problem where the critical action is not done in the case
of a UPS
+ Fix a race condition where we can miss the idle reset alarm
+ Fix up a translation using ngettext rather than assuming the
plural. Fixes bgo#612950
+ Fix wrong suspends with docked laptops
+ If a battery charge is low but not critical don't play the
sound meant for a critical charge event
+ Play a sound loop if the charge of a laptop battery/ups reaches
a critical level. Fixes rh#470090
+ Remove the pointy-finger status icon when the idletime code
fails to work correctly
+ Replace devkit-power call with upower in
gnome-power-bugreport.sh
+ Updated translations.
- Update gnome-power-manager-notify-idle-sleep.patch after some
code changes.
* Mon Mar 01 2010 dimstar@opensuse.org
- Update to version 2.29.91:
+ DeviceKit-disks is now called UDisks
+ Ensure we clear all notification bubbles on resume
+ Set the timeout for critical battery notification to never
+ Increase the critical action timeout to 20 seconds
+ When we're critically low, don't give a time as it's often
imprecise
+ Updated translations.
- Enable translation-update-upstream and gnome-patch-translation-*
* Wed Feb 10 2010 vuntz@opensuse.org
- Update to version 2.29.2:
+ New Features:
- Move the power management preferences into the hardware
section of the control center
- Use the name of 'Power' for the power management preferences
capplet
+ Bugfix:
- Don't rely on the cached value of the lid status, to fix a
double suspend issue
- Add a flag to inhibit consolekit events just after we resumed
- Don't automatically suspend if there are suspend inhibits
- Do not exit if hal is not available
- Only connect to HAL if there is no xrandr backlight hardware
- Fix compile when using an ld that defaults to --as-needed
- Enable the help action in gnome-power-statistics. Fixes
bgo#607005
- Ensure the window is realized before we invalidate it. Fixes
bgo#604918
- Don't show the user a sleep failed link pointing to the quirk
site
- Show the device name even when using UPower
- Do not change categories of gnome-power-preferences.desktop
anymore: this is done correctly upstream now.
- Drop gnome-power-manager-ck-events-idle.patch: fixed upstream
another way.
- Do not call autoreconf, since no patch we apply need this. Also
remove gnome-common BuildRequires.
* Wed Dec 23 2009 vuntz@opensuse.org
- Change gnome-keyring-devel BuildRequires to
libgnome-keyring-devel, following the module split upstream.
- Remove en@shaw locale on openSUSE 11.2 and earlier to fix build.
* Tue Dec 15 2009 vuntz@opensuse.org
- Update descriptions of packages.
* Tue Dec 08 2009 dimstar@opensuse.org
- Update to version 2.29.1:
+ New features:
- Switch to a single menu design, rather than a seporate left
and right menu
- rh#427065 - Show the sleep failure as a modal dialog box
- Sets some tooltips for the gnome-power-preferences buttons
- Add a --device parameter to gnome-power-statistics so we can
set the device focus
- rh#596983 - When we click on a battery device in the context
menu, show the gnome-power-statistics dialog
- Use gnome-settings-daemon popup code
+ Bugfixes:
- Use accessor functions instead direct access
- Remove HAL_LIBS/HAL_CFLAGS
- Remove obsolete check-foreground-console support
- Remove outdated information about DeviceKit from README
- Sync compiler warnings handling with DK-power
- Remove DBUS_SYS_DIR from configure summary
- Add GSEAL_ENABLE to CPPFLAGS
- rh#596963 - - Apparently 'whilst' is only a British English
thing. Change to 'while' throughout
- Remove the 'About' and 'Help' items from the status area
context menu
- Rename show_context_menu to show_actions as we're moving to a
mono-menu design
- Remove show_actions_in_menu GConf key as the menu items are
being removed eventually
- Remove the suspend and hibernate menu items
- Fix a bug where we try to match and refresh a virtual device,
which means g-p-s crashes on next start
+ Updated translations.
* Mon Dec 07 2009 dimstar@opensuse.org
- Update to version 2.28.2:
+ Updated translations.
- Rebase gnome-power-manager-notify-idle-sleep.patch.
* Sat Nov 14 2009 vuntz@opensuse.org
- Update to version 2.28.1:
+ Add missing indirection to return value of
DriveSetAllSpindownTimeouts call
+ Fix failure error messages and comments
+ Help the kernel through its sleep key confusion
+ Improve configure summary wrt HAL
+ Use separate variables for dbus and dbus-glib
+ Remove devkit-power tool configure check
+ Correctly set the focus on the last used device in
gnome-power-statistics
+ Do not hide some radio buttons depending on the current machine
state
+ Fix up all the issues reported by clang
+ Don't try to match and refresh some devices, to stop g-p-s
crashing on virual devices
+ DeviceKit-disks is expecting an int as a value, not a uint
+ Throttle screensaver before suspend/hibernate
+ Updated translations.
- Respin gnome-power-manager-no-fallback-to-hibernate.patch to
apply without fuzz.
* Mon Oct 05 2009 vuntz@opensuse.org
- Add gnome-power-manager-ck-events-idle.patch to fix suspend
happening when coming back from suspend and the lid is closed. We
emit ConsoleKit events in the idle loop to suppress consecutive
events which were causing the bug. Fix bnc#540517.
* Tue Sep 22 2009 dimstar@opensuse.org
- Update to version 2.28.0:
+ Bugfix:
- Use accessor functions instead direct access
- Only print the DeviceKit-power device data when debugging
- Use the correct interface name for DeviceKit-disks
- Use the correct gnome-screensaver path
- Use g_ptr_array_unref() in more places, which also fixes a
few small memory leaks
- Comment out the AuthRequest signal handling
- Change the default of show_actions_in_menu to FALSE
- bgo#593800 - Inhibit applet now will inhibit the session from
being marked IDLE
+ Updated translations.
* Wed Sep 09 2009 vuntz@opensuse.org
- Update to version 2.27.92:
+ When building with hal, link gnome-power-manager against
libhal-glib
+ Make notifications more reliable at session startup
+ Fix a bug where the critical time was not displayed correctly
+ Don't crash g-p-s when there are no devices
+ Open the gnome-power-manager help, not the 'cheese' help
+ Never, never, show 'Unknown time'. Fixes rh#520999
+ Allow compile without HAL
+ Remove small memory leak spotted using clang
+ Assign the correct icon when the sleep fails
+ Correct some shoddy error checking
+ Updated translations.
* Tue Aug 25 2009 vuntz@novell.com
- Update to version 2.27.91:
+ Remove the depricated Encoding= lines from the desktop files.
Fixes bgo#590612
+ Fix up quite a few translations
+ Add the enumerated actions in a 64bit safe way. Fixes
bgo#590991
+ Don't show the brightness OSD when system AC state changes
+ Remove all the bodges from the IDLETIMER code now X is fixed
+ Only show shutdown in the prefs GUI if ConsoleKit allows it
+ Always show the battery status icons in the left click action
+ Change the notification default for fully charged to FALSE for
bgo#592613
+ Updated translations.
- Respin gnome-power-manager-notify-idle-sleep.patch.
- Remove DeviceKit-devel BuildRequires. Thanks Kay Sievers!
* Mon Aug 03 2009 vuntz@novell.com
- Update to version 2.27.5:
+ New Features:
- Claim org.freedesktop.Policy.Power on D-BUS
- Remove PolkitGnome code completely as PolicyKit 1.0 doesn't
need this
- Add a bodge to reset the idletime XAlarm when we are no
longer inhibited
- Add functionality to debug the idle code by setting
GPMIDLEDEBUG on the command line
- Use the same composited OSD for brightness notification.
Fixes rh#512968
- Add DeviceKit data to the bugreport script
+ Bugfix:
- Fix pointer alignment to build on sparc
- gnome-power-bugreport.sh: add missing hasbang
- Show .desktop files in XFCE
- Make hotkeys work with modifiers
- Remove an unused include to fix compile
- Be more paranoid about setting idle in a race
- Remove some UI elements after UI review
- Correct the type of the fully-charged signal. Fixes
bgo#588259
- Don't ever fallback to the warning icon in the tray when
batteries are invalid
- Don't show a discharging battery notification on each
battery, just the global battery
- The composite battery is only fully charged if all batteries
are fully charged
- Remove GpmNotify, and do the notifications in a more sane
way. Fixes bgo#423186
- Constrain the user to a dropdown selection of times, as
freeform sliders are bad UI
- Add policy to show icon when low, rather than critically low.
Fixes bgo#589125
- Inhibit gnome-session in the applet, not gnome-power-manager
- Change the default to hibernate when critically low on
battery power
- When libnotify fails, fall back to modal dialogs
- Use enumerated values for the policy actions, and hide 'Do
nothing' unless specified in GConf
- Finally remove the CanSuspend and CanHibernate options, now
that gnome-session is ported
- Switch back to org.gnome.PowerManager as we don't adhere to
the shared spec anymore
- Compile common code with a noinst library to make compile
quicker, and reduce the compressed package size by 100kB
- Add a GConf key to show or hide the sleep quirk site
- Make the orange icons yellower. Fixes rh#512962
- Use the correct DBus signal types when watching gnome-session
- Save the caches value before we emit the inhibit and idle
signals
- Only show gnome-power-statistics in the context menu if it is
installed. Fixes rh#514249
- Only use libpanel-applet flags to build applets
- Drop gnome-power-manager-desktop.patch: it's useless, and we use
suse_update_desktop_file to change categories now anyway.
- Drop gnome-power-manager-reduce-deps.patch: fixed upstream.
- Respin gnome-power-manager-notify-idle-sleep.patch.
- Drop PolicyKit-gnome-devel BuildRequires.
* Wed Jul 29 2009 vuntz@novell.com
- Do not mark dbus service file as a config file: it's in datadir.
* Mon Jul 20 2009 vuntz@novell.com
- Update to version 2.27.2:
+ Features:
- Enable pretty compiler output with new automake versions
- Use composite battery mode by default to fix multi-battery
laptops
- Add manager policy to change the disk spindown based on
timeouts set in GConf
- Add GConf keys for the disk spindown functionality
- Add preferences checkboxes for the disk spindown
functionality
- No longer support HAL legacy buttons
- Add support for recall data provided by DeviceKit-power
+ Bugfixes:
- Prefix GTKBuilder files with gettext/glade
- Use gtk_show_uri i.s.o. gnome-open
- Remove -Wunitialized because it does not compile on Ubuntu
Jaunty
- Fix the category in the gnome-power-statistic desktop file.
Fixes rh#489041
- Make minimum size of th statistics graphs smaller. Fixes
rh#491426
- Don't show the feedback widget when the brightness changes,
only on key press and when interactive
- If we caught our idletime alarm, then remove from the filter
- Take the battery capacity into account when using multiple
batteries
- Ignore capacity readings of less than 1%
- Show a label to the user when there is no graph data
- Add statistics devices in visually pleasing order
- Use the composite device for getting the global system
warning icon
- Setup the reset event before we do the idle action, to
finally fix blanking
- Be more paranoid about setting idle in a race
- Remove three unused GConf keys
- Don't show the whole object path in the GUI, just show the ID
- Only print the DeviceKit device if we are using --verbose
- Remove a little bit more of our HAL dep, and use the
lid-is-present DK-p property
- Fix compile with DKP_DISABLE_DEPRECATED turned on
- Remove ambient light sensor support, and keyboard backlight
devices
- Support DKP_DEVICE_STATE_PENDING_x in more places
+ Updated translations.
- Remove non-existing --enable-legacy-buttons and
- -enable-policykit options from configure.
- Use libexecdir instead of prefix/lib.
- Drop gnome-power-manager-call-SetPowerSave.patch: new
DeviceKit-power now calls pm-powersave when appropriate. Also
drop liblazy-devel BuildRequires.
- Comment translation-update-upstream and
gnome-patch-translation-*: it's broken with this release.
* Tue Jun 02 2009 vuntz@novell.com
- Update to version 2.27.1:
+ Features:
- Add DOAP file
- Connect to gnome-session and exit on logout
- Change the default lid close on AC policy to be suspend, not
blank
- Show the processor device if we have capability, not if we
have events
- Add support for the DeviceKit-power property lid-is-closed so
we can now run without --enable-legacy-buttons
- Convert from libglade to GtkBuilder
- Expose graph details as properties on the object, and
constrain time to user value. Fixes bgo#581910
- Add a composite device to GpmEngine so we can DTRT for
multiple primary batteries
+ Bugfixes:
- Add desktop category to doap file
- Only setup the blanking timeout when a timeout is set. Fixes
rh#498041
- Attach the libnotify popups to the notification icon later
- Check whether xrandr-1.3 features are really supported by
xorg-server. Fixes bgo#582142
- Preload gconf tree /apps/gnome-power-manager recursively.
Fixes bgo#578545
- Fix the low capacity warning to fix rh#489832
- Rewrite the DPMS class to have 1% of the complexity
- Remove unused GConf keys
- Use ngettext for a 2.26.x era string. Fixes bgo#576128
- Unref the popup window when it's cleared. Fixes bgo#577901
- Ensure we clear the default DPMS timeout of 1200s. Should fix
bgo#576169
- Remove our local copy of libdevkit-power
- Convert a floating reference to prevent a GTK warning
- Use G_GINT64_FORMAT to fix compile on 64 bit computers
- Do the lid policy action on active-change. Fixes rh#497262
- Don't segfault if org.gnome.Session is not present on the
bus. Fixes bgo#581425
- Ensure we are on battery power before we take any of the low
power battery actions
- Remove the unused abstraction GpmAdapter, and use DkpClient
directly
- Remove the single use abstract GpmRefcount and use a local
timer
- Remove some methods on the DBus interface that have moved to
DeviceKit-power
- Remove the inhibit interface, and rely on gnome-session
- Use DeviceKit-power to get the can-suspend and can-hibernate
properties
- Handle return to NORMAL idle when lid closed a bit better
- Correct the polarity of the on-ac battery check when
inhibiting the screensaver
- Correct the logic for the fully charged and discharging
popups
- Don't try to keep closing the feedback widget
- Don't always show a single graph dot in
gnome-power-statistics
+ Updated translations.
- Respin gnome-power-manager-call-SetPowerSave.patch.
- Remove libglade2-devel BuildRequires.
- Change DeviceKit-power BuildRequires to DeviceKit-power-devel.
- Update gnome-power-manager-call-SetPowerSave.patch: put back some
code that got removed in this release but that we need.
* Sun May 03 2009 mboman@suse.de
- Change BuildRequires from unique-devel to libunique-devel
* Wed Apr 22 2009 vuntz@novell.com
- Update to version 2.26.1:
+ Fix the low capacity warning to fix rh#489832
+ Convert a floating reference to prevent a GTK warning
+ Backport DPMS and IDLETIME fixes from master to fix multiple
bugs
+ Connect to gnome-session and exit on logout
+ Use G_GINT64_FORMAT to fix compile on 64 bit computers
+ Trivial build fix
+ Updated translations.
* Mon Mar 23 2009 hmacht@suse.de
- add gnome-power-manager-call-SetPowerSave.patch:
gpm-2.26 doesn't use hal anymore, but only uses DeviceKit-*.
However DeviceKit-power doesn't provide the same functionality
as hal yet. One thing is the SetPowerSave method which should be
called when AC adapter state changes. Without this temporary
patch, we'd kill battery runtime.
* Mon Mar 16 2009 vuntz@novell.com
- Update to version 2.26.0:
+ Updated translations.
* Sun Mar 15 2009 vuntz@novell.com
- Update to version 2.25.92:
+ Many changes since 2.24 branch.
+ The most important change is that gnome-power-manager now uses
DeviceKit-power.
- Respin gnome-power-manager-notify-idle-sleep.patch and
gnome-power-manager-reduce-deps.patch.
- Disable gnome-power-manager-schedule-wakeups.patch: needs to be
respinned, but it's a bit too complex, so I'll let the original
developer do it.
- Drop gnome-power-manager-bnc446595-shutdown-dialog.patch: fixed
upstream.
- Drop gnome-power-manager-system-policy.patch: fixed upstream
another way a long time ago.
- Drop gpm-zh_CN-translation.patch: we want to use upstream
translations.
- Drop gpm-icons.tar.bz2: those icons are not used since quite some
time, so stop installing them.
- Pass --with-doc-dir, --enable-legacy-buttons and
- -enable-policykit to configure.
- Do not pass --with-dbus-services with default value to configure.
- Remove unneeded BuildRequires: docbook_4, gstreamer010-devel,
libgnomeprintui-devel, libgnomeui-devel, notification-daemon,
scrollkeeper.
- Remove unneeded Requires: PolicyKit, dbus-1, notification-daemon.
- Replace gnome-screensaver with gnome-session in Requires:
gnome-power-manager now uses gnome-session for idle.
- Add BuildRequires: DeviceKit-devel, DeviceKit-power,
gnome-keyring-devel, hal-devel, libcanberra-devel, unique-devel.
- Add Requires: DeviceKit-power.
- Remove AutoReqProv: it's default now.
- Don't package omf files twice (they are in the lang package too).