Does a GPU usage graph for AMD exist? [SO SOLVED :D]

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Does a GPU usage graph for AMD exist? [SO SOLVED :D]

Post by Logansfury »

Hello everyone :)

I wanted to add a GPU graph to my minimalis. I did searching on the web, and the limited hits were all discussing a graph display for an Nvidia driver. I am using amdgpu driver on an AMD Radeon 7750.

Does anyone know enough about these cards, and conky, to produce a working graph conkyrc for me?

Thank you for reading,

Logan
Last edited by Logansfury on Fri Mar 22, 2024 10:37 am, edited 1 time in total.
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
AZgl1800
Level 20
Level 20
Posts: 11186
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Does a GPU usage graph for AMD exist?

Post by AZgl1800 »

I think this will work for you
one of the options is "usage"

:
psensor.jpg
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

AZgl1800 wrote: Sun Mar 17, 2024 9:09 pm I think this will work for you
one of the options is "usage"
Hello AZ,

I do have Psensors, but it seems to have no output data option. Also I am looking for a conkyrc or conky.conf with the graph script so it can be inserted into my existing minimalis.

Thank you for taking the time to make the suggestion :)
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Does a GPU usage graph for AMD exist?

Post by Koentje »

If you have the gpuload in percentage, you can make it yourself with ${execbar ...}.
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

Koentje wrote: Mon Mar 18, 2024 7:05 pm If you have the gpuload in percentage, you can make it yourself with ${execbar ...}.
Far Out! I hadn't yet heard of that command.

I have a display crisis at the moment, a diagnostic app just broke and froze my resolution. Im waiting for help in another thread now.
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

Logansfury wrote: Mon Mar 18, 2024 7:56 pm
Koentje wrote: Mon Mar 18, 2024 7:05 pm If you have the gpuload in percentage, you can make it yourself with ${execbar ...}.
Far Out! I hadn't yet heard of that command.

I have a display crisis at the moment, a diagnostic app just broke and froze my resolution. Im waiting for help in another thread now.
My display emergency has resolved itself with help from the forum. I would love to explore this now. Does gpuload have another name? I have 13 separate pieces of GPU data from radeontop but nothing says gpuload
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

Logansfury wrote: Mon Mar 18, 2024 11:39 pm Does gpuload have another name? I have 13 separate pieces of GPU data from radeontop but nothing says gpuload
I have the following catagories dynamically tracking gpu data:

Graphics Pipe
Vertex Grouper + Tesselator
Texter Addresser
Shader Export
Shader Interpalator
Scan converter
Primitive Assembly
Depth Block
Color Block
Virtual RAM
GTT
Memory Clock
Shader Clock

Are any of these related to gpuload?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Does a GPU usage graph for AMD exist?

Post by Koentje »

What files you get with ls -1 /sys/class/drm/card1/device
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

Koentje wrote: Tue Mar 19, 2024 8:55 am What files you get with ls -1 /sys/class/drm/card1/device
logansfury@OptiPlex-5040:~$ ls -1 /sys/class/drm/card1/device
ls: cannot access '/sys/class/drm/card1/device': No such file or directory
logansfury@OptiPlex-5040:~$
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
KMD2023
Level 3
Level 3
Posts: 109
Joined: Fri Mar 24, 2023 2:22 pm

Re: Does a GPU usage graph for AMD exist?

Post by KMD2023 »

Logansfury wrote: Tue Mar 19, 2024 3:29 pm
Koentje wrote: Tue Mar 19, 2024 8:55 am What files you get with ls -1 /sys/class/drm/card1/device
logansfury@OptiPlex-5040:~$ ls -1 /sys/class/drm/card1/device
ls: cannot access '/sys/class/drm/card1/device': No such file or directory
logansfury@OptiPlex-5040:~$
Check the /sys/class/drm folder first to see if you have a second device card. My system only has 1 card device and with numbering starting at zero, mine is card0 versus card1.

ls -1 /sys/class/drm To see if you have a card0 folder. The rest of the path that Koentje gave are the same.

Example from my machine just now:
~$ ls -1 /sys/class/drm
card0
card0-DP-1
card0-DP-2
card0-eDP-1
card0-HDMI-A-1
card0-HDMI-A-2

Then I ran the original but changed card1 to card0
~$ ls -1 /sys/class/drm/card0/device
ari_enabled
boot_vga
broken_parity_status
class
config
consistent_dma_mask_bits
consumer:pci:0000:00:1f.3
...followed by a load of other information.
KMD2023
NW USA
Linux Hobbyist - Made the full switch Mar 2023
- "Backups are your friend, and Timeshift is a friend with benefits!"
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

logansfury@OptiPlex-5040:~$ ls -1 /sys/class/drm/card0/device
aer_dev_correctable
aer_dev_fatal
aer_dev_nonfatal
apu_thermal_cap
ari_enabled
boot_vga
broken_parity_status
class
config
consistent_dma_mask_bits
consumer:pci:0000:01:00.1
current_link_speed
current_link_width
d3cold_allowed
device
dma_mask_bits
driver
driver_override
drm
enable
firmware_node
fw_version
gpu_busy_percent
graphics
hwmon
i2c-1
i2c-2
i2c-3
i2c-4
i2c-5
i2c-6
i2c-7
i2c-8
irq
link
local_cpulist
local_cpus
max_link_speed
max_link_width
mem_busy_percent
mem_info_gtt_total
mem_info_gtt_used
mem_info_preempt_used
mem_info_vis_vram_total
mem_info_vis_vram_used
mem_info_vram_total
mem_info_vram_used
mem_info_vram_vendor
modalias
msi_bus
msi_irqs
numa_node
pcie_bw
pcie_replay_count
power
power_dpm_force_performance_level
power_dpm_state
power_state
pp_cur_state
pp_dpm_mclk
pp_dpm_pcie
pp_dpm_sclk
pp_force_state
pp_mclk_od
pp_num_states
pp_sclk_od
pp_table
product_name
product_number
remove
rescan
reset
reset_method
resource
resource0
resource0_wc
resource2
resource4
revision
rom
serial_number
subsystem
subsystem_device
subsystem_vendor
thermal_throttling_logging
uevent
vbios_version
vendor
logansfury@OptiPlex-5040:~$
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Does a GPU usage graph for AMD exist?

Post by Koentje »

Tada.. gpu_busy_percent is the file that holds the gpuload.
cat /sys/class/drm/card0/device/gpu_busy_percent should give it to you!

So in conky use

Code: Select all

${execgraph "cat /sys/class/drm/card0/device/gpu_busy_percent" 005500 009900 scale -t}
To set the height and width of the graph paste this into the settings section of conky

Code: Select all

 default_graph_height = 12,
 default_graph_width = 129,
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

Koentje wrote: Tue Mar 19, 2024 5:16 pm Tada.. gpu_busy_percent is the file that holds the gpuload.
cat /sys/class/drm/card0/device/gpu_busy_percent should give it to you!

So in conky use

Code: Select all

${execgraph "cat /sys/class/drm/card0/device/gpu_busy_percent" 005500 009900 scale -t}
To set the height and width of the graph paste this into the settings section of conky

Code: Select all

 default_graph_height = 12,
 default_graph_width = 129,
Oh man FAR OUT!!!

this is exciting. I just have to fight thru my every 10 second blackscreen failure to set up the files

My usual graph code looks like this:

Code: Select all

${cpugraph cpu1 40,350 ffff00 ff0000}
How would I get the starting and ending color codes for the gradient entered into the conky please?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

I just put the scripts into a live conky, and while I have the graph outline, there are no bars inside the graph indicating gpu activity
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Does a GPU usage graph for AMD exist?

Post by Koentje »

Just a quick test, does this show anything greater then 0?

while :; do cat /sys/class/drm/card0/device/gpu_busy_percent; sleep 1; done
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

Koentje wrote: Tue Mar 19, 2024 8:59 pm Just a quick test, does this show anything greater then 0?

while :; do cat /sys/class/drm/card0/device/gpu_busy_percent; sleep 1; done

Code: Select all

logansfury@OptiPlex-5040:~$ while :; do cat /sys/class/drm/card0/device/gpu_busy_percent; sleep 1; done
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Does a GPU usage graph for AMD exist?

Post by Koentje »

Try this in your conky

Code: Select all

${execgraph "echo $(cat /sys/class/drm/card1/device/gpu_busy_percent)" 005500 009900 scale -t}
It does work in my conky!
Schermafdruk van 2024-03-20 02-08-06.jpg
Schermafdruk van 2024-03-20 02-08-06.jpg (6.51 KiB) Viewed 164 times
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

Koentje wrote: Tue Mar 19, 2024 9:06 pm Try this in your conky

Code: Select all

${execgraph "echo $(cat /sys/class/drm/card1/device/gpu_busy_percent)" 005500 009900 scale -t}
It does work in my conky!
Schermafdruk van 2024-03-20 02-08-06.jpg
I just tried:

Code: Select all

${execgraph "echo $(cat /sys/class/drm/card0/device/gpu_busy_percent)" 005500 009900 scale -t}

Code: Select all

${execgraph "echo $(cat /sys/class/drm/card1/device/gpu_busy_percent)" 005500 009900 scale -t}
neither one worked >.<
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

Re: Does a GPU usage graph for AMD exist?

Post by Koentje »

Does this work on the terminal?

Code: Select all

while :; do echo "$(cat /sys/class/drm/card0/device/gpu_busy_percent)"; sleep 1; done
Image
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Does a GPU usage graph for AMD exist?

Post by Logansfury »

Koentje wrote: Tue Mar 19, 2024 9:36 pm Does this work on the terminal?

Code: Select all

while :; do echo "$(cat /sys/class/drm/card0/device/gpu_busy_percent)"; sleep 1; done
It does not :(

Code: Select all

logansfury@OptiPlex-5040:~$ while :; do echo "$(cat /sys/class/drm/card0/device/gpu_busy_percent)"; sleep 1; done
cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported

cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported

cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported

cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported

cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported

cat: /sys/class/drm/card0/device/gpu_busy_percent: Operation not supported

^C
logansfury@OptiPlex-5040:~
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
Post Reply

Return to “Compiz, Conky, Docks & Widgets”