[HW Accel Support]: Asus NUC 14 Pro / Intel Core Ultra 7 155H #15153
Replies: 5 comments 13 replies
-
Is there a connected screen/display? If not, please add a screen and reboot the os (if kernel boot parameter "nomodeset" is present, please remove it) |
Beta Was this translation helpful? Give feedback.
-
Thanks very much for helping me out. There currently isn’t a screen connected, I’ll sort that ASAP. I don’t usually use a screen so is this something I’d need to keep connected constantly or can I just keep an HDMI cable connected to a display that’s in use for other things etc?
Can you also explain how to check the kernel boot parameters please? I’m running home assistant os generic x86-64 14.0.rc2 directly from the nvme if it matters.
Thanks,
Matthew
From: iamhermes ***@***.***>
Sent: 23 November 2024 21:17
To: blakeblackshear/frigate ***@***.***>
Cc: matknowles ***@***.***>; Author ***@***.***>
Subject: Re: [blakeblackshear/frigate] [HW Accel Support]: Asus NUC 14 Pro / Intel Core Ultra 7 155H (Discussion #15153)
Is there a connected screen/display? If not, please add a screen and reboot the os (if kernel boot parameter "nomodeset" is present, please remove it)
Linux will disable the GPU if there is no screen attached.
—
Reply to this email directly, view it on GitHub<#15153 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BESDYQ5MQDIJVHO2T5SVPST2CDWD7AVCNFSM6AAAAABSLMSXUOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZVHE3DSMY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
What's your underlying OS and are you running in something like HAOS? We need to know what your passthrough configuration looks like for the GPU I have a NUC 14 Pro but with the i3-100u. I had similar difficulties, and there are a few posts about getting this to work on proxmox in some other places. If I remember correctly, Intel dropped IOMMU support in later CPUs, and only supports SR-IOV for passthrough, but support is pretty poor in most distros right now. I was eventually able to get it to work on Debian, but I'm not 100% sure I can reproduce it. See if your GPU shows up under /dev/dri first, if it does, the problem is probably somewhere else. I see card0 and renderD128. If you see those, you don't have the same issue that I did. To get this to work on Debian, I had to:
This enabled "sudo intel_gpu_top -d drm:/dev/dri/renderD128" to work, and passthrough to my docker container. At some point I may buy another NUC so I can play around and see if I can repro getting it to work. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your help. I'm running home assistant Operating System 14.0.rc2 (used the linux mint Disks restore disk image install method - haos_generic-x86-64-14.0.rc2.img.xz and I boot directly to that, Core 2024.11.3, Supervisor 2024.11.4, Frontend 20241106.2. Frigate beta 0.15.0b2. When i unboxed the NUC and tried to boot it, it froze immediately and wouldn't boot any linux images. I googled the problem and found I had to disable intel VT for directed I/O (VT-d), which worked. I've looked for other relevant BIOS settings but don't see any. As suggested I've tried a HDMI dummy plug to try and activate the GPU on boot but it doesn't seem to have worked. I've tried to add ffmpeg: to my configuration.yaml, but am not experienced enough to diagnose the version/gpu/boot parameters etc, someone advised to disable nomodeset but I don't know how to do that. I'm considering installing debian 12.8 on my NUC then running HAOS/frigate etc in there, but am inexperienced with docker and linux in general, so would rather do that as a last resort. Also I might try the stable version of HAOS 13.2 to see if that fixes anything. "See if your GPU shows up under /dev/dri first", can I do this in HAOS? I have the terminal addon but am not sure how it works. I've also tried diagnosing ffmpeg issues in the terminal addon but am getting "ffmpeg: command not found" Thanks again for your help, really appreciate it. I hope I don't have to return this NAS to get an older one that works better, but am happy to keep working to try and fix it. As I mentioned, it seems relatively happy without hardware acceleration at the moment; roughly 18-26% CPU usage with semantic search etc enabled, but I know it's not ideal. |
Beta Was this translation helpful? Give feedback.
-
Apologies, I didn't explain properly. I only used mint as a live boot initially once to "expand" the home assistant os image to my NUCs nvme (using the Disks app), as recommended on home assistant's page for installing on generic x86-64 hardware. As an update I tried your commands in home assistant terminal and got no such file or directory for ls /dev/dri and command not found: vainfo. I tried booting to debian 12.8 live by USB; it didn't like it, throwing some errors about not being able to load wifi/firmware and bluetooth but got to a desktop in what looked like 640x480, ran the commands in there and still got no such file or directory for ls /dev/dri (I wonder if the OS needs to be installed for this to work? *ignore this/read on)) and vainfo gave errors (will edit/update with these I've forgotten them -.- - just saw you said to install it, I didn't do that. again ignore this bit) I'm not sure I can install it on HAOS; apt command isn't found either and I've heard HAOS is pretty locked down for various reasons.) I also messed around in BIOS and re-enabled VT-d and some other settings; I have no idea whether any are related: and managed to get the systems to boot properly, so I have no idea what's happened there, but unfortunately I still can't get the hwaccel working in frigate beta in HAOS with any combination of environment_vars and hwaccel_args, it was the first thing I excitedly checked, then was immediately deflated :/ Just noticed you asked to install/run intel_gpu top... again it's not found on HAOS. I may try and roll back to haos stable 13.2 instead of 14.0.rc2 on the offchance that fixes something. I booted to linux mint as a live usb and installed/ran vainfo and ran ls /dev/dri and got the following: As it happens, everything seemed to be working in mint live as well; bluetooth,wifi, full resolution graphics, so it's perhaps either kernel or intel firmware related? I'm not knowledgable enough though. |
Beta Was this translation helpful? Give feedback.
-
Describe the problem you are having
Hello, Can't seem to get hardware acceleration working with my new Asus Pro NUC14RVHU7 NUC. Initially tried just vaapi but got no frames, so tried all combinations of environment_vars: LIBVA_DRIVER_NAME: i965 + ffmpeg: hwaccel_args: preset-vaapi and hwaccel_args: preset-intel-qsv-h265 (am using all H265 cameras). Frigate is working if I comment out the ffmpeg hwaccel_args at about 26% CPU, but isn't ideal. I can only find that the Core 7 Ultra 155H uses "Intel Arc" graphics.
Trying qsv gives me errors like:
Ffmpeg process crashed unexpectedly for FrontPath. 2024-11-23 18:16:07.540300350 [2024-11-23 18:16:07] watchdog.FrontPath ERROR : The following ffmpeg logs include the last 100 lines prior to exit. 2024-11-23 18:16:07.540360396 [2024-11-23 18:16:07] ffmpeg.FrontPath.detect ERROR : [AVHWDeviceContext @ 0x55d77a47b680] No VA display found for device -hwaccel_output_format. 2024-11-23 18:16:07.540421443 [2024-11-23 18:16:07] ffmpeg.FrontPath.detect ERROR : Device creation failed: -22. 2024-11-23 18:16:07.540460040 [2024-11-23 18:16:07] ffmpeg.FrontPath.detect ERROR : Failed to set value '-hwaccel_output_format' for option 'qsv_device': Invalid argument 2024-11-23 18:16:07.540500334 [2024-11-23 18:16:07] ffmpeg.FrontPath.detect ERROR : Error parsing global options: Invalid argument
Using environment vars i965 and vaapi gives:
[2024-11-23 19:25:39] frigate.util.services ERROR : Unable to poll intel GPU stats: No device filter specified and no discrete/integrated i915 devices found 2024-11-23 19:25:39.325736919 2024-11-23 19:25:39.604099052 [2024-11-23 19:25:39] frigate.video ERROR : FrontPath: Unable to read frames from ffmpeg process.
and
[2024-11-23 19:25:58] ffmpeg.FrontPath.detect ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to. 2024-11-23 19:25:58.894778812 [2024-11-23 19:25:58] watchdog.FrontPath ERROR : The following ffmpeg logs include the last 100 lines prior to exit. 2024-11-23 19:25:58.894966237 [2024-11-23 19:25:58] ffmpeg.FrontPath.detect ERROR : Error parsing options for output file vaapi. 2024-11-23 19:25:58.894972777 [2024-11-23 19:25:58] ffmpeg.FrontPath.detect ERROR : Error opening output files: Invalid argument 2024-11-23 19:25:58.894979279 [2024-11-23 19:25:58] ffmpeg.FrontPath.detect ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Just using vaapi:
[2024-11-23 19:30:28] frigate.video ERROR : FrontPath: Unable to read frames from ffmpeg process. 2024-11-23 19:30:28.648519630 [2024-11-23 19:30:28] frigate.video ERROR : FrontPath: ffmpeg process is not running. exiting capture thread... [2024-11-23 19:30:29] frigate.util.services ERROR : Unable to poll vainfo: b"error: XDG_RUNTIME_DIR is invalid or not set in the environment.\nerror: can't connect to X server!\nerror: failed to initialize display\n"
I haven't tried 0.15 beta yet, but I bought this new NUC to hopefully be powerful enough for Frigate going into the future. If I'm going to have a bad time I may as well return it.
It's just occured to me that I restored this home assistant install from a backup from my old NUC that died (hardware failure), so I wonder if the XDG_RUNTIME_DIR is invalid has anything to do with that? Apologies for my ignorance.
Version
0.14.1-f4f3cfa
Frigate config file
docker-compose file or Docker CLI command
N/A
Relevant Frigate log output
Relevant go2rtc log output
FFprobe output from your camera
don't know how to do this, sorry
Install method
HassOS Addon
Object Detector
Coral
Network connection
Wired
Camera make and model
milesight/dahua
Screenshots of the Frigate UI's System metrics pages
Any other information that may be helpful
No response
Beta Was this translation helpful? Give feedback.
All reactions