diff --git a/install/emby-install.sh b/install/emby-install.sh index 52fc3af6..e0337e77 100644 --- a/install/emby-install.sh +++ b/install/emby-install.sh @@ -29,9 +29,11 @@ if [[ "$CTTYPE" == "0" ]]; then else $STD apt-get install -y intel-opencl-icd fi - /bin/chgrp video /dev/dri - /bin/chmod 755 /dev/dri - /bin/chmod 660 /dev/dri/* + chgrp video /dev/dri + chmod 755 /dev/dri + chmod 660 /dev/dri/* + $STD adduser $(id -u -n) video + $STD adduser $(id -u -n) render msg_ok "Set Up Hardware Acceleration" fi diff --git a/install/jellyfin-install.sh b/install/jellyfin-install.sh index 787b0ab2..be373996 100644 --- a/install/jellyfin-install.sh +++ b/install/jellyfin-install.sh @@ -30,9 +30,11 @@ if [[ "$CTTYPE" == "0" ]]; then else $STD apt-get install -y intel-opencl-icd fi - /bin/chgrp video /dev/dri - /bin/chmod 755 /dev/dri - /bin/chmod 660 /dev/dri/* + chgrp video /dev/dri + chmod 755 /dev/dri + chmod 660 /dev/dri/* + $STD adduser $(id -u -n) video + $STD adduser $(id -u -n) render msg_ok "Set Up Hardware Acceleration" fi diff --git a/install/plex-install.sh b/install/plex-install.sh index 5e7fda8d..4aec89ce 100644 --- a/install/plex-install.sh +++ b/install/plex-install.sh @@ -29,9 +29,11 @@ if [[ "$CTTYPE" == "0" ]]; then else $STD apt-get install -y intel-opencl-icd fi - /bin/chgrp video /dev/dri - /bin/chmod 755 /dev/dri - /bin/chmod 660 /dev/dri/* + chgrp video /dev/dri + chmod 755 /dev/dri + chmod 660 /dev/dri/* + $STD adduser $(id -u -n) video + $STD adduser $(id -u -n) render msg_ok "Set Up Hardware Acceleration" fi diff --git a/install/scrypted-install.sh b/install/scrypted-install.sh index e51d3a65..081772fe 100644 --- a/install/scrypted-install.sh +++ b/install/scrypted-install.sh @@ -44,10 +44,11 @@ if [[ "$CTTYPE" == "0" ]]; then va-driver-all \ ocl-icd-libopencl1 \ intel-opencl-icd - - /bin/chgrp video /dev/dri - /bin/chmod 755 /dev/dri - /bin/chmod 660 /dev/dri/* + chgrp video /dev/dri + chmod 755 /dev/dri + chmod 660 /dev/dri/* + $STD adduser $(id -u -n) video + $STD adduser $(id -u -n) render msg_ok "Set Up Hardware Acceleration" fi msg_info "Installing GStreamer (Patience)" diff --git a/install/tdarr-install.sh b/install/tdarr-install.sh index 5e097586..702d3203 100644 --- a/install/tdarr-install.sh +++ b/install/tdarr-install.sh @@ -25,10 +25,11 @@ if [[ "$CTTYPE" == "0" ]]; then va-driver-all \ ocl-icd-libopencl1 \ intel-opencl-icd - - /bin/chgrp video /dev/dri - /bin/chmod 755 /dev/dri - /bin/chmod 660 /dev/dri/* + chgrp video /dev/dri + chmod 755 /dev/dri + chmod 660 /dev/dri/* + $STD adduser $(id -u -n) video + $STD adduser $(id -u -n) render msg_ok "Set Up Hardware Acceleration" fi diff --git a/install/unmanic-install.sh b/install/unmanic-install.sh index ebf48b26..be5d336c 100644 --- a/install/unmanic-install.sh +++ b/install/unmanic-install.sh @@ -27,10 +27,11 @@ if [[ "$CTTYPE" == "0" ]]; then va-driver-all \ ocl-icd-libopencl1 \ intel-opencl-icd - chgrp video /dev/dri chmod 755 /dev/dri chmod 660 /dev/dri/* + $STD adduser $(id -u -n) video + $STD adduser $(id -u -n) render msg_ok "Set Up Hardware Acceleration" fi diff --git a/misc/hw-acceleration.sh b/misc/hw-acceleration.sh index 72e807c7..32ccb72d 100644 --- a/misc/hw-acceleration.sh +++ b/misc/hw-acceleration.sh @@ -43,7 +43,7 @@ lxc.mount.entry: /dev/fb0 dev/fb0 none bind,optional,create=file lxc.mount.entry: /dev/dri dev/dri none bind,optional,create=dir lxc.mount.entry: /dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file EOF -pct exec $privileged_container -- bash -c "apt-get -y install va-driver-all && apt-get -y install ocl-icd-libopencl1 && apt-get install -y intel-opencl-icd" +pct exec $privileged_container -- bash -c "apt-get -y install va-driver-all && apt-get -y install ocl-icd-libopencl1 && apt-get install -y intel-opencl-icd && chgrp video /dev/dri && chmod 755 /dev/dri && chmod 660 /dev/dri/* && adduser \$(id -u -n) video && adduser \$(id -u -n) render" header_info echo -e "Completed Successfully!\n" echo -e "Reboot container $privileged_container to apply the new settings\n"