iceball09
Members
-
Joined
-
Last visited
Solutions
-
iceball09's post in AMD GPU not returning to suspended (D3hot) state after VM shutdown was marked as the answerHi everyone,
I have a solution. This is a modified hook from space invaders script from his yt-video (https://www.youtube.com/watch?v=0uZODoPQH9c&t)
# anlegen als Hook, z.B.: # /etc/libvirt/hooks/qemu.d/ANY/release/end/amd-gpu-reset-and-suspended.sh cat <<'EOF' > /etc/libvirt/hooks/qemu.d/ANY/release/end/amd-gpu-reset-and-suspended.sh #!/bin/bash GPU_GFX="0000:03:00.0" GPU_AUD="0000:03:00.1" LOG="/var/log/libvirt/hooks-gpu-status.log" echo "disconnecting amd graphics and sound" | tee -a "$LOG" echo 1 > /sys/bus/pci/devices/$GPU_AUD/remove 2>/dev/null || true echo 1 > /sys/bus/pci/devices/$GPU_GFX/remove 2>/dev/null || true # S3 auskommentiert (nicht genutzt) # echo "entered suspended state press power button to continue" | tee -a "$LOG" # echo -n mem > /sys/power/state echo "reconnecting amd gpu and sound" | tee -a "$LOG" echo 1 > /sys/bus/pci/rescan sleep 1 # zurück an Host-Treiber binden echo $GPU_AUD > /sys/bus/pci/drivers/snd_hda_intel/bind 2>/dev/null || true echo $GPU_GFX > /sys/bus/pci/drivers/amdgpu/bind 2>/dev/null || true # Power-Management setzen [ -w /sys/bus/pci/devices/$GPU_GFX/power/control ] && echo auto > /sys/bus/pci/devices/$GPU_GFX/power/control [ -w /sys/bus/pci/devices/$GPU_GFX/d3cold_allowed ] && echo 1 > /sys/bus/pci/devices/$GPU_GFX/d3cold_allowed [ -w /sys/bus/pci/devices/$GPU_AUD/power/control ] && echo auto > /sys/bus/pci/devices/$GPU_AUD/power/control [ -w /sys/bus/pci/devices/$GPU_AUD/d3cold_allowed ] && echo 1 > /sys/bus/pci/devices/$GPU_AUD/d3cold_allowed exit 0 EOF chmod +x /etc/libvirt/hooks/qemu.d/ANY/release/end/amd-gpu-reset-and-suspended.sh
-
iceball09's post in FS/Unraid SMB Performance was marked as the answerOkay, das Problem waren bei mir nun die fehlende Synchronität der Paritydisk und mein Router/Netzwerk.
Vielen Dank für euren Support