Nvidia kernel driver stops loading after kernel update (needs manual reinstallation)

Bug #1975650 reported by Sam Magura
92
This bug affects 9 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-510 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-525 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-535 (Ubuntu)
Confirmed
Undecided
Unassigned
nvidia-graphics-drivers-550 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I often have to forcibly power down my PC because of this bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1970808. Well, the most recent time I did that, when the computer restarted, the resolution is stuck on 1024x768 even though I am on a 1920x1080 monitor. I restarted my PC again and it is still stuck on the low resolution.

This Ask Ubuntu answer (https://askubuntu.com/a/1167437/1589552) did allow me to force my resolution to 1920x1080, but a few things still seemed off:

- The display settings page in the Gnome settings app still showed my display as "unknown display" and did not have any options for changing the resolution.
- A WebGL-based application I use for work was very slow compared to normal.

I reverted the change to my Grub config and now I'm back to 1024x768.

I have an Nvidia GTX 1060 connected to a 1920x1080 monitor via HDMI. Let me know of any other information I can provide that would be helpful. Also let me know if there is a workaround other than reinstalling the OS.

Edit: I have a Windows dual boot on this PC, with Windows installed on a separate SSD. I booted into Windows and everything seems completely fine. This provides further evidence that this is a software issue, not a hardware one.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 5.15.0-33.34-generic 5.15.30
Uname: Linux 5.15.0-33-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Tue May 24 20:14:55 2022
DistUpgraded: Fresh install
DistroCodename: jammy
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Micro-Star International Co., Ltd. [MSI] GP106 [GeForce GTX 1060 3GB] [1462:3287]
InstallationDate: Installed on 2022-04-23 (31 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
MachineType: Gigabyte Technology Co., Ltd. B450M DS3H
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/usr/bin/zsh
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-33-generic root=UUID=c4ac1391-7d4e-4282-94ba-fbae3c4c044c ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/25/2019
dmi.bios.release: 5.13
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: F4
dmi.board.asset.tag: Default string
dmi.board.name: B450M DS3H-CF
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrF4:bd01/25/2019:br5.13:svnGigabyteTechnologyCo.,Ltd.:pnB450MDS3H:pvrDefaultstring:rvnGigabyteTechnologyCo.,Ltd.:rnB450MDS3H-CF:rvrx.x:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:
dmi.product.family: Default string
dmi.product.name: B450M DS3H
dmi.product.sku: Default string
dmi.product.version: Default string
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.110-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 22.0.1-1ubuntu2
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.3-2ubuntu2
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-2build3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Sam Magura (srmagura) wrote :
Sam Magura (srmagura)
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report. It appears your Nvidia kernel driver is not loading anymore so low resolution is expected. This may have been caused by a recent kernel update. Please try this:

  sudo apt install --reinstall nvidia-driver-510/jammy
  sudo apt install --reinstall nvidia-dkms-510/jammy

and then reboot.

affects: xorg (Ubuntu) → nvidia-graphics-drivers-510 (Ubuntu)
summary: - Display stuck in low resolution
+ [nvidia] Display stuck in low resolution
Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: New → Incomplete
tags: added: nvidia
Revision history for this message
Sam Magura (srmagura) wrote : Re: [nvidia] Display stuck in low resolution

It worked!!! Thank you.

summary: - [nvidia] Display stuck in low resolution
+ Nvidia kernel driver stops loading after kernel update
Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: Incomplete → New
summary: - Nvidia kernel driver stops loading after kernel update
+ Nvidia kernel driver stops loading after kernel update (needs manual
+ reinstallation)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Sam Magura (srmagura) wrote :

I had been using the 525 Nvidia drivers successfully for several months. Today I ran an `apt upgrade` after being away from my PC for a month, and the upgrade caused this graphics driver issue to occur again.

I fixed it by running:

  sudo apt install --reinstall nvidia-driver-525/jammy
  sudo apt install --reinstall nvidia-dkms-525/jammy

And then rebooting.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-525 (Ubuntu):
status: New → Confirmed
Changed in nvidia-graphics-drivers-535 (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Judging by the fact that duplicate bug 1990750 found the same solution as mentioned in bug 2061738, maybe 2061738 also needs to be marked as a duplicate of this.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

My minimal solution from bug 2061738:

  sudo apt install linux-modules-nvidia-535-`uname -r`

Just replace "535" with your intended driver version.

Changed in nvidia-graphics-drivers-550 (Ubuntu):
status: New → Confirmed
tags: added: noble
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Maybe that should be 'linux-modules-nvidia-535-generic'. It's suspicious to me that nobody depends on that other than 'linux-modules-nvidia-525-generic'.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.