https://github.com/tfkhdyt/auto-epp-go
auto-epp-go is a program that automatically manages the energy performance preferences (EPP) of your AMD CPU using the AMD-Pstate driver
https://github.com/tfkhdyt/auto-epp-go
amd-pstate cpufreq golang linux
Last synced: 6 months ago
JSON representation
auto-epp-go is a program that automatically manages the energy performance preferences (EPP) of your AMD CPU using the AMD-Pstate driver
- Host: GitHub
- URL: https://github.com/tfkhdyt/auto-epp-go
- Owner: tfkhdyt
- License: gpl-3.0
- Created: 2023-09-06T11:40:36.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-16T08:59:42.000Z (over 2 years ago)
- Last Synced: 2024-06-21T17:05:11.945Z (about 2 years ago)
- Topics: amd-pstate, cpufreq, golang, linux
- Language: Go
- Homepage:
- Size: 654 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# auto-epp-go
[](https://aur.archlinux.org/packages/auto-epp-go/)
**auto-epp-go** is a program that manages the energy performance preferences (EPP) of your AMD CPU using the AMD-Pstate driver. It adjusts the EPP settings based on whether your system is running on AC power or battery power, helping optimize power consumption and performance. This project is a rewrite of the original Python version [jothi-prasath/auto-epp](https://github.com/jothi-prasath/auto-epp) in Golang, aiming to improve memory efficiency and overall performance.
## Requirements
- AMD CPU with the AMD-Pstate-EPP driver enabled.
- Linux 6.3+
- Golang (make deps)
## How to enable amd-pstate-epp
Note: Since Linux 6.5, `amd-pstate-epp` is enabled by default, so you can skip this section.
### GRUB
This can be done by editing the `GRUB_CMDLINE_LINUX_DEFAULT` params in `/etc/default/grub`. Follow these steps:
1. Open the grub file using the following command:
```bash
sudoedit /etc/default/grub
```
2. Within the file, modify the `GRUB_CMDLINE_LINUX_DEFAULT` line to include the setting for AMD P-State EPP:
```bash
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amd_pstate=active"
```
### systemd-boot
This can be done by editing the `options` params in `/efi/loader/entries/your-entry.conf`. Follow these steps:
1. Open the grub file using the following command:
```bash
sudoedit /efi/loader/entries/your-entry.conf
```
2. Within the file, modify the `options` line to include the setting for AMD P-State EPP:
```bash
options ... amd_pstate=active
```
## Installation
### Arch Linux
On Arch Linux, and Arch-based distributions, auto-epp-go can be found in the AUR. Install with an AUR helper like yay:
```bash
yay -S auto-epp-go
```
### Manual Install
```bash
git clone https://github.com/tfkhdyt/auto-epp-go
cd auto-epp-go
sudo make install
```
## Usage
Monitor the service status
```bash
systemctl status auto-epp-go
```
To restart the service
```bash
sudo systemctl restart auto-epp-go
```
To stop the service
```bash
sudo systemctl stop auto-epp-go
```
Edit the config file
```bash
sudoedit /etc/auto-epp-go.conf
```