HOW to overide MESA driver UHD i965, LE 10.02

  • Hi,

    Need help what and where do i force the override of the UHD driver to i965.

    Hardware J5005.

    tried the below still loads the iHD driver as per vainfo.

    /storage/.config/kodi.conf

    MESA_LOADER_DRIVER_OVERRIDE=i965

    LIBVA_DRIVER_NAME=i965

    thanks in advance

  • vainfo (or the shell) is not using kodi.conf by default. Try:

    Code
    source /storage/.config/kodi.conf
    export MESA_LOADER_DRIVER_OVERRIDE
    export LIBVA_DRIVER_NAME
    vainfo

    Edit: fixed the sample code, shell variables have to be exported

    journalctl -u kodi will show the libva messages of kodi (beside others).

  • how to load the above codes at boot to load the i965 drivers

    No need to do that.

    kodi.conf is a kodi only configuration and is used. The journalctl command will show the used driver.

    The sample code is only needed to set the environment for vainfo.

  • So by adding

    MESA_LOADER_DRIVER_OVERRIDE=i965

    LIBVA_DRIVER_NAME=i965

    in kodi.cfg it is loading the i965 drivers and the journalctl -u kodi is just showing which driver is being used, as vainfo does not show the driver that is being used. Am i understanding this correctly.

    thanks.

  • This is the output. Is tis showing that the i965 driver is loaded?

    -- Journal begins at Wed 2022-10-12 21:16:23 AEDT, ends at Wed 2022-10-12 21:19:49 AEDT. --

    Oct 12 21:16:34 LibreELEC systemd[1]: Starting Kodi Media Center...

    Oct 12 21:16:34 LibreELEC systemd[1]: Started Kodi Media Center.

    Oct 12 21:16:35 LibreELEC kodi.sh[763]: libva info: VA-API version 1.11.0

    Oct 12 21:16:35 LibreELEC kodi.sh[763]: libva info: User environment variable requested driver 'i965'

    Oct 12 21:16:35 LibreELEC kodi.sh[763]: libva info: Trying to open /usr/lib/dri/i965_drv_video.so

    Oct 12 21:16:35 LibreELEC kodi.sh[763]: libva info: Found init function __vaDriverInit_1_11

    Oct 12 21:16:35 LibreELEC kodi.sh[763]: libva info: va_openDriver() returns 0