diff --git a/bin/omarchy-hw-intel b/bin/omarchy-hw-intel new file mode 100755 index 00000000..2dc37c08 --- /dev/null +++ b/bin/omarchy-hw-intel @@ -0,0 +1,5 @@ +#!/bin/bash + +# Detect whether the computer has an Intel CPU. + +[[ $(grep -m1 "vendor_id" /proc/cpuinfo 2>/dev/null | cut -d: -f2 | tr -d ' ') == "GenuineIntel" ]] diff --git a/install/config/all.sh b/install/config/all.sh index 1ef48bdd..2cbfd249 100644 --- a/install/config/all.sh +++ b/install/config/all.sh @@ -35,6 +35,7 @@ run_logged $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh run_logged $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh run_logged $OMARCHY_INSTALL/config/hardware/nvidia.sh run_logged $OMARCHY_INSTALL/config/hardware/intel.sh +run_logged $OMARCHY_INSTALL/config/hardware/intel-thermald.sh run_logged $OMARCHY_INSTALL/config/hardware/vulkan.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-intel-panther-lake-display.sh run_logged $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh diff --git a/install/config/hardware/intel-thermald.sh b/install/config/hardware/intel-thermald.sh new file mode 100644 index 00000000..7cc33625 --- /dev/null +++ b/install/config/hardware/intel-thermald.sh @@ -0,0 +1,11 @@ +# Enable thermald for Intel laptops (Sandy Bridge and newer) +# Thermald is useful for Intel Sandy Bridge (2nd gen Core, model 42/45) and newer CPUs. + +if omarchy-hw-intel; then + # Check if Sandy Bridge or newer (model >= 42). Sandy Bridge: model 42 (mobile), 45 (desktop) + cpu_model=$(grep -m1 "^model\s*:" /proc/cpuinfo 2>/dev/null | cut -d: -f2 | tr -d ' ') + if ((cpu_model >= 42)) && omarchy-battery-present; then + omarchy-pkg-add thermald + systemctl enable --now thermald + fi +fi diff --git a/install/omarchy-other.packages b/install/omarchy-other.packages index f56ff4bb..b610f356 100644 --- a/install/omarchy-other.packages +++ b/install/omarchy-other.packages @@ -43,6 +43,7 @@ pipewire-pulse qt6-wayland sassc snapper +thermald webp-pixbuf-loader wget yay-debug diff --git a/migrations/1773505447.sh b/migrations/1773505447.sh new file mode 100644 index 00000000..8683c971 --- /dev/null +++ b/migrations/1773505447.sh @@ -0,0 +1,3 @@ +echo "Enable thermald for Intel Sandy Bridge and newer laptops" + +source "$OMARCHY_PATH/install/config/hardware/intel-thermald.sh"