AUTOSUSPEND(1)

✨ AUTOSUSPEND(1) ✨

okay bestie, settle in, because this is the autosuspend man page and honestly?? it's giving "small tool, huge main character energy." it's in section 1 of the manual, and the vibe is immaculate.

πŸ’– NAME πŸ’–

autosuspend β€” the autosuspend Documentation. yes that's literally the official NAME line, it's short, it's chic, we move on. πŸ’…

🌸 SYNOPSIS 🌸

autosuspend [options] daemon|version [subcommand options]

like… that's the whole shape of it. options, then you pick a subcommand (daemon or version), then any subcommand-specific options. periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

so autosuspend is a daemon that periodically suspends a system when it's inactive, and then β€” this is the iconic part β€” wakes it back up automatically when it's needed again. it's literally the friend who lets you nap but shakes you awake the second your food delivery arrives. 🫢

to do this, autosuspend periodically iterates a bunch of user-configurable activity checks. each one reports whether there's currently activity on the host that should stop the host from suspending. if one of the checks says "bestie, we're busy," then no action is taken and the periodic checking just keeps going. πŸ”

but if no activity can be detected, that chill state needs to hold for a specified amount of time before autosuspend actually suspends the host. so there's a whole cooldown situation. ⏳

on top of the activity checks, there are also wake up checks, which figure out the system's planned future activities β€” think a TV recording, or a periodic backup. πŸ‘€ if those upcoming activities are known before suspending happens, autosuspend triggers a command to wake the system up automatically before the soonest activity. it's preemptive king behavior, no cap.

if you don't specify a config via a command line argument, autosuspend goes looking for a default configuration at /etc/autosuspend.conf. and autosuspend.conf(5) is where it explains the config file, all the available checks, and their configuration options. go read that one too, iykyk. πŸ“–


πŸ‘‘ OPTIONS πŸ‘‘

πŸŽ€ Command line options πŸŽ€

general syntax, one more time for the people in the back:

autosuspend [options] daemon|version [subcommand options]

✨ General options ✨

  • -h, --help β€” shows you an online help. classic. we love a help flag. πŸ™ˆ
  • -c FILE, --config FILE β€” tells it to use an alternate config file instead of the default /etc/autosuspend.conf. pick your own adventure. πŸ’œ
  • -l FILE, --logging FILE β€” configures the logging system with the logging file you provide. that file has to follow the conventions for Python logging files, described at /usr/share/doc/python3-doc/html/library/logging.config.html#logging-config-fileformat. so like, it's not vibes-only, there's a format. πŸ“
  • -d β€” turns on full debug logging, straight from the command line. mutually exclusive to autosuspend -l β€” you can't have both, bestie, pick a lane. πŸ’€

🧚 Subcommand daemon 🧚

starts the continuously running daemon. the main event. the whole point. 🌟

  • -a, --allchecks β€” normally autosuspend stops running checks within each iteration the moment the first matching check indicates system activity. if you set this flag, all the subsequent checks still get executed anyway. useful mostly for debugging purposes. it's the "run every check even though we already know" flag. πŸ”₯
  • -r SECONDS, --runfor SECONDS β€” if you specify this, it doesn't run endlessly. instead it only operates for the given amount of seconds and then exits. again, useful mostly for debugging purposes. very "we're just testing, we'll be done in a sec." ⏱️

πŸ“ Subcommand version πŸ“

outputs the currently installed version of autosuspend to stdout. that's it, that's the whole subcommand. so satisfying actually.

No options β€” she takes no options. flawless, unbothered, minimal. πŸ’…


πŸ’€ BUGS πŸ’€

found a bug? please report it at the project repository at https://github.com/languitar/autosuspend. don't suffer in silence, bestie, the maintainers want to know. πŸ›

🌈 SEE ALSO 🌈


πŸ’– Author πŸ’–

Johannes Wienke

2017, Johannes Wienke


and that's the tea. this page is version 10.1, dated May 09, 2026, and it lives in the autosuspend manual. go forth and suspend responsibly, bestie πŸŒΈβœ¨πŸ¦‹

πŸ“¦ where this page comes from