„amd-vendor-reset.plg“ ändern
This commit is contained in:
parent
fa4a632f46
commit
7ce92b4161
|
@ -2,7 +2,7 @@
|
||||||
<!DOCTYPE PLUGIN [
|
<!DOCTYPE PLUGIN [
|
||||||
<!ENTITY name "AMD-Vendor-Reset">
|
<!ENTITY name "AMD-Vendor-Reset">
|
||||||
<!ENTITY author "ich777">
|
<!ENTITY author "ich777">
|
||||||
<!ENTITY version "2021.06.23">
|
<!ENTITY version "2022.03.21">
|
||||||
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unraid-amd-vendor-reset/master">
|
<!ENTITY gitURL "https://raw.githubusercontent.com/&author;/unraid-amd-vendor-reset/master">
|
||||||
<!ENTITY pluginURL "&gitURL;/amd-vendor-reset.plg">
|
<!ENTITY pluginURL "&gitURL;/amd-vendor-reset.plg">
|
||||||
<!ENTITY plugin "/boot/config/plugins/amd-vendor-reset">
|
<!ENTITY plugin "/boot/config/plugins/amd-vendor-reset">
|
||||||
|
@ -13,6 +13,9 @@
|
||||||
|
|
||||||
<CHANGES>
|
<CHANGES>
|
||||||
|
|
||||||
|
###2022.03.21
|
||||||
|
- Added change for reset_method for Kernel 5.15+
|
||||||
|
|
||||||
###2021.06.23
|
###2021.06.23
|
||||||
- Changed package download repo
|
- Changed package download repo
|
||||||
|
|
||||||
|
@ -108,6 +111,18 @@ else
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Change reset_method for installed AMD VGA adapters for Kernel 5.15+
|
||||||
|
#https://github.com/gnif/vendor-reset/issues/46#issuecomment-992282166
|
||||||
|
TARGET_V="5.14.99"
|
||||||
|
COMPARE="$(uname -r | cut -d '-' -f1)
|
||||||
|
$TARGET_V"
|
||||||
|
if [ "$TARGET_V" != "$(echo "$COMPARE" | sort -V | tail -1)" ]; then
|
||||||
|
while read -r line
|
||||||
|
do
|
||||||
|
echo 'device_specific' > $(find /sys/bus/pci/devices/* -name "*$line")/reset_method
|
||||||
|
done <<< "$(lspci -nn | grep -E "VGA compatible controller|Display controller" | grep -E "AMD|ATI|Advanced Micro Devices" | awk '{print $1}')"
|
||||||
|
fi
|
||||||
|
|
||||||
#Install icon
|
#Install icon
|
||||||
if [ ! -f "&emhttp;/images/&name;.png" ]; then
|
if [ ! -f "&emhttp;/images/&name;.png" ]; then
|
||||||
if [ ! -d "&emhttp;/images" ]; then
|
if [ ! -d "&emhttp;/images" ]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user