Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

- - - - -

Internet upload/download speeds in Conky / Lua

  • Please log in to reply
No replies to this topic

#1 Angoid


  • Security Colleague
  • 299 posts
  • Gender:Male
  • Location:East Midlands UK
  • Local time:05:37 PM

Posted 19 July 2017 - 03:40 PM

Hope it's OK to post this here, but I thought this might be useful.


I set up Conky / Lua on my Ubuntu / Mint MATE / Mint Cinnamon / ZorinOS systems to display (amongst other things) the download / upload speeds.  I had this piece of code here:

${font Nasalization:bold:size=11}${color Tan1}NETWORK ACTIVITY ${hr 2}

${color DarkSlateGray}Up: ${upspeedf eth0}${alignr}Down: ${downspeedf eth0}

${upspeedgraph eth0 80,160 -l}$alignr${downspeedgraph eth0 80, 160 -l}

But was always getting zero upload and download speeds, regardless of which Linux I was booted into and regardless of what I was doing online.  Zero.  Nothing in the graphs.  Zilch.  Zip.  Nada.


I hunted around and saw lots of suggestions online, all of which were useless.  Then I ran an ifconfig to see what was going on with my Internet connectivity, and saw this:



enp0s10   Link encap:Ethernet  HWaddr 00:1d:72:ad:c2:c1  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::63b8:afac:c255:c161/64 Scope:Link
          RX packets:10951 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7090 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13796188 (13.7 MB)  TX bytes:840599 (840.5 KB)

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1365 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1365 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:172179 (172.1 KB)  TX bytes:172179 (172.1 KB)

Note, no mention of eth0 at all, which I thought odd because I was fairly sure that wired connectivity went through eth0.


However, I did notice this reference to enp0s10.


Thus I changed every instance of eth0 with enp0s10, thus:

${font Nasalization:bold:size=11}${color Tan1}NETWORK ACTIVITY ${hr 2}

${color DarkSlateGray}Up: ${upspeedf enp0s10}${alignr}Down: ${downspeedf enp0s10}

${upspeedgraph enp0s10 80,160 -l}$alignr${downspeedgraph enp0s10 80, 160 -l}

Re-launched Conky, and found that the network activity section was being populated exactly as it should be.


Hope this helps anyone facing the same issue anyway!

Helping a loved one through a mental health issue?  Remember ALGEE...

Assess the risk | Listen nonjudgementally | Give reassurance and info | Encourage professional help | Encourage self-help and support network

BC AdBot (Login to Remove)


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users