2024-03-24 23:54:28 +00:00
|
|
|
# disable-c6-runit
|
|
|
|
|
|
|
|
A runit service for disabling the C6 power saving state on AMD Zen (Ryzen/Epyc)
|
2024-03-25 00:32:07 +00:00
|
|
|
processors upon boot. The C6 state is known for causing
|
2024-03-24 23:54:28 +00:00
|
|
|
[soft lock freezing behaviour](https://wiki.archlinux.org/title/Ryzen#Soft_lock_freezing)
|
|
|
|
on Linux.
|
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
* [zenstates.py](https://github.com/r4m0n/ZenStates-Linux) installed in your
|
|
|
|
PATH as `zenstates` (installing `zenstates-git` from the AUR will provide
|
|
|
|
this)
|
|
|
|
|
2024-03-25 03:00:10 +00:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
### Package Managers
|
|
|
|
|
|
|
|
#### Arch
|
|
|
|
|
|
|
|
This is on the AUR at `disable-c6-runit-git`. Either install it using your
|
|
|
|
favourite AUR helper, or install the package without a helper:
|
|
|
|
|
2024-03-25 03:02:57 +00:00
|
|
|
```
|
2024-03-25 03:00:10 +00:00
|
|
|
$ git clone https://aur.archlinux.org/disable-c6-runit-git.git
|
|
|
|
$ cd disable-c6-runit-git
|
|
|
|
$ makepkg -si
|
|
|
|
```
|
|
|
|
|
|
|
|
### Manual Installation
|
|
|
|
|
|
|
|
Clone the repo:
|
|
|
|
|
2024-03-25 03:02:57 +00:00
|
|
|
```
|
2024-03-25 03:00:10 +00:00
|
|
|
$ git clone --depth=1 https://codeberg.org/revsuine/disable-c6-runit.git
|
|
|
|
$ cd disable-c6-runit
|
|
|
|
```
|
|
|
|
|
|
|
|
Copy the `disable-c6/` folder to wherever you store your runit services, e.g.
|
|
|
|
for where Artix keeps their folders:
|
|
|
|
|
2024-03-25 03:02:57 +00:00
|
|
|
```
|
2024-03-25 03:00:10 +00:00
|
|
|
# cp -r disable-c6 /etc/runit/sv
|
|
|
|
```
|
|
|
|
|
|
|
|
For Void:
|
|
|
|
|
2024-03-25 03:02:57 +00:00
|
|
|
```
|
2024-03-25 03:00:10 +00:00
|
|
|
# cp -r disable-c6 /etc/sv
|
|
|
|
```
|
|
|
|
|
|
|
|
## Enabling the Service
|
|
|
|
|
|
|
|
Symlink the service directory to your enabled services directory as usual. This
|
|
|
|
varies by distro.
|
|
|
|
|
|
|
|
### Void Linux
|
|
|
|
|
2024-03-25 03:02:57 +00:00
|
|
|
```
|
2024-03-25 03:00:10 +00:00
|
|
|
# ln -s /etc/sv/disable-c6 /var/service
|
|
|
|
```
|
|
|
|
|
|
|
|
### Artix Linux
|
|
|
|
|
2024-03-25 03:02:57 +00:00
|
|
|
```
|
2024-03-25 03:00:10 +00:00
|
|
|
# ln -s /etc/runit/sv/disable-c6 /run/runit/service
|
|
|
|
```
|
|
|
|
|
|
|
|
### Debian
|
|
|
|
|
2024-03-25 03:02:57 +00:00
|
|
|
```
|
2024-03-25 03:00:10 +00:00
|
|
|
# ln -s /etc/runit/disable-c6 /etc/service
|
|
|
|
```
|
|
|
|
|
|
|
|
## Disabling the Service
|
|
|
|
|
|
|
|
Break the symlink:
|
|
|
|
|
2024-03-25 03:02:57 +00:00
|
|
|
```
|
2024-03-25 03:00:10 +00:00
|
|
|
# unlink /var/service/disable-c6
|
|
|
|
```
|
|
|
|
|
|
|
|
Or wherever your service directory is.
|
|
|
|
|