Problem with HAOS and Frigate hwaccel

I am running Generic x86-64 HAOS.

Hardware:
Dell OptiPlex 3040M DM
CPU: i3-6100T (6 Gen Skylake)
GPU: Intel® HD Graphics 530

I have been struggling to get hardware acceleration (GPU) to work with Frigate (Full access) addon.

Now I got this kind of comment from the Frigate developers:
–cut–
It doesn’t matter what settings you put inside frigate config, HA OS is not giving frigate access to the GPU.
At this point it seems that HA OS does not include the intel driver needed for hwaccel.
This is one of the many reasons we recommend running frigate in native docker.
–cut–

This was real downer for me. Is there anything what can be done ? Install intel GPU drivers (i915) manually ?
Or maybe possible to include those in future when HAOS gets updated ?

Thanks!

HAOS is limited in options in order to keep it stable.
If you want to do something like this then a Core or supervised install is the way to go.
If you have just a little Linux experience, then a supervised install based on Debian 11 should be good. It is a supported install with a lot of possible help available in the forums.

1 Like

TPU would help and is also recommended for frigate. Beta 12 version of frigate has expanded TPU options maybe this increase the availability if that was issue. Im thinking cpu only severely limits frigate so tpu would allow you to keep existing install method

But core or docker install is what you need for GPU

1 Like

Miracle times are not over. It is just weird, but I got it working. I think that I tried these same options millions of times without luck. But now it is working. Huh.

....
environment_vars:
  LIBVA_DRIVER_NAME: iHD

cameras:
  cam1:
    ffmpeg:
      hwaccel_args: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format yuv420p
......
1 Like

Hi,
what is the solution for my lenovo x220 with Intel® Integrated HD Graphics 3000 instead?

Thank you so much for the help!!!

Quick question - you wouldn’t have happened to disable “Protection mode” to get this to work?

I don’t have this problem anymore. With latest frigate 0.12 hw acceleration is working.

How do you check this please?

I have QNAp witch Intel CPU and GPU Intel Graphics 600: this config don’t works for me…any suggestions?

I’m interested too!! @heebo1974 did you ever manage to figure this out?

thanks!

I am sure there are better ways to find out whether hw acceleration is working or not.

I do it by disabling hw acceleration within frigate.yaml and monitoring CPU load for a while. Then I’m reenabing hw acceleration and compare the CPU load with the former. Readings should be noticable different if hw acceleration is working.