Re-enable VA-API hardware video acceleration on openSUSE Tumbleweed (2024)

Archer Allstars

Posted on • Updated on

Re-enable VA-API hardware video acceleration on openSUSE Tumbleweed (3) Re-enable VA-API hardware video acceleration on openSUSE Tumbleweed (4) Re-enable VA-API hardware video acceleration on openSUSE Tumbleweed (5) Re-enable VA-API hardware video acceleration on openSUSE Tumbleweed (6) Re-enable VA-API hardware video acceleration on openSUSE Tumbleweed (7)

#tutorial #linux #productivity #opensource

UPDATE: Now you can install the VA-API enabled Mesa (for all the codecs) on openSUSE Tumbleweed by using PackMan with sudo opi codecs. This will also pull the Mesa driver automatically (you are most likely want to install all the codecs with this command after all). If you don't have opi installed yet, just run sudo zypper install opi. Thanks Luis Zepeda for this update!

Following the drama at Fedora's subreddit regarding the fact that Fedora 37 drops VA-API accelerated hardware video decoding and encoding, which will be back ported to Fedora 36 also, openSUSE has followed Fedora's direction to disable this feature in their Mesa build. But before anything else, here are what you need to know:

  • This change only affects AMD users on Mesa open source driver. If you're using AMD's proprietary driver, Intel GPU/iGPU, or Nvidia GPU, you are not affected by this change. More on this later on.
  • Technically, this change doesn't disable all the codecs from using VA-API hardware video acceleration. It only affects H.264, H.265/HEVC, and VC-1.
  • On openSUSE, you can re-enable VA-API hardware video acceleration for all the supported codecs by deleting just 2 lines of code from the spec file.

Why Intel and Nvidia users are not affected by this issue?

Because Intel is using all the VA-API features through Intel Media Driver for distro's packaged apps, or org.freedesktop.Platform.VAAPI.Intel for Flatpak apps. And Nvidia users mostly (if not all) use proprietary driver on Linux. Therefore, any change in Mesa is not related to Intel and Nvidia when it comes to VA-API.

AMD on the other hand uses VA-API features in Mesa directly, so it is affected by this issue. But if you're using AMD's proprietary driver, you naturally won't be affected by this change in Mesa.

Well, should you use AMD's proprietary driver instead of Mesa on Linux? I don't think you should, considering that you won't get any performance benefit at all by using the proprietary driver, and you might face a lot of hassles to get it installed/updated correctly without any issue on your system compared to Mesa in the pre-compiled kernel, I would recommend AMD users to stay on Mesa. The fact that AMD GPUs work without having to rely on the proprietary driver makes it the #1 choice for most Linux users.

Here is how to fix this issue in openSUSE Tumbleweed, step by step.

The fix is extremely easy for openSUSE Tumbleweed. Note that openSUSE Leap doesn't have to apply this fix yet as it will take a long long time before Mesa 22.2.x arrives on Leap. Without further ado, let's begin to re-enable VA-API hardware video acceleration for all the supported codecs.

  1. Go to openSUSE Build Service website and create a new account there. If you already have an account, you can log in to use your account.

  2. Go to Your Home Project page.

  3. Click at Branch Package to clone and link a repository.

  4. In the original project name box, search for openSUSE.

  5. In the original package name box, search for Mesa.

  6. Make sure that you don't check stay on this revision, so you will link (auto syncing) with the upstream repo. Then click the Branch button to clone the upstream repo to your branch.

  7. Now you should have the Mesa driver at your own branch.

  8. Let's edit the Mesa.spec file.

  9. Search text for Dvideo-codecs in the file.

  10. Remove %if %{video_codecs} above and %endif below the Dvideo-codecs=all \ line. This is based on Mesa revision 1142 before Mesa revision 1143 re-disabled the codecs. The result should look like this.

  11. Save the file.

  12. Wait for the builds. It will take some time in the cloud. You can click on the Refresh button to update the builds' status. All the builds except for Leap 15.4, which is not related to our change, will show as succeeded when the build is completed.

  13. Download your Mesa build.

  14. Install your Mesa build with YaST 1-Click Install. Follow the screen instructions, it should be very easy, hence it's called 1-Click Install 😂

  15. Reboot your PC/laptop. After rebooted, open YaST Software Management and search for Mesa package to check whether you're actually using your Mesa build.

  16. Check available VA-API codecs with vainfo which is part of vaapi-tools package.

