Skip to content

tpanajott/AutoASPM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

AutoASPM

A Python script that automatically activates ASPM for all supported devices on Linux.

It parses the lspci -vv output to determine which ASPM level is supported by a device (e.g. L0s, L0sL1 or L1).

Dependencies

  • pciutils
  • python3

Usage

sudo autoaspm.py

Automatially apply on boot

Copy the auto-aspm.service systemd service file into the /etc/systemd/system/-directory. Edit the file and change the WorkingDirectory to the directory where you have saved the autoaspm.py file and replace the path to the python3 interpreter and the path to the script on the ExecStart line. Once that is done, run systemctl daemon-reload to update systemd service definitions and then run systemctl enable auto-aspm.service to run the script on boot or systemctl enable --now auto-aspm.service to run now and on boot.

Credits

About

A script that automatically activates ASPM for all supported devices on Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%