[BUG] Performance panel shows iGPU stats and not discreet GPU stats
Step 1. Before you submit
- [x] I have read the above instructions and am sure that this is supposed to be posted here.
- [x] I've successfully updated to the latest versions following the updating guide.
- [x] I've successfully updated the system packages to the latest.
- [ ] I've ticked the checkboxes without reading their contents
Step 2. Version info
Version info
Packages:
caelestia-shell-git r969.6fe2903-1
caelestia-cli-git r265.2bde2dd-1
caelestia-meta r108.c1947d8-1
Caelestia:
Last commit: ed839182960fa4adf8cd63a8441601fc4af3ceb9
Commit message: hyprland: fix script shebang (#48)
Quickshell:
quickshell 0.2.0, revision a5431dd02dc23d9ef1680e67777fed00fe5f7cda, distributed by: AUR (package: quickshell-git)
Local copy of shell found:
Unable to determine last merged upstream commit.
fatal: not a git repository: '/home/m/.config/quickshell/caelestia/.git'
Traceback (most recent call last):
File "/usr/bin/caelestia", line 8, in <module>
sys.exit(main())
~~~~^^
File "/usr/lib/python3.13/site-packages/caelestia/__init__.py", line 8, in main
print_version()
~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/caelestia/utils/version.py", line 52, in print_version
shell_ver = subprocess.check_output(
["git", "--git-dir", local_shell_dir / ".git", "rev-list", "--format=%B", "--max-count=1", "HEAD"],
text=True,
)
File "/usr/lib/python3.13/subprocess.py", line 472, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**kwargs).stdout
^^^^^^^^^
File "/usr/lib/python3.13/subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', '--git-dir', PosixPath('/home/m/.config/quickshell/caelestia/.git'), 'rev-list', '--format=%B', '--max-count=1', 'HEAD']' returned non-zero exit status 128.
Step 3. Describe the issue
The Performance tab in the dashboard is showing stats for my CPU's integrated graphics and not my dedicated GPU. I have an AMD Ryzen 7 3750H with Radeon Vega Mobile graphics and a dedicated Nvidia GTX 1660 Ti Max-Q and the dashboard only shows stats for my integrated graphics, not the 1660Ti. I'm currently looking into the issue and might issue a pull request to fix it soon.
Reminder
- [x] I agree that it's usually impossible for others to help me without my logs.
I've spent only a few minutes on this and I found the issue. The gpuTypeCheck on line 145 of quickshell/caelestia/services/SystemUsage.qml is looking for GENERIC graphics before NVIDIA graphics. I swapped the logic around so that it looks for NVIDIA first and it still didn't work so I added && nvidia-smi -L >/dev/null 2>&1 to the end of the nvidia check in the if statement and it worked! I've got a fork with the amended code but I'm pretty new to GitHub and I don't know how to create a pull request to merge my fork. if someone who knows what they're doing wants to add this the whole correction is from command: ["sh", "-c", "if ls /sys/class/drm/card*/device/gpu_busy_percent 2>/dev/null | grep -q .; then echo GENERIC; elif command -v nvidia-smi >/dev/null; then echo NVIDIA; else echo NONE; fi"] [OLD] on line 145 to command: ["sh", "-c", "if command -v nvidia-smi >/dev/null 2>&1 && nvidia-smi -L >/dev/null 2>&1; then echo NVIDIA; elif ls /sys/class/drm/card*/device/gpu_busy_percent 2>/dev/null | grep -q .; then echo GENERIC; else echo NONE; fi"] [NEW]