From dc811e52c6303cac2199010e276b70c71473b721 Mon Sep 17 00:00:00 2001 From: Felipe Kinoshita Date: Sat, 12 Mar 2022 12:20:16 -0300 Subject: [PATCH] Add graphics page This page provides some information about your GPU, like: * a line chart for GPU usage, frequency and memory frequency * a pie chart for video memory usage and temperature * and a little overview to quickly check everything --- src/CMakeLists.txt | 1 + src/pages/graphics.page | 147 ++++++++++++++++++++++++++++++++++++++++ src/systemmonitor.kcfg | 2 +- 3 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 src/pages/graphics.page diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7f3bec6..b0f2c8e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -41,5 +41,6 @@ install(FILES pages/history.page pages/overview.page pages/processes.page + pages/graphics.page DESTINATION ${KDE_INSTALL_DATADIR}/plasma-systemmonitor ) diff --git a/src/pages/graphics.page b/src/pages/graphics.page new file mode 100644 index 0000000..e2a19fa --- /dev/null +++ b/src/pages/graphics.page @@ -0,0 +1,147 @@ +# SPDX-FileCopyrightText: 2022 Felipe Kinoshita +# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL + +[Face-67975136][Appearance] +chartFace=org.kde.ksysguard.piechart +title=Memory + +[Face-67975136][SensorColors] +gpu/gpu0/usedVram=61,174,233 + +[Face-67975136][Sensors] +highPrioritySensorIds=["gpu/gpu0/usedVram"] +lowPrioritySensorIds=[] +totalSensors=["gpu/gpu0/usedVram","gpu/gpu0/totalVram"] + +[Face-67975136][org.kde.ksysguard.piechart][General] +showLegend=false + +[Face-71517104][Appearance] +chartFace=org.kde.ksysguard.linechart +title=Usage + +[Face-71517104][SensorColors] +gpu/gpu0/usage=61,174,233 +lmsensors/acpitz-acpi-0/temp1=147,61,233 + +[Face-71517104][Sensors] +highPrioritySensorIds=["gpu/gpu0/usage"] +lowPrioritySensorIds=[] +totalSensors=["gpu/gpu0/usage"] + +[Face-71517104][org.kde.ksysguard.linechart][General] +showLegend=false + +[Face-84020832][Appearance] +chartFace=org.kde.ksysguard.linechart +title=Frequencies + +[Face-84020832][SensorColors] +gpu/gpu0/coreFrequency=61,174,233 +gpu/gpu0/memoryFrequency=206,61,233 + +[Face-84020832][Sensors] +highPrioritySensorIds=["gpu/gpu0/coreFrequency","gpu/gpu0/memoryFrequency"] + +[Face-95179344][Appearance] +chartFace=org.kde.ksysguard.textonly +title=Overview + +[Face-95179344][SensorColors] +gpu/gpu0/coreFrequency=198,61,233 +gpu/gpu0/name=233,129,61 +gpu/gpu0/temperature=217,61,233 +gpu/gpu0/usage=184,61,233 +gpu/gpu0/usedVram=233,61,230 + +[Face-95179344][Sensors] +highPrioritySensorIds=["gpu/gpu0/name","gpu/gpu0/usage","gpu/gpu0/coreFrequency","gpu/gpu0/usedVram","gpu/gpu0/temperature"] + +[Face-97014736][Appearance] +chartFace=org.kde.ksysguard.piechart +title=Temperature + +[Face-97014736][SensorColors] +gpu/gpu0/temperature=61,174,233 + +[Face-97014736][Sensors] +highPrioritySensorIds=["gpu/gpu0/temperature"] +lowPrioritySensorIds=[] +totalSensors=["gpu/gpu0/temperature"] + +[Face-97014736][org.kde.ksysguard.piechart][General] +showLegend=false + +[page] +Title=Graphics +actionsFace= +icon=monitor +margin=2 + +[page][row-0] +Title= +heightMode=balanced +isTitle=false +name=row-0 + +[page][row-0][column-0] +name=column-0 +noMargins= +showBackground=true + +[page][row-0][column-0][section-0] +face=Face-67975136 +isSeparator=false +name=section-0 + +[page][row-0][column-1] +name=column-1 +noMargins= +showBackground=true + +[page][row-0][column-1][section-0] +face=Face-95179344 +isSeparator=false +name=section-0 + +[page][row-0][column-2] +name=column-2 +noMargins= +showBackground=true + +[page][row-0][column-2][section-0] +face=Face-97014736 +isSeparator=false +name=section-0 + +[page][row-1] +Title= +heightMode=balanced +isTitle=false +name=row-1 + +[page][row-1][column-0] +name=column-0 +noMargins= +showBackground=true + +[page][row-1][column-0][section-0] +face=Face-71517104 +isSeparator=false +name=section-0 + +[page][row-2] +Title= +heightMode=balanced +isTitle=false +name=row-2 + +[page][row-2][column-0] +name=column-0 +noMargins= +showBackground=true + +[page][row-2][column-0][section-0] +face=Face-84020832 +isSeparator=false +name=section-0 diff --git a/src/systemmonitor.kcfg b/src/systemmonitor.kcfg index ec09b57..7468959 100644 --- a/src/systemmonitor.kcfg +++ b/src/systemmonitor.kcfg @@ -24,7 +24,7 @@ SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted false - overview.page,applications.page,history.page,processes.page + overview.page,applications.page,history.page,processes.page,graphics.page -- GitLab