GNOME Bugzilla – Bug 356486
Suspend Fails w/o Helpful Error
Last modified: 2006-09-23 17:34:36 UTC
Gnome Power Manager 2.14.3-3 DBUS 09.2-2 HAL 0.5.7.1-2 Kernel 2.16-2 AMD64, SMP Debian Etch Suspend behavior: Suspend locks the screen and requires a login. When I log in again, my session restores and the GPM icon flashes the bubble telling me that suspend failed and to check the FAQ. I can't find anything in under /var/log/* to indicate a failure. Hibernate behavior: Works mostly, although ALSA does not resume and it complains about the bluetooth driver hci_usb not having a suspend method defined. (I've seen a number of references about the latter being a kernel bug though, and may be repaired in 2.16.18). I tried this suggestion from bug# 356441 # dbus-send --system --print-reply --dest=org.freedesktop.Hal\ /org/freedesktop/Hal/devices/computer \ org.freedesktop.Hal.Device.SystemPowerManagement.Suspend \ int32:0 Error org.freedesktop.DBus.Error.AccessDenied: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.SystemPowerManagement" member "Suspend" error name "(unset)" destination "org.freedesktop.Hal") ACPI Information /proc/acpi/battery/BAT0/alarm alarm: unsupported /proc/acpi/battery/BAT0/info present: yes design capacity: 4660 mAh last full capacity: 4592 mAh battery technology: rechargeable design voltage: 11100 mV design capacity warning: 459 mAh design capacity low: 229 mAh capacity granularity 1: 2 mAh capacity granularity 2: 36 mAh model number: Z96JS serial number: battery type: LION OEM info: ASUS /proc/acpi/battery/BAT0/state present: yes capacity state: ok charging state: charged present rate: 0 mA remaining capacity: 4592 mAh present voltage: 12510 mV gconftool-2 -R /apps/gnome-power-manager check_type_cpu = true can_hibernate = true ac_sleep_display = 1800 battery_brightness = 50 action_button_power = interactive lock_on_hibernate = true battery_sleep_computer = 1200 action_ac_button_lid = blank lock_on_suspend = true dim_on_idle = true lock_on_blank_screen = true notify_hal_error = true ac_brightness = 100 use_time_for_policy = true notify_fully_charged = true display_icon_policy = always policy_suppression_timeout = 5 action_button_suspend = suspend action_sleep_type = suspend notify_ac_adapter = true ac_sleep_computer = 0 battery_sleep_display = 300 action_battery_button_lid = suspend can_suspend = true action_button_hibernate = hibernate action_battery_critical = shutdown check_type_net = true lock_use_screensaver_settings = true Nothing about GPM in /var/log/messages /usr/sbin/hald --daemon=no --verbose=yes 22:00:55.923 [I] hald.c:469: hal 0.5.7.1 22:00:55.923 [I] hald.c:534: Will not daemonize 22:00:55.924 [I] hald_dbus.c:3236: local server is listening at unix:abstract=/tmp/hald-local/dbus-UWjoTGccBB,guid=07280e45c1e71bd93187c9c1e1b22a00 22:00:55.924 [I] hald_runner.c:115: Runner has pid 13875 Runner started - allowed paths are '/usr/lib/hal:/usr/share/hal/scripts' Error binding udev_event socket: Address already in use Thanks! David
Here's the info when running GPM with --verbose. There are several *** WARNING *** statements, the second and third at the time I initiated a suspend from the tray icon. gnome-power-manager --verbose --no-daemon [gpm_debug_init] gpm-debug.c:130 (23:13:25): Verbose debugging enabled [gpm_hash_new_devices_cache] gpm-hal-monitor.c:630 (23:13:25): creating cache [gpm_hal_has_power_management] gpm-hal.c:132 (23:13:25): Power management type : acpi [gpm_hash_new_kind_cache] gpm-power.c:1302 (23:13:25): creating cache [gpm_hash_new_device_cache] gpm-power.c:1328 (23:13:25): creating cache [gpm_power_set_on_ac] gpm-power.c:1018 (23:13:25): emitting ac-state-changed : 1 [gpm_brightness_init] gpm-brightness.c:135 (23:13:25): No devices of capability laptop_panel [gpm_idle_set_check_cpu] gpm-idle.c:206 (23:13:25): Setting the CPU load check to 1 [gpm_manager_init] gpm-manager.c:1862 (23:13:25): creating new tray icon [gpm_dpms_set_enabled] gpm-dpms-x11.c:422 (23:13:25): setting DPMS enabled: 1 [x11_sync_server_dpms_settings] gpm-dpms-x11.c:117 (23:13:25): Syncing DPMS settings enabled=1 timeouts=0 0 0 [x11_sync_server_dpms_settings] gpm-dpms-x11.c:117 (23:13:25): Syncing DPMS settings enabled=1 timeouts=0 0 0 *** WARNING *** [gpm_hal_handle_error] gpm-hal.c:192 (23:13:25): power save failed (No powersave method found) GNOME Power Manager has encountered a non-critical warning. Consult http://bugzilla.gnome.org/buglist.cgi?product=gnome-power-manager for any known issues or a possible fix. Please file a bug with this complete message if not present [gpm_screensaver_enable_throttle] gpm-screensaver.c:123 (23:13:25): setThrottleEnabled : 0 [gpm_idle_set_system_timeout] gpm-idle.c:272 (23:13:25): Setting system idle timeout: 3300 [x11_sync_server_dpms_settings] gpm-dpms-x11.c:117 (23:13:25): Syncing DPMS settings enabled=1 timeouts=0 0 0 [gpm_manager_init] gpm-manager.c:1917 (23:13:25): Using per-time notification policy [gpm_manager_init] gpm-manager.c:1926 (23:13:25): Using a supressed policy timeout of 5 seconds [hal_connect_signals] gpm-hal-monitor.c:491 (23:13:25): Connecting signals to HAL [coldplug_all] gpm-hal-monitor.c:587 (23:13:25): coldplugging all devices [watch_device_add] gpm-hal-monitor.c:356 (23:13:25): Adding new device to watch: /org/freedesktop/Hal/devices/acpi_BAT0 [watch_device_add] gpm-hal-monitor.c:364 (23:13:25): Creating proxy for: /org/freedesktop/Hal/devices/acpi_BAT0 [watch_add_battery] gpm-hal-monitor.c:391 (23:13:25): emitting battery-added : /org/freedesktop/Hal/devices/acpi_BAT0 [hal_battery_added_cb] gpm-power.c:1214 (23:13:25): Battery Added: /org/freedesktop/Hal/devices/acpi_BAT0 [add_battery] gpm-power.c:1161 (23:13:25): adding /org/freedesktop/Hal/devices/acpi_BAT0 [gpm_hal_device_get_int] gpm-hal.c:422 (23:13:25): No property battery.remaining_time on device with id /org/freedesktop/Hal/devices/acpi_BAT0 [gpm_hal_device_get_string] gpm-hal.c:386 (23:13:25): No property info.vendor on device with id /org/freedesktop/Hal/devices/acpi_BAT0 [gpm_hal_device_get_string] gpm-hal.c:386 (23:13:25): No property battery.serial on device with id /org/freedesktop/Hal/devices/acpi_BAT0 [battery_kind_cache_update] gpm-power.c:731 (23:13:25): 1 devices of type Laptop battery [battery_kind_cache_update] gpm-power.c:769 (23:13:25): emitting battery-status-changed : Laptop battery [get_stock_id] gpm-manager.c:332 (23:13:25): Getting stock icon for tray [get_stock_id] gpm-manager.c:362 (23:13:25): Trying CRITICAL: primary, ups, mouse, keyboard [get_stock_id] gpm-manager.c:386 (23:13:25): Trying CHARGING: primary, ups [get_stock_id] gpm-manager.c:403 (23:13:25): Trying PRESENT: primary, ups [get_stock_id_helper] gpm-manager.c:316 (23:13:25): filename = battery-charged [tray_icon_update] gpm-manager.c:438 (23:13:25): Going to use stock id: battery-charged [gpm_tray_icon_set_image_from_stock] gpm-tray-icon.c:178 (23:13:25): Setting icon to battery-charged [gpm_power_get_status_summary] gpm-power.c:979 (23:13:25): tooltip: Computer is running on AC power Laptop battery fully charged (100%) [battery_status_changed_primary] gpm-manager.c:1363 (23:13:25): Laptop battery is not discharging [battery_kind_cache_debug_print] gpm-power.c:416 (23:13:25): Device : Laptop battery [battery_kind_cache_debug_print] gpm-power.c:418 (23:13:25): number 1 design 51726000 [battery_kind_cache_debug_print] gpm-power.c:420 (23:13:25): present 1 last_full 50971200 [battery_kind_cache_debug_print] gpm-power.c:422 (23:13:25): percent 100 current 50971200 [battery_kind_cache_debug_print] gpm-power.c:424 (23:13:25): charge 0 rate 0 [battery_kind_cache_debug_print] gpm-power.c:426 (23:13:25): discharge 0 remaining 0 [battery_kind_cache_debug_print] gpm-power.c:428 (23:13:25): capacity 0 [watch_device_add] gpm-hal-monitor.c:356 (23:13:25): Adding new device to watch: /org/freedesktop/Hal/devices/acpi_AC0 [watch_device_add] gpm-hal-monitor.c:364 (23:13:25): Creating proxy for: /org/freedesktop/Hal/devices/acpi_AC0 [watch_device_add] gpm-hal-monitor.c:356 (23:13:25): Adding new device to watch: /org/freedesktop/Hal/devices/acpi_SLPB [watch_device_add] gpm-hal-monitor.c:364 (23:13:25): Creating proxy for: /org/freedesktop/Hal/devices/acpi_SLPB [watch_device_add] gpm-hal-monitor.c:356 (23:13:25): Adding new device to watch: /org/freedesktop/Hal/devices/acpi_PWRF [watch_device_add] gpm-hal-monitor.c:364 (23:13:25): Creating proxy for: /org/freedesktop/Hal/devices/acpi_PWRF [watch_device_add] gpm-hal-monitor.c:356 (23:13:25): Adding new device to watch: /org/freedesktop/Hal/devices/acpi_PWRB [watch_device_add] gpm-hal-monitor.c:364 (23:13:25): Creating proxy for: /org/freedesktop/Hal/devices/acpi_PWRB [watch_device_add] gpm-hal-monitor.c:356 (23:13:25): Adding new device to watch: /org/freedesktop/Hal/devices/acpi_LID [watch_device_add] gpm-hal-monitor.c:364 (23:13:25): Creating proxy for: /org/freedesktop/Hal/devices/acpi_LID [watch_device_add] gpm-hal-monitor.c:356 (23:13:25): Adding new device to watch: /org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input [watch_device_add] gpm-hal-monitor.c:364 (23:13:25): Creating proxy for: /org/freedesktop/Hal/devices/platform_i8042_i8042_Kbd_Port_logicaldev_input [watch_device_properties_modified] gpm-hal-monitor.c:254 (23:13:46): property modified '/org/freedesktop/Hal/devices/acpi_BAT0' [watch_device_property_modified] gpm-hal-monitor.c:215 (23:13:46): udi=/org/freedesktop/Hal/devices/acpi_BAT0, key=battery.voltage.current, added=0, removed=0 [watch_device_property_modified] gpm-hal-monitor.c:230 (23:13:46): emitting battery-property-modified : /org/freedesktop/Hal/devices/acpi_BAT0, battery.voltage.current [hal_battery_property_modified_cb] gpm-power.c:1245 (23:13:46): Battery Property Modified: /org/freedesktop/Hal/devices/acpi_BAT0 [battery_kind_cache_update] gpm-power.c:731 (23:13:46): 1 devices of type Laptop battery [battery_kind_cache_update] gpm-power.c:769 (23:13:46): emitting battery-status-changed : Laptop battery [get_stock_id] gpm-manager.c:332 (23:13:46): Getting stock icon for tray [get_stock_id] gpm-manager.c:362 (23:13:46): Trying CRITICAL: primary, ups, mouse, keyboard [get_stock_id] gpm-manager.c:386 (23:13:46): Trying CHARGING: primary, ups [get_stock_id] gpm-manager.c:403 (23:13:46): Trying PRESENT: primary, ups [get_stock_id_helper] gpm-manager.c:316 (23:13:46): filename = battery-charged [tray_icon_update] gpm-manager.c:438 (23:13:46): Going to use stock id: battery-charged [gpm_tray_icon_set_image_from_stock] gpm-tray-icon.c:178 (23:13:46): Setting icon to battery-charged [gpm_power_get_status_summary] gpm-power.c:979 (23:13:46): tooltip: Computer is running on AC power Laptop battery fully charged (100%) [battery_status_changed_primary] gpm-manager.c:1363 (23:13:46): Laptop battery is not discharging [battery_kind_cache_debug_print] gpm-power.c:416 (23:13:46): Device : Laptop battery [battery_kind_cache_debug_print] gpm-power.c:418 (23:13:46): number 1 design 51726000 [battery_kind_cache_debug_print] gpm-power.c:420 (23:13:46): present 1 last_full 50971200 [battery_kind_cache_debug_print] gpm-power.c:422 (23:13:46): percent 100 current 50971200 [battery_kind_cache_debug_print] gpm-power.c:424 (23:13:46): charge 0 rate 0 [battery_kind_cache_debug_print] gpm-power.c:426 (23:13:46): discharge 0 remaining 0 [battery_kind_cache_debug_print] gpm-power.c:428 (23:13:46): capacity 0 [watch_device_properties_modified] gpm-hal-monitor.c:254 (23:14:16): property modified '/org/freedesktop/Hal/devices/acpi_BAT0' [watch_device_property_modified] gpm-hal-monitor.c:215 (23:14:16): udi=/org/freedesktop/Hal/devices/acpi_BAT0, key=battery.voltage.current, added=0, removed=0 [watch_device_property_modified] gpm-hal-monitor.c:230 (23:14:16): emitting battery-property-modified : /org/freedesktop/Hal/devices/acpi_BAT0, battery.voltage.current [hal_battery_property_modified_cb] gpm-power.c:1245 (23:14:16): Battery Property Modified: /org/freedesktop/Hal/devices/acpi_BAT0 [battery_kind_cache_update] gpm-power.c:731 (23:14:16): 1 devices of type Laptop battery [battery_kind_cache_update] gpm-power.c:769 (23:14:16): emitting battery-status-changed : Laptop battery [get_stock_id] gpm-manager.c:332 (23:14:16): Getting stock icon for tray [get_stock_id] gpm-manager.c:362 (23:14:16): Trying CRITICAL: primary, ups, mouse, keyboard [get_stock_id] gpm-manager.c:386 (23:14:16): Trying CHARGING: primary, ups [get_stock_id] gpm-manager.c:403 (23:14:16): Trying PRESENT: primary, ups [get_stock_id_helper] gpm-manager.c:316 (23:14:16): filename = battery-charged [tray_icon_update] gpm-manager.c:438 (23:14:16): Going to use stock id: battery-charged [gpm_tray_icon_set_image_from_stock] gpm-tray-icon.c:178 (23:14:16): Setting icon to battery-charged [gpm_power_get_status_summary] gpm-power.c:979 (23:14:16): tooltip: Computer is running on AC power Laptop battery fully charged (100%) [battery_status_changed_primary] gpm-manager.c:1363 (23:14:16): Laptop battery is not discharging [battery_kind_cache_debug_print] gpm-power.c:416 (23:14:16): Device : Laptop battery [battery_kind_cache_debug_print] gpm-power.c:418 (23:14:16): number 1 design 51726000 [battery_kind_cache_debug_print] gpm-power.c:420 (23:14:16): present 1 last_full 50971200 [battery_kind_cache_debug_print] gpm-power.c:422 (23:14:16): percent 100 current 50971200 [battery_kind_cache_debug_print] gpm-power.c:424 (23:14:16): charge 0 rate 0 [battery_kind_cache_debug_print] gpm-power.c:426 (23:14:16): discharge 0 remaining 0 [battery_kind_cache_debug_print] gpm-power.c:428 (23:14:16): capacity 0 [gpm_tray_icon_suspend_cb] gpm-tray-icon.c:207 (23:14:25): emitting suspend [gpm_manager_tray_icon_suspend] gpm-manager.c:1784 (23:14:25): Received supend signal from tray icon [manager_do_we_screensave] gpm-manager.c:588 (23:14:25): Using ScreenSaver settings (1) [gpm_screensaver_lock] gpm-screensaver.c:164 (23:14:25): doing gnome-screensaver lock [gpm_syslog] gpm-debug.c:117 (23:14:26): Saving to syslog: Suspending computer because user clicked suspend from tray menu *** WARNING *** [gpm_hal_handle_error] gpm-hal.c:192 (23:14:26): suspend failed (An unknown error occured) [gpm_tray_icon_notify] gpm-tray-icon.c:763 (23:14:26): doing notify: Suspend Problem [get_widget_position] gpm-tray-icon.c:590 (23:14:26): widget position x=1532, y=29 *** WARNING *** [libnotify_event] gpm-tray-icon.c:634 (23:14:26): libnotify: Power Manager : Your computer failed to suspend. Check the <a href="http://www.gnome.org/projects/gnome-power-manager/faq.html">FAQ page</a> for common problems. [gpm_screensaver_poke] gpm-screensaver.c:206 (23:14:26): poke [x11_sync_server_dpms_settings] gpm-dpms-x11.c:117 (23:14:26): Syncing DPMS settings enabled=1 timeouts=0 0 0 [session_idle_changed_handler] gpm-idle.c:373 (23:14:26): Received GS idle changed: 1 [gpm_idle_set_mode] gpm-idle.c:222 (23:14:26): Doing a state transition: 1 [idle_changed_cb] gpm-manager.c:997 (23:14:26): Idle state changed: SESSION [gpm_dpms_set_active] gpm-dpms-x11.c:457 (23:14:26): setting DPMS active: 1 [x11_sync_server_dpms_settings] gpm-dpms-x11.c:117 (23:14:26): Syncing DPMS settings enabled=1 timeouts=1200 1200 2400 [x11_sync_server_dpms_settings] gpm-dpms-x11.c:193 (23:14:26): set DPMS timeouts: 1200 1200 2400. [gpm_brightness_level_save] gpm-brightness.c:365 (23:14:26): Saving and setting brightness to 30% [x11_sync_server_dpms_settings] gpm-dpms-x11.c:117 (23:14:26): Syncing DPMS settings enabled=1 timeouts=1200 1200 2400 [session_idle_changed_handler] gpm-idle.c:373 (23:14:30): Received GS idle changed: 0 [gpm_idle_set_mode] gpm-idle.c:222 (23:14:30): Doing a state transition: 0 [idle_changed_cb] gpm-manager.c:974 (23:14:30): Idle state changed: NORMAL [gpm_dpms_set_active] gpm-dpms-x11.c:457 (23:14:30): setting DPMS active: 0 [x11_sync_server_dpms_settings] gpm-dpms-x11.c:117 (23:14:30): Syncing DPMS settings enabled=1 timeouts=0 0 0 [x11_sync_server_dpms_settings] gpm-dpms-x11.c:193 (23:14:30): set DPMS timeouts: 0 0 0. [gpm_brightness_level_resume] gpm-brightness.c:380 (23:14:30): Resuming to previous brightness *** WARNING *** [gpm_brightness_level_set_hw] gpm-brightness.c:223 (23:14:30): set outside range (0 of -1) [x11_sync_server_dpms_settings] gpm-dpms-x11.c:117 (23:14:30): Syncing DPMS settings enabled=1 timeouts=0 0 0 [notification_closed_cb] gpm-tray-icon.c:603 (23:14:32): caught notification closed signal [watch_device_properties_modified] gpm-hal-monitor.c:254 (23:14:46): property modified '/org/freedesktop/Hal/devices/acpi_BAT0' [watch_device_property_modified] gpm-hal-monitor.c:215 (23:14:46): udi=/org/freedesktop/Hal/devices/acpi_BAT0, key=battery.voltage.current, added=0, removed=0 [watch_device_property_modified] gpm-hal-monitor.c:230 (23:14:46): emitting battery-property-modified : /org/freedesktop/Hal/devices/acpi_BAT0, battery.voltage.current [hal_battery_property_modified_cb] gpm-power.c:1245 (23:14:46): Battery Property Modified: /org/freedesktop/Hal/devices/acpi_BAT0 [battery_kind_cache_update] gpm-power.c:731 (23:14:46): 1 devices of type Laptop battery [battery_kind_cache_update] gpm-power.c:769 (23:14:46): emitting battery-status-changed : Laptop battery [get_stock_id] gpm-manager.c:332 (23:14:46): Getting stock icon for tray [get_stock_id] gpm-manager.c:362 (23:14:46): Trying CRITICAL: primary, ups, mouse, keyboard [get_stock_id] gpm-manager.c:386 (23:14:46): Trying CHARGING: primary, ups [get_stock_id] gpm-manager.c:403 (23:14:46): Trying PRESENT: primary, ups [get_stock_id_helper] gpm-manager.c:316 (23:14:46): filename = battery-charged [tray_icon_update] gpm-manager.c:438 (23:14:46): Going to use stock id: battery-charged [gpm_tray_icon_set_image_from_stock] gpm-tray-icon.c:178 (23:14:46): Setting icon to battery-charged [gpm_power_get_status_summary] gpm-power.c:979 (23:14:46): tooltip: Computer is running on AC power Laptop battery fully charged (100%) [battery_status_changed_primary] gpm-manager.c:1363 (23:14:46): Laptop battery is not discharging [battery_kind_cache_debug_print] gpm-power.c:416 (23:14:46): Device : Laptop battery [battery_kind_cache_debug_print] gpm-power.c:418 (23:14:46): number 1 design 51726000 [battery_kind_cache_debug_print] gpm-power.c:420 (23:14:46): present 1 last_full 50971200 [battery_kind_cache_debug_print] gpm-power.c:422 (23:14:46): percent 100 current 50971200 [battery_kind_cache_debug_print] gpm-power.c:424 (23:14:46): charge 0 rate 0 [battery_kind_cache_debug_print] gpm-power.c:426 (23:14:46): discharge 0 remaining 0 [battery_kind_cache_debug_print] gpm-power.c:428 (23:14:46): capacity 0
org.freedesktop.DBus.Error.AccessDenied means that your user has not got the required privs to invoke the method calls. Have a look in /etc/dbus-1/system.d/hal.conf and maybe add your user. It sounds like debian is not assigning users "at_console" (or it locks down security, I don't know) and therefore this does not just work. I don't think this is a g-p-m bug, sorry.
hi richard, Bah, this guy didn't read README.Debian /usr/share/doc/gnome-power-manager/README.Debian yes, this isn't a g-p-m bug :)