Skip to content

Instantly share code, notes, and snippets.

@simons-public
Last active August 20, 2022 00:41
Show Gist options
  • Save simons-public/216c5bd5048b3c19d0961c519ab00b07 to your computer and use it in GitHub Desktop.
Save simons-public/216c5bd5048b3c19d0961c519ab00b07 to your computer and use it in GitHub Desktop.
Squeeze Space on Steam Deck
# Proton leaves behind proton_dist.tar files that are not needed after extraction to ./dist
# Clear proton_dist.tar files
find /home/deck/.local/share/Steam/steamapps/common -name 'proton_dist.tar' -delete
# Logs are kept on the /home partition in /home/.steamos/offload/var/log
# Set max logsize to 10M
# Force reloading of journald configuration
# Force rotation and clear any archived logs over 10M
sed -i'' -e 's/^#SystemMaxUse=/SystemMaxUse=10M/' /etc/systemd/journald.conf
systemctl force-reload systemd-journald
journalctl --rotate
journalctl --vacuum-size=10M
# Coredumps can take up space in /home/.steamos/offload/var/lib/systemd/coredump when things crash
# Set coredump storage to none
# Force relaoding of coredump socket configuration
# Clear any existing coredumps
sed -i'' -e 's/^#Storage=external/Storage=none/' /etc/systemd/coredump.conf
sed -i'' -e 's/^#ProcessSizeMax=2G/ProcessSizeMax=0/' /etc/systemd/coredump.conf
systemctl force-reload systemd-coredump
rm /home/.steamos/offload/var/lib/systemd/coredump/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment