First of all, I'm not an experienced user so please be as clear as possible in all answers. I recently installed Ubuntu 22.04 on a new HP Victus laptop (This one except with Intel Core i7-12700H and GeForce RTX 3050 Ti). The wifi was working fine. I was not messing with any settings, it just suddenly disconnected and now it says "no wifi adapter found" in settings. I have already tried some solutions from similar questions but nothing works. I'm now online using a tethered android phone.
The wifi adapter does not show up using 'sudo lshw -C network':
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:06:00.0
logical name: eno1
version: 16
serial: a8:b1:3b:92:0a:eb
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.19.0-32-generic firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=twisted pair
resources: irq:19 ioport:3000(size=256) memory:82204000-82204fff memory:82200000-82203fff
*-network
description: Ethernet interface
physical id: 12
bus info: usb@3:3
logical name: enx1e31043ced9f
serial: 1e:31:04:3c:ed:9f
capabilities: ethernet physical
configuration: autonegotiation=off broadcast=yes driver=rndis_host driverversion=5.19.0-32-generic duplex=half firmware=RNDIS device ip=192.168.16.27 link=yes multicast=yes port=twisted pair
I ran a wireless-info script i found. The output is here.
sudo dmesg | grep iwl
gives:
[ 1.482435] Loading modules backported from iwlwifi
[ 1.482436] iwlwifi-stack-public:master:10878:f4df8641
rfkill list
gives:
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
iwconfig
gives:
lo no wireless extensions.
eno1 no wireless extensions.
enx1e31043ced9f no wireless extensions.
I hope I haven't messed things up even further trying things from other questions without knowing exactly what I was doing (there are so many, i've lost track of everything I've done). I will use this computer for studying and I've spent a lot of time setting up all the software I will need, CUDA for molecular dynamics simulations and onedrive etc. So I would really like to avoid a fresh install if possible. Thank you in advance for your help.