Skip to content

Commit

Permalink
Added missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
Shendisx committed Dec 15, 2024
1 parent 33615a6 commit 21dbdfe
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/content/docs/configuration/nvidia-wayland-overclock.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,41 +19,41 @@ In this tutorial, we'll set up Python scripts for adjusting various boosts/offse
Open a terminal of your choice (Konsole, Alacritty, etc.) and follow these steps:

1. Switch to root:
```
```sh
sudo -i
```

2. Create and navigate to the NVIDIA directory:
```
```sh
mkdir NVIDIA
cd NVIDIA
```

### 2. Set Up Python Virtual Environment

1. Create a virtual environment:
```
```sh
python -m venv venv
```

2. Activate the virtual environment:
```
```sh
source /root/NVIDIA/venv/bin/activate
```

3. Verify the activation:
```
```sh
which pip
```
It should return "/root/NVIDIA/venv/bin/pip".

4. Install required modules:
```
```sh
pip install nvidia-ml-py pynvml
```

5. Deactivate the virtual environment:
```
```sh
deactivate
```

Expand All @@ -69,15 +69,15 @@ deactivate
```

Make the script executable:
```
```sh
chmod 770 nvidia-oc.sh
```

### 4. Determine GPU Clock Ranges

Find your card's standard minimum and maximum clocks:

```
```sh
nvidia-smi -q -d SUPPORTED_CLOCKS | less
```

Expand Down Expand Up @@ -109,12 +109,12 @@ Replace `MINCLOCK`, `MAXCLOCK`, `CLOCKOFFSET`, and `MEMOVERCLOCK` with appropria
### 6. Test the Configuration

Run the script:
```
```sh
/root/NVIDIA/nvidia-oc.sh
```

Monitor the GPU:
```
```sh
watch nvidia-smi -q -d VOLTAGE,CLOCK
```

Expand All @@ -139,14 +139,14 @@ WantedBy=network.target

### 8. Enable and Start the Service

```
```sh
systemctl daemon-reload
systemctl enable nvidia-oc.service
systemctl start nvidia-oc.service
```

Check the service status:
```
```sh
systemctl status nvidia-oc.service
```

Expand Down

0 comments on commit 21dbdfe

Please sign in to comment.