Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • phosh phosh
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 234
    • Issues 234
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • World
  • Phosh
  • phoshphosh
  • Merge requests
  • !1173

DRAFT: top-panel: allow device suspend from power menu

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Undef requested to merge Jarrah/phosh:main into main Dec 28, 2022
  • Overview 9
  • Commits 2
  • Pipelines 1
  • Changes 6

Add suspend from the top-panel power menu alongside shutdown and logout. This allows far quicker access than waiting for the automatic timeout or typing the command.

As gnome-session/session-manager does not expose a suspend option via DBus, this has been implemented under the screen saver manager which already has the required code for access to logind.

TODO:

  • Use or otherwise remove the on_suspend_finished callback. (screen-saver-manager.c:541)
  • Test whether an interactive suspend request would be better (screen-saver-manager.c:555)

Additionally, this MR includes a bugfix for phosh_shell_get_screen_saver_manager which would otherwise always return null.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: main