prasanthrangan / hyprdots

// Aesthetic, dynamic and minimal dots for Arch hyprland

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Issue]: Nvidia gpu utilization 0%

KitsuneKode opened this issue · comments

I have GPU 1: AMD Lucienne @ 0.40 GHz [Integrated] GPU 2: NVIDIA GeForce MX450 [Discrete]

Now the utilization of nvidia gpu is always 0% regardless of the task I am performing! How can i enable the ability of the gpu to switch when nvidia is required! The Cpu and the amd gpu is being utilised only.

image

Can you provide some output of nvidia-smi ? Also can you confirm that this worked, but now it is not working?

image

image

image

And it's worth noting that not all Nvidia GPUs / drivers support GPU utilization monitoring. I know mine doesn’t. So see nvidia-smi command )

Base on experience, it's not worth it if we always use nvidia GPU on our laptops. (if your unit is a laptop)

You can contact NVIDIA for that if you really like to have that feature I guess.

Can you provide some output of nvidia-smi ? Also can you confirm that this worked, but now it is not working?

image

And it's worth noting that not all Nvidia GPUs / drivers support GPU utilization monitoring. I know mine doesn’t. So see nvidia-smi command )

You can contact NVIDIA for that if you really like to have that feature I guess.

sorry side question, when I tried it I found that my gpu is off. is this normal?
or I need to do something to make it on?

image

@Ramy-Ashraf

image

Better to understand first what are the meaning of those values

image

Note that my GPU is entry level mx250 for laptop and this setting on my end is always on, this specific gpu cannot dynamically idle, so it sucks out all my battery and it really sucks !

https://medium.com/analytics-vidhya/explained-output-of-nvidia-smi-utility-fc4fbee3b124

@kRHYME7
Thanks alot🫡

Can you provide some output of nvidia-smi ? Also can you confirm that this worked, but now it is not working?

image

image

image

And it's worth noting that not all Nvidia GPUs / drivers support GPU utilization monitoring. I know mine doesn’t. So see nvidia-smi command )

Base on experience, it's not worth it if we always use nvidia GPU on our laptops. (if your unit is a laptop)

You can contact NVIDIA for that if you really like to have that feature I guess.

This is the screenshot @kRHYME7
so does it mean utilization monitoring is not supported here either?

image

I am curious about something. Just to be sure, Websites like metacrafters.io used to work properly in my windows and like google-chrome used to utilise the nvidia gpu and everything rendered properly. But here firefox renders the website properly without lag but google-chrome renders it very laggy manner where navigating is also impossible and on checking in nvtop the gpu is not utilized at all, Only the Cpu works! As given in my first picture you can see that.

How to make sure google-chrome not only works on cpu but also utilizes the gpu when needed like firefox

commented

@KitsuneKode

Here's the most accurate command

nvidia-smi --query-gpu=utilization.gpu, --format=csv

It all boils down to the capability of your NVIDIA-driver. (comparing windows to Linux as per NVIDIA support is not a good comparison). At this level we can't do anything about that specially nvidia os proprietary.

But for your issues with chrome, try to check if it is running on Wayland or Xwayland. I think you can do some google search on how to enable chrome to run in Wayland (by default it is set to Xwayland which looks jittered)

And to check if your apps are running in Wayland run hyprctl clients
find the title/class of the package and check if xwayland = 0 this means the app is running in Wayland.
example
image

You can try to add this flag upon executing chrome in the terminal chrome --ozone-platform-hint=wayland (note, I do not know what is the command to run chrome so modify that command) I use thorium as it's faster and lightweight than google-chrome.

Remember we are using Linux, would be a bumpy road ahead lol. (Especially for some NVIDIA users )

@kRHYME7

For nvidia-smi --query-gpu=utilization.gpu, --format=csv
results: utilization.gpu [%] 0 %

And chrome is running on wayland!

I wasn't comparing linux and windows tho(just used a reference that it used to work)

Yea, seems like chrome has an issue with like just utilizing the cpu and not using the gpu! Not sure tho why!

commented

how about checking if hardware acceleration is enabled

Installing optimus-manager fixed it!

@kRHYME7 I am facing another issue after the installation of optimus-manager! I don't remember tweaking anything else,

Whenever I reboot/fresh start my device, the login screen that used to come doesnot render anymore! Its just a black screen and upon giving your password with muscle memory the screen starts. And I tried loging out, then the login screen renders!

Is it something that happens?

commented

checkout your sddm service.

Learn the basics of systemctl, so you can use the commands below

  systemctl status sddm.service 
 systemctl enable sddm.service 
 systemctl restart sddm.service 

Also, the optimus-manager got a section on the arch wiki read it for some fixes that you might have missed.
Configuring optimus-manager is simple but sometimes it's annoying.

Will close this as this is fit to discussions panel or other threads e.g reddit/archlinux.