29 Commits

Author SHA1 Message Date
Zola
e5c7547814 system-monitor-graph@rcassani: Add error handling for amdgpu (#1407)
* This commit adds error checking to prevent desklet or Cinnamon crashes
    when any of the used files are absent from the system, most often
    because the system doesn't have a gpu from AMD.

    It also switches amdgpu functions to use async function calls for
    file reading, like the rest of the desklet.

---------

Co-authored-by: rcassani <raymundo.cassani@gmail.com>
2025-02-20 16:30:27 -05:00
Raymundo Cassani
6bf74d5969 system-monitor-graph@rcassani: Bugfix: switch structures in JavaScript are fall-through (#1399)
* https://www.freecodecamp.org/news/fall-through-in-javascript-switch-statements/
2025-02-09 16:08:41 -05:00
Zola
1ca999d361 system-monitor-graph@rcassani: Add support for amdgpu and bump version (#1394)
* This commit adds support for showing GPU and VRAM usage on GPUs
  which make use of the amdgpu driver.

  It should be noted that GPU usage can be somewhat inaccurate
  because of the low sampling frequency.
2025-02-08 15:20:12 -05:00
Rick Calixte
ab49d244d3 Remove unnecessary permissions (#1216)
Ref: linuxmint/cinnamon#12174
2024-06-30 23:01:46 -04:00
Raymundo Cassani
794191e563 system-monitor-graph@rcassani: Reorder setting label's text, style and position (#1207)
* Fixes #1100
2024-06-24 16:21:56 -04:00
Georg Sieber
ffa89bedca system-monitor-graph@rcassani: Fix Stuttering (#938)
* read files directly without using 'cat'/'head' to improve performance and use communicate_utf8_async for async command execution

* bump version
2023-10-26 13:59:04 -04:00
Rick Calixte
16defd7701 system-monitor-graph@rcassani: Remove unsafe calls and desklet warning (#914)
Attempts to resolve #913
2023-09-03 16:51:30 -04:00
rcassani
5697cf0434 Add option to select binary (IEC) or decimal prefixes for data size 2022-12-23 18:20:01 -05:00
rcassani
27bcd58c11 Bugfix: HDD: Force string for filesystem label 2022-08-20 12:53:53 -04:00
rcassani
ae9d092953 Minor code cleanup 2022-06-11 17:02:18 -04:00
rcassani
e3cfd55602 Use wait_async for get_hdd_values 2022-06-11 16:47:13 -04:00
rcassani
8bca29b783 Use wait_async for get_swap_values 2022-06-11 16:21:55 -04:00
rcassani
ff0b99aff6 Use wait_async for get_ram_values 2022-06-11 16:21:46 -04:00
rcassani
e4e7eb9c81 Use wait_async for get_cpu_use 2022-06-11 16:19:45 -04:00
rcassani
d65250d7e6 Use wait_async for get_nvidia_gpu_mem 2022-06-11 16:19:35 -04:00
rcassani
36df869c64 Use wait_async for get_nvidia_gpu_use 2022-06-11 15:22:51 -04:00
Georg Sieber
059839525a fix graph if value is NaN (e.g. if GPU is selected but no NVIDIA card detected) 2022-04-19 14:47:13 +02:00
Georg Sieber
52f5c61f16 small fix for blurry text (occurs if the calculated position is not an integer) 2022-04-19 14:36:41 +02:00
rcassani
119004ba4c Solve: bottom alignment of the text elements 2022-04-18 15:34:19 -04:00
Georg Sieber
59f9bb04d9 fix text on HiDPI displays, closes #762 2022-04-18 11:27:45 +02:00
Georg Sieber
7425e551b7 fix typo 2022-04-17 23:34:50 +02:00
Georg Sieber
381e652959 add swap option 2022-04-17 23:29:23 +02:00
rcassani
0c1a4793e4 Add localized strings and .pot file 2021-11-28 13:54:13 -05:00
Raymundo Cassani
e1e0182718 Add capacity to monitor Usage and Memory in NVIDIA GPUs 2020-12-31 14:32:23 -05:00
Raymundo Cassani
ad92c442dd Add customization for HDD label 2020-10-17 17:15:07 -04:00
Raymundo Cassani
7214283c7b Fix the position of the labels 2020-10-17 17:14:43 -04:00
Raymundo Cassani
754cf494b8 Update in calculating HDD total and free values, now presented in GB 2020-06-02 11:23:17 -04:00
Raymundo Cassani
5af8824823 Update RAM calculation. Used = Total - Available, and presented in GiB 2020-06-02 11:14:32 -04:00
Raymundo Cassani
70bcd0b6dd Add Desklet system-monitor-graph@rcassani 2020-05-31 19:13:48 -04:00