diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index 2237c7b4..676d6f6b 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -808,12 +808,9 @@ nvidia_check_rtx () { return 1 } -# Hybrid graphics (Intel + NVIDIA) -if echo "$lspci_output" | grep -i "intel" && echo "$lspci_output" | grep -i "nvidia"; then - export PW_PRIME_RENDER_OFFLOAD=1 -# Hybrid graphics (AMD + NVIDIA) -elif echo "$lspci_output" | grep -i "amd" && echo "$lspci_output" | grep -i "nvidia"; then - export PW_PRIME_RENDER_OFFLOAD=1 +# Hybrid graphics detect +if echo "$lspci_output" | grep -i "nvidia" && echo "$lspci_output" | grep -i "intel") || (echo "$lspci_output" | grep -i "nvidia" && echo "$lspci_output" | grep -i "amd"); then + export PW_PRIME_RENDER_OFFLOAD=1 fi pw_init_db () {