Closed GM-Script-Writer-62850 closed 2 years ago
Hello,
Could you try to set the network sensor to blank for real match all
(i need to make an fix for allow that).
Thanks
when i set it to blank i get a enp3s0
in the field, this just shows 0KB/s for both up/down, as i showed using enp42s0
does not work any better than blank
$ ifconfig
enp42s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.0.145 netmask 255.255.255.0 broadcast 10.0.0.255
inet6 fe80::44a0:c100:cdf2:2b1b prefixlen 64 scopeid 0x20<link>
ether d8:bb:c1:11:96:e0 txqueuelen 1000 (Ethernet)
RX packets 695 bytes 728000 (728.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 617 bytes 65339 (65.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 145 bytes 13234 (13.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 145 bytes 13234 (13.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp41s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 3c:9c:0f:80:a1:74 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
$ ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp42s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether d8:bb:c1:11:96:e0 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.145/24 brd 10.0.0.255 scope global dynamic noprefixroute enp42s0
valid_lft 86150sec preferred_lft 86150sec
inet6 fe80::44a0:c100:cdf2:2b1b/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlp41s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 3c:9c:0f:80:a1:74 brd ff:ff:ff:ff:ff:ff
is there more info i can get for you figure out the issue? there is not some dependency that could be missing is there?
No, i just need investigate why that doesn't work, i think that come from here https://github.com/orblazer/plasma-applet-resources-monitor/blob/d6c27ffa495cb701499d471512a6d357bc736516/package/contents/ui/main.qml#L218
I go work on it today or tomorrow.
Unable to reproduce this using blank on my other system, maybe cause the other system has a 2.5G lan?
Unaffected
24:00.0 Ethernet controller: Intel Corporation 82572EI Gigabit Ethernet Controller (Copper) (rev 06)
Subsystem: Intel Corporation PRO/1000 PT Server Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 43
IOMMU group: 17
Region 0: Memory at fca40000 (32-bit, non-prefetchable) [size=128K]
Region 1: Memory at fca20000 (32-bit, non-prefetchable) [size=128K]
Region 2: I/O ports at f000 [size=32]
Expansion ROM at fca00000 [disabled] [size=128K]
Capabilities: [c8] Power Management version 2
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=1 PME-
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee00000 Data: 0000
Capabilities: [e0] Express (v1) Endpoint, MSI 00
DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset- SlotPowerLimit 0.000W
DevCtl: CorrErr+ NonFatalErr+ FatalErr+ UnsupReq+
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 256 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- NonFatalErr+ FatalErr- UnsupReq+ AuxPwr+ TransPend-
LnkCap: Port #3, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <4us, L1 <64us
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s (ok), Width x1 (ok)
TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
Capabilities: [100 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
AERCap: First Error Pointer: 14, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
HeaderLog: 04000001 0000200f 24070000 00000000
Capabilities: [140 v1] Device Serial Number 00-1b-21-ff-ff-85-2d-8b
Kernel driver in use: e1000e
Kernel modules: e1000e
Affected
2a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 04)
Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8125 2.5GbE Controller
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 32
IOMMU group: 6
Region 0: I/O ports at f000 [size=256]
Region 2: Memory at fcd00000 (64-bit, non-prefetchable) [size=64K]
Region 4: Memory at fcd10000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [50] MSI: Enable- Count=1/1 Maskable+ 64bit+
Address: 0000000000000000 Data: 0000
Masking: 00000000 Pending: 00000000
Capabilities: [70] Express (v2) Endpoint, MSI 01
DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 26.000W
DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
MaxPayload 128 bytes, MaxReadReq 4096 bytes
DevSta: CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr+ TransPend-
LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s unlimited, L1 <64us
ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 5GT/s (ok), Width x1 (ok)
TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Range ABCD, TimeoutDis+ NROPrPrP- LTR+
10BitTagComp- 10BitTagReq- OBFF Via message/WAKE#, ExtFmt- EETLPPrefix-
EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
FRS- TPHComp+ ExtTPHComp-
AtomicOpsCap: 32bit- 64bit- 128bitCAS-
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR- OBFF Disabled,
AtomicOpsCtl: ReqEn-
LnkCap2: Supported Link Speeds: 2.5-5GT/s, Crosslink- Retimer- 2Retimers- DRS-
LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete- EqualizationPhase1-
EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
Retimer- 2Retimers- CrosslinkRes: unsupported
Capabilities: [b0] MSI-X: Enable+ Count=32 Masked-
Vector table: BAR=4 offset=00000000
PBA: BAR=4 offset=00000800
Capabilities: [d0] Vital Product Data
pcilib: sysfs_read_vpd: read failed: No such device
Not readable
Capabilities: [100 v2] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
HeaderLog: 00000000 00000000 00000000 00000000
Capabilities: [148 v1] Virtual Channel
Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
Arb: Fixed- WRR32- WRR64- WRR128-
Ctrl: ArbSelect=Fixed
Status: InProgress-
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=01
Status: NegoPending- InProgress-
Capabilities: [168 v1] Device Serial Number 01-00-00-00-68-4c-e0-00
Capabilities: [178 v1] Transaction Processing Hints
No steering table available
Capabilities: [204 v1] Latency Tolerance Reporting
Max snoop latency: 0ns
Max no snoop latency: 0ns
Capabilities: [20c v1] L1 PM Substates
L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
PortCommonModeRestoreTime=150us PortTPowerOnTime=150us
L1SubCtl1: PCI-PM_L1.2- PCI-PM_L1.1- ASPM_L1.2- ASPM_L1.1-
T_CommonMode=0us LTR1.2_Threshold=0ns
L1SubCtl2: T_PwrOn=10us
Capabilities: [21c v1] Vendor Specific Information: ID=0002 Rev=4 Len=100 <?>
Kernel driver in use: r8169
Kernel modules: r8169
from dmesg
[ 8501.300925] r8169 0000:2a:00.0: invalid VPD tag 0x00 (size 0) at offset 0; assume missing optional EEPROM
That doesn't make sense, if KDE could see the usage.
For know could you list the sensors with bellow step (for have the right values and i don't know other way) :
console.log(source)
after that line https://github.com/orblazer/plasma-applet-resources-monitor/blob/d6c27ffa495cb701499d471512a6d357bc736516/package/contents/ui/main.qml#L198scripts/test.sh
Thanks.
wait a min you really use the same debug call as in a web browser... guess i will add a few calls
qml: 0
qml: needConnect (line 245) true
qml: needConnect (line 245) false
qml: needConnect (line 245) false
qml: needConnect (line 245) false
qml: needConnect (line 245) false
qml: needConnect (line 245) false
qml: Requested info network/interfaces/enp42s0/receiver/data
qml: match (line 233): [network/interfaces/enp42s0/receiver/data,receiver]
qml: needConnect (line 245) true
qml: Requested info network/interfaces/enp42s0/transmitter/data
qml: match (line 233): [network/interfaces/enp42s0/transmitter/data,transmitter]
qml: needConnect (line 245) true
qml: Requested info network/interfaces/wlp41s0/receiver/data
qml: match (line 233): [network/interfaces/wlp41s0/receiver/data,receiver]
qml: needConnect (line 245) true
qml: Requested info network/interfaces/wlp41s0/transmitter/data
qml: match (line 233): [network/interfaces/wlp41s0/transmitter/data,transmitter]
qml: needConnect (line 245) true
qml: needConnect (line 245) false
I think i found the issue, the data is being replaced not combined with the wifi card's data rate
that said for some reason I can't get the line graph working, only numbers work in the panel, while it works fine on the other system
https://i.imgur.com/HWXnK7O.png (i do not think that is working as intended, but progress is progress)
I tested this by disabling the wifi card in the bios
edit: and now the graph magically shows data... setting the max data rate made it fit in the widget (have you even tried to type the speed, OMG what a PITA) nobody is gonna hold that up arrow to go from 10 to over 100k
https://i.imgur.com/oO2rIkr.png
Issues found:
Oh, thanks. I have never try with multiple NIC so that explain why i have this issue.
That its great idea for manage speed ! 👍
Thanks and i go work on ASAP !
Now that works so much better, nice job and that looks like it was a lot more work than I expected it to be
I have not restarted since updating on one system yet but i think i found something unintended that could be made into a feature. Without restarting the widget the I/O on the widget (in the measured reading) is still in MB/s and KB/s, you could make doing that a option (at the very least it may help more people know that Mbps != MBps
)
While I have not restarted it yet but on my system with 1 NIC if I check the interface it will not be checked if I close settings and go back in it remains unchecked
No that was not an big work for support Kbps
but i have refactor my codes with better components for the features ;)
Since 2.3.0
we can choose between Kbps
and KiB/s
but that could be and improvement to add also KBps
yes.
For your issues if i have understand :
when i said without restart i mean updated to the new one with without restating the widget
keep in mind i still have not restarted the widget at this time since updating to the new version, buy if i check my single NIC apply and re open the config until it is unchecked, not a issue with multiple NICs (at least after restarting the widget after the update)
There are a few things that could be polished a bit more like when you switch from MB/s to Mbps the value converts to the equivalent speed (probably should only do this if the value is in the list of speed choices, if it is not the user probably forget to change units before inputting the number) and the auto formatting while typing numbers as a custom speed is still not great
The Option to show the graph speed units should be on the General tab under charts IMO
If you are gonna offer down to 100Kbps as a option you may want to add 54Kbps for those dial up networks
note that after the widget is restarted the checkbox settings checkboxes hold
config.zip patch: Move network speed setting in general page
figure i am bad at explaining it
config -> data -> network set receive/send speed to 1Gbps (selected menu) apply general -> back to data -> network custom 1000.448
set to 1000.000 apply
leave and come back 1000.448
Describe the bug I put this applet in my top panel and i was just copying my music library over ssh and noticed it showed 0 activity look at the settings, set the correct device name, still nothing set to to all and still nothing
To Reproduce Configure applet/widget to show network activity and see nothing
Expected behavior See activity of network
Screenshots see attached screencapture 2021-11-21 14-44-03.mkv.zip
Versions (please complete the following information):
Additional context Add any other context about the problem here.