2008-02-02 Richard Hughes ==== Version 2.25.3 ==== 2009-02-02 Richard Hughes * src/gpm-statistics.c: (gpm_stats_add_wakeups_obj): Add some more translations of the wakeups data. 2009-02-02 Richard Hughes * src/gpm-statistics.c: (gpm_stats_data_changed_cb): Only update the wakeups data when the wakeups tab is open. * src/gpm-statistics.c: (gpm_stats_update_smooth_data): Increase the size of the gaussian array to avoid truncating the data. 2009-01-31 Richard Hughes * src/egg-array-float.c: (egg_array_float_remove_outliers): Fix a crash in the statistics tool when we have no stats data. 2009-01-31 Richard Hughes * src/gpm-statistics.c: (gpm_stats_add_wakeups_obj): Add some more translations for kernel drivers and processes. 2009-01-30 Richard Hughes * src/gpm-statistics.c: (gpm_stats_add_wakeups_obj): Move the translations here from Devicekit-power. They belong in the client tool. 2009-01-30 Richard Hughes * libdevkit-power/Makefile.am: * libdevkit-power/dkp-wakeups-obj.c: (dkp_wakeups_obj_clear_internal), (dkp_wakeups_obj_copy), (dkp_wakeups_obj_equal), (dkp_wakeups_obj_print), (dkp_wakeups_obj_new), (dkp_wakeups_obj_free): * libdevkit-power/dkp-wakeups-obj.h: * libdevkit-power/dkp-wakeups.c: (dkp_wakeups_get_total), (dkp_wakeups_get_data), (dkp_wakeups_total_changed_cb), (dkp_wakeups_data_changed_cb), (dkp_wakeups_class_init), (dkp_wakeups_init), (dkp_wakeups_finalize), (dkp_wakeups_new): * libdevkit-power/dkp-wakeups.h: Add the new GObject client functions for the wakeup functionality. * data/gpm-statistics.glade: * src/gpm-statistics.c: (gpm_stats_add_wakeups_columns), (gpm_stats_update_info_data), (gpm_stats_add_wakeups_obj), (gpm_stats_update_wakeups_data), (gpm_stats_set_title), (gpm_stats_notebook_changed_cb), (gpm_stats_devices_treeview_clicked_cb), (gpm_stats_data_changed_cb), (main): Add processor wakeup support into gnome-power-statistics. This requires DeviceKit-power from git master. 2009-01-29 Kjartan Maraas * configure.ac: Lower the devkit required version to 001. 2009-01-28 Richard Hughes * src/gpm-inhibit.c: (gpm_inhibit_inhibit), (gpm_inhibit_un_inhibit), (gpm_inhibit_remove_dbus), (gpm_inhibit_init), (gpm_inhibit_finalize): * src/gpm-inhibit.h: Proxy inhibit requests up to gnome-session. 2009-01-28 Richard Hughes * configure.ac: * src/gpm-self-test.c: (main): Fix up the name for the DeviceKit pkgconfig file. 2009-01-28 Richard Hughes * configure.ac: Add a build time check for DeviceKit. Fixes #565867 2009-01-28 Richard Hughes * src/gpm-inhibit.c: (gpm_inhibit_error_quark), (gpm_inhibit_inhibit), (gpm_inhibit_un_inhibit), (gpm_inhibit_has_inhibit): * src/gpm-inhibit.h: * src/org.freedesktop.PowerManagement.Inhibit.xml: Remove org.freedesktop.PowerManagement.Inhibit.GetRequests() - it's never worked so nothing must be using it. gnome-session provides a better alternative. 2009-01-28 Richard Hughes * src/gpm-common.h: * src/gpm-prefs-core.c: (gpm_prefs_sleep_slider_changed_cb), (gpm_prefs_setup_sleep_slider), (set_idle_hscale_stops), (prefs_setup_ac), (prefs_setup_battery), (prefs_setup_ups), (gpm_prefs_init), (gpm_prefs_finalize): * src/gpm-screensaver.c: (gpm_screensaver_init): * src/gpm-screensaver.h: Don't rely on the gnome-screensaver idle key now we are using gnome-session. 2009-01-28 Richard Hughes * src/gpm-brightness-xrandr.c: (gpm_brightness_xrandr_output_down): When the minimum reported brightness is not zero don't wraparound 0 when we try to step down a large number of brightness levels. Instead truncate to the minimum to fix a hang. Fixes #569100 Patch from Fortunato Ventre, many thanks. 2009-01-27 Richard Hughes * src/gpm-backlight.c: (gpm_backlight_finalize): Trivial compile fix. 2009-01-27 Richard Hughes * src/egg-idletime.c: (egg_idletime_xsync_alarm_set), (egg_idletime_alarm_reset_all), (egg_idletime_timeout), (egg_idletime_xsync_value_add_one), (egg_idletime_alarm_find_id), (egg_idletime_x_set_reset), (egg_idletime_alarm_find_event), (egg_idletime_x_event_filter), (egg_idletime_alarm_get), (egg_idletime_alarm_set), (egg_idletime_alarm_free), (egg_idletime_alarm_remove), (egg_idletime_class_init), (egg_idletime_init), (egg_idletime_finalize), (egg_idletime_new), (egg_test_egg_idletime_wait), (gpm_alarm_expired_cb), (wait_until_alarm), (wait_until_reset), (egg_idletime_test): * src/egg-idletime.h: Add missing file. Sleeptime. Fixes #569356. 2009-01-27 Richard Hughes * configure.ac: * src/gpm-backlight.c: (gpm_backlight_error_quark), (gpm_backlight_sync_policy), (gpm_backlight_set_mode), (gpm_backlight_get_mode), (gpm_backlight_brightness_evaluate_and_set), (gpm_conf_gconf_key_changed_cb), (ac_adapter_changed_cb), (gpm_backlight_notify_system_idle_changed), (idle_changed_cb), (mode_changed_cb), (sensor_changed_cb), (control_resume_cb), (gpm_backlight_finalize), (gpm_backlight_init): * src/gpm-common.h: * src/gpm-idle.c: (gpm_idle_evaluate), (gpm_idle_set_timeout_dim), (gpm_idle_set_timeout_blank), (gpm_idle_set_timeout_sleep), (gpm_idle_idletime_alarm_expired_cb), (gpm_idle_idletime_reset_cb), (gpm_idle_finalize), (gpm_idle_init): * src/gpm-manager.c: (gpm_manager_sync_policy_sleep): * src/gpm-phone.c: (gpm_phone_test): Use EggIdletime code to control the X idle time, and use gnome-session to control the session idle time. We still need to proxy requests from the legacy interface. Fixes #567918 2009-01-27 Richard Hughes * src/gpm-session.c (gpm_session_is_idle): Fix up the logic for the session manager. 2009-01-27 Richard Hughes * configure.ac: * src/Makefile.am: * src/egg-array-float.c: (egg_array_float_test): * src/egg-array-float.h: * src/egg-color.c: (egg_color_test): * src/egg-color.h: * src/egg-discrete.c: (egg_discrete_test): * src/egg-discrete.h: * src/egg-precision.c: (egg_precision_test): * src/egg-precision.h: * src/gpm-common.c: (gpm_common_test): * src/gpm-common.h: * src/gpm-idle.c: (gpm_idle_evaluate): * src/gpm-inhibit.c: (gpm_inhibit_test_has_inhibit), (gpm_inhibit_test): * src/gpm-inhibit.h: * src/gpm-phone.c: (gpm_phone_test): * src/gpm-phone.h: * src/gpm-self-test.c: (main): Fix up the self checks and include the idletime code which had bitrotted. 2009-01-27 Richard Hughes * src/gpm-phone.c: (gpm_phone_coldplug), (gpm_phone_dbus_connect), (gpm_phone_dbus_disconnect): Don't double print debug newlines. 2009-01-27 Richard Hughes * src/gpm-backlight.c: (idle_changed_cb): * src/gpm-idle.c: (gpm_idle_mode_to_text), (gpm_idle_set_mode), (gpm_idle_set_check_cpu), (gpm_idle_get_mode), (gpm_idle_set_timeout_dim), (gpm_idle_set_timeout_blank), (gpm_idle_set_timeout_sleep), (gpm_idle_dim_cb), (gpm_idle_blank_cb), (gpm_idle_sleep_cb), (gpm_idle_evaluate), (gpm_idle_session_idle_changed_cb), (gpm_idle_session_inhibited_changed_cb), (gpm_idle_finalize), (gpm_idle_class_init), (gpm_idle_init): * src/gpm-idle.h: * src/gpm-manager.c: (gpm_manager_sync_policy_sleep), (idle_changed_cb): Rewrite the idle detection to use gnome-session rather than gnome-screensaver. Completely untested, but it compiles. 2009-01-27 Richard Hughes * src/gpm-manager.c: (manager_policy_do): Use the logout function in gpm-session, not our own local version. 2009-01-27 Richard Hughes * src/gpm-screensaver.c: (gpm_screensaver_proxy_connect_more), (gpm_screensaver_class_init): * src/gpm-screensaver.h: gnome-screensaver no longer sends the SessionIdleChanged or SessionPowerManagementIdleChanged signals. We'll have to change the way we get idle information from gnome-session. 2009-01-27 Richard Hughes * src/gpm-screensaver.c: * src/gpm-screensaver.h: Move private defines into the c file. 2009-01-27 Richard Hughes * src/Makefile.am: * src/gpm-session.c: (gpm_session_logout), (gpm_session_get_idle), (gpm_session_get_inhibited), (gpm_session_presence_status_changed_cb), (gpm_session_is_idle), (gpm_session_is_inhibited), (gpm_session_inhibit_changed_cb), (gpm_session_class_init), (gpm_session_init), (gpm_session_finalize), (gpm_session_new): * src/gpm-session.h: Add a new GObject to interface with gnome-session. 2008-12-09 Pedro Fragoso * applets/brightness/brightness-applet.c: * applets/inhibit/inhibit-applet.c: * src/gpm-tray-icon.c: GNOME Goal: Clean up GLib and GTK+ includes (Closes: #563791) 2009-01-23 Richard Hughes * po/POTFILES.in: * src/gpm-cell-array.c: * src/gpm-cell-array.h: * src/gpm-cell-unit.c: * src/gpm-cell-unit.h: * src/gpm-cell.c: * src/gpm-cell.h: * src/gpm-engine-old.c: * src/gpm-engine-old.h: * src/gpm-tray-icon.c: * src/gpm-warnings.c: * src/gpm-warnings.h: Remove some unused files now we require DeviceKit. 4631 deletions. Wow. 2009-01-23 Richard Hughes * Makefile.am: * configure.ac: * src/Makefile.am: * src/gpm-ac-adapter.c: (gpm_ac_adapter_is_present), (gpm_ac_adapter_changed_cb), (gpm_ac_adapter_init): * src/gpm-control.c: (gpm_control_allowed_suspend), (gpm_control_allowed_hibernate), (gpm_control_shutdown), (gpm_control_suspend), (gpm_control_hibernate), (gpm_control_finalize), (gpm_control_init): * src/gpm-manager.c: (gpm_engine_perhaps_recall_cb), (gpm_engine_low_capacity_cb), (gpm_engine_fully_charged_cb), (gpm_engine_discharging_cb), (gpm_engine_charge_low_cb), (gpm_manager_get_time_until_action_text), (gpm_engine_charge_critical_cb), (gpm_engine_charge_action_cb), (has_inhibit_changed_cb), (gpm_manager_init): * src/gpm-self-test.c: (main): * src/gpm-tray-icon.c: (gpm_tray_icon_show_info_cb), (gpm_tray_icon_add_device), (gpm_tray_icon_activate_cb), (gpm_tray_icon_init), (gpm_tray_icon_finalize): * src/gpm-tray-icon.h: Now DeviceKit-power is a blessed external dependency, remove the compat code. 2009-01-23 Richard Hughes * configure.ac: * src/Makefile.am: * src/egg-unique.c: (egg_unique_assign): Now libnotify is a blessed external dependency, remove the compat code. 2009-01-23 Richard Hughes * configure.ac: * src/Makefile.am: * src/gpm-notify.c: (gpm_notify_cancel), (notify_general_clicked_cb), (gpm_notify_perhaps_recall), (gpm_notify_low_capacity), (gpm_notify_inhibit_lid), (gpm_notify_fully_charged_primary), (gpm_notify_discharging_primary), (gpm_notify_discharging_ups), (gpm_notify_sleep_failed), (gpm_notify_finalize), (gpm_notify_init): Now libnotify is a blessed external dependency, remove the compat code. 2009-01-23 Richard Hughes * src/gpm-cell-unit.h: * src/gpm-cell.c: (gpm_cell_refresh_hal_all), (gpm_cell_get_id): We have to include capacity in the profile name as some vendors create different sized batteries with the same serial number. This break batteries that use the current voltage for the mAh to mWh conversion when the design voltage is also invalid. In this case use the reporting string as we don't care about units. Patch from Stephen Gildea and Joe, many thanks. Fixes #562576 2009-01-22 Richard Hughes * src/Makefile.am: * src/gpm-self-test.c: (main): Add in egg-array-float to the self checks; * src/egg-array-float.c: (egg_array_float_compute_gaussian), (powfi), (egg_array_float_remove_outliers), (egg_array_float_test): Add in a simple outlier removal function, and add some more unit tests. * src/egg-array-float.h: * src/gpm-statistics.c: (gpm_stats_update_smooth_data), (gpm_stats_update_info_page_history), (gpm_stats_update_info_page_stats), (main): Remove outliers from the data, and smooth with different values of sigma for the different graph tabs. 2009-01-19 Richard Hughes * src/gpm-brightness-xrandr.c: (gpm_brightness_xrandr_update_cache): This patch relies on randr.h i.e. on the RandR procol rather than on the xserver itself. This will prevent us from adding the xserver development libraries as build dependencies (thus preserving the previous behaviour). Patch from Alberto Milone , many thanks. 2009-01-19 Richard Hughes * src/gpm-brightness-xrandr.c: (gpm_brightness_xrandr_update_cache): According to the following bug report the gnome settings daemon causes high CPU usage with libxrandr 1.2.99.2 or higher: https://bugs.edge.launchpad.net/ubuntu/+source/libxrandr/+bug/307306 The problem is that it calls XRRGetScreenResources() (which is an rather expensive call) instead of XRRGetScreenResourcesCurrent() which is cheaper and doesn't cause hardware to be reprobed. While I agree that listening to events which represent changes in output properties is ideal, calling XRRGetScreenResources each time a property (e.g. the backlight) changes is really expensive and (if RandR 1.3 is available) this can be avoided. Patch from Alberto Milone , many thanks. 2009-01-15 Richard Hughes * src/gpm-prefs-core.c: (pk_prefs_set_defaults_cb): Fix build when building self checks. 2009-01-15 Richard Hughes * data/icons/48x48/status/gpm-primary-000-charging.png: * data/icons/48x48/status/gpm-primary-020-charging.png: * data/icons/16x16/status/gpm-primary-000-charging.png: * data/icons/16x16/status/gpm-primary-020-charging.png: * data/icons/scalable/status/gpm-primary-000-charging.svg: * data/icons/scalable/status/gpm-primary-020-charging.svg: Make the charging levels blue like the 32x32 and 24x24 icons. 2009-01-15 Richard Hughes * libdevkit-power/dkp-device.c: (dkp_device_get_history), (dkp_device_get_statistics): * src/gpm-brightness-kbd.c: (gpm_brightness_kbd_finalize): Fix up some warnings from static analysis 2009-01-15 Richard Hughes * src/gpm-phone.h: Fix one last file. 2009-01-15 Richard Hughes * configure.ac: * src/Makefile.am: * src/egg-array-float.c: (egg_array_float_compute_gaussian), (egg_array_float_convolve), (egg_array_float_compute_integral): * src/egg-array-float.h: * src/egg-color.c: * src/egg-console-kit.c: * src/egg-dbus-monitor.c: * src/egg-dbus-proxy.c: * src/egg-debug.h: * src/egg-obj-list.c: (egg_obj_list_remove_index), (egg_obj_list_index): * src/egg-precision.c: * src/egg-precision.h: * src/egg-test.c: (egg_test_elapsed), (egg_test_get_data_file): * src/egg-test.h: * src/egg-unique.c: (egg_unique_message_cb): * src/gpm-brightness-hal.c: (gpm_brightness_hal_set_hw), (gpm_brightness_hal_dim_hw_step), (gpm_brightness_hal_down): * src/gpm-brightness-kbd.c: (gpm_brightness_kbd_set_hw), (gpm_brightness_kbd_dim_hw_step), (gpm_brightness_kbd_down): * src/gpm-brightness-xrandr.c: (gpm_brightness_xrandr_output_set_internal), (gpm_brightness_xrandr_output_set), (gpm_brightness_xrandr_foreach_resource), (gpm_brightness_xrandr_update_cache): * src/gpm-button.c: * src/gpm-control.c: * src/gpm-dpms.c: * src/gpm-engine.c: (phone_device_added_cb), (phone_device_removed_cb), (phone_device_refresh_cb): * src/gpm-feedback-widget.c: * src/gpm-graph-widget.c: (gpm_get_axis_label), (gpm_graph_widget_get_y_label_max_width), (gpm_graph_widget_draw_legend), (gpm_graph_widget_legend_calculate_size): * src/gpm-inhibit.c: (gpm_inhibit_get_requests), (gpm_inhibit_remove_dbus), (gpm_inhibit_get_message): * src/gpm-light-sensor.c: (gpm_light_sensor_get_hw): * src/gpm-load.c: * src/gpm-manager.c: (gpm_manager_get_time_until_action_text): * src/gpm-phone.c: (gpm_phone_get_present), (gpm_phone_get_percentage), (gpm_phone_get_on_ac), (gpm_phone_battery_state_changed), (phone_device_refresh_cb): * src/gpm-prefs-core.c: * src/gpm-refcount.c: * src/gpm-screensaver.c: * src/gpm-screensaver.h: * src/gpm-statistics.c: (gpm_stats_set_title), (gpm_stats_devices_treeview_clicked_cb), (main): * src/gpm-tray-icon.c: (gpm_tray_icon_activate_cb): Enable way more compiler warnings, and fix up all the failures. 2009-01-14 Richard Hughes * src/gpm-engine.c: (gpm_engine_coldplug_idle_cb), (gpm_engine_device_added_cb), (phone_device_added_cb), (phone_device_removed_cb), (phone_device_refresh_cb), (gpm_engine_init), (gpm_engine_finalize): Use gnome-phone-manager and show cell phone batteries. * src/gpm-phone.c: (gpm_phone_battery_state_changed), (gpm_phone_num_batteries_changed): Whitespace cleanup. * src/gpm-tray-icon.c: (gpm_tray_icon_show_info_cb): Don't exit silently when we want more details on a device that has no more details. * src/gpm-warnings.c: (gpm_warnings_get_state_time), (gpm_warnings_get_state_percentage): Be less verbose when a device has 0% percentage. 2009-01-13 Paolo Borelli * src/gpm-statistics.c: (gpm_stats_notebook_changed_cb): Build the title programmatically to make the work easier for translators. 2009-01-13 Richard Hughes * data/gpm-statistics.glade: * src/gpm-statistics.c: (gpm_stats_notebook_changed_cb): Change the window title when in different modes. Fixes #567295 2009-01-13 Richard Hughes * src/gpm-prefs-core.c: (gpm_prefs_init): * src/gpm-statistics.c: (main): Fix some small code issues found by Paolo Borelli. Fixes #567298 2009-01-07 Lucas Rocha * configure.ac: Post release version bump.