@Sebastien

Thank you for your response. It is "Ubuntu 18.04.2".

I've found the root cause of this problem last week. In plugins/power
/gsd-power-manager.c, handle_wake_up_screen enables
temporary_unidle_done_cb to run after 15 seconds before system enters
suspend. In most cases, temporary_unidle_done_cb will be removed by
idle_became_active_cb right after resuming so it won't cause any
trouble.

In my case, after resuming, somehow temporary_unidle_done_cb is
triggered before idle_became_active_cb meanwhile previous_idle_mode is
still sleep mode, so it calls idle_set_mode to sleep again although has
been inhibited.

I've tried to put a workaround, letting temporary_unidle_done_cb to
check if inhibit_suspend_taken to be true and not to execute
idle_set_mode. It does solve this problem but seems not the right way to
fix it.

I added some wrapper to log the caller, hope it is easy to understand.


** Attachment added: "faillog7.log"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1832693/+attachment/5272633/+files/faillog7.log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1832693

Title:
  System auto suspend again during resuming

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/1832693/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to