mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
upower: Work around the daemon getting stuck after a suspend
This commit is contained in:
parent
7d26dde69a
commit
9b431cb24e
@ -50,6 +50,15 @@ with pkgs.lib;
|
||||
mkdir -m 0755 -p /var/lib/upower
|
||||
'';
|
||||
|
||||
# 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.system.build.systemd}/bin/systemctl try-restart upower
|
||||
'';
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user