Initial import of hp-omen-gaming-wmi-dkms

This commit is contained in:
ftworld 2026-01-08 18:16:13 -06:00
commit 38101fac3e
6 changed files with 2494 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = hp-omen-gaming-wmi-dkms
pkgdesc = HP WMI driver for OMEN Gaming laptops, based on the hp-wmi driver in the linux kernel and code from https://github.com/ranisalt/hp-omen-linux-module, adds functionality for board 8E35 that uses nvidia cards that have a hybrid profile similar to Victus laptops and updates keyboard backlight code and thus unlocks the default TGP limit
pkgver = 1.0.0
pkgrel = 1
arch = any
license = GPL2
depends = dkms
depends = linux-headers
source = hp-wmi.c
source = Makefile
source = dkms.conf
sha256sums = 698bc594f2d73a79b4bf9293885a68e668b2b556e72996a7e3b20fd3aab3e211
sha256sums = 9b9e71d6d7ddbd1fa2c2d02dbe7521e93098f8e16569f6f9aba1e62afe4aa297
sha256sums = b16a030893d665ed3aa638352e272bd99de54fcf04ffda02083040e811d0c81b
pkgname = hp-omen-gaming-wmi-dkms

7
Makefile Normal file
View file

@ -0,0 +1,7 @@
obj-m += hp-wmi.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

26
PKGBUILD Normal file
View file

@ -0,0 +1,26 @@
# Maintainer: FT <worldoptimizer@gmail.com>
pkgname=hp-omen-gaming-wmi-dkms
_pkgname=hp-wmi
pkgver=1.0.0
pkgrel=1
pkgdesc="HP WMI driver for OMEN Gaming laptops, based on the hp-wmi driver in the linux kernel and code from https://github.com/ranisalt/hp-omen-linux-module, adds functionality for board 8E35 that uses nvidia cards that have a hybrid profile similar to Victus laptops and updates keyboard backlight code and thus unlocks the default TGP limit"
arch=('any')
license=('GPL2')
depends=('dkms' 'linux-headers')
source=("hp-wmi.c" "Makefile" "dkms.conf")
sha256sums=('698bc594f2d73a79b4bf9293885a68e668b2b556e72996a7e3b20fd3aab3e211'
'9b9e71d6d7ddbd1fa2c2d02dbe7521e93098f8e16569f6f9aba1e62afe4aa297'
'b16a030893d665ed3aa638352e272bd99de54fcf04ffda02083040e811d0c81b')
build() {
make
}
package() {
install -d "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
cp -r "${srcdir}/hp-wmi.c" "${pkgdir}/usr/src/${_pkgname}-${pkgver}/"
cp -r "${srcdir}/Makefile" "${pkgdir}/usr/src/${_pkgname}-${pkgver}/"
cp -r "${srcdir}/dkms.conf" "${pkgdir}/usr/src/${_pkgname}-${pkgver}/"
}

7
dkms.conf Normal file
View file

@ -0,0 +1,7 @@
PACKAGE_NAME="hp-wmi"
PACKAGE_VERSION="1.0.0"
BUILT_MODULE_NAME[0]="hp-wmi"
DEST_MODULE_LOCATION[0]="/kernel/drivers/platform/x86"
AUTOINSTALL="yes"
MAKE[0]="'make' -C ${kernel_source_dir} M=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build"

12
hp-wmi-dkms.install Normal file
View file

@ -0,0 +1,12 @@
post_install() {
dkms add hp-wmi/1.0.0
dkms install hp-wmi/1.0.0
}
post_upgrade() {
post_install
}
pre_remove() {
dkms remove hp-wmi/1.0.0 --all
}

2426
hp-wmi.c Normal file

File diff suppressed because it is too large Load diff