mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Only install LPMD for supported Intel CPUs on battery
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
# Install Intel Low Power Mode package for Intel CPUs
|
||||
# Install Intel Low Power Mode Daemon for supported hybrid Intel CPUs (Alder Lake and newer)
|
||||
# Supported models: Alder Lake (151/154), Raptor Lake (183/186/191),
|
||||
# Meteor Lake (170/172), Lunar Lake (189), Panther Lake (204)
|
||||
|
||||
if omarchy-hw-intel; then
|
||||
omarchy-pkg-add intel-lpmd
|
||||
if omarchy-hw-intel && omarchy-battery-present; then
|
||||
cpu_model=$(grep -m1 "^model\s*:" /proc/cpuinfo 2>/dev/null | cut -d: -f2 | tr -d ' ')
|
||||
if [[ "$cpu_model" =~ ^(151|154|170|172|183|186|189|191|204)$ ]]; then
|
||||
omarchy-pkg-add intel-lpmd
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user