代码拉取完成,页面将自动刷新
<?xml version='1.0' standalone='yes'?>
<!DOCTYPE PLUGIN [
<!ENTITY name "intel-gpu-top">
<!ENTITY author "ich777">
<!ENTITY version "2024.06.27">
<!ENTITY gitURL "https://github.com/&author;/&name;/releases/download">
<!ENTITY pluginURL "https://raw.githubusercontent.com/&author;/&name;/master/&name;.plg">
<!ENTITY md5 "b68b4085c7180b65ab55d14ec6ad3c2f">
<!ENTITY plugin "/boot/config/plugins/&name;">
<!ENTITY emhttp "/usr/local/emhttp/plugins/&name;">
]>
<PLUGIN name="&name;" author="&author;" version="&version;" pluginURL="&pluginURL;" min="6.10.0">
<CHANGES>
###2024.06.27
- Change logic from Intel i915 driver activation
###2024.04.29
- Add additinal logic for experimental Intel Xe Graphics Driver
###2023.09.08
- Bumped 'intel_gpu_top' version to Gitlab master branch (Commit 9d91cf2c) built on 2023.09.08
###2023.02.15
- Bumped 'intel_gpu_top' version. Based on Intel-GPU-Tools v1.27.1
- Switched to GitHub Releases for packages
###2022.09.27
- Bumped 'intel_gpu_top' version to Gitlab master branch from 2022.09.27
###2022.06.28
- Bumped 'intel_gpu_top' version to Gitlab master branch from 2022.06.28
###2021.07.16
- Bumped 'intel_gpu_top' version to Gitlab master branch from 2021.07.16
###2021.06.15
- Enable Intel Kernel module with 'force_probe' to support new Intel CPUs without the need to modify syslinux.cfg
###2021.05.04
- Bumped 'intel_gpu_top' version. Based on Intel-GPU-Tools v1.26
- Changed package name to avoid conflicts with other plugins
###2021.04.01
- Bumped 'intel_gpu_top' version to Gitlab master branch from 2021.04.01
###2021.03.27
- Bumped 'intel_gpu_top' version to Gitlab master branch from 2021.03.27
###2021.03.24
- Added check for Intel GVT-g Plugin
###2021.03.14a
- Removed 'intel_gpu_frequency'
###2021.03.14
- Fixed unRAID GUI mode not working
###2021.01.09
- Added 'intel_gpu_frequency' - based on Intel-GPU-Tools 1.25
###2021.01.07
- Initial release - based on Intel-GPU-Tools 1.25
</CHANGES>
<FILE Run="/bin/bash">
<INLINE>
rm -f $(ls /boot/config/plugins/&name;/intel.gpu.top*.txz 2>/dev/null|grep -v '&version;')
</INLINE>
</FILE>
<FILE Name="/boot/config/plugins/&name;/intel.gpu.top-&version;.txz" Run="upgradepkg --install-new">
<URL>&gitURL;/&version;/intel.gpu.top-&version;.txz</URL>
<MD5>&md5;</MD5>
</FILE>
<FILE Name="&emhttp;/README.md">
<INLINE>
**Intel GPU TOP**
This plugin adds the tool 'intel_gpu_top' to your unRAID server and also enables your Intel iGPU from the installation of this plugin on, so no editis to the 'go' file or creation of other files are necessary.
To see the usage of your iGPU open up the unRAID Terminal and type in 'intel_gpu_top' (without quotes).
This plugin satisfies installation prerequisites of the GPU Statistics plugin from Community Apps. With both plugins installed you can display Intel GPU utilization on the unRAID Dashboard.
</INLINE>
</FILE>
<FILE Run="/bin/bash">
<INLINE>
enableintel() {
#Enable Intel Kernel module
PROBE="$(lspci -nn | grep -E "VGA compatible controller|Display controller" | grep "Intel" | sort | tail -1 | grep -oE '\[[a-f0-9][a-f0-9][a-f0-9][a-f0-9]:[a-f0-9][a-f0-9][a-f0-9][a-f0-9]\]' | sed 's/[][]//g' | cut -d ':' -f2)"
if [ -z "${PROBE}" ]; then
if modprobe i915 ; then
echo
echo "---Intel Kernel Module successfully enabled!---"
else
echo
echo "------Something went wrong! Can't enable-------"
echo "----Intel Kernel Module, removing package!-----"
removepkg &name;-&version;
rm -rf /usr/local/emhttp/plugins/&name;
rm -rf &plugin;
exit 1
fi
else
if modprobe i915 force_probe=${PROBE} ; then
echo
echo "---Intel Kernel Module successfully enabled!---"
else
echo
echo "------Something went wrong! Can't enable-------"
echo "----Intel Kernel Module, removing package!-----"
removepkg &name;-&version;
rm -rf /usr/local/emhttp/plugins/&name;
rm -rf &plugin;
exit 1
fi
fi
sleep 1
chmod -R 777 /dev/dri
}
#Check if Kernel Module is already enabled
if grep -q "xe.force_probe=" /proc/cmdline ; then
echo
echo "--------Found Xe force_probe parameter!--------"
echo "-----------Skipping i915 activation!-----------"
elif [ -d /boot/config/plugins/intel-gvt-g ]; then
echo
echo "-----------Found Intel GVT-g Plugin!-----------"
echo "---GVT-g Plugin will enable the i915 Module!---"
elif [ -z "$(lsmod | grep "i915")" ]; then
echo
echo "---------Enabling Intel Kernel Module----------"
enableintel
else
echo
echo "-----Intel Kernel Module already enabled!------"
fi
echo
echo "----Installation of Intel GPU TOP complete-----"
</INLINE>
</FILE>
<FILE Run="/bin/bash" Method="remove">
<INLINE>
echo "-----------------------------------------------"
echo "----------Uninstalling Intel GPU TOP-----------"
echo "-----------------------------------------------"
# Remove plugin related files
removepkg intel.gpu.top-&version;
rm -rf /usr/local/emhttp/plugins/&name;
rm -rf &plugin;
echo
echo "-----------------------------------------------"
echo "---Uninstallation of Intel GPU TOP complete!---"
echo "-----------------------------------------------"
echo
</INLINE>
</FILE>
</PLUGIN>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。