mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-30 21:57:44 +00:00
![]() 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 |
||
---|---|---|
.. | ||
auto_aspm.nu | ||
README.md |
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
- Ensure you have following binaries available on
PATH
:lspci
setpci
, those come as part ofpciutils
package on most distros - Run the script as root (Necessary because regular users cannot access low-level device information needed for the script to work)