Note that:

  • Your build is very safe to use since it will be linked along with the upstream build.
  • If there's a breaking change, your build wouldn't success. Therefore, with this route, even though you wouldn't break the system, you'll have to maintain your build to be compatible with the main branch. Otherwise, you won't be able to update your system. I recommend using opi codecs instead.

Cover photo by Tim Mossholder on Unsplash

Smoker photo by Adrien King on Unsplash

Herbs photo by Bundo Kim on Unsplash

Background photo by Bruno Aguirre on Unsplash

Top comments (2)

Subscribe

Luis Zepeda

Luis Zepeda

  • Joined

Oct 28 '22

  • Copy link

Thanks for the write up!
I've been using openSUSE for a few months now, your articles had helped me deepen my knowledge of this distro and also improve my install.
I followed this guide to get back my hardware decoding and I also think it was also a good hands-on intro to the OBS, since this was my first time using it.

I also wanted to let you know that the people at the Packman repo now seem to be packaging Mesa with hardware decoding support. Just need to do the "opi codecs" command and you are good to go (probably not the most user friendly thing, but even before the mesa change, you already had to install the codecs not included by default, so they didn't really add any more steps IMO).

Looking forward to more of your excellent articles! openSUSE is severely underrated so it's harder for noobs like me to find as much info as with other more popular distros.

Archer Allstars

Archer Allstars

I am nobody. I am just interested in game development, FOSS, and Linux.

  • Joined

Oct 30 '22

  • Copy link

Agreed! openSUSE is the most underrated Linux distro. I am using it as my main working-gaming distro, love it >...<

Thanks for the info about the Mesa in Packman 🙏

I am glad you like my articles, thanks 😍

For further actions, you may consider blocking this person and/or reporting abuse

Re-enable VA-API hardware video acceleration on openSUSE Tumbleweed (2024)

FAQs

How do I enable hardware video acceleration? ›

Launch Chrome, then select “Menu” > “Settings“. Scroll down to the bottom and select the “Advanced” option. Scroll to the “System” section and toggle “Use hardware acceleration when available” on or off as desired.

How do I enable hardware accelerated rendering? ›

Windows 10

Press the Windows Key + S, type in, and click on Graphics Settings. Toggle Hardware-accelerated GPU scheduling on or off.

How do I check hardware acceleration on my Mac? ›

Click on "Settings" then "System" on the left side. Toggle on "Use hardware acceleration when available" if this is not enabled. Close and restart the browser for the change to take effect.

How to check if hardware acceleration is enabled in Firefox? ›

You can check VA-API acceleration state at about:support page, look at HARDWARE_VIDEO_DECODING row. If there's available by default, you're running on hardware by default. You can disable it at about:config page setting media.

How do I turn on hardware accelerated GPU settings? ›

Enabling Hardware-Accelerated GPU Scheduling in Windows 10:
  1. Press Windows key on your keyboard and type "graphics" and press enter. - Graphics settings menu should open.
  2. In the Graphics settings menu toggle the "Hardware-accelerated GPU scheduling" option.
  3. Restart your PC.

Should hardware acceleration be enabled? ›

Hardware acceleration sacrifices flexibility and can become obsolete if the process it's designed for becomes unprofitable or is no longer used. Turn on hardware acceleration when available for significant performance gains, but weigh the pros and cons of stability and quality.

How do I enable hardware accelerated virtualization? ›

Enabling Hardware Virtualization
  1. Reboot your Computer and Press the BIOS Key. ...
  2. Locate the section for CPU configuration. ...
  3. Find the Settings for Virtualization. ...
  4. Select the Option for Enabling Virtualization. ...
  5. Save the Changes You Have Made. ...
  6. Exit Your BIOS and Reboot Your Computer.
Jan 8, 2021

How do I enable hardware acceleration in BIOS? ›

Simply access your BIOS (Settings -> Update and Security -> Recovery. Under the Advanced Startup section press 'Restart Now' and your pc will restart. The above screen should appear, press Troubleshoot -> Advanced Options -> UEFI Firmware Settings -> Restart.

Should hardware accelerated GPU be turned on? ›

HAG was first announced back in 2020 with Windows 10 version 2004, so most of the testing to date on games was done in Windows 10 at that time. Most reviewers back then found negligible performance gains and some performance losses, which led them to not recommend gamers switch it on.

Why is my hardware acceleration option not showing up? ›

Step 1: Open Settings by holding the Windows and I keys. Step 2: In the home menu of Settings, click on the System tab. Step 3: In the left panel of the next window, click Display > Graphics settings. Step 4: Turn on hardware-accelerated GPU scheduling setting and restart your computer.

How do I know if I have hardware acceleration? ›

Hardware acceleration in other apps

Typically, you will find this option under the settings section of the app, under the advanced settings section if there is one, or under display performance.

How can I check if my Mac hardware is working properly? ›

Press and hold the power button (Touch ID on laptops) until you see Options (the gear icon). Release the power button, then press the command (⌘) + D keys simultaneously to start Apple Diagnostics. Release the keys when a progress bar appears on screen or you're asked to choose a language.

How do I enable Vaapi in Firefox? ›

Tutorial: How to enable hardware video acceleration on Firefox and Chromium based browsers
  1. type about:config in the address bar.
  2. in the search bar type gfx. webrender. all and set it to true.
  3. in the search bar type media. ffmpeg. vaapi. enabled and set it to true.
Sep 13, 2022

How do I know if my browser is using hardware acceleration? ›

  1. In the upper right-hand corner of your browser, select Settings and more via the three-dot menu.
  2. Choose System and Performance.
  3. In most cases, the hardware acceleration will already be toggled on. You can turn the setting off and on here.
Jul 3, 2024

Where do I find hardware acceleration settings? ›

Open Google Chrome. Click Chrome > Preferences. Click on "Systems" on the left-hand side to find hardware acceleration. The hardware acceleration option may be referred to as “graphics acceleration”.

Should I use hardware acceleration in Chrome? ›

Hardware acceleration in Chrome can significantly improve the browsing experience like faster loading web pages, smoother video streaming, and overall snappier performance. This makes Chrome feel more responsive and efficient compared to browsers without hardware acceleration.

Is hardware acceleration good for videos? ›

Having hardware/graphic acceleration turned on just means it's using your GPU instead of your CPU for videos and all. Usually this helps increase performance.

Did Google remove hardware acceleration? ›

By default, hardware acceleration is enabled on Google Chrome. So you will need to manually disable hardware acceleration on your browser. Open your browser and select Menu (the three vertical dots on the far-right side of the search bar). In the dropdown menu that opens, select Settings.

Top Articles
Papua New Guinea Post-Courier from Port Moresby, National Capital District, Papua New Guinea
Papua New Guinea Post-Courier from Port Moresby, National Capital District, Papua New Guinea
Funny Roblox Id Codes 2023
Golden Abyss - Chapter 5 - Lunar_Angel
Www.paystubportal.com/7-11 Login
Joi Databas
DPhil Research - List of thesis titles
Shs Games 1V1 Lol
Evil Dead Rise Showtimes Near Massena Movieplex
Steamy Afternoon With Handsome Fernando
Which aspects are important in sales |#1 Prospection
Detroit Lions 50 50
18443168434
Newgate Honda
Zürich Stadion Letzigrund detailed interactive seating plan with seat & row numbers | Sitzplan Saalplan with Sitzplatz & Reihen Nummerierung
Grace Caroline Deepfake
978-0137606801
Nwi Arrests Lake County
Justified Official Series Trailer
London Ups Store
Committees Of Correspondence | Encyclopedia.com
Pizza Hut In Dinuba
Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
How Much You Should Be Tipping For Beauty Services - American Beauty Institute
Free Online Games on CrazyGames | Play Now!
Sizewise Stat Login
VERHUURD: Barentszstraat 12 in 'S-Gravenhage 2518 XG: Woonhuis.
Jet Ski Rental Conneaut Lake Pa
Unforeseen Drama: The Tower of Terror’s Mysterious Closure at Walt Disney World
Ups Print Store Near Me
C&T Wok Menu - Morrisville, NC Restaurant
Nesb Routing Number
Olivia Maeday
Random Bibleizer
10 Best Places to Go and Things to Know for a Trip to the Hickory M...
Black Lion Backpack And Glider Voucher
Gopher Carts Pensacola Beach
Duke University Transcript Request
Lincoln Financial Field, section 110, row 4, home of Philadelphia Eagles, Temple Owls, page 1
Jambus - Definition, Beispiele, Merkmale, Wirkung
Ark Unlock All Skins Command
Craigslist Red Wing Mn
D3 Boards
Jail View Sumter
Nancy Pazelt Obituary
Birmingham City Schools Clever Login
Thotsbook Com
Funkin' on the Heights
Vci Classified Paducah
Www Pig11 Net
Ty Glass Sentenced
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 5826

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.