Skip to content

Instantly share code, notes, and snippets.

@nairbspace
Created May 31, 2020 19:09
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nairbspace/6afed439e244332f088fbee6b2bbd973 to your computer and use it in GitHub Desktop.
Save nairbspace/6afed439e244332f088fbee6b2bbd973 to your computer and use it in GitHub Desktop.
Script to delete iHD_drv_video.so on linuxserver/plex Docker containers
#!/bin/bash
## Bug with iHD_drv_video.so Intel media driver as of 2020-05-31.
## Need to force Plex to choose i965_drv_video.so on Gemini Lake CPUs.
## This is done by:
## adding this script to your /config/custom-cont-init.d/ folder on linuxserver/plex Docker containers
## or
## manually via command line by:
## docker exec -it name_of_plex_container /bin/bash -c "rm /usr/lib/plexmediaserver/lib/dri/iHD_drv_video.so;exit 0"
## References:
## https://forums.plex.tv/t/hardware-transcoding-broken-on-intel-nuc-with-j5005-cpu-on-ubuntu-18-04-lts/487616/24
## https://blog.linuxserver.io/2019/09/14/customizing-our-containers/
IHD_PATH='/usr/lib/plexmediaserver/lib/dri/iHD_drv_video.so'
if [ -e $IHD_PATH ]
then
echo '**** iHD driver found, deleting file. ****'
rm $IHD_PATH
fi
exit 0
@defconxt
Copy link

is this still needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment