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

Enhancement: also show NVIDIA gpu usage in laptops #272

Closed
osbm opened this issue Jul 4, 2024 · 2 comments
Closed

Enhancement: also show NVIDIA gpu usage in laptops #272

osbm opened this issue Jul 4, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@osbm
Copy link

osbm commented Jul 4, 2024

Most laptops have NVIDIA gpus as discreet GPUs in addition to the iGPU of the processor. Because of this, lspci | grep VGA will only show iGPU. And nvidia card is shown as '3D Controller'. Here is my output:

$ lspci | grep -iP 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics G7 (rev 07)
06:00.0 3D controller: NVIDIA Corporation GP108M [GeForce MX250] (rev a1)

In the scripts gpu type is determined by lspci command and statistics is obtained by nvidia-smi command. I can run the nvidia-smi commands with success. But because of the lspci command it shows GPU unknown.

Can we update this functionality?

@osbm osbm added the enhancement New feature or request label Jul 4, 2024
ethancedwards8 added a commit that referenced this issue Aug 18, 2024
allow user to force getting gpu info without asking lspci #272
@Theoreticallyhugo
Copy link
Collaborator

hey @osbm,
setting set -g @dracula-ignore-lspci true should now allow you to always see your NVIDIA gpu.
please let us know if this fixes your issue or if it can be closed :D

@osbm
Copy link
Author

osbm commented Aug 18, 2024

Wow, thank you so much! Now the same configuration works on both laptop and desktop (both have nvidia but desktop doesnt have iGPU).

Awesome. We can close this now.

@osbm osbm closed this as completed Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

2 participants