26 lines
1.4 KiB
Markdown
26 lines
1.4 KiB
Markdown
# legion-7
|
|
|
|
Repository with various scripts/configs for Arch Linux on the Lenovo Legion 7 (2021).
|
|
|
|
Scripts in the `bin` folder should be placed in `/usr/local/bin` or a similar directory and given execute permissions.
|
|
|
|
- `brightness-up` and `brightness-down`: See which GPU is connected and control brightness using ACPI
|
|
- `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 `X11` 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
|