From a6f6c42e888c54bcdd720cab6238975635ba9193 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 19 Oct 2024 23:43:11 -0400 Subject: [PATCH] hwModules/legion/go: add bazzite udev rules --- hwModules/lenovo/legion/go/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hwModules/lenovo/legion/go/default.nix b/hwModules/lenovo/legion/go/default.nix index 7695f3a8..55ffd543 100644 --- a/hwModules/lenovo/legion/go/default.nix +++ b/hwModules/lenovo/legion/go/default.nix @@ -116,12 +116,18 @@ in { ]; udev.extraRules = '' + # Lenovo Legion Go Controller + ACTION=="add", ATTRS{idVendor}=="17ef", ATTRS{idProduct}=="6182", RUN+="${pkgs.kmod}/bin/modprobe xpad" RUN+="/bin/sh -c 'echo 17ef 6182 > /sys/bus/usb/drivers/xpad/new_id'" + # SSD ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="kyber" + # NVME ACTION=="add|change", KERNEL=="nvme[0-9]n[0-9]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="kyber" + # MicroSD ACTION=="add|change", KERNEL=="mmcblk[0-9]p[0-9]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq" + # HDD ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq" '';