Summary: | plasma-nm applet constantly uses 2% cpu and generates 25 wakeup events/s | ||
---|---|---|---|
Product: | [Plasma] plasma-nm | Reporter: | LuRan <hephooey_dev> |
Component: | applet | Assignee: | Jan Grulich <jgrulich> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dima, jgrulich, kokoko3k, lukas |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/plasma-nm/852b33ed2f2065acd4921873e71a1d730cb645f1 | Version Fixed In: | 5.2.0 |
Sentry Crash Report: |
Description
LuRan
2014-04-23 07:32:45 UTC
Is this really a problem? It's probably due to the connection speed which is changing every second, but if I turn this off, next time it could be caused by signal strength and so on. It helps to reduce the power consumption for about 1W, thus lowers the power consumption of my laptop from 10W to 9W in idle, it is a 10% improvement. I was not actively using the network and the upload and download is 0 all the time when I wrote the bug report so I think something is busy even when the number are not changing. Since those information are only visible when the main window is activated, can we only update them when they are visible? The only thing visible all the time is the signal strength, as it is not that crucial information everyone tend to pay a close attention to, maybe update them every 10s or so is enough? Git commit c3a11097c3c87bdbc550966f9e101ea6ff28715e by Jan Grulich. Committed on 11/09/2014 at 13:26. Pushed by grulich into branch 'master'. Check download/upload speed from dataengine in QML code Moving it from the model allows us to stop checking for changes when the applet is collapsed. M +33 -10 applet/contents/ui/ConnectionItem.qml M +3 -14 libs/models/networkmodel.cpp M +1 -2 libs/models/networkmodel.h M +5 -78 libs/models/networkmodelitem.cpp M +3 -23 libs/models/networkmodelitem.h http://commits.kde.org/plasma-nm/c3a11097c3c87bdbc550966f9e101ea6ff28715e *** Bug 339065 has been marked as a duplicate of this bug. *** *** Bug 339598 has been marked as a duplicate of this bug. *** Will this work with kde4? I'm having some troubles compiling from git source without KF5 Unfortunately it won't work with kde4, because we didn't backport this fix. I would like to keep plasma-nm in KDE 4 as it is to be sure it works and there are no other issues. Could i ask you to reconsidert that or maybe tell us a way to slow down the polling? thank you in advance Ok, while we'll wait for KDE5, i found that kdeplasma-applets-networkmanagement (i think it was knetworkmanager applet) seems a fair replacement for plasma-nm and use almost 0% cpu. Git commit 852b33ed2f2065acd4921873e71a1d730cb645f1 by Jan Grulich. Committed on 11/09/2014 at 13:26. Pushed by grulich into branch '0.9.3'. Check download/upload speed from dataengine in QML code Moving it from the model allows us to stop checking for changes when the applet is collapsed. M +27 -11 applet/declarative/contents/ui/ConnectionItem.qml M +6 -0 applet/declarative/contents/ui/main.qml M +3 -14 libs/models/networkmodel.cpp M +1 -2 libs/models/networkmodel.h M +5 -82 libs/models/networkmodelitem.cpp M +3 -21 libs/models/networkmodelitem.h http://commits.kde.org/plasma-nm/852b33ed2f2065acd4921873e71a1d730cb645f1 @Antonio: I backported the fix from Plasma 5 to KDE 4. Can you please test it to see whether it works as expected? I'll test as soon as possible. Meanwhile i thank you very much for your efforts. Hi again and sorry for the late reply. I'was not totally sure how to download it, so i made a snapshot from your commit: http://quickgit.kde.org/?p=plasma-nm.git&a=snapshot&h=852b33ed2f2065acd4921873e71a1d730cb645f1 and it builded well. It seems the issue is solved, many thanks. Anyway, on an average of 300 seconds, top reported a plasma-desktop usage of: 0.111% (+0.000%) with a clean systray 0.263% (+0.152%) with kdeplasma-applets-networkmanagement 0.345% (+0.234%) with plasma-nm ..So there is still at least a 0.082% margin of improvement :D Again, thank you for your hard work. Well, plasma-nm compared to the previous NM applet updates constantly quite a lot values in the model, like signal strenght, bitrate and so on. That probably takes more cpu than before. |