From d759fea31bfbefadc7fb548b6844e6af72ecc10c Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Mon, 8 May 2023 02:24:22 +0100 Subject: [PATCH] Add modprobe.d files Signed-off-by: Nikolaos Karaolidis --- README.md | 8 +++++++- modprobe.d/sp5100-watchdog.conf | 1 + modprobe.d/thinkpad.conf | 1 + modprobe.d/touchpad.conf | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 modprobe.d/sp5100-watchdog.conf create mode 100644 modprobe.d/thinkpad.conf create mode 100644 modprobe.d/touchpad.conf diff --git a/README.md b/README.md index 028759a..3994db7 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,18 @@ Scripts in the `bin` folder should be placed in `/usr/local/bin` or a similar di - `conservation_mode`: Toggle battery conservation mode which limits charge to 60% to preserve its health - `power_saving_mode`: Change CPU governor, brightness, and refresh rate to extend battery life +Files in the `modprobe.d` folder should be placed in `/etc/modprobe.d` and owned by `root`. + +- `sp5100-watchdog.conf`: Disables the sp5100 watchdog module which causes watchdot warnings in the kernel log +- `thinkpad.conf`: Sets fan_control=1 for thinkpad_acpi to enable fan control +- `touchpad.conf`: Fixes a module loading race condition that causes the touchpad to not work on boot + Files in the `udev` folder should be placed in `/etc/udev/rules.d` and owned by `root`. - `backlight.rules`: Gives normal users access to backlight controls - `touchpad_input.rules`: Maps the touchpad's variable `/dev/input/event*` path to the static `/dev/input/touchpad` for VFIO passthrough -FIles in the `xorg` folder should be placed in `/usr/share/X11/xorg.conf.d` and owned by `root`. +Files in the `xorg` folder should be placed in `/usr/share/X11/xorg.conf.d` and owned by `root`. - `10-nvidia-refresh-rate.conf`: Enables 165Hz on boot when using the nvidia driver - `20-mouse-options.conf`: Sets options for touchpad and mouse diff --git a/modprobe.d/sp5100-watchdog.conf b/modprobe.d/sp5100-watchdog.conf new file mode 100644 index 0000000..5a8b224 --- /dev/null +++ b/modprobe.d/sp5100-watchdog.conf @@ -0,0 +1 @@ +blacklist sp5100_tco diff --git a/modprobe.d/thinkpad.conf b/modprobe.d/thinkpad.conf new file mode 100644 index 0000000..00e1014 --- /dev/null +++ b/modprobe.d/thinkpad.conf @@ -0,0 +1 @@ +options thinkpad_acpi fan_control=1 diff --git a/modprobe.d/touchpad.conf b/modprobe.d/touchpad.conf new file mode 100644 index 0000000..f1a357f --- /dev/null +++ b/modprobe.d/touchpad.conf @@ -0,0 +1,2 @@ +softdep i2c_hid pre: pinctrl_amd +softdep usbhid pre: pinctrl_amd