Coder Social home page Coder Social logo

h3o66 / zenpower3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ocerman/zenpower

0.0 0.0 0.0 127 KB

Zenpower3 is a Linux kernel driver for reading temperature, voltage(SVI2), current(SVI2) and power(SVI2) for AMD Zen family CPUs, now with Zen 3 support!

Home Page: https://aur.archlinux.org/packages/zenpower3-dkms/

License: GNU General Public License v2.0

Makefile 5.62% C 92.94% Shell 1.44%

zenpower3's Introduction

Zenpower3

Zenpower3 is a Linux kernel driver for reading temperature, voltage(SVI2), current(SVI2) and power(SVI2) for AMD Zen family CPUs, now with Zen 3 support!

Make sure that your Linux kernel have support for your CPUs as Zenpower is using kernel function amd_smn_read to read values from SMN. A fallback method (which may or may not work!) will be used when it is detected that kernel function amd_smn_read lacks support for your CPU. For AMD family 17h Model 70h (Ryzen 3000) CPUs you need kernel version 5.3.4 or newer or kernel with this patch: https://patchwork.kernel.org/patch/11043277/

Installation

You can install this module via DKMS.

Installation for Ubuntu

sudo apt install dkms git build-essential linux-headers-$(uname -r)
cd ~
git clone https://github.com/Ta180m/zenpower3.git
cd zenpower3
sudo make dkms-install

Installation for Arch

You can install the AUR package.

Module activation

Because zenpower is using same PCI device as k10temp, you have to disable k10temp first. This is automatically done by the AUR package.

  1. Check if k10temp is active. lsmod | grep k10temp
  2. Unload k10temp sudo modprobe -r k10temp
  3. (optional*) blacklist k10temp: sudo bash -c 'sudo echo -e "\n# replaced with zenpower\nblacklist k10temp" >> /etc/modprobe.d/blacklist.conf'
  4. Activate zenpower sudo modprobe zenpower

*If k10temp is not blacklisted, you may have to manually unload k10temp after each restart.

Sensors monitoring

You can use the sensors command, zenmonitor3, or your favorite sensors monitoring software.

Update instructions

  1. Unload zenpower sudo modprobe -r zenpower
  2. Goto zenpower directory cd ~/zenpower
  3. Uninstall old version sudo make dkms-uninstall
  4. Update code from git git pull
  5. Install new version sudo make dkms-install
  6. Activate zenpower sudo modprobe zenpower

Help needed

It would be very helpful for me for further development of Zenpower if you can share debug data from zenpower. Read more

Notes

  • Some users reported that a restart is needed after module installation
  • If you are having trouble compiling zenpower under Ubuntu 18.04 (or older) with new upstream kernel, see #23
  • The meaning of raw current values from SVI2 telemetry are not standardised so the current/power readings may not be accurate on all systems (depends on the board model).

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.