Jump to content

Enable wifi after suspend-resume

From www.ReeltoReel.nl Wiki
Revision as of 19:11, 25 January 2025 by Pvdm (talk | contribs) (To enable wifi after resume, when it is turned off)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To enable wifi after resume, when it is turned off

Create a systemd service “root-resume.service” in /etc/systemd/system with content:

[Unit]
Description=Local system resume actions
After=suspend.target

[Service]
Type=simple
ExecStart=/usr/bin/nmcli radio wifi on

[Install]
WantedBy=suspend.target

and enable the newly created service:

# systemctl enable root-resume.service