Jump to content

Enable wifi after suspend-resume: Difference between revisions

From www.ReeltoReel.nl Wiki
Pvdm (talk | contribs)
 
(No difference)

Latest revision as of 19:11, 25 January 2025

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