xorg does not use nvidia gpu on a I+N machine.

Bug #1875339 reported by Yuan-Chen Cheng
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
Fix Released
High
Yuan-Chen Cheng
ubuntu-drivers-common (Ubuntu)
Fix Released
High
Alberto Milone
Focal
Fix Released
High
Alberto Milone

Bug Description

SRU Request:

[Test Case]
1) Enable the -proposed repository, and install the new ubuntu-drivers-common (1:0.8.1.1).

2) Check that the dpkg-dev package is also installed.

3) Restart your computer, and see if everything works correctly when
accessing the desktop.

[Regression Potential]
Low. No code was changed, only a missing dependency was added to solve the problem.

__________
On a machine with I+N, I install with focal 20.04 image. I didn't turn on auto-login. I checked "install 3rd party driver" during installation. It does install Nvidia driver (440.82+really.440.64-0ubuntu6).

On first boot, I double check by run 'prime-select query'. It return nvidia.

run nvidia-smi, no program is using NV GPU.

---
$ glxinfo -B
name of display: :1
display: :1 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) UHD Graphics 630 (CFL GT2) (0x3e9b)
    Version: 20.0.4
    Accelerated: yes
    Video memory: 3072MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 630 (CFL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.0.4
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.0.4
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.0.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
---

Run lsmod | grep nvidia, I got:

---
nvidia_uvm 970752 0
nvidia_drm 49152 0
nvidia_modeset 1114112 1 nvidia_drm
nvidia 20430848 8 nvidia_uvm,nvidia_modeset
drm_kms_helper 184320 2 nvidia_drm,i915
ipmi_msghandler 106496 2 ipmi_devintf,nvidia
drm 491520 11 drm_kms_helper,nvidia_drm,i915
---

I run

$ sudo prime-select intel
$ sudo prime-select nvidia
$ sudo reboot

After reboot, nothing changed.

However, previously, on the same machine, I once get it works. (nvidia-smi show some X related process use GPU, glxinfo -B show Nvidia). I remembered I create another admin account, and later on, I found it's fixed. I didn't remember what else exactly make it happened.
I re-installed again, and try to do more tests, can't fix it so far.

LP: #1875315 have all the log that it first fixed.
---

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
Uname: Linux 5.4.0-26-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.gpus.0000.01.00.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0000:01:00.0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 440.64 Fri Feb 21 01:17:26 UTC 2020
 GCC version:
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: skip
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 27 18:58:04 2020
DistUpgraded: Fresh install
DistroCodename: focal
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation UHD Graphics 630 (Mobile) [8086:3e9b] (rev 02) (prog-if 00 [VGA controller])
   Subsystem: Dell UHD Graphics 630 (Mobile) [1028:091a]
   Subsystem: Dell GP107GLM [Quadro P620] [1028:091a]
InstallationDate: Installed on 2020-04-27 (0 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
MachineType: Dell Inc. Precision 3541
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-26-generic root=UUID=8c0e264c-f63c-4d5a-b85f-6faf4008b9e6 ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/21/2019
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.5.1
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.5.1:bd08/21/2019:svnDellInc.:pnPrecision3541:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct10:cvr:
dmi.product.family: Precision
dmi.product.name: Precision 3541
dmi.product.sku: 091A
dmi.sys.vendor: Dell Inc.
nvidia-settings:
 ERROR: Unable to load info from any available system

 ERROR: Unable to load info from any available system
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.101-2
version.libgl1-mesa-dri: libgl1-mesa-dri 20.0.4-2ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.20.8-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-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20200226-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.16-1

Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :
description: updated
description: updated
summary: - on first boot and XXX, xorg does not use nvidia gpu on a I+N machine.
+ xorg does not use nvidia gpu on a I+N machine.
description: updated
Changed in oem-priority:
importance: Undecided → High
assignee: nobody → Yuan-Chen Cheng (ycheng-twn)
status: New → Confirmed
description: updated
tags: added: oem-priority
Revision history for this message
Alberto Milone (albertomilone) wrote :

Can you attach your /var/log/gpu-manager.log after reproducing the problem, please?

Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

Here it is. Feel free if you need further log.

Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

quick check the log, there is:

Is nvidia kernel module available? no

However, what installed is linux-modules-nvidia-440-5.4.0-26-generic, which install the nvidia.ko to /lib/modules/5.4.0-26-generic/kernel/nvidia-440/nvidia.ko instead of the directory that gpu-manager check, which is /lib/modules/%s/updates/dkms.

no longer affects: xorg (Ubuntu)
tags: added: hybrid nvidia
Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

fix in https://github.com/tseliot/ubuntu-drivers-common/pull/44.

root cause: gpu-manager call dpkg-architecture that live in dpkg-dev, but it's not necessarily installed on the ubuntu that end-user installed.

Changed in oem-priority:
status: Confirmed → Fix Committed
Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

For people who own a machine that does not have other GPU than Nvidia one, this bug is fatal.

Changed in ubuntu-drivers-common (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
importance: Undecided → High
status: New → In Progress
Changed in ubuntu-drivers-common (Ubuntu Focal):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Alberto Milone (albertomilone)
Revision history for this message
Alberto Milone (albertomilone) wrote :

I have added the missing dependency, with no other change. Please accept the change into focal-proposed.

description: updated
description: updated
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Yuan-Chen, or anyone else affected,

Accepted ubuntu-drivers-common into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntu-drivers-common/1:0.8.1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ubuntu-drivers-common (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-drivers-common - 1:0.8.3

---------------
ubuntu-drivers-common (1:0.8.3) groovy; urgency=medium

  * debian/control:
    - Replace build dependency on lib32gcc1 with lib32gcc-s1.

 -- Alberto Milone <email address hidden> Mon, 04 May 2020 16:21:39 +0200

Changed in ubuntu-drivers-common (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

Test procedure:

1. find a machine that have Intel + Nvidia GPU.
2. install stock focal 20.04 image => it's in Nvidia performance mode. but nvidia-smi show no app use GPU.
3. apt-get upgrade
4. turn on proposed channel
5. apt-get install ubuntu-drivers-common => it properly install v1:0.8.1.1 and dpkg-dev
6. reboot => still in Nvidia performance mode, and nvidia-smi show X Server and gnome-shell use Nvidia GPU resource.

Per 5, it test passed.
Per status change from 2 to 6, it fix the issue in the first place.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

note that dependency of dpkg-dev (gcc, etc) will also be installed.

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

This bug was fixed in the package ubuntu-drivers-common - 1:0.8.1.1

---------------
ubuntu-drivers-common (1:0.8.1.1) focal; urgency=medium

  * debian/control:
    - Depend on dpkg-dev (LP: #1875339).

 -- Alberto Milone <email address hidden> Mon, 04 May 2020 10:53:31 +0200

Changed in ubuntu-drivers-common (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for ubuntu-drivers-common has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in oem-priority:
status: Fix Committed → Fix Released
Mathew Hodson (mhodson)
affects: ubuntu-drivers-common → ubuntu-translations
no longer affects: ubuntu-translations
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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