No hardware acceleration in Youtube for both Chrome and Firefox

Questions about hardware and drivers
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
riku_iki

No hardware acceleration in Youtube for both Chrome and Firefox

Post by riku_iki »

Laptop is Lenovo T460s.
When I run youtube in both chrome and youtube it eats all CPU: all cores around 100%.
Chrome has Hardware Acceleration enabled.
Any ideas if I need to check any codecs?

When I run

sudo apt install mint-meta-codecs

it says I have newest version installed already.

Thank you.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
riku_iki

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by riku_iki »

Code: Select all

inxi -Fxxxrz

System:    Host: jupiter Kernel: 4.19.0-12-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: Cinnamon 4.6.7 
           wm: muffin 4.6.3 dm: LightDM 1.26.0 Distro: LMDE 4 Debbie base: Debian 10.2 buster 
Machine:   Type: Laptop System: LENOVO product: 20FAS0EV00 v: ThinkPad T460s serial: <filter> Chassis: type: 10 
           serial: <filter> 
           Mobo: LENOVO model: 20FAS0EV00 v: SDK0J40697 WIN serial: <filter> UEFI [Legacy]: LENOVO v: N1CET75W (1.43 ) 
           date: 04/19/2019 
Battery:   ID-1: BAT0 charge: 9.7 Wh condition: 12.2/23.5 Wh (52%) volts: 12.5/11.4 model: SMP 00HW023 type: Li-poly 
           serial: <filter> status: Unknown 
           ID-2: BAT1 charge: 15.4 Wh condition: 15.6/26.3 Wh (59%) volts: 12.8/11.4 model: SANYO 01AV405 type: Li-ion 
           serial: <filter> status: Charging 
CPU:       Topology: Dual Core model: Intel Core i5-6300U bits: 64 type: MT MCP arch: Skylake rev: 3 L2 cache: 3072 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19968 
           Speed: 800 MHz min/max: 400/3000 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 
Graphics:  Device-1: Intel HD Graphics 520 vendor: Lenovo Skylake GT2 driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:1916 
           Display: x11 server: X.Org 1.20.4 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) v: 4.5 Mesa 18.3.6 compat-v: 3.0 direct render: Yes 
Audio:     Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           chip ID: 8086:9d70 
           Sound Server: ALSA v: k4.19.0-12-amd64 
Network:   Device-1: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: 3.2.6-k port: efa0 bus ID: 00:1f.6 
           chip ID: 8086:156f 
           IF: enp0s31f6 state: down mac: <filter> 
           Device-2: Intel Wireless 8260 driver: iwlwifi v: kernel port: efa0 bus ID: 04:00.0 chip ID: 8086:24f3 
           IF: wlp4s0 state: up mac: <filter> 
Drives:    Local Storage: total: 953.87 GiB used: 762.41 GiB (79.9%) 
           ID-1: /dev/nvme0n1 model: Sabrent size: 953.87 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> rev: RKT303.3 
           scheme: MBR 
Partition: ID-1: / size: 917.35 GiB used: 762.27 GiB (83.1%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 944.6 MiB used: 139.2 MiB (14.7%) fs: ext4 dev: /dev/nvme0n1p1 
           ID-3: swap-1 size: 18.90 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
Sensors:   System Temperatures: cpu: 47.0 C mobo: N/A 
           Fan Speeds (RPM): cpu: 2295 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/google-chrome.list 
           1: deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/nodesource.list 
           1: deb https://deb.nodesource.com/node_15.x buster main
           2: deb-src https://deb.nodesource.com/node_15.x buster main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http://packages.linuxmint.com debbie main upstream import backport #id:linuxmint_main
           2: deb https://deb.debian.org/debian buster main contrib non-free
           3: deb https://deb.debian.org/debian buster-updates main contrib non-free
           4: deb http://security.debian.org buster/updates main contrib non-free
           5: deb https://deb.debian.org/debian buster-backports main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/pgdg.list 
           1: deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main
Info:      Processes: 286 Uptime: 3h 30m Memory: 18.90 GiB used: 5.78 GiB (30.6%) Init: systemd v: 241 runlevel: 5 Compilers: 
           gcc: 8.3.0 alt: 8 Shell: bash v: 5.0.3 running in: gnome-terminal inxi: 3.0.32
jwiz
Level 4
Level 4
Posts: 344
Joined: Tue Dec 20, 2016 6:59 am

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by jwiz »

LMDE and Linux Mint are both running Xorg and not Wayland.
So you can just about forget about hardware acceleration in the browser.
Moonstone Man
Level 16
Level 16
Posts: 6078
Joined: Mon Aug 27, 2012 10:17 pm

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by Moonstone Man »

jwiz wrote: Mon Nov 02, 2020 5:03 am LMDE and Linux Mint are both running Xorg and not Wayland.
So you can just about forget about hardware acceleration in the browser.
Do you have any verifiable evidence to support that claim?
Moonstone Man
Level 16
Level 16
Posts: 6078
Joined: Mon Aug 27, 2012 10:17 pm

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by Moonstone Man »

riku_iki wrote: Sun Nov 01, 2020 6:23 pm Any ideas if I need to check any codecs?
https://digitechnews.net/how-to-force-e ... -chromium/
https://support.mozilla.org/en-US/questions/1013828

Try those.
jwiz
Level 4
Level 4
Posts: 344
Joined: Tue Dec 20, 2016 6:59 am

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by jwiz »

Kadaitcha Man wrote: Mon Nov 02, 2020 5:20 am
jwiz wrote: Mon Nov 02, 2020 5:03 am LMDE and Linux Mint are both running Xorg and not Wayland.
So you can just about forget about hardware acceleration in the browser.
Do you have any verifiable evidence to support that claim?
Yep, you're right.
Seems that since July the VA-API finally works with X11 too.
I have missed that info.
jwiz
Level 4
Level 4
Posts: 344
Joined: Tue Dec 20, 2016 6:59 am

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by jwiz »

riku_iki wrote: Sun Nov 01, 2020 6:23 pm Laptop is Lenovo T460s.
When I run youtube in both chrome and youtube it eats all CPU: all cores around 100%.
Chrome has Hardware Acceleration enabled.
Any ideas if I need to check any codecs?
You might check if you have the va-driver installed
'sudo apt install i965-va-driver'
riku_iki

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by riku_iki »

jwiz wrote: Mon Nov 02, 2020 6:04 am
riku_iki wrote: Sun Nov 01, 2020 6:23 pm Laptop is Lenovo T460s.
When I run youtube in both chrome and youtube it eats all CPU: all cores around 100%.
Chrome has Hardware Acceleration enabled.
Any ideas if I need to check any codecs?
You might check if you have the va-driver installed
'sudo apt install i965-va-driver'

i965-va-driver is already the newest version (2.3.0+dfsg1-1)
riku_iki

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by riku_iki »

Kadaitcha Man wrote: Mon Nov 02, 2020 5:24 am
riku_iki wrote: Sun Nov 01, 2020 6:23 pm Any ideas if I need to check any codecs?
https://digitechnews.net/how-to-force-e ... -chromium/
https://support.mozilla.org/en-US/questions/1013828

Try those.
I tried this for chrome, it doesn't work.

Also, here my Chrome Graphic Features status:


Graphics Feature Status
Canvas: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Enabled
Hardware Protected Video Decode: Hardware accelerated
Rasterization: Software only. Hardware acceleration disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
riku_iki

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by riku_iki »

riku_iki wrote: Mon Nov 02, 2020 11:03 am
Video Decode: Software only. Hardware acceleration disabled
I enabled video decoding in flags, and it got better: CPU usage shrunk from 100% to 50%.
Still not satisfied, I thought video playback has to be seamless on modern hardware..
phd21
Level 20
Level 20
Posts: 10103
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: No hardware acceleration in Youtube for both Chrome and Firefox

Post by phd21 »

Hi riku_iki,

I just read your post and the good replies to it. Here are my thoughts on this as well.

For comparison, I happen to be in Linux KDE Neon instead of Linux Mint Cinnamon 20 at this time (both are based on Ubuntu 20.04), using the Brave browser (Chromium-based). When playing videos in YouTube or elsewhere I rarely go above 25% temporarily and average less than that with or without video hardware acceleration enabled. I did find that enabling the browser Vulkan driver that my YouTube videos no longer worked and I do have the Linux Vulkan drivers installed, so I had to Disable the Vulkan option and they worked fine. I played YouTube videos at 1080 resolution in the Browser and fullscreen.

You might consider updating the Linux Kernel into the 5+ series and updating the Mesa video drivers into v20+ which will of course require restarting your computer. Non-LMDE Linux Mint users can use a PPA to easily update the Mesa drivers.

I do not know the best way to update the Mesa drivers for LMDE systems, but I found these links

How to Install The Latest Mesa Version On Debian 9 Stretch Linux - LinuxConfig.org
https://linuxconfig.org/how-to-install- ... etch-linux

debian - How to properly update Mesa drivers? - Unix & Linux Stack Exchange
https://unix.stackexchange.com/question ... sa-drivers

Phd21 wrote: brave://gpu/
Before

Graphics Feature Status
Canvas: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Enabled
Hardware Protected Video Decode: Unavailable
Rasterization: Software only. Hardware acceleration disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Phd21 wrote: brave://gpu/
After going into "brave://flags/" searching for and enabling these.
Graphics Feature Status
Canvas: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Hardware accelerated
OpenGL: Enabled
Hardware Protected Video Decode: Unavailable
Rasterization: Hardware accelerated
Skia Renderer: Enabled
Video Decode: Hardware accelerated
Vulkan: disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Phd21 wrote: inxi -Fxzd
System: Kernel: 5.4.0-52-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: KDE Plasma 5.20.2
Distro: KDE neon 20.04 5.20 base: Ubuntu 20.04 LTS Focal
Machine: Type: Convertible System: Dell product: Inspiron 7573 v: N/A serial: <filter>
Mobo: Dell model: 01VKP1 v: A00 serial: <filter> UEFI: Dell v: 1.16.0 date: 02/17/2020
Battery: ID-1: BAT0 charge: 36.2 Wh condition: 36.2/42.0 Wh (86%) model: Samsung SDI DELL CYMGM82 status: Full
Device-1: hid-0018:04F3:2504.0002-battery model: ELAN2097:00 04F3:2504 charge: N/A status: N/A
Device-2: hidpp_battery_0 model: Logitech M310 charge: Normal status: Discharging
Device-3: hidpp_battery_1 model: Logitech K520 charge: High status: Discharging
CPU: Topology: Quad Core model: Intel Core i5-8250U bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 6144 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28800
Speed: 3393 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 3393 2: 3370 3: 3365 4: 3382 5: 3395 6: 3257 7: 3344
8: 3367
Graphics: Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0
Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.0.8 direct render: Yes
Audio: Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell driver: snd_hda_intel v: kernel bus ID: 00:1f.3
Sound Server: ALSA v: k5.4.0-52-generic
Network: Device-1: Intel Wireless 7265 driver: iwlwifi v: kernel port: f040 bus ID: 01:00.0
IF: wlp1s0 state: up mac: <filter>
Drives: Local Storage: total: 238.47 GiB used: 56.86 GiB (23.8%)
ID-1: /dev/sda vendor: SK Hynix model: SC311 SATA 256GB size: 238.47 GiB
Optical-1: /dev/sr0 vendor: HL-DT-ST model: BD-RE BP50NB40 rev: 1.01 dev-links: cdrom,cdrw,dvd,dvdrw
Features: speed: 153 multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition: ID-1: / size: 77.84 GiB used: 56.79 GiB (73.0%) fs: ext4 dev: /dev/sda8
Sensors: System Temperatures: cpu: 55.0 C mobo: 48.0 C sodimm: 50.0 C
Fan Speeds (RPM): cpu: 2575
Info: Processes: 347 Uptime: 2h 14m Memory: 7.52 GiB used: 4.28 GiB (56.9%) Init: systemd runlevel: 5 Compilers:
gcc: 9.3.0 Shell: bash v: 5.0.17 inxi: 3.0.38
Hope this helps ...
.
Brave Browser playing YouTube video with browser video hardware acceleration enabled (syspeek shows cpu info)
Brave Browser playing YouTube video with browser video hardware acceleration enabled (syspeek shows cpu info)
.
Brave Browser playing YouTube video #2 with browser video hardware acceleration enabled
Brave Browser playing YouTube video #2 with browser video hardware acceleration enabled
Phd21: Mint 20 Cinnamon & xKDE (Mint Xfce + Kubuntu KDE) & KDE Neon 64-bit (new based on Ubuntu 20.04) Awesome OS's, Dell Inspiron I5 7000 (7573) 2 in 1 touch screen, Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, Intel 4 Graphics.
Locked

Return to “Hardware Support”