Unable to change the display resolution after updating the kernel.

There are many reasons for this problem, and I will keep updating this page with possible causes.

If you are using Nvidia, run nvidia-smi to see if the graphics card is working properly.

Refer to the following steps to recompile the Nvidia graphics driver.

  1. Run ls /usr/src/ to confirm the version of the graphics driver you are using.
  2. Run sudo apt install dkms to install DKMS[a].
  3. Run sudo dkms install -m nvidia -v the-version-you-saw-in-step-1 to recompile and install the graphics driver.
  4. Reboot your PC.
[a] A program/framework that enables generating Linux kernel modules whose sources generally reside outside the kernel source tree. Refer dkms to get more details.
L R B Q L