2006-07-09 Richard Hughes ==== Version 2.15.4 ==== 2006-07-08 Richard Hughes * data/gpm-prefs.glade: Add the hidden checkbox 'Always sleep when the lid is closed' so we can add this string before the string freeze. We can connect it up next week so it does something useful. 2006-07-08 Richard Hughes * data/gnome-power-manager.schemas.in: Change /apps/gnome-power-manager/check_type_cpu default to false after discussion in #326742. Power users doing legacy simulations are able to change this setting themselves. This should probably go into the FAQ. 2006-07-08 Richard Hughes * src/gpm-prefs-core.c: Replace the word 'Interactive' in the UI with 'Ask me' to fix #345960 2006-06-28 Richard Hughes * src/gpm-hal.h: * src/gpm-hal.c: Add gpm_hal_device_rescan() and gpm_hal_device_rescan_capability() so we can start to fix #346082. I've still got to plumb this into the power or manager classes, but I'm not sure how best to do this yet. Give me a few hours. 2006-06-28 Richard Hughes * data/gnome-power-manager.schemas.in: Increase the graph time size to 6 hours. * src/gpm-brightness.c: Support MacBook Pro with it's crazy number of brightness states. Might fix #346080 * src/gpm-dbus-session-monitor.c: * src/gpm-dbus-system-monitor.c: * src/gpm-power.c: Make singleton classes to save memory and CPU. * src/gpm-info.c: * src/gpm-info.h: * src/gpm-manager.c: Remove the bodge of passing the pointer to the power class now we are using singletons. 2006-06-26 Richard Hughes * help/C/gnome-power-manager.xml: Correct a figure title to match the screenshot. * configure.in: * src/Makefile.am: * src/gpm-manager.c: * src/gpm-polkit.c: * src/gpm-polkit.h: Add in initial support to check with PolicyKit over dbus. Fixes #344171 2006-06-23 Richard Hughes * configure.in: * data/Makefile.am: * data/gnome-power-manager.spec.in: Remove the Fedora spec file from CVS. It's outdated, and doesn't work. * help/C/gnome-power-manager.xml: Better logically seporate the help file, and add some new content. More to come... 2006-06-23 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-manager.c: * src/gpm-prefs.h: In hindsight, not everyone likes beeping as commented on in #345595. Add a gconf variable /apps/gnome-power-manager/enable_pcskr_beeping to enable the user or distro to turn this off and on. Default on. * data/gnome-power-manager.schemas.in: * src/gpm-manager.c: * src/gpm-prefs.h: Allow the user to ignore the inhibit requests from stopping a policy action. The key /apps/gnome-power-manager/ignore_inhibit_requests can be set to true, and the action will still go ahead. Default off. 2006-06-23 Richard Hughes * src/gpm-manager.c: (battery_status_changed_primary): Use the same logic as the tooltip for the notification. This has caused a lot of problems, see #345698 for all the gory details. This means if the policy is set to 'show icon when charging' then the icon removes itself and the 'fully charged' notification is shown in the bottom right of the screen, which I think is sane. * help/C/gnome-power-manager.xml: Add a note mentioning the battery has to go down to 95% before a repeat notification will be shown. * src/gpm-hal-monitor.c: (watch_device_property_modified), (watch_device_properties_modified): * src/gpm-hal-monitor.h: Add a boolean 'finally' for the battery_property_modified so we know when a split PropertyModified HAL event has finished, and we can update the caches and recompute only when we have all the information. This seems like a pain in the arse, but actually reduces our CPU usage by nearly *5* times on a typical /org/freedesktop/Hal/devices/acpi_BAT1 type event update so was worth doing. * src/gpm-power.c: (hal_battery_property_modified_cb): Only refresh the caches on the last PropertyModified split event. 2006-06-22 Richard Hughes * data/gpm-prefs.glade: Increase the spacing between vertical spacing of groups of components to better follow the GNOME HIG. Also fix the issue where the space between 'Running on AC/Battery' and 'Put display to sleep...' is different between the AC and Battery tabs. Pointed out by Ian McIntosh , many thanks. Fixes #345693, (no string changes) 2006-06-22 Richard Hughes * help/C/figures/gpm-info-event-log.png: * help/C/figures/gpm-info-percentage.png: * help/C/figures/gpm-info-rate.png: * help/C/figures/gpm-info-time.png: * help/C/gnome-power-manager.xml: * help/Makefile.am: Add four new figures for the documentation. 2006-06-21 Richard Hughes * src/gpm-common.c: * src/gpm-common.h: Add gpm_warning_beep () to allow us to make a sound when an important event has occurred. * src/gpm-manager.c: (gpm_manager_is_inhibit_valid): Beep if we stopped the action due to an inhibit to warn the user. Also beep if we are low on power for primary, UPS or mouse as these are important. This fixes bug #345595 2006-06-19 Richard Hughes * src/gpm-graph-widget.c: (gpm_graph_auto_range): Fix the horizontal time scaling now we have the max time gconf stuff. 2006-06-19 Richard Hughes * data/gpm-info.glade: Add more sensible names for the widgets. * docs/calculate-video-fdi.sh: Add this file as an experimental fdi generator. Don't send results to me or hal@fd.o as it's still very immature and gets stuff wrong. 2006-06-19 Richard Hughes * data/gpm-info.glade: * src/gpm-info.c: For non-laptops, hide the new power graphs and do not keep polling the values. 2006-06-18 Richard Hughes * docs/Makefile.am: Fix build by including every html file. Oops. 2006-06-18 Richard Hughes * src/gpm-brightness.c (gpm_brightness_dim_hw): Make sure machines that do their own dimming get special cased and just set the brightness once. This really *ought* to be a HAL propery. Fixes #345258. 2006-06-18 Richard Hughes * docs/faq.html: * docs/faq.xml: * docs/index.html: * docs/sleep-names.html: Update a few xml things, and move the FAQ here from the wiki entries. * src/gpm-manager.c: * src/gpm-power.c: Patch from Paweł Marciniak to fix missing _() macros on some strings, so they can be translated. 2006-06-18 Richard Hughes * docs/gnome-power-manager.html: Remove this as I've split up the documentation * docs/Makefile.am: * docs/config.xsl: Chunk the output files indervidually. * docs/gnome-power-manager.xml.in: * docs/faq.xml: * docs/icon-scheme.xml: * docs/roadmap.xml: * docs/sleep-names.xml: Add the newest data, taking it from the wiki. * docs/index.html: * docs/icon-scheme.html: * docs/roadmap.html: * docs/sleep-names.html: * docs/dbus-interface.html: * docs/faq.html: Add these generated files. 2006-06-18 Crispin Flowerday * src/gpm-info.c (gpm_info_init): Read the correct gconf key to get the graph data max time (fixes bug #345256) 2006-06-18 Richard Hughes * docs/dbus-interface.xml: * docs/gnome-power-manager.html: * src/gpm-manager.c: * src/gpm-manager.h: * src/gpm-manager.xml: Add gpm_manager_get_low_power_mode and the dbus method GetLowPowerMode for #340355. Still need to do the signal, but that needs some more refactoring of the state code. * src/gpm-info-data.c: (gpm_info_data_set_max_time): Only allow greater than 10 minutes as a sanity check. 2006-06-18 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-prefs.h: Add in /apps/gnome-power-manager/graph_data_max_time so we can specify the amount of time to show on the graph. * src/gpm-info-data.h: * src/gpm-info-data.c: Add the functions gpm_info_data_set_max_points and gpm_info_data_set_max_time so we can set this externally. * src/gpm-info.c: Use graph_data_max_time to limit the GpmInfoData. 2006-06-18 Richard Hughes * src/gpm-graph-widget.c: * src/gpm-graph-widget.h: * src/gpm-info.c: Use the GpmInfoData pointer rather than the list pointer so we can keep track of the list and free when not required anymore. * src/gpm-info-data.c: Big re-write, which should squash some bugs. Switch to using GPtrArray rather than a GList as it makes things much simpler. I've also added the initial support for limiting the time shown on the graph, configuration to come in a little bit. 2006-06-18 Richard Hughes * po/POTFILES.in: Add the new inhibit stuff. Poked by Marcel Telka * src/gpm-inhibit.c: (gpm_inhibit_get_message): Removed the joining word 'because' and replaced it with ':' as it was difficult to translate. 2006-06-17 Richard Hughes * src/gpm-inhibit-test.c: Make less stuff less global, and add better comments. 2006-06-14 Richard Hughes * src/gpm-manager.xml: * docs/dbus-interface.xml: * docs/gnome-power-manager.html: Change dbus Inhibit and UnInhibit methods to use a UINT32, as this is already specified in the spec. Using a INT32 is wrong. * data/Makefile.am: * data/gpm-inhibit-test.glade: * src/Makefile.am: * src/gpm-inhibit-test.c: Add a test program that allows us to test the multiple inhibit stuff, and also to show people how easy it is adding Inhibit and UnInhibit calls into an existing program. 2006-06-13 Richard Hughes * src/gpm-manager.c: (gpm_manager_is_policy_timout_valid): Log the ignored policy action in the event log, rather than printing to the console. 2006-06-12 Richard Hughes * src/gpm-tray-icon.c: (libnotify_event): Fix a compile error when we are compiling the non-libnotify sections of the code, which probably don't happen that often. Noticed and reported by Elijah Newren, many thanks. #344674 2006-06-12 Richard Hughes * data/Makefile.am: Apply a patch from Tomasz Kłoczko In src/Makefile.am unconditionaly are registered GConf schemas. In case installing GPM from non-root account (for example during prepare rpm from non-root account) it produces tons warning. In attachemt is simple patch which allows use --disable-schemas-install on autoconf level for disable registering GConf schemas. 2006-06-11 Richard Hughes * src/gpm-main.c: Fix a typo in the spelling of computer, and remove italics. Also remove references to messagebus. Fixes lp:46468 2006-06-11 Richard Hughes * configure.in: Post release bump to 2.15.4