regolith-desktop
regolith-desktop copied to clipboard
i3xrocks-net-traffic not always showing when using wired ethernet
I’m using both wifi and a wired ethernet connection. For some reason, the wired ethernet is not always showing up as the i3xrocks-net-traffic applet (it stays blanch when not working).
One way to reproduce it is to boot the computer with Wifi disabled and with laptop wired. In that case, i3xrocks-net-traffic stay blank.
It then appears when enabling wifi (showing wifi connection). Then, if wifi is disabled and ethernet used, it usually switch to showing the ethernet connection.
I know it’s not very precise (sorry, it’s more a kind of heisenbug). Any help to debug this would be appreciated.
I had this bug with regolith 1.5. Upgrading to hirsute and 1.6 makes it worse (or at least, not better but I feel it’s really rare to see the eth connection in i3xrocks).
Thanks for testing out 1.6 @ploum! Hmm, I have not seen that issue myself. The status indicators are pretty easy to debug, you can just run the scripts directly from the command line and see the output. Given how you describe your issue, I'm guessing that some network configurations may be producing an error or no output. The scripts are in /usr/share/i3xrocks
and in this case you're looking for net-traffic
. (There is a mapping from status indicator to script in /etc/regolith/i3xrocks/conf.d
).
My suggestion is to wait until you next experience the issue. Run the net-traffic script from a terminal, and debug as needed. If you do not get helpful debugging output when running from the terminal, copy the script to a temp directory and add set -x
, run again, and copy the output to this issue.
Thanks for the info, will debug that next time I have the problem.
I think it may be related to my PR https://github.com/regolith-linux/regolith-i3xrocks-config/pull/119 At the time I wrote the PR multiple default interfaces caused the net-traffic script to not display any network stats.
@ploum can you verify if @aacero 's updates resolve the issue?
https://github.com/LapsedAcademicsInc/regolith-i3xrocks-config/blob/multi-net-interface/scripts/net-traffic
@ploum any update?
Hi,
I confirm that the bug still occurs. The problem seems to be the sleep+exit at line 24 of the script.
I echoed the variable just before the sleep and exit:
./net-traffic debug at line 24 before sleep: IF: enp0s31f6 wlp0s20f3 IF_PATH: /sys/class/net/enp0s31f6 wlp0s20f3
It looks like the whole problem is caused by having 2 interfaces
Yeah, that's the problem my patch fixes
On Mon, Jun 21, 2021, 10:34 Lionel Dricot @.***> wrote:
Hi,
I confirm that the bug still occurs. The problem seems to be the sleep+exit at line 24 of the script.
I echoed the variable just before the sleep and exit:
./net-traffic debug at line 24 before sleep: IF: enp0s31f6 wlp0s20f3 IF_PATH: /sys/class/net/enp0s31f6 wlp0s20f3
It looks like the whole problem is caused by having 2 interfaces
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/regolith-linux/regolith-desktop/issues/575#issuecomment-865083292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSDKDJ6AGQBNAOWPE3YPLTT5EYVANCNFSM45KR642Q .
I tested your patched net-traffic and I see the following problems :
-
It shows both interfaces, even when one of them is disabled (if wifi is disabled or if ethernet is not plugged, both are displayed).
-
Wifi connection is diplayed using the driver name, which is not useful and somewhat confusing. (mine is wlp0s20f3).
Original net-traffic only displays the wifi icon (I think it used to display the SSID but that may have changed).
Thanks for the feedback, I'll take a look
On Mon, Jun 21, 2021, 3:58 PM Lionel Dricot @.***> wrote:
I tested your patched net-traffic and I see the following problems :
It shows both interfaces, even when one of them is disabled (if wifi is disabled or if ethernet is not plugged, both are displayed). 2.
Wifi connection is diplayed using the driver name, which is not useful and somewhat confusing. (mine is wlp0s20f3).
Original net-traffic only displays the wifi icon (I think it used to display the SSID but that may have changed).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/regolith-linux/regolith-desktop/issues/575#issuecomment-865304016, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSDKFDTGAYDMI2XG5QZKLTT6KVBANCNFSM45KR642Q .
I can confirm the same report as @ploum.