Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • phosh phosh
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 206
    • Issues 206
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 25
    • Merge requests 25
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • World
  • Phosh
  • phoshphosh
  • Merge requests
  • !1016

Emit WakeUpScreen signal and reset idle timers on resume

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Kai Lüke requested to merge kailueke/phosh:kailueke/gsd-power-suspend into main Feb 02, 2022
  • Overview 25
  • Commits 1
  • Pipelines 10
  • Changes 3

When the device resumes from suspend and there is no user input, gsd-power remains in the "sleep" state because there is no WakeUpScreen signal such that even when the new idle timer that gsd-power registered after resume triggers, the transition from "sleep" to "sleep" is ignored and the system does not suspend. A second difference to the behavior of Mutter/GNOME Shell is that on resume there is no reset of the registered idle timers which should also be fixed to ensure that Phosh behaves the same.

Act on the logind PrepareForSleep signal (the resume case) to emit the WakeUpScreen signal and reset the idle timers.

Fixes #686 (closed)

Edited Feb 06, 2022 by Kai Lüke
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: kailueke/gsd-power-suspend