Small set of machine-local fixes for running SteamOS on this Gigabyte X570 system.
gigabyte-x570-fix.servicedisablesthermal_zone1, which avoids the Gigabyte X570 platform sensor sleep/resume issue.disable-wakeup.servicedisables spurious ACPI wake sources (GPP0,GPP8,SWUS,SWDS,GP12,GP13,XHC0) and all USB device wakeup after boot so the machine stays asleep.wifi-wol.serviceenables Wi-Fi Wake-on-WLAN magic-packet wake forwlan0after boot.var-mnt-DataDrive.mountandvar-mnt-DataDrive.automountmount/var/mnt/DataDriveby UUID without relying on/etc/fstab. On this SteamOS install,/mntis a symlink to/var/mnt, so the drive is still reachable at/mnt/DataDrive.fstabis a reference snapshot of the current known-good SteamOS/etc/fstab; it is not installed by the helper because SteamOS updates can reset it.steamos-fixes.shchecks and reapplies these systemd units after SteamOS updates, and makes sure/etc/default/grubincludesamdgpu.ppfeaturemask=0xfff73fffinGRUB_CMDLINE_LINUX_DEFAULT.
SteamOS can replace /etc/fstab during an update. The extra drive mount is more durable as systemd units in /etc/systemd/system, which has already been surviving updates on this machine.
The DataDrive entry from fstab:
UUID=3148dcf9-7836-447c-b3fe-ed72749c6e53 /mnt/DataDrive ext4 defaults,noatime,nofail,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=1min 0 0
is represented by:
var-mnt-DataDrive.mountvar-mnt-DataDrive.automount
From this repo:
sudo ./steamos-fixes.sh installThis creates /var/mnt/DataDrive if needed, copies the service, mount, and automount units into /etc/systemd/system, reloads systemd, updates /etc/default/grub, and enables:
gigabyte-x570-fix.service disable-wakeup.service wifi-wol.service var-mnt-DataDrive.automountRun the one-shot services immediately without rebooting:
sudo systemctl start gigabyte-x570-fix.service disable-wakeup.service wifi-wol.serviceThe installer also starts the DataDrive automount, mounts the drive once when it is available, and sets the mounted filesystem root to deck:deck. For ext4, that ownership is stored on the drive itself and survives future mounts.
Start the automount manually if needed:
sudo systemctl start var-mnt-DataDrive.automount./steamos-fixes.sh checkIf anything differs, inspect the changes:
./steamos-fixes.sh diffThen reapply:
sudo ./steamos-fixes.sh reinstallinstall and reinstall do the same thing. The separate command exists so the intent is obvious when running it after an update.
Check that the expected units are enabled:
systemctl is-enabled gigabyte-x570-fix.service disable-wakeup.service wifi-wol.service var-mnt-DataDrive.automountCheck the current mount state and ownership:
systemctl status var-mnt-DataDrive.automount var-mnt-DataDrive.mount
findmnt /var/mnt/DataDrive
stat -c '%U:%G %n' /var/mnt/DataDriveCheck the current ACPI and USB wake state:
cat /proc/acpi/wakeup
for wakeup in /sys/bus/usb/devices/*/power/wakeup; do echo "$wakeup: $(cat "$wakeup")"; doneCheck Wi-Fi Wake-on-WLAN:
cat /sys/class/net/wlan0/device/power/wakeup
iw phy "$(cat /sys/class/net/wlan0/phy80211/name)" wowlan showCheck the thermal zone mode:
cat /sys/class/thermal/thermal_zone1/modeCheck the current booted kernel command line after rebooting:
cat /proc/cmdline | tr ' ' '\n' | grep -x 'amdgpu.ppfeaturemask=0xfff73fff'- This repo is intentionally machine-specific. Do not apply the mount unit or
fstabreference on another machine without checking the UUIDs first. - The helper will temporarily run
steamos-readonly disablewhen that command exists and reports the system as readonly, then restore readonly mode at the end. - If SteamOS resets
/etc/fstab, that is okay; the extra drive mount is handled by systemd now.