EDIT:
For the Lenovo Yoga slim 7, the graphics cards is possibly
Intel Iris Xe Graphics, and there is likely no NVIDIA GPU (yet to be confirmed).
The card apparently has some issues with the standard kernel of Ubuntu 20.04 (e.g., #1, #2).
Possible solutions:
- Disable Secure boot in the BIOS.
- Update to 20.10 or 21.04.
- Install OEM kernel 20.04 with
sudo apt install linux-oem-20.04 && sudo reboot 0
. You could also try with the newer linux-oem-20.04c
, and further check available options with apt-cache search linux-oem-2
.
Alternatively, you could try building/installing a newer 5.12 or even 5.13/5.14 kernel, YMMV.
Or you can wait a short time with a current, workable condition, until newer kernels become standard.
I am not sure which of these options takes full advantage of both graphic units.
You did not post all requested info. There are plenty of Lenovo Yoga models.
This potential solution may work, depending on your hardware.
Post the output of
$ dpkg -l | grep nvidia
$ dmesg | grep drm
$ sudo lshw -c video
$ glxinfo -B
$ sudo lshw -C display
$ hwinfo --gfxcard
$ sudo update-pciids
$ lspci -v | egrep -i --color 'vga|3d|2d'
You will see one or two lines of output of lspci...
The first line will likely be something like
00:02.0 VGA compatible controller: Intel Corporation ...
The first field 00:02.0
is the device ID.
The second line (if present) will likely be something like
01:00.0 VGA compatible controller: NVIDIA Corporation ...
Then post the output of
$ sudo lspci -v -s <devide #1 ID>
$ sudo lspci -v -s <devide #2 ID>
If the second line reports an NVIDIA GPU, install the drivers with
$ sudo apt update
$ sudo apt upgrade
$ sudo apt install xserver-xorg-video-nouveau
$ sudo apt install nvidia-driver-470
and reboot.
The first line provides the open source nouveau drivers, which might be useful on occasion (and having them doesn't hurt).
The second line provides proprietary drivers, which are generally preferred if they work.
After booting post the output of
$ ubuntu-drivers devices
$ dpkg -l | grep nvidia
$ nvidia-smi
Source: (one of many) https://www.cyberciti.biz/faq/ubuntu-linux-install-nvidia-driver-latest-proprietary-driver/