[SOLVED] No Hardware acceleration after changing video drivers

Screen resolution, 3D Acceleration, nVidia, ATI
Forum rules
Before you post please read this
Post Reply
Haddad
Level 1
Level 1
Posts: 3
Joined: Sun Feb 02, 2020 10:10 pm

[SOLVED] No Hardware acceleration after changing video drivers

Post by Haddad »

Hi all,

I'm new to Linux and recently installed LM 19.3 Cinnamon. Thus, nonsense may occur in what follows:

I've had the same problem of laggy GUI as in this post, where "top" didn't reveal any obvious culprit (all processes < 10%CPU). I followed mr_raider's suggestion to install some non default drivers, called "oibaf".

Here is the situation now:
  • Lags seem to have disappeared
  • "Cinnamon is currently running without video hardware acceleration" says Linux Mint at start
  • More CPU usage for cinnamon (as seen using "top"), even though there are no lags
I am quite happy with the first point, but the two other points suggest that I messed up my graphics card installation. However, I found that GLX uses direct rendering (using "glxinfo"), which this says is a diagnostic for hardware acceleration, suggesting the opposite.

So here are my questions:
  • Have I really lost hardware acceleration?
  • If yes, how can I fix my installation of the oibaf drivers so that Mint stops complaining at start?
  • Optionally, do you know what might have caused the lags?
Thanks in advance!

For reference, my inxi:

Code: Select all

System:
  Host: xxxx-VPCSE1A9E Kernel: 5.3.0-28-generic x86_64 bits: 64 
  compiler: gcc v: 7.4.0 Desktop: Cinnamon 4.4.8 wm: muffin 4.4.2 
  dm: LightDM 1.26.0 Distro: Linux Mint 19.3 Tricia 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: Sony product: VPCSE1A9E v: C609ZXLN serial: <filter> 
  Chassis: type: 10 serial: <filter> 
  Mobo: Sony model: VAIO serial: <filter> BIOS: INSYDE v: R2087H4 
  date: 06/15/2012 
Battery:
  ID-1: BAT1 charge: 35.8 Wh condition: 35.8/52.2 Wh (69%) volts: 12.4/11.1 
  model: Sony Corporation type: Li-ion serial: N/A status: Full 
  Device-1: hidpp_battery_1 
  model: Logitech Wireless Mobile Mouse MX Anywhere 2 serial: <filter> 
  charge: 10% rechargeable: yes status: Discharging 
CPU:
  Topology: Dual Core model: Intel Core i7-2640M bits: 64 type: MT MCP 
  arch: Sandy Bridge rev: 7 L2 cache: 4096 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 22348 
  Speed: 798 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 798 2: 798 
  3: 798 4: 798 
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
  vendor: Sony driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0126 
  Device-2: AMD Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] 
  vendor: Sony driver: radeon v: kernel bus ID: 01:00.0 chip ID: 1002:6741 
  Display: x11 server: X.Org 1.20.5 driver: ati,modesetting,radeon 
  unloaded: fbdev,vesa resolution: 1920x1080~60Hz, 1680x1050~60Hz 
  OpenGL: renderer: llvmpipe (LLVM 9.0.1 256 bits) 
  v: 3.3 Mesa 20.1.0-devel (git-0021f7d 2020-02-02 bionic-oibaf-ppa) 
  compat-v: 3.1 direct render: Yes 
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio 
  vendor: Sony driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
  chip ID: 8086:1c20 
  Sound Server: ALSA v: k5.3.0-28-generic 
Network:
  Device-1: Intel Centrino Advanced-N 6230 [Rainbow Peak] driver: iwlwifi 
  v: kernel port: 7000 bus ID: 02:00.0 chip ID: 8086:0091 
  IF: wlp2s0 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Sony driver: r8169 v: kernel port: 3000 bus ID: 05:00.0 
  chip ID: 10ec:8168 
  IF: enp5s0 state: down mac: <filter> 
Drives:
  Local Storage: total: 1.03 TiB used: 109.02 GiB (10.4%) 
  ID-1: /dev/sda vendor: Toshiba model: THNSNC128GMMJ size: 119.24 GiB 
  speed: 3.0 Gb/s serial: <filter> rev: 0201 scheme: MBR 
  ID-2: /dev/sdb type: USB vendor: Seagate model: Expansion size: 931.51 GiB 
  serial: <filter> rev: 9300 scheme: MBR 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 port: 8060 bus ID: 00:1f.2 chip ID: 8086.282a rev: 04 
Partition:
  ID-1: / size: 29.56 GiB used: 11.37 GiB (38.5%) fs: ext4 dev: /dev/sda5 
  ID-2: /home size: 353.94 GiB used: 49.71 GiB (14.0%) fs: ext4 
  dev: /dev/sdb7 
  ID-3: swap-1 size: 5.59 GiB used: 8.0 MiB (0.1%) fs: swap dev: /dev/sdb6 
