Skip to content

Instantly share code, notes, and snippets.

View kaii-lb's full-sized avatar
💭
doing stuff

kaii kaii-lb

💭
doing stuff
View GitHub Profile
@kaii-lb
kaii-lb / throttled.conf
Created June 11, 2026 19:58
A complete throttled config file for Lenovo LOQ 15IAX9E
[GENERAL]
# Enable or disable the script execution
Enabled: True
# SYSFS path for checking if the system is running on AC power
Sysfs_Power_Path: /sys/class/power_supply/ADP0/online
# Auto reload config on changes
Autoreload: True
## Settings to apply while connected to Battery power
[BATTERY]
@kaii-lb
kaii-lb / minivantage.sh
Last active June 15, 2026 13:37
A small shell script to control lenovo's firmware settings
#!/bin/sh
function powersave() {
powerprofilesctl set power-saver
pkexec sh -c "echo low-power > /sys/firmware/acpi/platform_profile"
if cat /proc/cmdline | grep pcie_aspm=force &> /dev/null; then
pkexec sh -c "echo powersupersave > /sys/module/pcie_aspm/parameters/policy"
fi