@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 Desktop
Packages, which is subscribed to gnome-settings-daemon in Ubuntu.
https://bugs.launchpad.net/bugs/1832693

Title:
  System auto suspend again during resuming

Status in gnome-settings-daemon package in Ubuntu:
  Incomplete

Bug description:
  ## Issue
  In certain case, system wake-up from suspend will suspend again automatically.

  The issue comes from a target machine turning auto-suspend on and
  suspends after the idle time-out. Manually suspend, e.g., click
  suspend icon or execute "systemctl suspend" won't reproduce the issue.

  When waking up from this situation, the monitor keeps blank, although
  the monitor has exited low power mode, then suspend again immediately.
  Can successfully waking up the system after that, but once the system
  reaches the idle time again, the issue appears repeatedly. From the
  system log, a sleep request is following the wake request.

  Hardware configuration also counts. It is hard to reproduce the issue
  with the system installed on SSD or with a lower resolution monitor;
  graphics card may also affect. It's likely to be a timing issue.

  ## Environment
  Machine: Dell Precision 7920 Tower.
  Monitor: Philips 288P6L
  DistroRelease: Ubuntu 18.04.2
  Graphics card: Nvidia Quadro P2200
  Nvidia driver version: 418.74
  CPU: Intel(R) Xeon(R) Platinum 8276 CPU @ 2.20GHz

  ## Steps to reproduce:
  Turn on automatic suspend in Settings->Power
  Wait for the system to suspend
  Wake up the system via pressing power button or keyboard.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to