4

I installed "Brightness Controller", didn't help. I tried to change grub to acpi_osi=Linux and similar. Nothing helps. It is on max setting by default unchangeable. When I remove nomodeset, my screen starts blinking violently on each mouse move... What's going on?

uname -a                                              
Linux x 5.11.0-27-generic #29~20.04.1-Ubuntu SMP Wed x86_64 x86_64 x86_64 GNU/Linux

ubuntu-drivers devices

  • empty

Graphics: Device-1: Intel vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 Display: x11 server: X.Org 1.20.11 driver: intel resolution: 2880x1800~90Hz OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.0.3 direct render: Yes

My computer is Lenovo Yoga. It's kinda better now that I use nvidia-drm.modeset=1 (doesn't flicker anymore) but it still has many issues, there are sometimes weird spots appearing on a screen. How can I force it to use NVIDIA drivers?

4 Answers4

1

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:

  1. Disable Secure boot in the BIOS.
  2. Update to 20.10 or 21.04.
  3. 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/

0

The nomode set is for disabling the gpu drivers. When the GPU drivers are not loaded the brightness control won't work. Remove the nomodeset line. Then reboot normally. The brightness control should be working properly

Ashiq Tasdid
  • 73
  • 2
  • 8
0

Although it's like a brute force method it worked for me. Initially, when my Ubuntu was stuck at the purple screen:

I restarted the system.
Pressed E key and added nomodeset as: ro quiet splash &vt_handoff nomodeset.
Pressed F10 and once the system restarts , open terminal.
Write sudo gedit /etc/default/grub/ in the terminal.
Add nomodeset like this, GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
Save the file and write sudo update-grub.

Now the main part:

Go to applications and open software and update.
Click additional drivers and choose the recommended one and NOT X.Org xserver.
Once Done with this, restart the system.
But this time again press E on grub menu and (remove) nomodeset and press F10.
The system will start normally.
Once started, open the grub file again as in step 4, but this time remove nomodeset and save the file.
Write sudo update-grub and restart the system.

Congratulations! Now your system will work perfectly with normal boot, without nomodeset and you would be able to inc/dec the screen brightness.

0

Add i915.enable_psr=0 i8042.direct i8042.dumbkbd to GRUB_CMDLINE_LINUX_DEFAULT.