Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Sledgehammer laptops suspend if lid is closed #429

Open
mclamb opened this issue Feb 19, 2020 · 0 comments
Open

Sledgehammer laptops suspend if lid is closed #429

mclamb opened this issue Feb 19, 2020 · 0 comments

Comments

@mclamb
Copy link
Contributor

mclamb commented Feb 19, 2020

Sledgehammer builder defaults cause it to suspend laptops if the lid is closed. This is fixed by staging a custom version of /etc/systemd/logind.conf in task sledgehammer-stage-bits.yaml that overrides two values:

  - Name: systemd-logind-do-not-suspend-laptops
    Path: /etc/systemd/logind.conf
    Contents: |
      #  This file is part of systemd.
      #
      #  systemd is free software; you can redistribute it and/or modify it
      #  under the terms of the GNU Lesser General Public License as published by
      #  the Free Software Foundation; either version 2.1 of the License, or
      #  (at your option) any later version.
      #
      # Entries in this file show the compile time defaults.
      # You can change settings by editing this file.
      # Defaults can be restored by simply deleting this file.
      #
      # See logind.conf(5) for details.
      
      [Login]
      #NAutoVTs=6
      #ReserveVT=6
      #KillUserProcesses=no
      #KillOnlyUsers=
      #KillExcludeUsers=root
      #InhibitDelayMaxSec=5
      #HandlePowerKey=poweroff
      #HandleSuspendKey=suspend
      #HandleHibernateKey=hibernate
      HandleLidSwitch=ignore
      #HandleLidSwitchDocked=ignore
      #PowerKeyIgnoreInhibited=no
      #SuspendKeyIgnoreInhibited=no
      #HibernateKeyIgnoreInhibited=no
      LidSwitchIgnoreInhibited=no
      #HoldoffTimeoutSec=30s
      #IdleAction=ignore
      #IdleActionSec=30min
      #RuntimeDirectorySize=10%
      #RemoveIPC=yes
      #InhibitorsMax=8192
      #SessionsMax=8192
      #UserTasksMax=33%
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant