mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/upower: drop resumeCommands hack
Introduced 7 years ago, it's likely the issue has been fixed. Even possible this could cause issues with recent upower.
This commit is contained in:
parent
92740dd4a8
commit
16083defb5
1 changed files with 0 additions and 9 deletions
|
@ -54,15 +54,6 @@ in
|
||||||
|
|
||||||
systemd.packages = [ cfg.package ];
|
systemd.packages = [ cfg.package ];
|
||||||
|
|
||||||
# The upower daemon seems to get stuck after doing a suspend
|
|
||||||
# (i.e. subsequent suspend requests will say "Sleep has already
|
|
||||||
# been requested and is pending"). So as a workaround, restart
|
|
||||||
# the daemon.
|
|
||||||
powerManagement.resumeCommands =
|
|
||||||
''
|
|
||||||
${config.systemd.package}/bin/systemctl try-restart upower
|
|
||||||
'';
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue