linuwu-sense-an515-55-dkms

LOW
maintainer billyaddlers 0 votes scanned 2026-09-24 13:43:45.914206
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: BillyAddlers <me@riichi.my.id>
2#
3# Patched fork of Linuwu-Sense for Acer Nitro AN515-55/58.
4# Contains the fan-speed fix (correct strscpy usage in the sysfs store
5# handlers) and kernel-7.2 API compatibility, plus DKMS packaging.
6# Builds against every installed kernel (gcc- or clang-built) thanks to
7# per-kernel toolchain auto-detection in the upstream Makefile.
8
9pkgname=linuwu-sense-an515-55-dkms
10pkgver=25.701
11pkgrel=2
12pkgdesc="Patched Acer Nitro AN515-55/58 WMI driver (DKMS) with fan-speed fix and kernel 7.2 compatibility"
13arch=('any')
14url="https://github.com/BillyAddlers/Linuwu-Sense-AN515-55-Patch"
15license=('GPL')
16depends=('dkms')
17optdepends=('linux-headers: build for the standard kernel'
18 'linux-lts-headers: build for the LTS kernel'
19 'linux-cachyos-headers: build for the CachyOS kernel'
20 'linux-zen-headers: build for the zen kernel'
21 'clang: build with clang/LLVM (needed if kernel was built with clang)'
22 'gcc: build with gcc')
23makedepends=('git')
24conflicts=('linuwu-sense-dkms')
25install=linuwu-sense.install
26
27_gitrepo="https://github.com/BillyAddlers/Linuwu-Sense-AN515-55-Patch.git"
28source=("git+${_gitrepo}#branch=main"
29 "linuwu-sense-setup.service")
30sha256sums=('SKIP'
31 '2846ae5165408f3681092740c6d00f014343f0d757b2bdc605f1e066eed7ee62')
32
33package() {
34 local srcdirname="Linuwu-Sense-AN515-55-Patch"
35
36 dkms_src="$pkgdir/usr/src/linuwu_sense-$pkgver"
37 install -d "$dkms_src"
38 cp -r "$srcdir/$srcdirname/"* "$dkms_src/"
39
40 rm -f "$dkms_src"/src/*.o "$dkms_src"/src/*.ko \
41 "$dkms_src"/src/*.mod* "$dkms_src"/src/.cache.mk \
42 "$dkms_src"/Module.symvers "$dkms_src"/modules.order
43
44 install -Dm644 "$srcdir/$srcdirname/linuwu_sense.service" \
45 "$pkgdir/usr/lib/systemd/system/linuwu_sense.service"
46
47 install -Dm644 "$srcdir/linuwu-sense-setup.service" \
48 "$pkgdir/usr/lib/systemd/system/linuwu-sense-setup.service"
49
50 install -Dm644 /dev/stdin "$pkgdir/usr/lib/modules-load.d/linuwu_sense.conf" <<< 'linuwu_sense'
51
52 install -Dm644 /dev/stdin "$pkgdir/usr/lib/modprobe.d/blacklist-acer_wmi.conf" <<< 'blacklist acer_wmi'
53
54 install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/linuwu_sense.conf" <<< 'g linuwu_sense - -'
55
56 local base="/sys/module/linuwu_sense/drivers/platform:acer-wmi/acer-wmi"
57 local nitro_fields="fan_speed battery_limiter battery_calibration usb_charging"
58 local predator_fields="backlight_timeout battery_calibration battery_limiter boot_animation_sound fan_speed lcd_override usb_charging"
59 {
60 for f in $nitro_fields; do
61 echo "m $base/nitro_sense/$f 0660 root linuwu_sense"
62 done
63 for f in $predator_fields; do
64 echo "m $base/predator_sense/$f 0660 root linuwu_sense"
65 done
66 for z in four_zone_mode per_zone_mode; do
67 echo "m $base/four_zoned_kb/$z 0660 root linuwu_sense"
68 done
69 } | install -Dm644 /dev/stdin "$pkgdir/usr/lib/tmpfiles.d/linuwu_sense.conf"
70}
71

Scan history

Scanned at (UTC)SeverityRules
2026-09-24 13:43:45 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion