Skip to content

Commit

Permalink
improve nvidia detection for dual-card systems
Browse files Browse the repository at this point in the history
Some dual-card systems end up with `$drv` having values like
`"i915\nnvidia"`, and string equality fails for those cases. Use
bash wildcards instead to see if `$drv` contains `"nvidia"`.

fixes AdnanHodzic#596
  • Loading branch information
ryepup committed Jul 17, 2021
1 parent 2675968 commit c8ca4a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions displaylink-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ EndSection
EOL
}

# set xorg for Nvidia cards (issue: 176, 179, 211, 217)
if [ "$drv_nvidia" == "NVIDIA" ] || [ "$drv" == "nvidia" ];
# set xorg for Nvidia cards (issue: 176, 179, 211, 217, 596)
if [ "$drv_nvidia" == "NVIDIA" ] || [[ $drv == *"nvidia"* ]];
then
nvidia_pregame
xorg_nvidia
Expand Down

0 comments on commit c8ca4a4

Please sign in to comment.