summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Martinez2021-07-03 02:06:57 -0500
committerLuis Martinez2021-07-03 02:06:57 -0500
commit2dd504ed1e3609d8d1d196ef17bcaa156adddd4b (patch)
tree6d9d6188cc6b4d14e44419ca6fe52b1a1c8c845e
downloadaur-2dd504ed1e3609d8d1d196ef17bcaa156adddd4b.tar.gz
initial commit based on amdgpud
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD27
-rw-r--r--config.toml34
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dda63b16845
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = amdgpud-bin
+ pkgdesc = Fan control service for AMD GPUs
+ pkgver = 1.0.1
+ pkgrel = 1
+ url = https://github.com/eraden/amdgpud
+ arch = x86_64
+ license = unknown
+ depends = gcc-libs
+ backup = etc/amdgpud/config.toml
+ source = amdgpud-bin-1.0.1::https://github.com/eraden/amdgpud/releases/download/1.0.1/amdfand
+ source = README-1.0.1.md::https://raw.githubusercontent.com/eraden/amdgpud/1.0.1/README.md
+ source = amdgpud-bin-1.0.1.service::https://raw.githubusercontent.com/eraden/amdgpud/1.0.1/amdfand.service
+ source = config.toml
+ sha256sums = 13ce8fccef964641f7285a13fdc77ef343ca1683930de9ffd7beac829c4c64c3
+ sha256sums = 6e3f24223c2d890f8737bf58615aca663b5e63d311357f7e491af2d375a1e87f
+ sha256sums = 2a98fd66d4a6e2dcf8697f0526f9d64fc4b8caa7e5539c42226b23fceb62ed27
+ sha256sums = 708070794d89e86d307fd17009e0410adf49adc471cfcde0fdec1f217c85f0de
+
+pkgname = amdgpud-bin
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9fcb74fde2e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Luis Martinez <luis dot martinez at tuta dot io>
+
+pkgname=amdgpud-bin
+_name=${pkgname%-bin}
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="Fan control service for AMD GPUs"
+arch=('x86_64')
+url="https://github.com/eraden/amdgpud"
+license=('unknown')
+depends=('gcc-libs')
+backup=("etc/$_name/config.toml")
+source=("$pkgname-$pkgver::$url/releases/download/$pkgver/amdfand"
+ "README-$pkgver.md::https://raw.githubusercontent.com/eraden/amdgpud/$pkgver/README.md"
+ "$pkgname-$pkgver.service::https://raw.githubusercontent.com/eraden/amdgpud/$pkgver/amdfand.service"
+ 'config.toml')
+sha256sums=('13ce8fccef964641f7285a13fdc77ef343ca1683930de9ffd7beac829c4c64c3'
+ '6e3f24223c2d890f8737bf58615aca663b5e63d311357f7e491af2d375a1e87f'
+ '2a98fd66d4a6e2dcf8697f0526f9d64fc4b8caa7e5539c42226b23fceb62ed27'
+ '708070794d89e86d307fd17009e0410adf49adc471cfcde0fdec1f217c85f0de')
+
+package() {
+ install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/amdfand"
+ install -Dm644 "README-$pkgver.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
+ install -Dm644 "$pkgname-$pkgver.service" "$pkgdir/usr/lib/systemd/system/amdfand.service"
+ install -Dm644 config.toml -t "$pkgdir/etc/$_name/"
+}
diff --git a/config.toml b/config.toml
new file mode 100644
index 00000000000..7350a0d6137
--- /dev/null
+++ b/config.toml
@@ -0,0 +1,34 @@
+log_level = "Error"
+cards = ["card0"]
+
+[[speed_matrix]]
+temp = 4.0
+speed = 4
+
+[[speed_matrix]]
+temp = 30.0
+speed = 33
+
+[[speed_matrix]]
+temp = 45.0
+speed = 50
+
+[[speed_matrix]]
+temp = 60.0
+speed = 66
+
+[[speed_matrix]]
+temp = 65.0
+speed = 69
+
+[[speed_matrix]]
+temp = 70.0
+speed = 75
+
+[[speed_matrix]]
+temp = 75.0
+speed = 89
+
+[[speed_matrix]]
+temp = 80.0
+speed = 100