diff --git a/config/nvidia-xrun b/config/nvidia-xrun index c13363e..f390c0b 100644 --- a/config/nvidia-xrun +++ b/config/nvidia-xrun @@ -16,6 +16,14 @@ REMOVE_DEVICE=1 # Bus ID of the PCI express controller CONTROLLER_BUS_ID=0000:00:01.0 +# Turning the PCIe controller on when the HD audio controller is turned off +# can lead to hung tee processes, hung kernel tasks and total system lockups. +# If HDA_CONTROLLER_BUS_ID is set to the Bus ID of the NVIDIA HD audio controller +# it will be turned on before the PCIe controller is. +# +# Bus ID of the HD audio controller +#HDA_CONTROLLER_BUS_ID=0000:01:00.1 + # Bus ID of the graphic card DEVICE_BUS_ID=0000:01:00.0 diff --git a/nvidia-xrun b/nvidia-xrun index 56d9855..732fa5c 100755 --- a/nvidia-xrun +++ b/nvidia-xrun @@ -27,11 +27,24 @@ function turn_off_gpu { execute "sudo tee /sys/bus/pci/devices/${DEVICE_BUS_ID}/power/control <<