fix(tazjin/khamovnik): try to force suspend on all lid close events
logind doesn't like reliably suspending, and apparently it has a bunch of bugs around dock detection (I don't even use docks), but maybe this helps Change-Id: Ia822799cde838d8d41a67f9d39d59d1fa0306116 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12429 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
1c898f7ddc
commit
632e74e435
1 changed files with 7 additions and 0 deletions
|
@ -117,6 +117,13 @@ in
|
||||||
# Try to work around Intel CPU throttling bugs
|
# Try to work around Intel CPU throttling bugs
|
||||||
services.throttled.enable = true;
|
services.throttled.enable = true;
|
||||||
|
|
||||||
|
# Try to get suspend to work more reliably
|
||||||
|
services.logind = {
|
||||||
|
lidSwitch = "suspend";
|
||||||
|
lidSwitchDocked = "suspend";
|
||||||
|
lidSwitchExternalPower = "suspend";
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
|
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue