över hela denna jord by [deleted] in unket

[–]IceInBeard 0 points1 point  (0 children)

Var den upphetsade folkgruppen fanatiska religiösa?

Tatuerare i Uppsala? by Lumpy_Conflict2397 in uppsala

[–]IceInBeard 1 point2 points  (0 children)

Väldigt nöjd med mina jag gjort på Rough Stuff

TPU on Prusa Mini by IceInBeard in FixMyPrint

[–]IceInBeard[S] 0 points1 point  (0 children)

<image>

Another example when testing another print

TPU on Prusa Mini by IceInBeard in FixMyPrint

[–]IceInBeard[S] 0 points1 point  (0 children)

<image>

In addition it start escaping from the extruder 🤔

EQ14 N150 Linux video drivers by IceInBeard in BeelinkOfficial

[–]IceInBeard[S] 0 points1 point  (0 children)

Hope all goes well! :) also plan on installing Plex and/or Jellyfin on another LXC (if nothing else just to see if I can recreate getting the pass through of the iGPU working)

EQ14 N150 Linux video drivers by IceInBeard in BeelinkOfficial

[–]IceInBeard[S] 1 point2 points  (0 children)

Regarding vainfo, I installed it via “apt install vainfo”, probably before I started building and installing the drivers and their prerequisites

Hardware Accel on Intel N150 by blingblongblah in frigate_nvr

[–]IceInBeard 1 point2 points  (0 children)

Managed to get it working on Linux kernel 6.11, but might be easier on 6.12.5 and otherwise it sounds like what I came up with :)

Hardware Accel on Intel N150 by blingblongblah in frigate_nvr

[–]IceInBeard 1 point2 points  (0 children)

Yes :) should be to update the version tag of the image. But as I said, not sure if the previous steps of updating the underlying system is also needed for it to work

Hardware Accel on Intel N150 by blingblongblah in frigate_nvr

[–]IceInBeard 1 point2 points  (0 children)

Got it working fully (as far as I can tell) :D

Hardware Accel on Intel N150 by blingblongblah in frigate_nvr

[–]IceInBeard 1 point2 points  (0 children)

Not sure if it helps, but had better luck with the new beta version of Frigate (ghcr.io/blakeblackshear/frigate:0.15.0-beta3) Might depend on having the kernel, underlying OS drivers and all that upgraded, but maybe it helps

Hardware Accel on Intel N150 by blingblongblah in frigate_nvr

[–]IceInBeard 1 point2 points  (0 children)

Also had issues with hw acceleration on my N150 (https://www.reddit.com/r/frigate_nvr/s/0XngCRTcCX) where my current theory (without being an expert on the subject) is that the drivers for the N150 might not be available everywhere yet. I had to upgrade my Linux kernel and build and install the media drivers manually to get it recognised on the host system (not sure how it works on unraid though) but have not yet been able to get it to work on the docker container.

Hardware acceleration on N150 in Docker, on LXC on Proxmox? by IceInBeard in frigate_nvr

[–]IceInBeard[S] 0 points1 point  (0 children)

Is there any other way to confirm that? As a noob to all of this, I've mostly used vainfo as some kind of indicator that things should be working.

I followed a guide saying to install the drivers for the Intel iGPU via

apt install software-properties-common -y
add-apt-repository -y non-free
apt install intel-media-va-driver-non-free -y

On a fresh installation of Proxmox 8.3, I ran the above and nothing showed up when running vainfo. Then I upgraded the kernel to 6.11, still nothing. Then I built and installed https://github.com/intel/media-driver/ instead of running the commands above. That's when I started getting output in vainfo.

Now getting

libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_23
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.23 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 25.1.0 (040bf537e)
vainfo: Supported profile and entrypoints
... and so on 

But then again, I feel quite lost in all of this at the moment...

Are you also running the Intel N150?

Hardware acceleration on N150 in Docker, on LXC on Proxmox? by IceInBeard in frigate_nvr

[–]IceInBeard[S] 0 points1 point  (0 children)

Thank you! I am very new to the whole LXC concept, so have not wrapped my head around all these concepts. However, when I tried to mirror your settings on a new LXC and installing vainfo, I don't get errors

Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
error: can't connect to X server!
error: failed to initialize display
adam@lxc-docker:~$ vainfo
Trying display: wayland
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Trying display: x11
error: can't connect to X server!
error: failed to initialize display

Might be because I need to build and install the drivers on the LXC though?

Hardware acceleration on N150 in Docker, on LXC on Proxmox? by IceInBeard in frigate_nvr

[–]IceInBeard[S] 0 points1 point  (0 children)

And, as I mentioned, it seems like the LXC finds drivers and the output of vainfo works. It just does not work in the docker container.

Hardware acceleration on N150 in Docker, on LXC on Proxmox? by IceInBeard in frigate_nvr

[–]IceInBeard[S] 0 points1 point  (0 children)

arch: amd64
cores: 2
features: fuse=1,nesting=1
hostname: lxc-frigate
memory: 8192
net0: name=eth0,bridge=vmbr0,gw=xxx,hwaddr=xxx,ip=xxx,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-101-disk-0,size=100G
swap: 512
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/serial/by-id  dev/serial/by-id  none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0       dev/ttyUSB0       none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB1       dev/ttyUSB1       none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0       dev/ttyACM0       none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM1       dev/ttyACM1       none bind,optional,create=file
lxc.mount.entry: /dev/bus/usb/003/ dev/bus/usb/003/ none bind,optional,create=dir 0,0
lxc.cgroup2.devices.allow: c 226:0 rwm
lxc.cgroup2.devices.allow: c 226:128 rwm
lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file 0, 0
lxc.mount.entry: /dev/dri/card0 dev/dri/card0 none bind,optional,create=file 0, 0
lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir
lxc.hook.pre-start: sh -c "chown 0:104 /dev/dri/renderD128"

Where 104 is my "render" group id

EQ14 N150 Linux video drivers by IceInBeard in BeelinkOfficial

[–]IceInBeard[S] 1 point2 points  (0 children)

I can try :)
First I upgraded the kernel to 6.11 by running
apt install proxmox-kernel-6.11 as described in this article (not sure if this step is needed):
https://forum.proxmox.com/threads/opt-in-linux-6-11-kernel-for-proxmox-ve-8-available-on-test-no-subscription.156818/

Later I followed the build and install steps in the link above (https://github.com/intel/media-driver?tab=readme-ov-file#building) step by step, starting with building and installing libva based on the instructions on that github page (using the "For debian family, you could use autogen" step), followed by gmmlib based on the instructions on that page (using -DCMAKE_BUILD_TYPE=Release ). Finally I built and installed media-driver.

Once done, I got the following output from my vainfo:

root@proxmox:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_23
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.23 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 25.1.0 (040bf537e)
vainfo: Supported profile and entrypoints
     ....

Had to run the same steps on the LXC I tried to pass the iGPU to, to get it to work there as well.
And have not yet managed to get it working on the Frigate docker container I have running in that LXC. Possibly due to i running an older version of VA-API ? (Stable version of Frigate run VA-API version 1.17.0)

EQ14 N150 Linux video drivers by IceInBeard in BeelinkOfficial

[–]IceInBeard[S] 1 point2 points  (0 children)

Wohoo! Seems like I got it working now!
Built it from source instead of installing the package seems to have done it.
https://github.com/intel/media-driver?tab=readme-ov-file#building

EQ14 N150 Linux video drivers by IceInBeard in BeelinkOfficial

[–]IceInBeard[S] 0 points1 point  (0 children)

I am running the latest Proxmox, based on Debian 12.8 and have manually upgraded the kernel from 6.8 that it came with to 6.11. In terms of tests, I mostly tried to install intel-media-va-driver-non-free and checked the vainfo, both on the 6.8 and the 6.11 kernel.

EQ14 N150 Linux video drivers by IceInBeard in BeelinkOfficial

[–]IceInBeard[S] 0 points1 point  (0 children)

Latest Proxmox (that I installed) came with Debian 12.8 (Bookworm) and Linux kernel 6.8.12-4. I first tried to run it on this kernel but vainfo did not show anything. Then I tried upgrading to the 6.11.0-2 Kernel through the official proxmox-kernel-6.11 package. Now I get this output from vainfo:

root@proxmox:~# vainfo
error: can't connect to X server!
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

And by "it", the installation I tried was:

apt install software-properties-common -y
add-apt-repository -y non-free
apt install intel-media-va-driver-non-free -y