Ubuntu is unable to detect one of my GPUs

Bug #1903200 reported by Daniel Martínez Santiago
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have an MSI laptop which was working fine with Ubuntu 18, but I decided to upgrade. It has one of these dual graphics setups, which and Intel HD 630 and a NVIDIA GTX 1060 6GB. On Ubuntu 18, I simply get the NVIDIA GPU to work by selecting its drivers on the "Additional Drivers" tab under "Software and Updates", but on this version of Ubuntu, my GPU doesn't appear there any more.

Also, if I type this in the console: $ lspci | grep -i --color 'vga\|3d\|2d'

This is the only line I get: 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)

Just in case, my laptop model is this: https://es.msi.com/Laptop/GL72VR-7RFX

I also have Windows on dual boot and the GPU works perfectly fine there. Also, it is not disabled on the BIOS or something like that. I don't think that is even possible on my BIOS either.

$ lspci -k | grep -EA3 'VGA|3D|Display'

00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
 DeviceName: Onboard IGD
 Subsystem: Micro-Star International Co., Ltd. [MSI] HD Graphics 630
 Kernel driver in use: i915

$ lspci

00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v6/7th Gen Core Processor Host Bridge/DRAM Registers (rev 05)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 05)
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31)
00:1c.0 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #1 (rev f1)
00:1c.3 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #4 (rev f1)
00:1c.4 PCI bridge: Intel Corporation 100 Series/C230 Series Chipset Family PCI Express Root Port #5 (rev f1)
00:1f.0 ISA bridge: Intel Corporation HM175 Chipset LPC/eSPI Controller (rev 31)
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
00:1f.3 Audio device: Intel Corporation CM238 HD Audio Controller (rev 31)
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
02:00.0 Network controller: Intel Corporation Dual Band Wireless-AC 3168NGW [Stone Peak] (rev 10)
03:00.0 Ethernet controller: Qualcomm Atheros Killer E2400 Gigabit Ethernet Controller (rev 10)
04:00.0 USB controller: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller

Looking at the output, I don't know why it says that my processor is an Intel Xeon... it's actually a i7-7700HQ.

Here is a thread on the forum with more people experiencing this issue:
https://ubuntuforums.org/showthread.php?t=2443007

Any help would be appreciated.

Thanks.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: xorg 1:7.7+19ubuntu14
ProcVersionSignature: Ubuntu 5.4.0-52.57-generic 5.4.65
Uname: Linux 5.4.0-52-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.10
Architecture: amd64
BootLog: Error: [Errno 13] Permiso denegado: '/var/log/boot.log'
CasperMD5CheckResult: skip
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Thu Nov 5 20:18:37 2020
DistUpgraded: 2020-05-08 15:27:01,107 ERROR got error from PostInstallScript ./xorg_fix_proprietary.py (g-exec-error-quark: Falló al ejecutar el proceso hijo «./xorg_fix_proprietary.py» (No existe el archivo o el directorio) (8))
DistroCodename: focal
DistroVariant: ubuntu
DkmsStatus:
 nvidia, 450.80.02, 5.4.0-51-generic, x86_64: installed
 nvidia, 450.80.02, 5.4.0-52-generic, x86_64: installed
 virtualbox, 6.1.10, 5.4.0-51-generic, x86_64: installed
 virtualbox, 6.1.10, 5.4.0-52-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation HD Graphics 630 [8086:591b] (rev 04) (prog-if 00 [VGA controller])
   Subsystem: Micro-Star International Co., Ltd. [MSI] HD Graphics 630 [1462:11d7]
