Ubuntu 21.04 not loading correctly intel graphics driver

Bug #1925750 reported by florin
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdm3 (Ubuntu)
Invalid
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I just installed Ubuntu 21.04 and have a problem: I cannot boot into Wayland to test it (should be default in 21.04) because, for some reason, my system does not correctly work with the graphics drivers. I have nvidia+intel graphics on the laptop, but in the Additional Drivers tab, I only have the Nvidia one showing. I installed mate-optimus to have access to the nvidia settings and be able to change graphics from there, that one seems to be working, but Wayland still does not show up in the log in screen, maybe because it detected the kind of driver and sees it is the nvidia one?

See the screenshot.

I have run some terminal commands, but I don't really understand them, maybe the outputs helps you (from nvidia drivers the Intel graphics is selected):

sudo lshw -c video
[sudo] password for florin:
  *-display UNCLAIMED
       description: 3D controller
       product: GM107M [GeForce GTX 950M]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a2
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: memory:95000000-95ffffff memory:80000000-8fffffff memory:90000000-91ffffff ioport:5000(size=128)
  *-display
       description: VGA compatible controller
       product: HD Graphics 530
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 06
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:132 memory:93000000-93ffffff memory:a0000000-afffffff ioport:6000(size=64) memory:c0000-dffff

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) HD Graphics 530 (SKL GT2) (0x191b)
    Version: 21.0.1
    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) HD Graphics 530 (SKL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 21.0.1
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 21.0.1
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 21.0.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: linux-image-5.11.0-16-generic 5.11.0-16.17
ProcVersionSignature: Ubuntu 5.11.0-16.17-generic 5.11.12
Uname: Linux 5.11.0-16-generic x86_64
ApportVersion: 2.20.11-0ubuntu65
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: florin 15003 F.... pulseaudio
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 23 09:20:09 2021
InstallationDate: Installed on 2021-04-22 (0 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 002: ID 13d3:5652 IMC Networks TOSHIBA Web Camera - HD
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Lsusb-t:
 /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/8p, 5000M
 /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
     |__ Port 9: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
     |__ Port 9: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
MachineType: TOSHIBA SATELLITE P50-C
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.11.0-16-generic root=UUID=001363ac-7910-4e68-9fda-6faa94059b0e ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.11.0-16-generic N/A
 linux-backports-modules-5.11.0-16-generic N/A
 linux-firmware 1.197
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/05/2017
dmi.bios.release: 1.50
dmi.bios.vendor: INSYDE Corp.
dmi.bios.version: 1.50
dmi.board.name: 06F4
dmi.board.vendor: FF50
dmi.board.version: Type2 - Board Version
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: OEM Chassis ManuFacturer
dmi.chassis.version: OEM Chassis Version
dmi.ec.firmware.release: 1.30
dmi.modalias: dmi:bvnINSYDECorp.:bvr1.50:bd07/05/2017:br1.50:efr1.30:svnTOSHIBA:pnSATELLITEP50-C:pvrPSPUFE-001009G6:rvnFF50:rn06F4:rvrType2-BoardVersion:cvnOEMChassisManuFacturer:ct10:cvrOEMChassisVersion:
dmi.product.family: Type1Family
dmi.product.name: SATELLITE P50-C
dmi.product.sku: PSPUFE
dmi.product.version: PSPUFE-001009G6
dmi.sys.vendor: TOSHIBA

Revision history for this message
florin (florin-arjocu) wrote :
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
Seth Forshee (sforshee) wrote :

The reason you don't see any Intel graphics drivers in the "Addditional Drivers" tab is that none are needed. The Intel graphics driver (i915) is open source and already included in the kernel, and from your logs it has been loaded.

There's nothing I'm seeing currently which indicates a kernel issue. My best guess as to which package decides whether or not to offer wayland sessions is gdm3, so I'll add that to the bug report.

Revision history for this message
florin (florin-arjocu) wrote :

@Seth Forshee
Thank you for having a look, I have no idea how these work.

But shouldn't there be a way to select the Intel driver and be able to use Wayland? If it is not there, how else do I do it?

Revision history for this message
Seth Forshee (sforshee) wrote :

I honestly don't know much about how these dual-GPU systems work. I suspect there must be some firmware interfaces for enabling/disabling the discrete GPU, I have no idea whether those are standardized or platform-specific. Assuming the kernel supports the interfaces for your platform, I also don't know what userspace packages are necessary to utilize those interfaces. You might want to try searching for instructions for your specific machine.

You might also check the firmware setup, there may be options there related to enabling/disabling the discrete graphics.

Revision history for this message
florin (florin-arjocu) wrote :

Used to be Intel by default (not nvidia by default) until Ubuntu 21.04. This time it changed and I did not know how to revert to intel drivers. I uninstalled nvidia drivers, after restart it switched to nouveau (still nvidia) and then I blacklisted the nouveau driver in the grub. Probably there was some way to blacklist proprietary nvidia drivers, too, but I got to that solution later :D

Proprietary nvidia drivers have this thing called Optimus where, if the management app is installed, you can switch between nvidia and intel graphics (unfortunately one has also to log out-log in, in Windows it works without that), I did select Intel graphics but it does not use the open source drivers from the kernel (or at least they work differently, because I got the graphical glitches for Gnome Extensions window). Intel open source drivers don't do that.

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

There is no "additional" Intel driver. There is only one (that is supported) and it is always enabled, never listed in the GUI.

If you have the Nvidia driver installed and would like to try Wayland (NOT RECOMMENDED) then the steps to use are here: https://wiki.ubuntu.com/EoanErmine/ReleaseNotes#Enabling_Wayland_support_with_the_NVIDIA_proprietary_driver

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Changed in gdm3 (Ubuntu):
status: New → Invalid
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.