fix(deck): Remove Deck TDP control udev rules if deck hardware isn't detected to avoid running into 15W limit from Steam

This commit is contained in:
Kyle Gospodnetich 2023-09-03 19:52:40 -07:00
parent 59d20227e3
commit 2fa0e15b52

View File

@ -50,8 +50,12 @@ if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then
if [[ ! $KARGS =~ "initcall_blacklist" ]]; then
NEEDED_KARGS="$NEEDED_KARGS --append=initcall_blacklist=simpledrm_platform_driver_init"
fi
elif [[ $IMAGE_NAME =~ "deck" ]]; then
echo "Non-deck hardware detected on deck image, removing TDP controls for Steam to avoid 15W limit."
rm -f /etc/udev/rules.d/30-steamdeck.rules
fi
# NVIDIA KERNEL ARGUMENTS
if [[ $IMAGE_NAME =~ "nvidia" ]]; then
echo "Checking for needed karg changes (Nvidia)"