Initial release of Predator Control 1.0.0
PredatorSense replacement for the Acer Predator Helios 16 (PH16-71) on Linux: - predatord: root service for profiles, fans (incl. temperature curves), keyboard RGB, lightbar and battery health; restores settings at boot and after resume, switches profiles on AC/battery changes - Qt desktop app with dashboard, fan curve editor and per-key RGB studio - Plasma 6 panel widget with quick controls - predatorctl command line tool - predator_wmi kernel module (DKMS) as a minimal WMI method bridge Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
# Removes Predator Control. Your settings in /etc/predator-control are kept unless --purge is given.
|
||||
set -uo pipefail
|
||||
[[ $EUID -eq 0 ]] || { echo "Please run as root: sudo ./uninstall.sh" >&2; exit 1; }
|
||||
|
||||
systemctl disable --now predatord.service 2>/dev/null
|
||||
modprobe -r predator_wmi 2>/dev/null
|
||||
if command -v dkms >/dev/null; then
|
||||
for v in $(dkms status -m predator-wmi 2>/dev/null | sed -n 's|^[^/]*/\([^,:]*\).*|\1|p' | sort -u); do
|
||||
dkms remove -m predator-wmi -v "$v" --all
|
||||
rm -rf "/usr/src/predator-wmi-$v"
|
||||
done
|
||||
fi
|
||||
rm -f /lib/modules/*/updates/predator_wmi.ko
|
||||
depmod -a
|
||||
rm -rf /usr/lib/predator-control /usr/share/plasma/plasmoids/org.predatorcontrol.panel
|
||||
rm -f /usr/bin/{predatord,predatorctl,predator-control} \
|
||||
/usr/share/icons/hicolor/scalable/apps/predator-control.svg \
|
||||
/usr/share/applications/predator-control.desktop \
|
||||
/usr/lib/systemd/system/predatord.service \
|
||||
/usr/lib/systemd/system-sleep/predator-control \
|
||||
/etc/modules-load.d/predator-control.conf
|
||||
systemctl daemon-reload
|
||||
[[ "${1:-}" == "--purge" ]] && rm -rf /etc/predator-control
|
||||
echo "Predator Control removed."
|
||||
Reference in New Issue
Block a user