After encountering a problem with my Nvidia drivers (described here: enter link description here ), I managed to reinstall them using the instructions here: https://developer.nvidia.com/blog/updating-the-cuda-linux-gpg-repository-key/
After rebooting, USB stopped working at all. Neither my mouse nor my keyboard work and I am stuck in the login screen. When the computer powers up, the lights of the keyboard lightup, but while booting to Ubuntu, they all go off. I think the USB ports don't even get power.
When I enter recovery mode, if I run lsusb in command line, I can see the buses and the connected devices listed properly, so I guess the problem has something to do with the Nvidia drivers, as the problems occurs when entering the Ubuntu GUI in the login screen.
In my Windows 11 partition, USB works fine as well.
How can I could I attempt to solve this problem?