-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
Today I accidentally found this command to be adequate to reset the GPU. I've used this reset script and found it works reliably.
This for the RadeonVII, I had not replaced the XX with the PCI bus ID.
The VM was still running and had failed to capture the GPU.
Running the script suspended the machine, then resumed after pressing the power button.
On resume the GPU was captured correclty.
#!/bin/bash
#
#replace xx\:xx.x with the number of your gpu and sound counterpart
#
#
echo "disconnecting amd graphics"
echo "1" | tee -a /sys/bus/pci/devices/0000\:XX\:00.0/remove
echo "disconnecting amd sound counterpart"
echo "1" | tee -a /sys/bus/pci/devices/0000\:XX\:00.1/remove
echo "entered suspended state press power button to continue"
echo -n mem > /sys/power/state
echo "reconnecting amd gpu and sound counterpart"
echo "1" | tee -a /sys/bus/pci/rescan
echo "AMD graphics card sucessfully reset"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels