feat: fix suspend hybrid with restart
This commit is contained in:
parent
9d0a0cee3d
commit
452f2f4cc9
1 changed files with 3 additions and 5 deletions
|
|
@ -134,7 +134,7 @@
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
|
|
||||||
# Power management for laptop
|
# Power management for laptop
|
||||||
# Configure lid switch behavior - hybrid-sleep when lid is closed to prevent overheating
|
# Configure lid switch behavior - hybrid-sleep with 1-minute delay to hibernate
|
||||||
services.logind = {
|
services.logind = {
|
||||||
lidSwitch = "hybrid-sleep";
|
lidSwitch = "hybrid-sleep";
|
||||||
lidSwitchExternalPower = "hybrid-sleep";
|
lidSwitchExternalPower = "hybrid-sleep";
|
||||||
|
|
@ -143,16 +143,14 @@
|
||||||
|
|
||||||
# Configure suspend-then-hibernate delay (in seconds)
|
# Configure suspend-then-hibernate delay (in seconds)
|
||||||
# This controls how long to stay in suspend before hibernating
|
# This controls how long to stay in suspend before hibernating
|
||||||
# Default is 0 (disabled) - set to a positive value to enable
|
# 60 seconds = 1 minute
|
||||||
# 300 seconds = 5 minutes
|
|
||||||
systemd.sleep.extraConfig = ''
|
systemd.sleep.extraConfig = ''
|
||||||
HibernateDelaySec=300
|
HibernateDelaySec=60
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Enable auto-cpufreq for intelligent power management (replaces TLP)
|
# Enable auto-cpufreq for intelligent power management (replaces TLP)
|
||||||
services.auto-cpufreq.enable = true;
|
services.auto-cpufreq.enable = true;
|
||||||
services.auto-cpufreq.settings = {
|
services.auto-cpufreq.settings = {
|
||||||
# Hybrid mode: automatically switches between performance and powersave
|
|
||||||
battery = {
|
battery = {
|
||||||
governor = "powersave";
|
governor = "powersave";
|
||||||
turbo = "never";
|
turbo = "never";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue