mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2026-01-08 08:49:52 +01:00
profile/powersave: disale auto-suspend for keyboards
Some checks failed
/ Build Nix targets (push) Has been cancelled
Some checks failed
/ Build Nix targets (push) Has been cancelled
This commit is contained in:
parent
d508d19fa6
commit
1e3eee277f
1 changed files with 7 additions and 0 deletions
|
|
@ -27,5 +27,12 @@ in
|
|||
thermald.enable = true;
|
||||
upower.enable = true;
|
||||
};
|
||||
|
||||
services.udev.extraRules = ''
|
||||
# disable USB auto suspend for Keychron Q3 HE
|
||||
ACTION=="bind", SUBSYSTEM=="usb", ATTR{idVendor}=="3434", ATTR{idProduct}=="0b31", ATTR{power/autosuspend}="-1"
|
||||
# disable USB auto suspend for Keychron Q3
|
||||
ACTION=="bind", SUBSYSTEM=="usb", ATTR{idVendor}=="3434", ATTR{idProduct}=="0123", ATTR{power/autosuspend}="-1"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue