Skip to content

Conversation

popcornmix
Copy link
Contributor

Shows gpu usage as reported by the v3d driver.
Works on pi4 and pi5 (earlier models don't expose this info)

This provides a little more detail than the GPU taskbar plugin (which just reports the maximum of the different fields).

with open('/sys/kernel/debug/dri/0/gpu_usage') as f:
lines = f.readlines()
except:
print("gpu_uage is not supported on this device")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo - should be 'gpu_usage' instead of 'gpu_uage'

Shows gpu usage as reported by the v3d driver
Works on pi4 and pi5 (earlier models don't expose this info)

This provides a little more detail than the GPU taskbar plugin
(which just reports the maximum of the different fields).
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 this pull request may close these issues.

2 participants