GithubHelp home page GithubHelp logo

ryzen-ppd's Introduction

Ryzen Power Profile Daemon

Power management daemon for AMD Ryzen Mobile processors.

Description

Power management for AMD Ryzen Mobile processors in Linux is lacking in comparison to Windows. Power and thermal limits are preset conservatively and a possibility to change them is missing which can result in a weak overall system performance when performance is needed and in an increased power usage when mobility is required. ACPI platform profiles are a good solution but in practice they do not always work.

Limits can be adjusted manually with tools like RyzenAdj. However, often the notebook firmware will reset them after a short period of time, and they need to be reapplied again.

To work around this issue, this application periodically sets power and thermal limits and automatically switches profiles when the power source changes, e.g. when switching from AC to battery. All limit settings offered by RyzenAdj are supported.

Additionally, ACPI platform profiles can be controlled by manually writing to the DYTC method, which is useful for kernels with an outdated thinkpad_acpi module.

Requirements

  • python3 and the setuptools module
  • ryzenadj with the libryzenadj.so library for changing CPU power settings
  • dbus for subscribing to power source and sleep signals
  • upower for subscribing to power source and sleep signals

Optional

  • acpi_call kernel module for setting ACPI platform profiles

Installation

  • python3 setup.py install --optimize=1
  • copy the configuration file to /etc/ryzen-ppd.ini and edit it
  • set up a file from the scripts directory to run the application via a service manager

Usage

See the configuration file and the output of the command ryzen-ppd -h.

ryzen-ppd's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

nokogiri corona10

ryzen-ppd's Issues

Fails with "invalid monitor value: stapm_limit"

When I try to run the tool, the output I get is:
[CRITICAL] invalid monitor value: stapm_limit

According to RyzenAdj my stapm_limit is 35000.
The processor is Ryzen 3500U.

Thanks for the help :)

Ryzen-ppd stopped working on Arch since last week

Greetings,
I would like to report an error in 'ryzen-ppd', since last week or two the service fails here is the verbose output:

DEBUG] power_source: battery, profile: balanced, update_rate_s: 32.00, platform_profile: low-power
[DEBUG] monitored stapm_limit has changed: 25.0 != 37.0
[DEBUG] stapm_limit: 25000
[DEBUG] fast_limit: 30000
Unauthorized memory access (SIGSEGV) (core dumped [memory image saved])

I tried completely removing 'ryzen-ppd' and installing it back but the issue persists.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.