Results 1 to 5 of 5

Thread: Video acceleration

  1. #1
    Join Date
    Nov 2009
    Location
    Caserta, Italy
    Beans
    62
    Distro
    Ubuntu

    Video acceleration

    Good day everyone.

    I have an Nvidia laptop and an external monitor connected via DP. On Kubuntu 24.04, I installed the proprietary drivers (535) and I see that I get no video acceleration at all in any browser or video player.

    A simple video file runs at 0.4% of my CPU on Windows, while on Ubuntu I am at 115%. A 360 video online instead it takes around 50%. It's a lot.

    I have tried to see some guides on the internet, but some are outdated, some are for Intel only.

    Am I missing something?

    edit: KDE neon seems to go perfectly both with Haruna and VLC (but live USB version with Wayland with open source drivers). Same goes with Clear Linux (Gnome and Live, which is the best performance hands down).

    Maybe there's something wrong with the proprietary drivers?
    Last edited by Shishimaru; April 28th, 2024 at 06:28 PM.

  2. #2
    Join Date
    Sep 2009
    Location
    Pennsylvania
    Beans
    4,005
    Distro
    Xubuntu

    Re: Video acceleration

    You need to give us the make and model of your laptop. It sounds like you probably have 2 GPUs and your laptop is only using the low powered one.

  3. #3
    Join Date
    Nov 2009
    Location
    Caserta, Italy
    Beans
    62
    Distro
    Ubuntu

    Re: Video acceleration

    Quote Originally Posted by Autodave View Post
    You need to give us the make and model of your laptop. It sounds like you probably have 2 GPUs and your laptop is only using the low powered one.
    Hi!

    It's MSI Vector GP68 HX13V. And yes, it has two GPUs. When connected to an external monitor, the Intel one cannot be selected (it's the same as in Windows): https://imgur.com/a/jcOjFTj

  4. #4
    Join Date
    Nov 2009
    Location
    Caserta, Italy
    Beans
    62
    Distro
    Ubuntu

    Re: Video acceleration

    EDIT: for Ubuntu users, they can start from this link and see if it works. Unfortunately it requires to use a PPA since Ubuntu uses a very old version of nvidia vaapi driver for who knows what reason. If you installed the driver, do a sudo apt update and then dist-upgrade. Otherwise, proceed to update and install the driver.
    Note that:
    - laptop users should switch to "Nvidia Performance" in the NVidia settings and restart the OS in order to fully use the Nvidia card
    - the "export LIBVA driver name=nvidia" will go along with the line above
    - unfortunately for me it didn't 100% work with Nvidia, but it worked with the Intel and in this case you can omit both the line above (so in Nvidia settings leave to Nvidia On-Demand)
    In the end vaapi gets correctly used with mpv and Haruna, but not the browsers. At least for Edge and Chrome, they seem to use the Vaapi instead of the ffmped decoder. I don't know why the nvtop command says that the drivers are not set in "compute". Maybe they are using accelerated video instead. The intel_gpu_top command says that a very small % of video is elaborated, while it stays 0 if vaapi is not enabled.
    Hopefully someone here has any suggestion.

  5. #5
    Join Date
    Jun 2007
    Beans
    14,836

    Re: Video acceleration

    If you're using an Intel/Nvidia hybrid GPU laptop, then you want to use the Intel GPU for web browsing and video play (so stay in ondemand mode). Save the Nvidia GPU for games, CAD, CUDA, etc.

    In the end vaapi gets correctly used with mpv and Haruna, but not the browsers.
    Probably because Ubuntu distributes Firefox and Chromium as snaps (for some reason).

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •