I have a laptop with Kubuntu 22.04 and yesterday I could connect to the wifi without issues but today I can't, it doesn't show any networks.
I've tried some suggestions online but with no success, this is what lshw shows
user@laptop:/etc/network$ sudo lshw -C network
*-network DISABLED
description: wireless interface
product: RT5390 Wireless 802.11n 1T/1R PCIe
producer: Ralink corp.
. . .
logical name: wlp3s0
. . .
capacities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rt2800pci driverversion=6.8.0-40-generic firmware=0.40 latency=0 link=no multicast=yes wireless=IEEE 802.11
Any suggestions?
EDIT: To clarify, wifi can be activated and deactivated but always says there are 0 networks. In Kubuntu there's an option to set the wifi as an access point, when I click on it it throws an error as if it couldn't reach the wifi module or something.
EDIT2: My laptop has a key to enable/disable wifi, but does nothing (and also I don't think I've pressed it)
I've also tried sudo systemctl restart NetworkManager as a user suggested but didn't fix the issue.
EDIT3: Some other commands I've run that I found on the internet in case they help somehow
user@laptop:/home/user$ sudo iwlist wlp3s0 scanning
wlp3s0 Interface doesn't support scanning : Network is down
user@laptop:/home/user$ nmcli device
DEVICE TYPE STATE CONNECTION
enp4s0f2 ethernet connected Wired connection 1
tailscale0 tun connected tailscale0
wlp3s0 wifi unavailable --
lo loopback not handled --
EDIT 3: As a user suggested in the comments, this is the output of the script to debug the networking issues https://termbin.com/2vql
EDIT 4: As stated in the comments, changing wifi.powersave to value 2 now makes it work for 1 minute, then a popup appears stating that the device is down. This is the output of nmcli device before the minute passes
user@laptop:~$ nmcli device
DEVICE TYPE STATE CONNECTION
enp4s0f2 ethernet connected Wired connection 1
wlp3s0 wifi connected MyWifiNetwork1
tailscale0 tun connected (externally) tailscale0
lo loopback unmanaged --
and after the minute passes
user@laptop:~$ nmcli device
DEVICE TYPE STATE CONNECTION
enp4s0f2 ethernet connected Wired connection 1
tailscale0 tun connected (externally) tailscale0
wlp3s0 wifi disconnected --
lo loopback unmanaged --
EDIT 5: This is the output of journalctl from boot until wifi disconnects https://termbin.com/ztrp