[hardy] resume displays "Policy timeout is not valid. Please wait a few seconds and try again"

Bug #211302 reported by Emil Sit
30
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Invalid
Undecided
Unassigned
hal (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: gnome-power-manager

On a Thinkpad X40, on resume, a tooltip is displayed indicating:
    Action Forbidden: Policy timeout is not valid. Please wait a few seconds and try again

This may possibly also have also been observed in bug #176544 but presumably not due to the same root cause as #189445. Some possibly relevant log messages through a suspend/resume cycle:

$ gnome-power-manager --no-daemon --verbose --debug
[gpm_debug_init] gpm-debug.c:236 (09:53:14): Verbose debugging enabled
[main] gpm-main.c:219 (09:53:14): GNOME Power Manager 2.22.1
[gpm_ac_adapter_init] gpm-ac-adapter.c:217 (09:53:14): using /org/freedesktop/Hal/devices/computer_power_supply_ac_adapter_AC
[gpm_control_init] gpm-control.c:657 (09:53:14): Using a supressed policy timeout of 5 seconds
...
Saving to syslog: Suspending computer. Reason: The suspend button has been pressed.[gpm_info_event_log] gpm-info.c:594 (09:53:28): Adding 5 to the event log
[gpm_control_get_lock_policy] gpm-control.c:389 (09:53:28): Using custom locking settings (1)
...
Saving to syslog: Resuming computer[gpm_info_event_log] gpm-info.c:594 (09:53:54): Adding 7 to the event log
...
[gpm_control_is_policy_timout_valid] gpm-control.c:116 (09:53:54): Skipping suppressed action
[gpm_notify_create] gpm-notify.c:126 (09:53:54): libnotify: Power Manager : Policy timeout is not valid. Please wait a few seconds and try again.

$ apt-cache policy gnome-power-manager
gnome-power-manager:
  Installed: 2.22.1-1ubuntu2
  Candidate: 2.22.1-1ubuntu2
  Version table:
 *** 2.22.1-1ubuntu2 0
        500 http://us.archive.ubuntu.com hardy/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Gerv (gerv) wrote :

I see exactly the same thing on my X40. (Rather unhelpful as an error message...) Let me know if I can help debug.

Revision history for this message
Emil Sit (emilsit) wrote :

It'd be useful to determine if this is X40 specific ... does anyone not on an X40 see this error? I don't know enough about gnome-power-manager to offer much other debugging suggestions.

Changed in gnome-power-manager:
status: New → Confirmed
Revision history for this message
Ted Gould (ted) wrote :

Could you readd the messages in the last "...."? It would be useful to know what actions it is surpressing.

Revision history for this message
christooss (matic-ahacic) wrote :

I have HP compaq 6720s and I get same problem. Suspend is taking rather long time. I don't quite remember how this was in Gutsy but I think it was much faster. Even in Hardy waking from suspend was quick

It takes about 10 sec.

Revision history for this message
Gerv (gerv) wrote :

Taking my cue from the original reporter, here is a full log of

gnome-power-manager --no-daemon --verbose --debug power > gpm.txt 2>&1

It contains two suspends. On the first, the error popped up just as the screen was fading out to suspend. On the second, it appeared when the desktop came back on the resume.

Let me know if there's more information you need.

Gerv

Revision history for this message
Gerv (gerv) wrote :

Having looked at the code in gnome-power-manager, the first error in my log file could be bogus. It looks like this error comes up if it receives two commands too quickly (inside the timeout value). The first suspend may have been initiated pretty quickly after the previous resume, which is why the message appeared on suspend rather than resume.

It seems odd that the error comes up telling you to try again, but then the suspend/resume succeeds anyway...

I'll let someone who knows what they are doing take it from here :-)

Gerv

Revision history for this message
Ted Gould (ted) wrote :

It looks to me from that log like we're getting two sleep button events for everytime you're pressing the sleep button. I'm unsure of why in one case they're both before the suspend and the second they're split across it. I'm reassigning this to hal as we shouldn't be getting those dual events (though it's good we're blocking them).

Revision history for this message
Emil Sit (emilsit) wrote :

Here's an unfiltered gpm log for the X40, with a single suspend event.

I have occasionally seen messages saying that suspend failed, even though the machine suspended, which seems to align with getting two sleep events.

Revision history for this message
ZanoZik (zanozik) wrote :

So in other words, the policy insists that there should be no two APM events in 5 seconds gap and blocks them?
If unplugging the AC adapter is considered as APM event, then the fact that I don't get a "lid closed" (or "button pressed" for that matter) suspend after I unplug the adapter - is not a bug, but rather a feature? :)

Revision history for this message
dn (nobled) wrote :

Oops. Didn't mean to press the "also needs a fix here" button for gnome-power-manager.

Changed in gnome-power-manager:
status: New → Invalid
Revision history for this message
lobner (soren-lobner) wrote :

Just reporting I have Hardy on an X60 and experience the same bug whenever I resume from suspend, while having AC power connected.

Revision history for this message
LOKe (lbharti) wrote :

I have the same problem on X61.

Revision history for this message
Chaskiel Grundman (cg2v) wrote :

I don't actually use ubuntu, but based on what I'm seeing on debian lenny, I would guess that the extra event is coming from acpi-support, as it invokes 'acpi_fakekey $KEY_SLEEP' when it processes a sleep button acpi event and finds that gnome-power-manager or klaptopdaemon is running. (this will be in /etc/acpi/sleep.sh, /etc/acpi/sleepbtn.sh, or /usr/share/acpi-support/suspendorhibernate, depending on the version of the acpi-support package)

Revision history for this message
lobner (soren-lobner) wrote :

Same problem on my X60 with Hardy.

Seems quite a lot is having this problem - hope someone smart finds a way to fix it...

Revision history for this message
Michael Gauthier (mike-silverorange) wrote :

Same problem with a T43 on 8.04.1

Revision history for this message
balak (balak) wrote :

I see the same issue on an averatec 2100 series laptop.

uname:
Linux abc 2.6.24-19-generic #1 SMP Fri Jul 11 21:01:46 UTC 2008 x86_64 GNU/Linux

In my laptop, the first suspend/resume cycle happens fine. However, after 1 cycle, it is unable to resume from suspend or hibernate. I have to do a hard-reboot.

Also attaching the output of
$ gnome-power-manager --no-daemon --verbose --debug all
for what is is worth

Revision history for this message
Michael Gauthier (mike-silverorange) wrote :

balak,

Your problem could be a different bug. Suspend-resume always works for my T43, I just see the notification message when resuming.

Revision history for this message
Thomas Novin (thomasn80) wrote :

I get this problem from time to time aswell on my 8.04.1 system.

Revision history for this message
Kasper J. (kasperj) wrote :

Iæm affected by this too (aren't everybody?). I understand it could be a feature, but it's more annoying than helpful. Is it difficult fix or is just forgotten on the TO DO list? ;)

Revision history for this message
Charlie Daly (cdaly) wrote :

I noticed this message briefly appear (almost flicker - could just make out the text 'policy timeout') on my Toshiba Satelite pro (U200) running Hardy.

It's the first time I noticed it and it probably was because, I opened the lid and then pressed the power button. Opening the lid is normally enough to trigger resume, but I accidently pressed the power button which was probably the cause of the alert.

Revision history for this message
Michael Shulman (shulman) wrote :

I used to get this message frequently, but I haven't seen it appear in quite some time, certainly never with karmic. Maybe it's been fixed?

Revision history for this message
dino99 (9d9) wrote :
Changed in hal (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.