Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system76 nvidia cards not detected #596

Closed
ryepup opened this issue Jul 17, 2021 · 0 comments · Fixed by #597
Closed

system76 nvidia cards not detected #596

ryepup opened this issue Jul 17, 2021 · 0 comments · Fixed by #597

Comments

@ryepup
Copy link
Contributor

ryepup commented Jul 17, 2021

I have a system76 laptop with an integrated intel GPU and a dedicated nvidia GPU. My card is not being detected and thus the xorg.conf.d files are not being written.

$ lspci | grep -i VGA
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 05)
01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060] (rev a1)
$ lspci | grep -i 3d
<no output>

Analysis

I believe the detection logic is here:

if [ "$drv_nvidia" == "NVIDIA" ] || [ "$drv" == "nvidia" ];

On my machine, those variables end up with the following values:

  • $drv_nvidia - empty
  • $drv - "i915\nnvidia"

The check for "$drv" == "nvidia" is failing due to the intel card mixed in. I think if we loosen that check to be a "string contains" check instead of a "string equals" check it'll work for my case in addition to the original cases.

Related issues: #217, #211

Related commits: 6936c2c, 3b88811

ryepup added a commit to lazy-electron-consulting/displaylink-debian that referenced this issue Jul 17, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant