Skip to content

reset also works by triggering suspend / resume #93

@JLT032

Description

@JLT032

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions