Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G gnome-settings-daemon
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 297
    • Issues 297
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 39
    • Merge requests 39
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gnome-settings-daemon
  • Issues
  • #111
Closed
Open
Created Nov 04, 2018 by Markus Koller@toupeira

Allow suspend with external monitor connected

When an external monitor is connected, gnome-settings-daemon adds a systemd inhibitor to block handle-lid-switch events:

$ systemd-inhibit --list --mode=block
     Who: toupeira (UID 1000/toupeira, PID 2021/gsd-power)
    What: handle-lid-switch
     Why: Multiple displays attached
    Mode: block

I currently don't have an external keyboard for my laptop, so this behaviour is really unexpected and not usable. It would be great to make this configurable, or maybe smarter to check for external inputs as well.

Some findings:

  • Ubuntu patches in a setting for this called lid-close-suspend-with-external-monitor (link to the actual patch is dead)
  • gnome-tweaks confusingly has a setting called "Suspend when laptop lid is closed", but even when enabled this doesn't override the gsd-power inhibitor
  • logind has a setting LidSwitchIgnoreInhibited, but this doesn't apply to low-level locks such as handle-lid-switch
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking