From f82732f6b45566302959b313288e83c82dba45e3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 19 Jan 2026 17:41:17 -0400 Subject: [PATCH] Add supergfxctl to the hybrid GPU toggling Needed for Asus G14 and other hybrid GPU laptops --- pkgbuilds/edge/supergfxctl/PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgbuilds/edge/supergfxctl/PKGBUILD diff --git a/pkgbuilds/edge/supergfxctl/PKGBUILD b/pkgbuilds/edge/supergfxctl/PKGBUILD new file mode 100644 index 00000000..77672189 --- /dev/null +++ b/pkgbuilds/edge/supergfxctl/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Gregory Land +# Contributor: Fabian Bornschein + +pkgname=supergfxctl +pkgver=5.2.7 +pkgrel=2 +pkgdesc="A utility for Linux graphics switching on Intel/AMD iGPU + nVidia dGPU laptops" +arch=('x86_64') +url="https://gitlab.com/asus-linux/supergfxctl" +license=('MPL-2.0') +depends=('gcc-libs' 'systemd' 'lsof') +makedepends=('rust') +provides=('supergfxctl') +conflicts=('supergfxctl-git' + 'optimus-manager') +source=("https://gitlab.com/asus-linux/supergfxctl/-/archive/$pkgver/supergfxctl-$pkgver.tar.gz") +sha512sums=('bd94646d289c9f3398e1bf2a189554ac60d4db2d4d2cefddc0b342e8a128d4682e20268e0b1f9b168441136ada0b6fadb097a5a35d1023a77528dbf0540de3af') +options=(!debug) +_gitdir=${pkgname%"-git"} + +build() { + cd "$pkgname-$pkgver" + make build +} + +package() { + cd "$pkgname-$pkgver" + make DESTDIR="$pkgdir" install +}