Merge pull request #1273 from m18h/onexplayer-f1-fixes

feat: kernel arguments for onexplayer f1
This commit is contained in:
RJ Trujillo 2024-06-24 10:30:19 -04:00 committed by GitHub
commit 9f6f5e143b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,6 +106,17 @@ elif [[ ":WIN2:" =~ ":$SYS_ID:" ]]; then
fi
fi
if [[ ":ONEXPLAYER F1:" =~ ":$SYS_ID:" ]]; then
if [[ ! $KARGS =~ "video" ]]; then
echo "Adding panel orientation for ONEXPLAYER F1"
NEEDED_KARGS+=("--append-if-missing=video=eDP-1:panel_orientation=left_side_up")
fi
if [[ ! $KARGS =~ "amdgpu.gttsize" ]]; then
echo "Adding GTTSize for ONEXPLAYER F1 (32GB RAM)"
NEEDED_KARGS+=("--append-if-missing=amdgpu.gttsize=16256")
fi
fi
if /usr/libexec/hwsupport/simpledeckytdp-supported-hardware; then
if [[ ! $KARGS =~ "iomem" ]]; then
echo "Adding needed kargs for ryzenadj"