Intel GPU <10th hardware acceleration issue
See original GitHub issueI have an intel NUC (Gemini Lake) with Home assistant installed on Proxmox. I followed this guide to enable the passthroug of the GPU to the container with frigate.
I think I got it right since I can see in lspci
the GPU (even if it’s 00:18.0 while I was expecting it to be 00:02.0)
I added the hwaccel_args
for the <10 intel generation listed on the documentation
My frigate.yml is:
mqtt:
host: 192.168.91.92
user: user
password: password
cameras:
ingresso:
ffmpeg:
inputs:
- path: rtsp://admin:password@192.168.91.100:554//h264Preview_01_sub
roles:
- detect
- rtmp
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
width: 640
height: 352
fps: 3
objects:
track:
- person
motion:
mask:
- 0,352,200,352,201,326,0,323
snapshots:
enabled: True
timestamp: false
bounding_box: true
retain:
default: 7
rtmp:
# Required: Enable the live stream (default: True)
enabled: True
detectors:
cpu1:
type: cpu
cpu2:
type: cpu
The issue is: with this setup the fans run like hell, while with no hardware acceleration it runs way more silent. I think it might be something wrong with the configuration.
I installed intel-gpu-tools and tried to run intel_gpu_top
but I get the error “Failed to initialize PMU! (Permission denied)”
The frigate log is fine and has no errors.
Hope I didnt forget to mention any useful log or information. If so, please ask and I’ll provide them.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top GitHub Comments
I could not get QSV working on my 10th gen intel, but vaapi will work. My CPU idles at ~9%. I’m also running frigate in a docker container in an LXC. Not exactly the same hardware and setup as you, but this may help you out. Also note I did a lot of messing around, so some of these settings may not be doing anything useful.
Proxmox container config (file 105.conf in my case). lxc.cgroup and lxc.mount are used to pass GPU device and USB for a coral stick"
frigate config:
Docker run command passing USB and GPU devices:
Also, a useful container to see if your hardware accel is working: https://hub.docker.com/r/djaydev/intel-gpu-tools
Yes, even if GPU/Coral passhthrough seemed to be fine, it was not working properly. I first tried to passthrough the PCI channel, but then I could not redirect other USB ports to other VM.
What I finally decided to do, is to install Frigate directly on Proxmox and everything is working fine.