Skip to content
Python library that converts powerplay tables to ctypes structs, and a Qt GUI editor for these struct objects
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
src/amdgpu_pptable gui: high dpi Jan 13, 2020
tests
.git_archival.txt
.gitattributes
.gitignore
README.rst
generate_ctypes.py
pyproject.toml
screenshot.png
setup.py
tox.ini

README.rst

Tests badge flake8 lint badge

PowerPlay table editor

A simple GUI tool to inspect and modify AMD GPU powerplay tables. Tries to parse tables the same way as Linux driver does.

screenshot.png

Installation

Dependencies:

  • Python 3.6 or later
  • PyQt 5

On recent Debians/Ubuntus:

$ apt-get install python3-pyqt5 python3-pip git
$ pip3 install --user git+https://github.com/amezin/powerplay-table-editor.git

Usage

GUI app:

$ amdgpu-pptable-editor

View current pptable:

$ amdgpu-pptable-editor /sys/class/drm/card*/device/pp_table

pp_table is only writable by root, so you'll have to save the file to a temporary location and then cp it back to /sys/class/drm/card*/device/pp_table. Or use sudoedit:

$ env EDITOR=amdgpu-pptable-editor sudoedit /sys/class/drm/card*/device/pp_table

Caution!

You can completely screw up your card by modifying its pp_table.

Generating ctypes structs

Generated code is tracked in git, it is located in src/amdgpu_pptable/generated.

To re-generate it (with, maybe, different kernel sources):

$ tox -e generate-ctypes -- -k path/to/kernel/sources
You can’t perform that action at this time.