2007-07-29 Richard Hughes ==== Version 2.19.6 ==== 2007-07-29 Richard Hughes * src/gpm-phone.c: (gpm_st_phone): Connecting the phone for the self test requires manual intervention, it's not automatic. 2007-07-26 Richard Hughes * src/gpm-brightness-lcd.c: (gpm_brightness_lcd_set_hw), (gpm_brightness_lcd_dim_hw_step), (gpm_brightness_lcd_dim_hw), (gpm_brightness_lcd_get), (gpm_brightness_lcd_up), (gpm_brightness_lcd_down), (gpm_brightness_lcd_init): Try to discover the laptop backlight type by checking the backlight state before we try and set it. Fixes #436717 If this breaks for people with 2.19.6, I'll revert it for 2.20. 2007-07-26 Richard Hughes * src/gpm-phone.c: (gpm_phone_num_batteries_changed): Ignore second coldplug, which can happen if you run make check and g-p-m at the same time. 2007-07-26 Richard Hughes * data/gpm-feedback-widget.glade: * src/gpm-feedback-widget.c: (gpm_feedback_show), (gpm_feedback_display_value): Apply a patch from Cosimo Cecchi to fix the position and the style of the brightness widget. Fixes #405421 2007-07-26 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-conf.h: * src/gpm-control.c: (gpm_control_suspend), (gpm_control_hibernate): Split up the lock/gnome_keyring options into lock/gnome_keyring_suspend and lock/gnome_keyring_hibernate to fix #459747. We default to off for suspend and on for hibernate. 2007-07-25 Richard Hughes * data/icons/scalable/gpm-phone-000.svg: * data/icons/scalable/gpm-phone-030.svg: * data/icons/scalable/gpm-phone-060.svg: * data/icons/scalable/gpm-phone-100.svg: Better hi-res icons. 2007-07-25 Richard Hughes * src/gpm-cell-array.c: (gpm_cell_array_get_description): * src/gpm-cell.c: (gpm_cell_set_phone_index), (phone_device_refresh_cb): Monitor phone AC state, so we can put the charging state in the tooltip. 2007-07-25 Richard Hughes * src/gpm-cell-unit.c: (gpm_cell_unit_get_kind_localised): Correct title case in mobile phone text. 2007-07-25 Richard Hughes * src/gpm-cell.c: (gpm_cell_refresh_hal_all), (hal_device_property_modified_cb), (gpm_cell_set_type), (gpm_cell_set_hal_udi), (gpm_cell_set_phone_index), (gpm_cell_get_icon), (gpm_cell_print), (gpm_cell_get_description), (phone_device_refresh_cb), (gpm_cell_init), (gpm_cell_finalize): * src/gpm-phone.c: (gpm_phone_coldplug), (gpm_phone_get_present), (gpm_phone_get_percentage), (gpm_phone_get_on_ac), (gpm_phone_get_num_batteries), (gpm_phone_battery_state_changed), (gpm_phone_num_batteries_changed), (gpm_phone_dbus_connect), (gpm_phone_dbus_disconnect), (phone_device_refresh_cb), (gpm_st_phone): Add in checks for the object type, and also remember to disconnect the signal when GpmCell is unref'ed, else we segfault on phone connect, disconnect, connect. 2007-07-25 Richard Hughes * src/gpm-cell.c: (phone_device_refresh_cb): Correct the function type to correct a crash. 2007-07-25 Richard Hughes * src/gpm-manager.c: (manager_policy_do): Pass the reason on. Needed to debug #456489 2007-07-25 Richard Hughes * libhal-glib/libhal-gpower.c: (hal_gpower_filter_error), (hal_gpower_suspend), (hal_gpower_pm_method_void): Fix a potential crasher after resume. 2007-07-25 Richard Hughes * src/gpm-cell-array.c: (gpm_cell_array_update), (phone_device_added_cb): Only do the percentage override if we have enough data on a primary battery. Pretty major bugfix, not sure why we haven't hit this. * src/gpm-cell-unit.c: (gpm_cell_unit_get_icon), (gpm_cell_unit_get_kind_localised): Use the percentage, not the charge level. Also add translation. * src/gpm-cell.c: (gpm_cell_refresh_hal_all), (hal_device_property_modified_cb), (gpm_cell_set_hal_udi), (gpm_cell_set_phone_index), (phone_device_refresh_cb): * src/gpm-cell.h: Support the correct methods to update the icon when the phone device changes. 2007-07-25 Richard Hughes * src/Makefile.am: * src/gpm-cell.c: * src/gpm-cell-array.c: (gpm_cell_array_index_udi), (gpm_cell_array_coldplug), (phone_device_added_cb), (phone_device_removed_cb), (gpm_cell_array_init), (gpm_cell_array_finalize): Add support for GpmPhone devices. These show as laptop batteries for now, soon to be fixed. * src/gpm-marshal.list: * src/gpm-phone.c: (gpm_phone_coldplug), (gpm_phone_battery_state_changed), (gpm_phone_num_batteries_changed), (gpm_phone_class_init), (gpm_phone_dbus_connect), (gpm_phone_dbus_disconnect), (gpm_st_mainloop_wait), (gpm_st_phone): Listen for the correct signals, and add the correct GpmCell device. * src/gpm-self-test.c: (main): * src/gpm-self-test.h: Add the phone self-checks. 2007-07-24 Richard Hughes * applets/inhibit/inhibit-applet.c: (gpm_inhibit_applet_dbus_disconnect): Drop the inhibit when gnome-power-manager disconnects from the bus. 2007-07-24 Richard Hughes * src/gpm-cell.c: (gpm_st_cell): Fix a memory leak. 14 bytes. * src/gpm-main.c: (main): Don't unref the context, it makes valgrind unhappy. * src/gpm-profile.c: (gpm_profile_delete_data), (gpm_profile_load_data), (gpm_st_profile): Add some more tests. 2007-07-24 Richard Hughes * src/gpm-profile.c: (gpm_profile_get_nonzero_accuracy_percent), (gpm_profile_save_percentage), (gpm_profile_delete_data), (gpm_profile_use_guessing), (gpm_profile_init), (reset_profile), (gpm_st_profile): * src/gpm-profile.h: * src/gpm-self-test.c: (main): Fix the profile test. Also default to estimating the 5-95% data for unknown profile data. 2007-07-23 Richard Hughes * po/POTFILES.skip: The following files contain translations and are currently not in use. Please consider adding these to the POTFILES.in file, located in the po/ directory: applets/brightness/GNOME_BrightnessApplet.server.in applets/inhibit/GNOME_InhibitApplet.server.in 2007-07-23 Richard Hughes * src/gpm-self-test.c: * src/gpm-self-test.h: Oops. Actually add the main files. 2007-07-23 Richard Hughes * src/Makefile.am: * src/gpm-phone.c: * src/gpm-phone.h: Add initial gnome-phone-manager support. Untested. 2007-07-23 Richard Hughes * src/gpm-cell-array.c: (gpm_cell_array_add_hal_udi), (gpm_cell_array_coldplug), (hal_new_capability_cb), (hal_device_added_cb): * src/gpm-cell.c: (gpm_cell_set_type), (gpm_cell_set_hal_udi), (gpm_st_cell): * src/gpm-cell.h: Rename some methods to allow gnome-phone-manager integration. 2007-07-23 Richard Hughes * po/POTFILES.in: * src/Makefile.am: * src/gpm-array-float.c: (gpm_st_array_float): * src/gpm-array.c: (gpm_st_array): * src/gpm-cell-array.c: (gpm_cell_array_perhaps_recall_cb), (gpm_st_cell_array): * src/gpm-cell-unit.c: (gpm_st_cell_unit): * src/gpm-cell.c: (gpm_cell_perhaps_recall_cb), (gpm_cell_get_battery), (gpm_st_cell): * src/gpm-common.c: (gpm_st_common): * src/gpm-graph-widget.c: (close_handler), (clicked_passed_cb), (clicked_failed_cb), (create_graph_window), (wait_for_input), (gpm_st_title_graph), (gpm_st_graph_widget): * src/gpm-inhibit.c: (inhibit), (uninhibit), (has_inhibit), (gpm_st_inhibit): * src/gpm-profile.c: (gpm_st_profile): * src/gpm-webcam.c: (gpm_st_webcam): * test/Makefile.am: * test/gpm-selftest-hal-devices.fdi: * test/gpm-st-array-float.c: * test/gpm-st-array.c: * test/gpm-st-cell-array.c: * test/gpm-st-cell-unit.c: * test/gpm-st-cell.c: * test/gpm-st-common.c: * test/gpm-st-graph-widget.c: * test/gpm-st-inhibit.c: * test/gpm-st-main.c: * test/gpm-st-main.h: * test/gpm-st-profile.c: * test/gpm-st-webcam.c: * test/install-fdi.sh: Move the tests into src/ to be able to to run make check. 2007-07-23 Richard Hughes * data/icons/48x48/Makefile.am: * data/icons/scalable/Makefile.am: * data/icons/scalable/gpm-phone-000.svg: * data/icons/scalable/gpm-phone-030.svg: * data/icons/scalable/gpm-phone-060.svg: * data/icons/scalable/gpm-phone-100.svg: More icons... 2007-07-23 Richard Hughes * data/icons/24x24/Makefile.am: More phone icons. 2007-07-23 Richard Hughes * data/icons/16x16/Makefile.am: * data/icons/22x22/Makefile.am: Add some more phone icons. * src/gpm-control.c: (gpm_control_shutdown), (gpm_control_suspend), (gpm_control_hibernate): Only do gpm_control_convert_hal_error if false. 2007-07-22 Richard Hughes * src/gpm-control.c: (gpm_control_convert_hal_error), (gpm_control_shutdown), (gpm_control_suspend), (gpm_control_hibernate): Convert the HAL error to a localised error to avoid a crash in GDM. 2007-07-22 Richard Hughes * libhal-glib/libhal-gpower.c: (hal_gpower_suspend), (hal_gpower_pm_method_void), (hal_gpower_enable_power_save): Be more careful with errors. retval != 0 doesn't mean that an error is set. 2007-07-21 Richard Hughes * data/gnome-power-manager.schemas.in: * src/gpm-manager.c: (idle_changed_cb): * src/gpm-srv-screensaver.c: (update_lid_throttle): Remove a broken string that we don't ever use. Fixes #459099 * src/gpm-profile.c: (gpm_profile_save_percentage): * test/gpm-st-profile.c: (gpm_st_profile): Add some more tests. 2007-07-20 Gabor Kelemen * src/gpm-info.c: Add translator comment before the occurrences of the Q_ macro. Fixes #458609. 2007-07-20 Richard Hughes * src/gpm-notify.c: (gpm_notify_low_capacity): Correct some broken UI test. Invalid isn't a great word to use. 2007-07-20 Richard Hughes * src/gpm-info.c: (gpm_statistics_get_parameters): Correct some broken UI text. Fixes #458613 2007-07-20 Richard Hughes * src/gpm-profile.c: (gpm_profile_print), (gpm_test_profile_save_percentage): OOps. Don't recurse. * test/gpm-st-main.c: (main): * test/gpm-st-profile.c: (gpm_st_profile): Correct test, and make more specific. Test now passes. 2007-07-19 Richard Hughes * src/gpm-profile.c: (gpm_profile_print), (gpm_profile_get_data_time_percent), (gpm_profile_set_zero_accuracy_average), (gpm_profile_set_average_no_accuracy), (gpm_profile_save_percentage), (gpm_test_profile_save_percentage), (gpm_profile_test_force_discharging): * src/gpm-profile.h: Add new functionality. It doesn't work. 2007-07-19 Richard Hughes * libhal-glib/libhal-gpower.c: (hal_gpower_enable_power_save): Don't unref the error, we pass it back. 2007-07-19 Richard Hughes * src/gpm-info.c: (gpm_statistics_get_parameters): * src/gpm-profile.c: (gpm_profile_get_data_time_percent): Correct the colours to be more bold, and support the extrapolated data. 2007-07-19 Richard Hughes * test/gpm-st-main.c: (main): Rearrange some tests. 2007-07-19 Richard Hughes * src/gpm-engine.c: (gpm_engine_get_summary): Add better wording when accuracy is truely zero. 2007-07-19 Richard Hughes * help/C/gnome-power-manager.xml: * src/gpm-main.c: * src/gpm-prefs.c: * src/gpm-statistics.c: * test/gpm-inhibit-test.c: * tools/gnome-power-cmd.sh: Update some more API to match the docs. 2007-07-18 William Jon McCann * data/gnome-power-manager.service.in (Name): Use the service name from the spec so we can activate in gdm greeter. 2007-07-18 Richard Hughes * src/gpm-main.c: (main): Log to syslog if name is already taken. 2007-07-18 Richard Hughes * src/gpm-debug.c: (gpm_syslog_internal), (gpm_error_real): Log to syslog when we exit because of an error. 2007-07-18 Richard Hughes * src/gpm-main.c: (main): Temporarily don't do the system bus check for gdm session activation. 2007-07-18 Richard Hughes * src/gpm-control.c: (gpm_control_reboot): Typo buildfix. 2007-07-18 Richard Hughes * libhal-glib/libhal-gpower.c: (hal_gpower_suspend), (hal_gpower_pm_method_void), (hal_gpower_hibernate), (hal_gpower_shutdown), (hal_gpower_reboot): * libhal-glib/libhal-gpower.h: * src/gpm-control.c: (gpm_control_shutdown), (gpm_control_reboot), (gpm_control_suspend), (gpm_control_hibernate): Propogate the error from hal to the session DBUS. * src/gpm-profile.c: (gpm_profile_get_nonzero_accuracy_percent), (gpm_profile_set_zero_accuracy_average), (gpm_profile_save_percentage): Try setting profile code from average. Nothing works yet. 2007-07-18 Richard Hughes * src/gpm-cell-array.c: (control_sleep_action_cb), (gpm_cell_array_init), (gpm_cell_array_finalize): Rescan the cell array when we resume as the primary battery may have been changed or removed. This hopefully fixes the big where the wrong profile is used when the battery is swapped whilst hibernating. * src/gpm-profile.c: (gpm_profile_init): Cosmetic whitespace fix. * test/gpm-st-main.c: (main): Uncomment the test so we do the whole suite. 2007-07-18 Richard Hughes * applets/inhibit/inhibit-applet.c: * applets/inhibit/inhibit-applet.h: Cosmetic changes. * applets/brightness/brightness-applet.c: * applets/brightness/brightness-applet.h: Watch the session bus for g-p-m, which prevents a race at startup. * applets/inhibit/Makefile.am: * data/icons/16x16/Makefile.am: * data/icons/22x22/Makefile.am: * data/icons/24x24/Makefile.am: * data/icons/48x48/Makefile.am: * data/icons/scalable/Makefile.am: * data/icons/scalable/gpm-inhibit-invalid.svg: * docs/icon-naming.txt: Add another icon to signify the inhibit applet is unable to connect. 2007-07-16 Richard Hughes * docs/icon-naming.txt: * src/gpm-cell-array.c: (gpm_cell_array_get_description): * src/gpm-cell-unit.c: (gpm_cell_unit_get_icon), (gpm_cell_unit_get_kind_string), (gpm_cell_unit_set_kind): * src/gpm-cell-unit.h: * src/gpm-engine.c: (gpm_engine_delayed_refresh), (gpm_engine_get_summary), (gpm_engine_get_icon), (gpm_engine_init), (gpm_engine_start), (gpm_engine_finalize): * src/gpm-engine.h: * src/gpm-manager.c: (gpm_engine_charge_low_cb), (gpm_engine_charge_critical_cb): * src/gpm-tray-icon.c: (gpm_tray_icon_activate_cb): * src/gpm-warnings.c: (gpm_warnings_get_state): * test/gpm-st-idletime.c: (gpm_st_idletime): * test/gpm-st-main.c: (main): Add the initial phone code for mobile phone support. No backend stuff yet, I need to write the backend stuff before it will work. 2007-07-16 Richard Hughes * src/gpm-info.c: (gpm_statistics_get_parameters): Add the guessed data into the key. * src/gpm-sound.c: (gpm_sound_init): Fix the build. Fixes #457414. 2007-07-12 Bastien Nocera * src/gpm-sound.c: (gpm_sound_play), (gpm_sound_init): Try to use gconfaudiosink, and set the profile, so that right output is used when playing an alert sound, use g_build_filename to create the URI for playbin to play 2007-07-10 Richard Hughes * src/gpm-backlight.c: (idle_changed_cb): Don't show the brightness UI on idle dim. Fixes #455148 2007-07-10 Theppitak Karoonboonyanan * src/gpm-notify.c: (gpm_notify_sleep_failed): Add translation comment for "quirk website". Fixes #455499. 2007-07-09 Richard Hughes * Makefile.am: * configure.in: * libidletime/Makefile.am: * libidletime/libidletime.c: * libidletime/libidletime.h: * test/Makefile.am: * test/gpm-st-idletime.c: * test/gpm-st-main.c: (gpm_st_success), (main): * test/gpm-st-main.h: Add libidletime for querying IDLETIME. 2007-07-05 Richard Hughes * src/gpm-profile.c: (control_sleep_action_cb), (gpm_profile_init), (gpm_profile_finalize): Use GpmControl to notify GpmProfile when a suspend is about to happen, or when it has just happened so the data valid flag is made false. This stops oddball readings where the percentage time is used when the machine is a sleep state. The profile code now waits for the start of the next complete percentage point. Fixes #453853 Many thanks to Christopher Halse Rogers for the excellent debugging. * test/Makefile.am: Now we are using gpm-control in gpm-profile, pull it in as a dep. 2007-07-05 Richard Hughes * src/gpm-manager.c: (gpm_manager_finalize): Fix a small memory leak on exit. 2007-07-04 Richard Hughes * src/gpm-profile.c: * src/gpm-tray-icon.c: Remove duplicate includes. 2007-07-04 Richard Hughes * configure.in: Post release bump to 2.19.6