GNOME Bugzilla – Bug 547932
Restarting dbus system bus kills gnome-power-manager
Last modified: 2010-04-03 20:19:57 UTC
Steps to reproduce: My package manager upgraded dbus and during this process the system dbus daemon was restarted. This killed off gnome-power-manager, though there was no crash dialog so no backtrace :( Stack trace: Other information:
Here is the verbose output of gnome-power-manager when the bus is restarted: [gpm_debug_init] gpm-debug.c:236 (10:49:39): Verbose debugging enabled [main] gpm-main.c:219 (10:49:39): GNOME Power Manager 2.22.1 (gnome-power-manager:26776): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstice.so': libjinglep2pbase-0.3.so.0: cannot open shared object file: No such file or directory [gpm_ac_adapter_init] gpm-ac-adapter.c:217 (10:49:39): using /org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_ADP1 [gpm_control_init] gpm-control.c:657 (10:49:39): Using a supressed policy timeout of 5 seconds [coldplug_buttons] gpm-button.c:446 (10:49:39): Watching /org/freedesktop/Hal/devices/computer_logicaldev_input_3 [coldplug_buttons] gpm-button.c:446 (10:49:39): Watching /org/freedesktop/Hal/devices/usb_device_ac8_c302_noserial_if0_logicaldev_input [coldplug_buttons] gpm-button.c:446 (10:49:39): Watching /org/freedesktop/Hal/devices/computer_logicaldev_input_2 [coldplug_buttons] gpm-button.c:446 (10:49:39): Watching /org/freedesktop/Hal/devices/computer_logicaldev_input_1 [coldplug_buttons] gpm-button.c:446 (10:49:39): Watching /org/freedesktop/Hal/devices/computer_logicaldev_input_0 [coldplug_buttons] gpm-button.c:446 (10:49:39): Watching /org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input [gpm_prefs_server_set_capability] gpm-prefs-server.c:84 (10:49:39): capability now 4 *** WARNING *** [gpm_light_sensor_get_absolute] gpm-light-sensor.c:146 (10:49:39): no hardware! *** WARNING *** [gpm_backlight_brightness_evaluate_and_set] gpm-backlight.c:363 (10:49:39): no dimming hardware [gpm_backlight_sync_policy] gpm-backlight.c:159 (10:49:39): choosing sensible default [gpm_backlight_sync_policy] gpm-backlight.c:161 (10:49:39): laptop, so use GPM_DPMS_METHOD_OFF [gpm_backlight_sync_policy] gpm-backlight.c:193 (10:49:39): BACKLIGHT parameters 0 0 900, method '4' [gpm_dpms_set_enabled] gpm-dpms.c:408 (10:49:39): setting DPMS enabled: 1 [x11_sync_server_dpms_settings] gpm-dpms.c:130 (10:49:39): Syncing DPMS settings enabled=1 timeouts=0 0 0 [x11_sync_server_dpms_settings] gpm-dpms.c:130 (10:49:39): Syncing DPMS settings enabled=1 timeouts=0 0 0 [gpm_idle_set_check_cpu] gpm-idle.c:236 (10:49:39): Setting the CPU load check to 0 [gpm_manager_init] gpm-manager.c:1765 (10:49:39): creating new inhibit instance [gpm_manager_init] gpm-manager.c:1775 (10:49:39): creating new control instance [gpm_manager_init] gpm-manager.c:1780 (10:49:39): creating new tray icon [gpm_manager_init] gpm-manager.c:1789 (10:49:39): initialising info infrastructure [gpm_profile_init] gpm-profile.c:909 (10:49:39): creating new control instance [gpm_profile_init] gpm-profile.c:930 (10:49:39): on AC [gpm_idle_set_system_timeout] gpm-idle.c:287 (10:49:39): Setting system idle timeout: 0 [gpm_warnings_init] gpm-warnings.c:266 (10:49:39): Using per-time notification policy [gpm_phone_dbus_connect] gpm-phone.c:267 (10:49:39): get connection [gpm_phone_dbus_connect] gpm-phone.c:278 (10:49:39): get proxy *** WARNING *** [gpm_phone_dbus_connect] gpm-phone.c:286 (10:49:39): Cannot connect, maybe the daemon is not running: Could not get owner of name 'org.gnome.phone': no such name [gpm_check_device_key] gpm-cell-array.c:714 (10:49:39): checking primary against primary [gpm_cell_array_add_hal_udi] gpm-cell-array.c:794 (10:49:39): adding the right kind of battery: primary [gpm_cell_unit_print] gpm-cell-unit.c:65 (10:49:39): device Laptop battery [gpm_cell_unit_print] gpm-cell-unit.c:66 (10:49:39): present 1 [gpm_cell_unit_print] gpm-cell-unit.c:67 (10:49:39): percent 77 [gpm_cell_unit_print] gpm-cell-unit.c:68 (10:49:39): is charging 1 [gpm_cell_unit_print] gpm-cell-unit.c:69 (10:49:39): is discharging 0 [gpm_cell_unit_print] gpm-cell-unit.c:71 (10:49:39): charge current 39826 [gpm_cell_unit_print] gpm-cell-unit.c:74 (10:49:39): charge last 51060 [gpm_cell_unit_print] gpm-cell-unit.c:77 (10:49:39): charge design 53280 [gpm_cell_unit_print] gpm-cell-unit.c:80 (10:49:39): rate 28171 [gpm_cell_unit_print] gpm-cell-unit.c:83 (10:49:39): time charge 1435 [gpm_cell_unit_print] gpm-cell-unit.c:89 (10:49:39): capacity 95 [gpm_cell_unit_print] gpm-cell-unit.c:92 (10:49:39): voltage 12450 [gpm_profile_set_config_id] gpm-profile.c:782 (10:49:39): config_id = generic_id [gpm_profile_load_data] gpm-profile.c:733 (10:49:39): loading battery data from '/home/sam/.gnome2/gnome-power-manager/profile-generic_id-discharging.csv' [gpm_profile_load_data] gpm-profile.c:733 (10:49:39): loading battery data from '/home/sam/.gnome2/gnome-power-manager/profile-generic_id-charging.csv' [gpm_profile_set_config_id] gpm-profile.c:801 (10:49:39): Reference times [gpm_profile_set_config_id] gpm-profile.c:803 (10:49:39): 99-0 172 minutes [gpm_profile_set_config_id] gpm-profile.c:805 (10:49:39): 50-0 63 minutes [gpm_profile_set_config_id] gpm-profile.c:808 (10:49:39): 0-99 134 minutes [gpm_profile_set_config_id] gpm-profile.c:810 (10:49:39): 50-99 74 minutes [gpm_cell_array_update] gpm-cell-array.c:344 (10:49:39): 1 devices of type primary [gpm_cell_array_update] gpm-cell-array.c:391 (10:49:39): unit->percentage = 77 [gpm_cell_array_collection_changed] gpm-cell-array.c:756 (10:49:39): ** EMIT: collection-changed [gpm_engine_recalculate_state] gpm-engine.c:644 (10:49:39): ignoring due to coldplug [gpm_cell_array_percent_changed] gpm-cell-array.c:524 (10:49:39): printing combined new device: [gpm_cell_unit_print] gpm-cell-unit.c:65 (10:49:39): device Laptop battery [gpm_cell_unit_print] gpm-cell-unit.c:66 (10:49:39): present 1 [gpm_cell_unit_print] gpm-cell-unit.c:67 (10:49:39): percent 77 [gpm_cell_unit_print] gpm-cell-unit.c:68 (10:49:39): is charging 1 [gpm_cell_unit_print] gpm-cell-unit.c:69 (10:49:39): is discharging 0 [gpm_cell_unit_print] gpm-cell-unit.c:71 (10:49:39): charge current 39826 [gpm_cell_unit_print] gpm-cell-unit.c:74 (10:49:39): charge last 51060 [gpm_cell_unit_print] gpm-cell-unit.c:77 (10:49:39): charge design 53280 [gpm_cell_unit_print] gpm-cell-unit.c:80 (10:49:39): rate 28171 [gpm_cell_unit_print] gpm-cell-unit.c:83 (10:49:39): time charge 2362 [gpm_cell_unit_print] gpm-cell-unit.c:86 (10:49:39): time discharge 7409 [gpm_cell_unit_print] gpm-cell-unit.c:92 (10:49:39): voltage 12450 [gpm_cell_array_percent_changed] gpm-cell-array.c:554 (10:49:39): No warning [gpm_cell_array_update] gpm-cell-array.c:344 (10:49:39): 1 devices of type primary [gpm_cell_array_update] gpm-cell-array.c:391 (10:49:39): unit->percentage = 77 [gpm_check_device_key] gpm-cell-array.c:714 (10:49:39): checking primary against ups [gpm_cell_array_add_hal_udi] gpm-cell-array.c:782 (10:49:39): not adding /org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1 for ups [gpm_cell_array_update] gpm-cell-array.c:277 (10:49:39): no devices of type 1 [gpm_check_device_key] gpm-cell-array.c:714 (10:49:39): checking primary against mouse [gpm_cell_array_add_hal_udi] gpm-cell-array.c:782 (10:49:39): not adding /org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1 for mouse [gpm_cell_array_update] gpm-cell-array.c:277 (10:49:39): no devices of type 2 [gpm_check_device_key] gpm-cell-array.c:714 (10:49:39): checking primary against keyboard [gpm_cell_array_add_hal_udi] gpm-cell-array.c:782 (10:49:39): not adding /org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1 for keyboard [gpm_cell_array_update] gpm-cell-array.c:277 (10:49:39): no devices of type 3 [gpm_check_device_key] gpm-cell-array.c:714 (10:49:39): checking primary against pda [gpm_cell_array_add_hal_udi] gpm-cell-array.c:782 (10:49:39): not adding /org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1 for pda [gpm_cell_array_update] gpm-cell-array.c:277 (10:49:39): no devices of type 5 *** WARNING *** [gpm_phone_coldplug] gpm-phone.c:79 (10:49:39): not connected [gpm_cell_array_update] gpm-cell-array.c:277 (10:49:39): no devices of type 4 [gpm_prefs_server_set_capability] gpm-prefs-server.c:84 (10:49:39): capability now 12 [gpm_engine_get_icon] gpm-engine.c:391 (10:49:39): Trying CRITICAL icon: primary, ups, mouse, keyboard [gpm_engine_get_icon] gpm-engine.c:435 (10:49:39): Trying CHARGING icon: primary, ups [gpm_cell_unit_get_icon] gpm-cell-unit.c:210 (10:49:39): got filename: gpm-primary-080-charging [gpm_engine_recalculate_state_icon] gpm-engine.c:575 (10:49:39): ** EMIT: icon-changed: gpm-primary-080-charging [gpm_tray_icon_set_icon] gpm-tray-icon.c:182 (10:49:39): Setting icon to gpm-primary-080-charging [gpm_cell_array_get_description] gpm-cell-array.c:968 (10:49:39): accuracy = 100 [gpm_engine_get_summary] gpm-engine.c:349 (10:49:39): tooltip: Computer is running on AC power Laptop battery 35 minutes until charged (77%) Provides 2 hours battery runtime [gpm_engine_recalculate_state_summary] gpm-engine.c:615 (10:49:39): ** EMIT: summary-changed(1): Computer is running on AC power Laptop battery 35 minutes until charged (77%) Provides 2 hours battery runtime [gconf_key_changed_cb] gpm-conf.c:332 (10:49:39): emitting value-changed : '/apps/gnome-screensaver/power_management_delay' [gconf_key_changed_cb] gpm-screensaver.c:181 (10:49:39): key : /apps/gnome-screensaver/power_management_delay [hal_device_property_modified_cb] gpm-cell.c:258 (10:49:54): udi=/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT1, key=battery.voltage.current, added=0, removed=0, finally=1 DUBS RESTARTED HERE [gpm_engine_recalculate_state_icon] gpm-engine.c:585 (10:49:59): ** EMIT: icon-changed: gpm-ac-adapter [gpm_tray_icon_set_icon] gpm-tray-icon.c:182 (10:49:59): Setting icon to gpm-ac-adapter [gpm_engine_recalculate_state_summary] gpm-engine.c:623 (10:49:59): ** EMIT: summary-changed(2): Unable to get data... and here it exits.
No session application is expected to survive a bus restart. Your distro is broken wanting to restart it on upgrade. The upstream project maintainers do not want the system bus restarted on upgrade. Closing, sorry.
(In reply to comment #2) > No session application is expected to survive a bus restart. Your distro is > broken wanting to restart it on upgrade. The upstream project maintainers do > not want the system bus restarted on upgrade. Closing, sorry. Actually, D-Bus is broken for not being able to support upgrades. It is insane to not restart a system daemon upon upgrades. This bug can be worked around at the application level, and this is already the case for e.g. gnome-session.