fix(hardware-setup): Disable Deck services on generic devices

This commit is contained in:
RJ Trujillo 2023-09-08 12:42:09 -06:00
parent 7fc18d3c20
commit 4edac4a5f7
2 changed files with 9 additions and 10 deletions

View File

@ -370,16 +370,6 @@ enable-deck-bios-firmware-updates:
sudo systemctl enable jupiter-biosupdate.service
sudo systemctl enable jupiter-controller-update.service
# Disable all Steam Deck hardware specific services
disable-deck-services:
#!/usr/bin/env bash
sudo systemctl disable --now jupiter-fan-control.service
sudo systemctl disable --now vpower.service
sudo systemctl disable --now jupiter-biosupdate.service
sudo systemctl disable --now jupiter-controller-update.service
sudo systemctl disable --now ryzenadj.service
sudo systemctl disable --now batterylimit.service
# Disable Steam Deck BIOS updates
disable-bios-updates:
#!/usr/bin/env bash

View File

@ -71,6 +71,15 @@ 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 "Generic device detected. Performing setup..."
sudo systemctl disable --now jupiter-fan-control.service
sudo systemctl disable --now vpower.service
sudo systemctl disable --now jupiter-biosupdate.service
sudo systemctl disable --now jupiter-controller-update.service
sudo systemctl disable --now ryzenadj.service
sudo systemctl disable --now batterylimit.service
fi
if [[ $IMAGE_NAME =~ "nvidia" ]]; then