Sensors:
  System Temperatures: cpu: 76.0 C mobo: N/A gpu: radeon temp: 55 C 
  Fan Speeds (RPM): N/A 
Repos:
  No active apt repos in: /etc/apt/sources.list 
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
  1: deb http://packages.linuxmint.com tricia main upstream import backport #id:linuxmint_main
  2: deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
  3: deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
  4: deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
  5: deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
  6: deb http://archive.canonical.com/ubuntu/ bionic partner
  Active apt repos in: /etc/apt/sources.list.d/oibaf-graphics-drivers-bionic.list 
  1: deb http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu bionic main
  Active apt repos in: /etc/apt/sources.list.d/spotify.list 
  1: deb http://repository.spotify.com stable non-free
Info:
  Processes: 206 Uptime: 46m Memory: 3.76 GiB used: 2.48 GiB (65.8%) 
  Init: systemd v: 237 runlevel: 5 Compilers: gcc: 7.4.0 alt: 7 Shell: bash 
  v: 4.4.20 running in: gnome-terminal inxi: 3.0.32 
Last edited by Haddad on Sat Feb 15, 2020 4:36 pm, edited 1 time in total.

User avatar
smurphos
Level 15
Level 15
Posts: 5963
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: No Hardware acceleration after changing video drivers

Post by smurphos »

Hi,

welcome to the forums.
Haddad wrote:
Sun Feb 02, 2020 10:49 pm
So here are my questions:
  • Have I really lost hardware acceleration?
  • If yes, how can I fix my installation of the oibaf drivers so that Mint stops complaining at start?
  • Optionally, do you know what might have caused the lags?

Code: Select all

System:
  OpenGL: renderer: llvmpipe (LLVM 9.0.1 256 bits)
Yep - you are running in Software Rendering (CPU accelerated) mode.

In your shoes I'd be looking to revert the installation of the oibaf PPA, and downgrade the upgrades Mesa packages to default (This can be done via the Software Sources tool from your menu) and then test some more.

If you are still having problems with lag post back - some things to try would be downgrading to the LTS graphics stack and/or LTS kernel which we can talk you through.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Haddad
Level 1
Level 1
Posts: 3
Joined: Sun Feb 02, 2020 10:10 pm

Re: No Hardware acceleration after changing video drivers

Post by Haddad »

Thanks for your help!

I see, so LLVMpipe means no hardware acceleration.

I successfully reverted the installation of the oibaf drivers. Now, I am back to the original state:
  • Lags of about 5s every now and then ; when a lag happens, "cinnamon" only takes 20% CPU and the other processes are rather low consumption. The mouse stops moving, progression bars in music stops (music still running though)
  • Mint doesn't complain about hardware acceleration anymore
Given that software rendering mode functions without lags, I still suspect that my lags have something to do with the video drivers. So how does one go about downgrading LTS graphics stack? (And what is that even?)

User avatar
smurphos
Level 15
Level 15
Posts: 5963
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: No Hardware acceleration after changing video drivers

Post by smurphos »

Haddad wrote:
Mon Feb 03, 2020 9:19 am
Given that software rendering mode functions without lags, I still suspect that my lags have something to do with the video drivers. So how does one go about downgrading LTS graphics stack? (And what is that even?)
19.3 ships with what is known as the HWE (Hardware Enablement) graphics stack (basically the X.org display server) and HWE kernel as the default. Previous 19.x releases shipped with the LTS (Long Term Support) equivalents as the default. Basically the HWE versions are newer versions backported from the interim Ubuntu releases. The reason for this is so that users with very new hardware who may not be able to install older 19.x releases can install 19.3. However equally some users with older hardware may actually get better performance from the LTS versions. It's not an exact science :roll:

Luckily it's pretty easy to switch between the two no matter what 19.x version you are running.

Before proceedings however can I just check if you've added any system monitoring type applets or desklets to Cinnamon - e.g. the CPU temp monitoring applet, or one of the system monitor type desklets or applets? They've occasionally been implicated in causing micro lags on some hardware, so it might be worth seeing if running with them disabled fixes the issue.

Also take a manual timeshift snapshot just in case...

To downgrade to the LTS graphics stack use the command below followed by a reboot

Code: Select all

apt install xserver-xorg xserver-xorg-video-all
To reverse

Code: Select all

apt install xserver-xorg-hwe-18.04 xserver-xorg-video-all-hwe-18.04
To try an LTS kernel use Update manager > View > Linux Kernels to install the latest 4.15.0.x kernel, reboot, access the grub menu (normally by holding left shift at the OEM splash screen) and under Advanced options for Linux Mint select to boot with the 4.15 kernel. If the LTS kernel resolves the lags you can make that change permanent by then removing all 5.0 and 5.3 kernels via Update manager > View > Linux kernels whilst booted into the 4.15 kernel.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
smurphos
Level 15
Level 15
Posts: 5963
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: No Hardware acceleration after changing video drivers

