Skip to content

Instantly share code, notes, and snippets.

@sigboe
sigboe / suspend-modules
Last active Aug 20, 2019 — forked from mauron85/suspend-modules
Systemd unload modules on sleep
View suspend-modules
#!/bin/bash
# Put into /lib/systemd/system-sleep/suspend-modules
# chmod a+x /lib/systemd/system-sleep/suspend-modules
# Unloads kernel modules defined in /etc/suspend-modules.d/*.conf
# and /etc/suspend-modules
# with one module per line
# Too see credits, see git history