We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ae0d5d + c3ec3b3 commit eaf2f8eCopy full SHA for eaf2f8e
egpu-switcher
@@ -144,7 +144,7 @@ function is_egpu_connected() {
144
declare bus2h=$(printf "%02x" $bus2d)
145
declare bus3h=$(printf "%01x" $bus3d)
146
147
- if [ $(lspci | grep -iEc "$bus1h:$bus2h.$bus3h") -eq 1 ]; then
+ if [ $( (lspci -d ::0300 && lspci -d ::0302) | grep -iEc "$bus1h:$bus2h.$bus3h") -eq 1 ]; then
148
print_info "EGPU is ${green}connected${blank}."
149
gpu_connected=1
150
hex_id=$bus1h:$bus2h.$bus3h
0 commit comments