InstallationDate: Installed on 2018-10-02 (765 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
MachineType: Micro-Star International Co., Ltd. GL72VR 7RFX
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-52-generic root=UUID=97a38a40-3df8-4990-a5bf-b879b481309b ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to focal on 2020-05-08 (181 days ago)
XorgLogOld:

dmi.bios.date: 03/15/2018
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: E179BIMS.312
dmi.board.asset.tag: Default string
dmi.board.name: MS-179B
dmi.board.vendor: Micro-Star International Co., Ltd.
dmi.board.version: REV:1.0
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 10
dmi.chassis.vendor: Micro-Star International Co., Ltd.
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrE179BIMS.312:bd03/15/2018:svnMicro-StarInternationalCo.,Ltd.:pnGL72VR7RFX:pvrREV1.0:rvnMicro-StarInternationalCo.,Ltd.:rnMS-179B:rvrREV1.0:cvnMicro-StarInternationalCo.,Ltd.:ct10:cvrDefaultstring:
dmi.product.family: GL
dmi.product.name: GL72VR 7RFX
dmi.product.sku: 179B.3
dmi.product.version: REV:1.0
dmi.sys.vendor: Micro-Star International Co., Ltd.
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.101-2
version.libgl1-mesa-dri: libgl1-mesa-dri 20.0.8-0ubuntu1~20.04.1
version.libgl1-mesa-glx: libgl1-mesa-glx 20.0.8-0ubuntu1~20.04.1
version.xserver-xorg-core: xserver-xorg-core 2:1.20.8-2ubuntu2.4
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
Daniel Martínez Santiago (enon97) wrote :
Changed in ubuntu:
assignee: nobody → Daniel Martínez Santiago (enon97)
affects: ubuntu → xorg (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It looks like there are two problems here:

1. The kernel can't find the GPU at all. This is either due to a BIOS setting or some kind of optimus / prime switch you need to flip (sorry I'm not familiar with that).

2. You tried to manually install unsupported driver version 455.23.05 and it failed.

So first please check your BIOS and make sure the discrete GPU is enabled. If that doesn't fix it then some quick googling suggests the problem should be fixed by installing a working driver, so try:

  sudo apt update
  sudo apt install --reinstall nvidia-driver-450 nvidia-prime

affects: xorg (Ubuntu) → ubuntu
Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Daniel Martínez Santiago (enon97) wrote :

Hello, as I've already told you, it is not possible to disable my nvidia GPU on my BIOS at all, and Windows 10 detects it just fine.

I've installed the driver you tell me and thats what I get when I try to open some nvidia driver related applications:

daniel@daniel-PC:~$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

daniel@daniel-PC:~$ nvidia-settings

ERROR: NVIDIA driver is not loaded

ERROR: Unable to load info from any available system

(nvidia-settings:31159): GLib-GObject-CRITICAL **: 18:46:30.161: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** Message: 18:46:30.166: PRIME: No offloading required. Abort
** Message: 18:46:30.166: PRIME: is it supported? no

The driver was installed as follows:

daniel@daniel-PC:~$ sudo apt install --reinstall nvidia-driver-450 nvidia-prime
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
El paquete indicado a continuación se instaló de forma automática y ya no es necesario.
  libnvidia-common-455
Utilice «sudo apt autoremove» para eliminarlo.
0 actualizados, 0 nuevos se instalarán, 2 reinstalados, 0 para eliminar y 15 no actualizados.
Se necesita descargar 440 kB de archivos.
Se utilizarán 0 B de espacio de disco adicional después de esta operación.
Des:1 http://es.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 nvidia-driver-450 amd64 450.80.02-0ubuntu0.20.04.2 [431 kB]
Des:2 http://es.archive.ubuntu.com/ubuntu focal/main amd64 nvidia-prime all 0.8.14 [9.164 B]
Descargados 440 kB en 1s (849 kB/s)
(Leyendo la base de datos ... 333601 ficheros o directorios instalados actualmente.)
Preparando para desempaquetar .../nvidia-driver-450_450.80.02-0ubuntu0.20.04.2_amd64.deb ...
Desempaquetando nvidia-driver-450 (450.80.02-0ubuntu0.20.04.2) sobre (450.80.02-0ubuntu0.20.04.2) .
..
Preparando para desempaquetar .../nvidia-prime_0.8.14_all.deb ...
Desempaquetando nvidia-prime (0.8.14) sobre (0.8.14) ...
Configurando nvidia-driver-450 (450.80.02-0ubuntu0.20.04.2) ...
Configurando nvidia-prime (0.8.14) ...

Thanks for your help.

Changed in ubuntu:
status: Incomplete → Confirmed
Changed in ubuntu:
status: Confirmed → Incomplete
Changed in ubuntu:
assignee: Daniel Martínez Santiago (enon97) → nobody
affects: ubuntu → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Incomplete → New
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
Changed in linux (Ubuntu):
assignee: nobody → Daniel Martínez Santiago (enon97)
Changed in linux (Ubuntu):
assignee: Daniel Martínez Santiago (enon97) → nobody
Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Can you please attach output of `prime-select query`?

Revision history for this message
Daniel Martínez Santiago (enon97) wrote :

$ prime-select query

on-demand

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Can you please run `ls /lib/udev/rules.d/*pm-nvidia.rules`, and remove them if they exist.

Revision history for this message
Daniel Martínez Santiago (enon97) wrote :

Hello,

Is the command correct? I just get an error.

Thanks.

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.