Closed AntonSamokat closed 6 months ago
I've found solution on the level of system - to restart Wi Fi Hotspot service (systemctl restart create_ap
) by the system upon wake up.
Need to create script (for example, restart-wifi-hotspot.sh
) in /lib/systemd/system-sleep/
:
cd /lib/systemd/system-sleep/; name='restart-wifi-hotspot.sh'; sudo touch "$name"; sudo chmod ug-x "$name"; sudo vim "$name"
With the following content:
#!/bin/sh
case $1/$2 in
pre/*)
# Place your pre suspend commands here, or `exit 0` if no pre suspend action required
;;
post/*)
# Place your post suspend (resume) commands here, or `exit 0` if no post suspend action required
systemctl restart create_ap # resturts wifi-hotspot service
;;
esac
Tested on Ubuntu 20.04
Describe the bug After awakening system from being asleep Wi Hospot needs to be manually restarted. Applicable both to GUI and service versions of the tool.
To Reproduce Steps to reproduce the behavior:
Expected behavior Wi Hotspot Screenshots If applicable, add screenshots to help explain your problem.
Desktop:
Additional context
systemctl status create_ap
output: