plasma-applet-netspeed-widget icon indicating copy to clipboard operation
plasma-applet-netspeed-widget copied to clipboard

The widget cannot display the netspeed correctly in new version of plasma

Open levihuayuzhang opened this issue 3 years ago • 21 comments

Thanks for reading.

Operating System: Arch Linux KDE Plasma Version: 5.22.1 KDE Frameworks Version: 5.83.0 Qt Version: 5.15.2 Kernel Version: 5.12.10-arch1-1 (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics Memory: 15.1 GiB of RAM Graphics Processor: AMD RENOIR

The WI-FI adapter: Intel AX200 Widget version: 1.9

The widget does not work neither build from source or installed in Plasma's Get New Widget. The widget just show the netspeed of upload and download as 0 kb/s all the tiime.

levihuayuzhang avatar Jun 17 '21 10:06 levihuayuzhang

I am having the same problem as well, it looks like the applet are unable to detect the network Interface.. Screenshot_20210617_202226

kamfretoz avatar Jun 17 '21 13:06 kamfretoz

I too have this problem :(

potatogod3000 avatar Jun 17 '21 19:06 potatogod3000

Thanks for reporting this issue, I'll have a look at it on the weekend.

dfaust avatar Jun 17 '21 19:06 dfaust

Thank you :) This problem only started occurring after updating Plasma to 5.22. This also occurs in another widget named Network Monitor (https://store.kde.org/p/998914/)

potatogod3000 avatar Jun 17 '21 19:06 potatogod3000

I assume it's related to ksysguard as a backend, which is no longer a dependency for plasma-systemmonitor, so it should be tied to ksystemstats instead. (If I install ksysguard the widget works as before)

https://archlinux.org/packages/extra/x86_64/plasma-systemmonitor/

jansuX2 avatar Jun 18 '21 08:06 jansuX2

Yes! I can confirm it. I installed ksysguard and now it works as intended :)

potatogod3000 avatar Jun 18 '21 18:06 potatogod3000

Looks like the library that is needed is libKSysGuardSensorFaces.so, which is part of the package libksysguard on Arch Linux (libksysguard5 on openSUSE). On openSUSE the package plasma5-workspace requires this lib. On Arch Linux that's not the case. The dependency for ksysguard has been removed recently (https://github.com/archlinux/svntogit-packages/commit/70e4af01582b90d2bff65ca67b3917751a016cc1#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a). Maybe it should have been replaced with a dependency on libksysguard.

Are you all using Arch Linux? Does it work when removing ksysguard but keeping libksysguard?

dfaust avatar Jun 19 '21 12:06 dfaust

Also plasma-workspace contains the systemmonitor engine, which is used by plasma-applet-netspeed-widget. I'm curious what happens if you inspect it with plasmaengineexplorer. I guess it should throw an error if libksysguard is not installed. Would someone on Arch Linux like to try this?

dfaust avatar Jun 19 '21 12:06 dfaust

Looks like the library that is needed is libKSysGuardSensorFaces.so, which is part of the package libksysguard on Arch Linux (libksysguard5 on openSUSE). On openSUSE the package plasma5-workspace requires this lib. On Arch Linux that's not the case. The dependency for ksysguard has been removed recently (archlinux/svntogit-packages@70e4af0#diff-3e341d2d9c67be01819b25b25d5e53ea3cdf3a38d28846cda85a195eb9b7203a). Maybe it should have been replaced with a dependency on libksysguard.

Are you all using Arch Linux? Does it work when removing ksysguard but keeping libksysguard?

On the current version of Arch Linux, if only has libksysguard installed, the widget seems doesn't work. But, after I installed ksysguard, the widget just back alive😄. I guess the widget maybe need ksysguard in someway.

levihuayuzhang avatar Jun 19 '21 20:06 levihuayuzhang

Same than @Tanche-Z here. With Arch Linux, libksysguard doesn't make the widget work. So the only way to make it work now is to install ksysguard :(

carmilso avatar Jul 12 '21 07:07 carmilso

This bus appear to Fedrao 34 also. And install ksysguard/libksysguard can't solve this problem. Here are some logs that I can't comfirm is asseciation with netpseed:

org.kde.ksysguard.plugin.network: Helper process terminated abnormally!
org.kde.ksysguard.plugin.network: "The process doesn't have permission to open the capture source\n"

cathaysia avatar Jul 12 '21 23:07 cathaysia

This bus appear to Fedrao 34 also. And install ksysguard/libksysguard can't solve this problem. Here are some logs that I can't comfirm is asseciation with netpseed:

org.kde.ksysguard.plugin.network: Helper process terminated abnormally!
org.kde.ksysguard.plugin.network: "The process doesn't have permission to open the capture source\n"

Sorry, install package ksysguard can solve this bug, but a reboot needed.

cathaysia avatar Jul 13 '21 01:07 cathaysia

Is there any plan to fix this with no need to install ksysguard?. Just to know

carmilso avatar Jul 15 '21 09:07 carmilso

Is there any plan to fix this with no need to install ksysguard?. Just to know

I don't think that's possible. It looks like ksysguard contains the data engine (which is weird). But I will try to add a warning if the data engine doesn't exist. I just don't know when I will have time for that.

dfaust avatar Jul 26 '21 17:07 dfaust

Is there any plan to fix this with no need to install ksysguard?. Just to know

i setup it arch linux working better...

ekremx25 avatar Aug 10 '21 17:08 ekremx25

Still doesn't work with 5.23.3. I use Debian Testing, which does not offer ksysguard in its repositories anymore. So I guess no solution at all for me right now.

Freeedim avatar Nov 26 '21 09:11 Freeedim

I'm having the same problem here and if I install ksysguard then my wifi doesn't work.

DarwinDemian avatar Mar 13 '22 20:03 DarwinDemian

Just a quick status update. The widget must be ported to the Sensor [1] API. If somebody wants to take a stab at it, they are welcome. I cannot promise that I will find the time.

[1] https://api.kde.org/plasma/libksysguard/html/classKSysGuard_1_1Sensor.html

dfaust avatar Mar 23 '22 19:03 dfaust

Ksysguard is not available to install anymore (Kubuntu 22.04)

Ahmed-E-86 avatar Apr 28 '22 12:04 Ahmed-E-86

Any suggestion on how to use netspeed on Kubuntu 22.04 (no ksysguard installable)? I'm missing it so much ...

wokawoka avatar Jul 20 '22 14:07 wokawoka

I manually downloaded and installed ksysguard and its dependencies from https://packages.ubuntu.com/ and now netspeed widget works correctly see here

wokawoka avatar Jul 20 '22 14:07 wokawoka

Was this fixed or not?

ppwwyyxx avatar Dec 12 '22 04:12 ppwwyyxx

No, it's not fixed.

dfaust avatar Dec 12 '22 08:12 dfaust

I'm running KDE/Plasma 5.27.4 on both Ubuntu 22.10 and Kali Linux 2023.1 (both are running in Parallels VMs on a MacBook Pro with Apple Silicon using the recommended Shared Networking). The network speed widget works great under Kali but not under Ubuntu. The perhaps key difference between the two is that the ethernet interface in Ubuntu is enp0s5 and in Kali it's eth0, which I believe indicates that Ubuntu is using Netplan while Kali is using the traditional networking protocol. Perhaps this is helpful in identifying and hopefully solving the problem. (I notice that the System Monitor under Ubuntu is also not able to see enp0s5.) It would be super to get this nice widget functioning again under Ubuntu!

TXLogic avatar May 09 '23 13:05 TXLogic

This problem has existed for a long time in NixOS. Installing ksysguard (libksysguard) has no effect. Does anyone use NixOS? Is there a solution to this problem?

Hentioe avatar Jul 22 '23 18:07 Hentioe

Hey everybody. Thank you very much for your interest in the netspeed widget. I'm sorry, that it took so very long to fix this issue. I just released version 2.0, which uses Linux's /proc/net/dev interface and I hope that it works for everybody. If you still have issues, please don't hesitate to open a new issue.

dfaust avatar Aug 04 '23 14:08 dfaust

Hey everybody. Thank you very much for your interest in the netspeed widget. I'm sorry, that it took so very long to fix this issue. I just released version 2.0, which uses Linux's /proc/net/dev interface and I hope that it works for everybody. If you still have issues, please don't hesitate to open a new issue.

@dfaust I updated to v2.0 but nothing changed on my up-to-date Debian testing (Plasma 5.27.5). Both upload and download values are still stuck to 0. Should I open a new issue?

Freeedim avatar Aug 04 '23 15:08 Freeedim

Should I open a new issue?

Yes, please.

dfaust avatar Aug 04 '23 15:08 dfaust

Debian 12.4. As of this date (1/15/24) the netspeed plasmoid still doesn't work, but one called "network usage", that looks exactly the same (needs to be DLed from the "Get New Widgets" -> "Download New Plasma Widgets") works fine, with this caveat. It apparently grabs the kernel interface file/pipe exclusively, which means that if it is started first, it works but prevents another plasmoid: Network Speed from getting data. If "Network Speed" is started first, it works but prevents "Network usage" from getting data. So, as long as you have only one plasmoid getting network speeds it works fine. Happily using "Network usage" as I type.

afc54 avatar Jan 15 '24 18:01 afc54