Please follow the below steps to solve your wifi problem in ubuntu linux 22.04
sudo su
vi /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
[connection]
wifi.powersave = 3
change 3 to 2 and save
—————–
https://gist.github.com/jcberthon/ea8cfe278998968ba7c5a95344bc8b55
My wifi connection is often interrupted when using battery power, while using AC power, the connection is stable. It is solved after I modify the wifi.powersave to 2. Thank you very much!