Post by smurphos »

Prompted by another thread - what's the output of dmesg | grep i915

Can you also report the new inxi -Gxxxz output
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Haddad
Level 1
Level 1
Posts: 3
Joined: Sun Feb 02, 2020 10:10 pm

Re: No Hardware acceleration after changing video drivers

Post by Haddad »

Before proceedings however can I just check if you've added any system monitoring type applets or desklets to Cinnamon - e.g. the CPU temp monitoring applet, or one of the system monitor type desklets or applets? They've occasionally been implicated in causing micro lags on some hardware, so it might be worth seeing if running with them disabled fixes the issue.
No, the only thing non-default I have wih Cinnamon is CobiWindowsList applet.

I've followed both of your suggestions, downgrading LTS graphics stack and the Linux kernel, and the lag seems to have disappeared. You were right! Just a question though: now, I have to stick 4.15 version of the kernel ; is there any hope that my computer will work with upcoming newer versions? I wouldn't want to miss on any security updates unrelated to graphics.
Prompted by another thread - what's the output of dmesg | grep i915

Can you also report the new inxi -Gxxxz output
Just in case there might be some further issue with my computer, here are the results:

Code: Select all

[    1.898877] i915 0000:00:02.0: vgaarb: deactivate vga console
[    1.962710] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=io+mem
[    2.847534] [drm] Initialized i915 1.6.0 20190619 for 0000:00:02.0 on minor 1
[    2.947856] fbcon: i915drmfb (fb0) is primary device
[    2.947860] i915 0000:00:02.0: fb0: i915drmfb frame buffer device
[    7.144392] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])

Code: Select all

Graphics:  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics vendor: Sony driver: i915 
           v: kernel bus ID: 00:02.0 chip ID: 8086:0126 
           Device-2: Advanced Micro Devices [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] 
           vendor: Sony driver: radeon v: kernel bus ID: 01:00.0 chip ID: 1002:6741 
           Display: x11 server: X.Org 1.19.6 driver: ati,modesetting,radeon unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel Sandybridge Mobile v: 3.3 Mesa 19.2.8 compat-v: 3.0 direct render: Yes 

User avatar
smurphos
Level 15
Level 15
Posts: 5963
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: No Hardware acceleration after changing video drivers

Post by smurphos »

Haddad wrote:
Tue Feb 04, 2020 9:53 am
No, the only thing non-default I have wih Cinnamon is CobiWindowsList applet.

I've followed both of your suggestions, downgrading LTS graphics stack and the Linux kernel, and the lag seems to have disappeared. You were right! Just a question though: now, I have to stick 4.15 version of the kernel ; is there any hope that my computer will work with upcoming newer versions? I wouldn't want to miss on any security updates unrelated to graphics.
You are good for the time being - the 4.15 kernel will get security updates for the lifespan of Mint 19.3.

I wouldn't write off not being able to use newer versions of Mint once released - whatever was causing your lag may well get fixed by the time Mint 20 is released.

The dmesg output was requested as I'd spotted this thread - viewtopic.php?p=1756792#p1756792 - there is apparently a GPU hang bug affecting some Intel integrated graphics with kernels 5.3 and later and was wondering if that was your issue when running 5.3.x. Your output is normal.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

riverguy99
Level 1
Level 1
Posts: 11
Joined: Mon Jul 29, 2019 1:44 am
Location: Florence, Oregon, USA
Contact:

Re: [SOLVED] No Hardware acceleration after changing video drivers

Post by riverguy99 »

This is a real mystery that doesn't seem to respond well to logical testing/experimenting. I've successufuly installed Mint 19.01 on two laptops, both without a hitch. When the install completed (after doing the recommended items in the Welcome Screen), both machines found my network connection, both showed our two printers -- a dream come true. The a few days ago I did a third clean install, from the same USB stick onto another laptop. It's a Dell E6430 identical to one of the previous installs. As soon as it booted up for the first time, it booted into a hugely-enlarged screen with this much-discussed "booted into rendering mode" message. The ONLY difference here is that this laptop had a brand new 500 Gb SSD instead of a regular HDD. All were cleared off by the regular install, and each one did the easy install -- no partitioning. Both of these E6430 laptops have the same video drivers. This one had W7 on the original HDD I removed and it worked fine.

So given this set of evidence, I'm not seeing how many of the remedies suggested here would matter, and by the way, Ive tried many of them. I even thought something may have corrupted my install USB so I did a new one. Same exact result. The only difference is that SSD. Could that possibly have anything to do with it?

User avatar
smurphos
Level 15
Level 15
Posts: 5963
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: [SOLVED] No Hardware acceleration after changing video drivers

Post by smurphos »

You are probably best starting a new thread for your issue. Include the output of inxi -Fxxxzr for both the working fine laptop and the non-working laptop in your initial post.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Post Reply

Return to “Graphics Cards & Monitors”