Bug 172784

Summary: Lack of simple system monitor plasmoid
Product: [Unmaintained] plasma4 Reporter: Michał D. (Emdek) <emdeck>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: aseigo, df5jt, dhaumann, emdeck, kde-2011.08, matthew
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: KDE System monitor

Description Michał D. (Emdek) 2008-10-14 10:32:05 UTC
Version:            (using KDE 4.1.2)

There is no substitute in kdebase or kdeplasma-addons for "System Monitor" kicker applet (simple, with three bars). There exists one at http://www.kde-look.org/content/show.php/System+Status?content=74891 but it lacks tool tip, uses not transparent background (sometimes unreadable) and is usually not packaged by distributions.
I think that there should be "official" replacements for all applets bundled with kicker.
Comment 1 Michał D. (Emdek) 2008-12-25 13:04:57 UTC
There is now nice plasmoid in playground:
http://websvn.kde.org/trunk/playground/base/plasma/applets/systemstatus/

I wish that it will eventually move to kdebase for KDE 4.3 and someone would rework tool tip to make it updateable, for example every second, using QTimer (then you don't need to move mouse to see how numbers change). I could prepare patch if someone is interested.
Comment 2 Aaron J. Seigo 2008-12-26 20:13:22 UTC
the plan is to add that plasmoid in 4.3. patches are quite welcome; sending such patches to plasma-devel@kde.org is probably the best bet, as the author of that plasmoid is also there
Comment 3 Michał D. (Emdek) 2008-12-26 21:55:36 UTC
Thanks for information :-).
I'll try to prepare the patch soon.
Comment 5 Dominik Haumann 2008-12-26 23:59:07 UTC
SVN commit 901928 by dhaumann:

- remove kernel (slab) memory usage (as mentioned on the mailing list)
- update the tooltip's content when dataUpdated() is called. Additionally
  call ToolTipManager::show(this) then to make sure the tooltip does not vanish.
  Drawback: sometimes a tooltip stays forever then. Any idea how to fix this?

CCBUG: 172784


 M  +69 -77    coloursconfig.ui  
 M  +19 -67    systemloadviewer.cpp  
 M  +3 -5      systemloadviewer.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=901928
Comment 6 Aaron J. Seigo 2008-12-27 00:23:44 UTC
"update the tooltip's content when dataUpdated() is called. Additionally call ToolTipManager::show(this) then to make sure the tooltip does not vanish."

just today, actually, i made it so that the tooltip resets the autohide timeout whenever the data is updated in it. so if your updates are less than 3s apart, it will never disappear.

alternatively, to have a non-autohiding tip, call setAutoHide(false) on your ToolTipContent before passing it to the ToolTipManager =)
Comment 7 Michał D. (Emdek) 2009-02-16 11:13:04 UTC
There is probably something wrong with memory usage of Plasma when running this plasmoid (version from kdereview).
It's slowly (much faster when showing tool tip) but continuously increasing every time when it's updating (small amount but after some hours of use it could be big...).
I'm using smaller interval (500 ms) and applet shows usage of two "cores" (P4 with HT). Fully repeatable behavior, but not always starts when adding applet (maybe it starts when CPU usage becomes bigger, but does not stop later).
This doesn't happen when I remove it (or is much smaller and I didn't see it).
Maybe it's general Plasma problem (KDE 4.2 RC), I don't know...
Comment 8 Dominik Haumann 2009-02-17 12:15:46 UTC
Will try to reproduce, for the first glance it's not obvious where things go wrong. Maybe valgrind will help to detect mem leaks in case there are any. Let's see...
Comment 9 Michał D. (Emdek) 2009-02-17 12:17:58 UTC
Yes, I know, I've looked into source and didn't find anything strange. :-/
Comment 10 Dominik Haumann 2009-02-20 15:37:56 UTC
I cannot reproduce with trunk (r927719). Emdek, can you please run the applet in its own process: plasmoidviewer systemloadviewer

Then you can see whether the memory usage grows. For me it stays constant (testet several minutes), so I think this is ok.

Can anyone else reproduce?
Comment 11 Michał D. (Emdek) 2009-02-20 21:24:51 UTC
Yes, I've tested it this way before, and there is similar effect, but after some time it stops for a while and sometimes after some time starts again.
Maybe this problem happens only on my current setup (KDE 4.2 RC)...

I'll upgrade my system soon (this or next weekend) to KDE 4.2 (but with Qt 4.5 snapshot) and I'll test it again.
Comment 12 Michał D. (Emdek) 2009-03-17 21:33:58 UTC
I've checked it using KDE 4.2.1 with Qt 4.5.0 (Mandriva 2009.1 RC) and it looks good now, memory usage is nearly not incrementing.

Thanks for finally moving it to kdeplasma-addons. :-)
Comment 13 Pino Toscano 2009-05-02 14:35:44 UTC
*** Bug 191340 has been marked as a duplicate of this bug. ***
Comment 14 Peter Lemken 2009-05-02 17:09:51 UTC
Created attachment 33294 [details]
KDE System monitor
Comment 15 Peter Lemken 2009-05-02 17:10:21 UTC
Forgive me for saying so, but what exactly is the point of this plasmoid?

It lacks all the basic functions that were present in the KDE3 pendant. There are no grids to represent absolute values and I have not been able to find out whether the plotted values are absolute or relative. The little windows cannot be resized horizontally, they have no labels whatsoever and one cannot change the color. I currently use the plasmoid to monitor system load, CPU0 and CPU1 and all I can see is a continuous gray flow on a gray background that basically tells me that the system is alive, three times.

The plasmoid lacks integration with ksysguard and there is no plasmoid to put monitors from ksysguard into the panel. KDE3 used drag and drop with that, lets you choose colors, absolute ranges, labels and grids and lets you chose every single available sensor from ACPI to network throughput.

I can't find any of this functionality in the currentline up of plasmoids applets and I dearly miss that. Have I overlooked something?
Comment 16 Dominik Haumann 2009-05-02 17:41:38 UTC
What you want is a different plasmoid than this one. The key feature about this one is to give you feedback about what's happening: still compiling? system busy? look at the cpu bar. running out of memory? look at mem bar. etc...

So your request is an entirely different one :) Please fill a new wish report for that. The valid part is that showing cpu/ram/swap usage of a remote machine would indeed be a nice feature. But this would again be a new bug report. This one is closed: The system load viewer is included in KDE 4.3.