feat(deck): Switch to kyber I/O scheduler from BFQ, disable watchdog, and raise memlock limit

Brings in some of the great improvements highlighted by https://medium.com/@a.b.t./here-are-some-possibly-useful-tweaks-for-steamos-on-the-steam-deck-fcb6b571b577#ad14
This commit is contained in:
Kyle Gospodnetich 2023-10-02 18:49:45 -07:00
parent 5170682ed1
commit 0ea324d37b
3 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,2 @@
* hard memlock 2147484
* soft memlock 2147484

View File

@ -1,6 +1,6 @@
# SSD/MicroSD
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="kyber"
# HDD
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="kyber"
# NVME
ACTION=="add|change", KERNEL=="nvme[0-9]n1", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"
ACTION=="add|change", KERNEL=="nvme[0-9]n1", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="kyber"

View File

@ -6,7 +6,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
# SCRIPT VERSION
HWS_VER=2
HWS_VER=3
HWS_VER_FILE="/etc/bazzite/hws_version"
HWS_VER_RAN=$(cat $HWS_VER_FILE)
@ -52,6 +52,14 @@ if [[ ":Jupiter:" =~ ":$SYS_ID:" ]]; then
if [[ ! $KARGS =~ "initcall_blacklist" ]]; then
NEEDED_KARGS="$NEEDED_KARGS --append=initcall_blacklist=simpledrm_platform_driver_init"
fi
if [[ ! $KARGS =~ "nowatchdog" ]]; then
NEEDED_KARGS="$NEEDED_KARGS --append=nowatchdog"
fi
if [[ ! $KARGS =~ "nmi_watchdog" ]]; then
NEEDED_KARGS="$NEEDED_KARGS --append=nmi_watchdog=0"
fi
fi
if grep -qz "Kernel driver in use: radeon" <<< $GPU_ID; then