02-23-2024, 04:48 PM
(02-23-2024, 01:59 PM)ninlith Wrote:(02-16-2024, 05:08 AM)Wilmeri Wrote: Hi!
As we know, the new wifi driver works, but hangs on suspend and shutdown. However, if I manually just disable wifi or run "nmcli radio wifi off" before shutdown or suspend, all goes well :-).
So I thought following this would make all work:
https://unix.stackexchange.com/questions...ds-resumes
but for some reason, it does not work. Any ideas?
Wilmeri
Prefix the nmcli commands with sudo -u YOURUSERNAME.
That seemed to work a couple of times, but then never did again. I had better luck enabling the following service units:
Code:
[Unit]
Description=Turn on Wi-Fi at resume
After=suspend.target
[Service]
ExecStart=/usr/bin/nmcli radio wifi on
[Install]
WantedBy=suspend.target
Code:
[Unit]
Description=Turn off Wi-Fi at suspend
After=sleep.target
[Service]
ExecStart=/usr/bin/nmcli radio wifi off
[Install]
WantedBy=sleep.target