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

cosmic-applet-battery: Discrete GPU info doesn't show which apps are using the dGPU (AMD + AMD) #354

Open
ryanabx opened this issue Apr 17, 2024 · 1 comment

Comments

@ryanabx
Copy link
Contributor

ryanabx commented Apr 17, 2024

On my AMD + AMD system, I don't get a list of apps that are using the dGPU. This could possibly be an upstream issue for whatever library is being used to get the info in the first place

screenshot-2024-04-17-01-27-44

@Drakulix
Copy link
Member

We don't use a library, the code we use to get this information is here: https://github.com/pop-os/cosmic-applets/blob/master/cosmic-applet-battery/src/dgpu.rs#L182-L295

The issue most likely comes down to permissions. You can't list root processes using the gpu easily for non-nvidia gpus, without some root-daemon running in the background. (There are plans to move this into system76-power to provide the necessary access, but nothing has been done on that front.)

Additionally depending on your system, it might be, that your GPU simply never goes into D3 sleep mode, even if nothing is actively using that. (The code to check this is here: https://github.com/pop-os/cosmic-applets/blob/master/cosmic-applet-battery/src/dgpu.rs#L67-L93)

(Those might also be firmware bugs, I have a laptop with an nvidia gpu, that refuses to go to sleep once an external display was connected to it until I reboot the whole machine..)

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

No branches or pull requests

2 participants