Skip to content

Commit

Permalink
Merge pull request #431 from cradle8810/overclock_mai
Browse files Browse the repository at this point in the history
Add overclock config on mai
  • Loading branch information
cradle8810 authored Jan 20, 2025
2 parents d828f5a + a0a8b9d commit 4ae2328
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions inventories/host_vars/mai.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
apt:
- cpufrequtils
- curl
- dnsmasq
- dstat
Expand Down
6 changes: 6 additions & 0 deletions mai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
- quorum
- proxmox

- name: Overclock Settings
ansible.builtin.import_tasks:
file: tasks/mai/overclock.yml
tags:
- overclock

- name: Make Started Services
ansible.builtin.import_tasks:
file: tasks/service_start.yml
28 changes: 28 additions & 0 deletions tasks/mai/overclock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
# https://forums.raspberrypi.com/viewtopic.php?f=66&t=138123

- name: "Overclocking config"
community.general.ini_file:
path: /boot/config.txt
option: "{{ item.option }}"
value: "{{ item.value }}"
state: present
no_extra_spaces: true
mode: "644"
loop:
- option: arm_freq
value: 1300
- option: over_voltage
value: 5
- option: gpu_freq
value: 500
- option: sdram_freq
value: 500
- option: sdram_schmoo
value: 0x02000020
- option: over_voltage_sdram_p
value: 6
- option: over_voltage_sdram_i
value: 4
- option: over_voltage_sdram_c
value: 4

0 comments on commit 4ae2328

Please sign in to comment.