Skip to content

Instantly share code, notes, and snippets.

@matthenning
Forked from LadySmith/plex_ihd_remove.sh
Created December 9, 2022 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthenning/5e2efcc72b3631234d4026b109de26e4 to your computer and use it in GitHub Desktop.
Save matthenning/5e2efcc72b3631234d4026b109de26e4 to your computer and use it in GitHub Desktop.
Synology DS920+ Plex hw transcoding fix
#!/usr/bin/env bash
# Check Plex iHD driver. If exists, delete. Should fix buffering on HW Transcoding.
file="/volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so"
filebackup="/volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so.bak"
if [ -f "$file" ] ; then
echo "Stopping Plex"; echo;
synoservicectl --stop "pkgctl-Plex Media Server" ;
echo "Found iHD, deleting..."; echo;
sleep 5 ;
mv "$file" "$filebackup" ;
sleep 5 ;
echo "Starting Plexr"; echo;
synoservicectl --start "pkgctl-Plex Media Server" ;
exit
else
echo "File not found, exit." ;
exit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment