2019-06-15 14:51:21 +00:00
# Zen monitor
Zen monitor is monitoring software for AMD Zen-based CPUs.
It can monitor these values:
- CPU Temperature
- CPU Core (SVI2) Voltage, Current and Power
- SOC (SVI2) Voltage, Current and Power
2019-12-29 16:34:07 +00:00
- Package and Core Power (RAPL)
2019-10-12 19:20:40 +00:00
- Core Frequency (from OS)
2019-06-15 14:51:21 +00:00
![screenshot ](screenshot.png )
## Dependencies
- [zenpower driver ](https://github.com/ocerman/zenpower/ ) - For monitoring CPU temperature and SVI2 sensors
2019-12-29 16:34:07 +00:00
- MSR driver - For monitoring Package/Core Power (RAPL)
2019-06-15 14:51:21 +00:00
Follow [zenpower README.md ](https://github.com/ocerman/zenpower/blob/master/README.md ) to install and activate zenpower module.
Enter `sudo modprobe msr` to enable MSR driver.
## Building
Make sure that GTK3 dev package and common build tools are installed.
```
make
```
2019-12-29 16:34:07 +00:00
## Launching
You can launch app by `sudo ./zenmonitor` , or you can install it to your system and then launch it from your OS menu.
Note: Because superuser privileges are usually needed to access data from MSR driver, you need to launch zenmonitor as root for monitoring CPU power usage (RAPL).
2020-02-16 16:59:11 +00:00
Alternatively, you can set capabilities to zenmonitor executable: `sudo setcap cap_sys_rawio,cap_dac_read_search+ep ./zenmonitor`
2019-12-29 16:34:07 +00:00
2020-01-23 21:56:55 +00:00
## Command line arguments
``--coreid`` - Display core_id instead of core index
2019-12-29 16:34:07 +00:00
## Installing
By default, Zenmonitor will be installed to /usr/local.
```
sudo make install
```
To add menu item for launching zenpower as root (Polkit is required):
```
sudo make install-polkit
```
## Uninstalling
2019-06-15 14:51:21 +00:00
```
2019-12-29 16:34:07 +00:00
sudo make uninstall
2019-06-15 14:51:21 +00:00
```
## Setup on ubuntu
First follow [installation instructions on zenpower ](https://github.com/ocerman/zenpower/blob/master/README.md#installation-commands-for-ubuntu )
Then:
```
sudo modprobe msr
sudo bash -c 'echo "msr" > /etc/modules-load.d/msr.conf'
sudo apt install build-essential libgtk-3-dev git
cd ~
git clone https://github.com/ocerman/zenmonitor
cd zenmonitor
make
2019-12-29 16:34:07 +00:00
sudo make install
sudo make install-polkit
2019-06-15 14:51:21 +00:00
```
2020-02-18 13:33:58 +00:00
## Setup on Arch
You may use the AUR package [zenmonitor-git ](https://aur.archlinux.org/packages/zenmonitor-git/ ) to install via [traditional method ](https://wiki.archlinux.org/index.php/Arch_User_Repository ) or using an AUR helper (like yay)