displaylink-debian icon indicating copy to clipboard operation
displaylink-debian copied to clipboard

NVIDIA card is preferred over Intel GPU

Open herzrasen opened this issue 3 years ago • 0 comments

Hi, I'm not sure, if this is really a bug, but it is an issue I'm observing when installing the DisplayLink driver on my Lenovo T490.

The T490 comes with an Intel GPU (i915) and an NVIDIA GeForce MX250. I don't want to install the NVIDIA driver but when the installer script runs, it executes lspci | grep -i '3d controller' | sed 's/^.*: //' | awk '{print $1}' which returns NVIDIA.

Later in the script, the following condition is evaluated first if [ "$drv_nvidia" == "NVIDIA" ] || [[ $drv == *"nvidia"* ]]; the check for the intel GPU is performed later in the script elif [ "$drv" == "i915" ];

This causes that the xorg config for NVIDIA cards is installed and not the xorg config for the modesetting driver.

As mentioned above, I'm not sure if this is a bug or if the majority of people installs NVIDIA drivers. Do you think that introducing an option to force skipping NVIDIA stuff would be an alternative? Or maybe there is a way to figure out if the NVIDIA driver is actually installed.

herzrasen avatar Dec 30 '21 16:12 herzrasen