Ubuntu freezes after update to 21.10

I upgraded from 21.04 to 21.10 and it was awesome, super cool, but then I shat down the computer and the next day when I turn it on it freezes after I log in. Not even the power off button works, i have to hold it so it completely Turns off. After trying many times to reboot it, I noticed that some times it freezes before it even powers up, when there’s the HP logo and the Ubuntu word. Other times it freezes later. I think it has something to do with configuration files, because I edited them to make the dock cool. How can I solve this? Possibly without reinstalling everything

Edit I have only changed dash-to-dock, and in some of my attempts i did login, i also tried to open firefox but it freezed while it was loading

Edit 2 In var/log/syslog most of the lines say rtw_8821ce pci bus timeout and some lines say Gnome-shell: the xkeyboard Keymap compiler (xkbcomp) reports: Warning unsupported maximum key code 569, clipping X11 cannot support key codes above 255 Errors from xkbcomp are not fatal to the x server chrome …… corruption detected in extension …. Chrome ……. Warning: chrome_content_verifier_delegate.cc corruption detected ….. And then other chrome and opera corruption errors

This kinda makes sense because it was when I tried to use a browser that it freezed

Edit 3 Sudo dmesg -T gives me this https://pastebin.ubuntu.com/p/T2FZ4mJMyF/

I installed openssh server so I could login from another device once it freezes but I noticed that when it’s freezed I can’t ssh in it

I also tried with alt+f2 and then r to restart the gnome desktop but no success

I also updated the packages but nothing


I found out that it was somewhat related to the WiFi adapter driver. The new kernel didn’t work, but the old one did.

I replaced my driver to this https://github.com/tomaspinho/rtl8821ce and now it also works with the new kernel.

To install the driver open a terminal and type

  1. sudo apt update
  2. git clone https://github.com/tomaspinho/rtl8821ce
  3. cd rtl8821ce
  4. sudo ./dkms-install.sh