Skip to content
tuthanPublic

About

Fixes for my steamos

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SteamOS machine fixes

Small set of machine-local fixes for running SteamOS on this Gigabyte X570 system.

What is tracked

  • gigabyte-x570-fix.service disables thermal_zone1, which avoids the Gigabyte X570 platform sensor sleep/resume issue.
  • disable-wakeup.service disables 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.service enables Wi-Fi Wake-on-WLAN magic-packet wake for wlan0 after boot.
  • var-mnt-DataDrive.mount and var-mnt-DataDrive.automount mount /var/mnt/DataDrive by UUID without relying on /etc/fstab. On this SteamOS install, /mnt is a symlink to /var/mnt, so the drive is still reachable at /mnt/DataDrive.
  • fstab is 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.sh checks and reapplies these systemd units after SteamOS updates, and makes sure /etc/default/grub includes amdgpu.ppfeaturemask=0xfff73fff in GRUB_CMDLINE_LINUX_DEFAULT.

Why the drive mount is not in fstab

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.mount
  • var-mnt-DataDrive.automount

Install or reinstall

From this repo:

sudo ./steamos-fixes.sh install

This 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.automount

Run the one-shot services immediately without rebooting:

sudo systemctl start gigabyte-x570-fix.service disable-wakeup.service wifi-wol.service

The 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

Check after a SteamOS update

./steamos-fixes.sh check

If anything differs, inspect the changes:

./steamos-fixes.sh diff

Then reapply:

sudo ./steamos-fixes.sh reinstall

install and reinstall do the same thing. The separate command exists so the intent is obvious when running it after an update.

Verify the fixes

Check that the expected units are enabled:

systemctl is-enabled gigabyte-x570-fix.service disable-wakeup.service wifi-wol.service var-mnt-DataDrive.automount

Check 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/DataDrive

Check 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")"; done

Check Wi-Fi Wake-on-WLAN:

cat /sys/class/net/wlan0/device/power/wakeup
iw phy "$(cat /sys/class/net/wlan0/phy80211/name)" wowlan show

Check the thermal zone mode:

cat /sys/class/thermal/thermal_zone1/mode

Check the current booted kernel command line after rebooting:

cat /proc/cmdline | tr ' ' '\n' | grep -x 'amdgpu.ppfeaturemask=0xfff73fff'

Notes

  • This repo is intentionally machine-specific. Do not apply the mount unit or fstab reference on another machine without checking the UUIDs first.
  • The helper will temporarily run steamos-readonly disable when 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.

About

Fixes for my steamos

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages