after dapper->edgy on dell latitude l400: system keeps suspending after 5 secs
Gavin McCullagh
gmccullagh at gmail.com
Sat Oct 28 16:24:12 UTC 2006
Hi,
On Sat, 28 Oct 2006, Gavin McCullagh wrote:
> I'm cc-ing the devel list though I don't know if it'll reach them as I'm
> not subscribed. I think /etc/acpi/sleep.sh might have a bug in it.
No, I don't think that. I do think I need more sleep though.
It would appear that two separate processes are invoking
/etc/acpi/sleep.sh for no obvious reason on my laptop.
Firstly, when I boot up with acpi support enabled, before gdm starts and I
get to login, the system starts to go to sleep regularly (not sure of
interval but several times per minute). If, in /etc/default/acpi-support I
set
ACPI_SLEEP=false
this stops -- presumably as /etc/acpi/sleep.sh exits early (line 10). It
also seems to stop if I disable the acpid service (so presumably that's
involved in making the call).
Second, once I login gnome-power-manager calls /etc/acpi/sleep.sh once
every 30 seconds. This proceeds regardless of my above config because it
is passed the "force" option. This "forced" call can be disabled by
unsetting can_suspend in gconf:/apps/gnome-power-manager. One must also
unset lock_on_suspend in gconf:/apps/gnome-power-manager or
gnome-powr-manager will lock the screen every 30 seconds.
If I run gnome-power-manager --no-daemon --verbose, every 30 seconds, I get
the following:
[gpm_info_data_add] gpm-info-data.c:327 (17:19:00): Using 24 lines
[watch_device_condition_cb] gpm-hal.c:953 (17:19:02): emitting device-condition : /org/freedesktop/Hal/devices/acpi_SBTN, ButtonPressed (sleep)
[hal_device_condition_cb] gpm-hal-monitor.c:267 (17:19:02): udi=/org/freedesktop/Hal/devices/acpi_SBTN, condition=ButtonPressed, details=sleep
[emit_button_pressed] gpm-hal-monitor.c:198 (17:19:02): emitting button-pressed : sleep (1)
[hal_button_pressed_cb] gpm-power.c:1673 (17:19:02): emitting button-pressed : sleep (1)
[power_button_pressed_cb] gpm-manager.c:1751 (17:19:02): Button press event type=sleep state=1
[gpm_manager_is_policy_timout_valid] gpm-manager.c:224 (17:19:02): gpm_manager_is_policy_timeout_valid: check-foreground-console returned with 0
[suspend_button_pressed] gpm-manager.c:1632 (17:19:02): suspend button pressed
[manager_policy_do] gpm-manager.c:922 (17:19:02): policy: /apps/gnome-power-manager/action_button_suspend
[gpm_manager_is_policy_timout_valid] gpm-manager.c:224 (17:19:02): gpm_manager_is_policy_timeout_valid: check-foreground-console returned with 0
[gpm_syslog] gpm-debug.c:140 (17:19:02): Saving to syslog: Suspending computer because the suspend button has been pressed
[gpm_info_event_log] gpm-info.c:611 (17:19:02): Adding 6 to the event log
*** WARNING ***
[gpm_manager_suspend] gpm-manager.c:1297 (17:19:02): Cannot suspend
[watch_device_condition_cb] gpm-hal.c:953 (17:19:02): emitting device-condition : /org/freedesktop/Hal/devices/acpi_SBTN, ButtonPressed (sleep)
[hal_device_condition_cb] gpm-hal-monitor.c:267 (17:19:02): udi=/org/freedesktop/Hal/devices/acpi_SBTN, condition=ButtonPressed, details=sleep
[emit_button_pressed] gpm-hal-monitor.c:198 (17:19:02): emitting button-pressed : sleep (1)
[hal_button_pressed_cb] gpm-power.c:1673 (17:19:02): emitting button-pressed : sleep (1)
[power_button_pressed_cb] gpm-manager.c:1751 (17:19:02): Button press event type=sleep state=1
[gpm_manager_is_policy_timout_valid] gpm-manager.c:224 (17:19:02): gpm_manager_is_policy_timeout_valid: check-foreground-console returned with 0
[suspend_button_pressed] gpm-manager.c:1632 (17:19:02): suspend button pressed
[manager_policy_do] gpm-manager.c:922 (17:19:02): policy: /apps/gnome-power-manager/action_button_suspend
[gpm_manager_is_policy_timout_valid] gpm-manager.c:224 (17:19:02): gpm_manager_is_policy_timeout_valid: check-foreground-console returned with 0
[gpm_syslog] gpm-debug.c:140 (17:19:02): Saving to syslog: Suspending computer because the suspend button has been pressed
[gpm_info_event_log] gpm-info.c:611 (17:19:02): Adding 6 to the event log
*** WARNING ***
[gpm_manager_suspend] gpm-manager.c:1297 (17:19:02): Cannot suspend
So, apparently something about my laptop seems to convince acpi that I'm
constantly pressing the acpi sleep/suspend button. Does anyone know what
might cause this? The suspend actually works quite well -- except that my
atmel wireless card driver doesn't like it.
Gavin
More information about the ubuntu-users
mailing list