mirror of
https://github.com/youwen5/nixos.git
synced 2025-02-07 21:11:11 -08:00
feat(adrastea): prevent usb devices from waking suspend using udev
Some checks are pending
Check flake / check (push) Waiting to run
Some checks are pending
Check flake / check (push) Waiting to run
This commit is contained in:
parent
0d729d187f
commit
24aa4ea3f6
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@
|
||||||
cpuModelId = "00A50F00";
|
cpuModelId = "00A50F00";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
ACTION=="add" SUBSYSTEM=="pci" ATTR{vendor}=="0x1022" ATTR{device}=="0x1639" ATTR{power/wakeup}="disabled"
|
||||||
|
'';
|
||||||
|
|
||||||
services.tlp.enable = lib.mkForce false;
|
services.tlp.enable = lib.mkForce false;
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = "performance";
|
powerManagement.cpuFreqGovernor = "performance";
|
||||||
|
|
Loading…
Reference in a new issue