How-To Fix OpenGL: renderer: llvmpipe
My Ubuntu MATE 20.04 system recently got an update and it upgraded my kernel too. The newer kernel changed my system so that it had a lot of screen tearing and my USB Webcam no longer worked. I ran the command inxi -Gx to see what driver was used for my graphics card. I noticed that my graphics driver had N/A and my OpenGL: renderer: llvmpipe (LLVM 10.0.0 128 bits). The upgraded kernel wiped out my graphics driver, so I needed to install a kernel that would allow me to use the graphics driver for my graphics card. I need to either roll back to my old kernel or look for a newer kernel that would work with my system.
Sometimes just upgrading your kernel can fix your problem like the person that wrote OpenGL renderer is llvmpipe instead of using my GPU. I had to install a newer kernel using the Ubuntu Mainline Kernel Installer and then follow the instructions from Ubuntu – Getting rid of llvmpipe. Installing open source drivers correctly.
Notice my screen resolution and frequency. It is 1920x1080~77Hz instead of 1920x1080~60Hz. This will cause problems such as screen tearing. Also notice my driver: N/A instead of driver: amdgpu.
Since my system uses the amdgpu driver, I added the following information to the /etc/X11/xorg.conf file. Open your Terminal and enter the following: sudo gedit /etc/X11/xorg.conf (Use your favorite text editor instead of gedit.) If you use the amdgpu driver then enter the following information in the text editor and then save it.
Section "Device"
Identifier "AMDGPU"
Driver "amdgpu"
Option "AccelMethod" "glamor"
Option "DRI" "3"
EndSection
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "dpms" "false"
EndSection
Section "Device"
Identifier "AMDGPU"
Driver "amdgpu"
Option "AccelMethod" "glamor"
Option "DRI" "3"
EndSection
Section "ServerFlags"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
Option "dpms" "false"
EndSection
Your xorg.conf file should look something like the image below.You can close the file after you have saved it.
I also make sure that I have files 00-amdgpu.conf, 10-amdgpu.conf, and 10-radeon.conf in /usr/share/X11/xorg.conf.d
|
|
|
Now is the time to edit the /etc/default/grub file.
Open your Terminal and enter the following: sudo gedit /etc/default/grub (Use your favorite text editor instead of gedit.)
Open your Terminal and enter the following: sudo gedit /etc/default/grub (Use your favorite text editor instead of gedit.)
Add the following information:
GRUB_GFXMODE=1920x1080x32
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.dc=1 amdgpu.dpm=1 amdgpu.modeset=1"
GRUB_GFXMODE=1920x1080x32
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.si_support=0 radeon.cik_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.dc=1 amdgpu.dpm=1 amdgpu.modeset=1"
Save your changes and exit grub.
Run these commands to modify grub:
sudo update-grub2 && sudo update-initramfs -u -k all
sudo update-grub2 && sudo update-initramfs -u -k all
Now reboot:
sudo reboot
sudo reboot
Now open your Terminal and enter the following: inxi -Gx
Look at the driver and OpenGL: renderer. It now has driver: amdgpu and OpenGL: renderer: AMD Radeon HD 7800 Series.
Look at the driver and OpenGL: renderer. It now has driver: amdgpu and OpenGL: renderer: AMD Radeon HD 7800 Series.
Everything is back to normal and I no longer experience screen tearing.
If you have a similar problem on your Linux system, then I hope this information has been helpful to you.
Sep 29, 2021