1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 21:57:44 +00:00
nu_scripts/sourced/AutoASPM
Yethal 9ec9b2c7ab
Add nushell port of autoaspm (#1070)
This is a Nushell port of https://github.com/notthebee/AutoASPM written
mostly as an exercise in binary operations in Nushell.
There are several undocumented magic constants in the code that hail
back from the original version that was supposed to be here:
https://www.uwsg.indiana.edu/hypermail/linux/kernel/1006.2/02177.html
2025-03-12 09:40:01 -05:00
..
auto_aspm.nu Add nushell port of autoaspm (#1070) 2025-03-12 09:40:01 -05:00
README.md Add nushell port of autoaspm (#1070) 2025-03-12 09:40:01 -05:00

AutoASPM

Simple script to enable Active State Power Management on all of your PCIe devices

This script supports only Linux systems

This is a Nushell port of auto-ASPM.py written mostly as an exercise in binary operations in Nushell. There are several undocumented magic constants in the code that hail back from the original enable_aspm script

Usage

  1. Ensure you have following binaries available on PATH: lspci setpci, those come as part of pciutils package on most distros
  2. Run the script as root (Necessary because regular users cannot access low-level device information needed for the script to work)