Giter Site home page Giter Site logo

Mobile Broadband about i3status HOT 12 CLOSED

i3 avatar i3 commented on July 18, 2024
Mobile Broadband

from i3status.

Comments (12)

Fale avatar Fale commented on July 18, 2024 2

My .i3status.conf files has the following entries for networkign stuff:

wireless _first_ {
    format_up = "W: (%quality at %essid) %ip"
    format_down = "W: down"
}

ethernet _first_ {
    # if you use %speed, i3status requires root privileges
    format_up = "E: %ip (%speed)"
    format_down = "E: down"
}

wireless wwp0s20u4 {
    format_up = "M: %quality (%ip)"
    format_down = "M: down"
}

The first two entries come by default (I don't know if it's i3status default or Fedora default), while I added the third to have the Mobile Broadband showed as well.

As for the strace, I'm not able to attach it (since the gz format is not accepted by github -.-) so you can find it at https://fale.fedorapeople.org/strace.log.gz

from i3status.

stapelberg avatar stapelberg commented on July 18, 2024 1

@Fale You’re using “wireless wwp0s20u4”, but you should be using “ethernet wwp0s20u4”. Wireless is for 802.11 devices, and mobile broadband is an ethernet device to the Linux kernel.

from i3status.

stapelberg avatar stapelberg commented on July 18, 2024

Here are a couple of thoughts:

  • How is a mobile broadband connection different from just an ethernet connection? I.e., which information would you want to display aside from the IP address?
  • Why is this use-case not already covered by what NetworkManager (or similar tools) display?
  • Mobile broadband is certainly a feature which is not going to be used by the majority of i3status users. I think a far more common case is people using tethering with their mobile phones, hence just using a wireless or USB connection as far as the computer is concerned. I’m thinking it might make sense to put this into contrib/ instead of core i3status.

from i3status.

Fale avatar Fale commented on July 18, 2024

On Sat, Dec 05, 2015 at 02:55:43AM -0800, Michael Stapelberg wrote:

Here are a couple of thoughts:

  • How is a mobile broadband connection different from just an ethernet connection? I.e., which information would you want to display aside from the IP address?

Not very, but I tried to trick i3status to believe that the mobile
network is an eth, but something did not went according to plan.
I think is somehow more similar to a wireless connection than to a wired
one (ie: it has the signal strength).

  • Why is this use-case not already covered by what NetworkManager (or similar tools) display?

Gnome's network manager allows me to manage the mobile link, but does
not display it in i3status bar.

  • Mobile broadband is certainly a feature which is not going to be used by the majority of i3status users. I think a far more common case is people using tethering with their mobile phones, hence just using a wireless or USB connection as far as the computer is concerned. I’m thinking it might make sense to put this into contrib/ instead of core i3status.

Surely is not a feature that 100% of users will use since, as you said,
most people use tethering with their mobile phones


Reply to this email directly or view it on GitHub:
#85 (comment)

from i3status.

stapelberg avatar stapelberg commented on July 18, 2024

I tried to trick i3status to believe that the mobile network is an eth, but something did not went according to plan.

Can you be more specific about what happened here? I.e. what did you expect, what did you see instead? Can you provide an strace log of i3status? (use strace -f -tt -o /tmp/strace.log -s 2048 i3status, cancel after a couple of seconds using Ctrl-C, then provide /tmp/strace.log, possibly compressed).

from i3status.

stapelberg avatar stapelberg commented on July 18, 2024

In the strace log file you provided, the wireless block you added is not actually referenced in your /home/fale/.i3status.conf, but commented out:

order += \"wireless _first_\" 
#order += \"wireless wwp0s20u4\"
order += \"ethernet _first_\"
order += \"battery 0\"
[…]

Can you provide a new strace log after fixing your config? Also, can you describe what you see and what you expect?

from i3status.

Fale avatar Fale commented on July 18, 2024

Sorry

This is what I'm seeing
2015-12-10-165235_676x67_scrot

I was expecting the Mobile connection to be green, since I'm currently connected with it.

Attaching the strace.zip file
strace.zip

from i3status.

tnnn avatar tnnn commented on July 18, 2024

I'm using i3status with both internal 3G modem and external 3G USB tethering (through Android device). If I am not connected through my wired (twisted pair) interface, they are both reported as ethernet links (using 'ethernet first' directive). Even my VPN tunnel is reported through 'ethernet first' option.

from i3status.

Fale avatar Fale commented on July 18, 2024

@tnnn I use very rarely the wired connection, but what you are describing never happened to me

from i3status.

Fale avatar Fale commented on July 18, 2024

Thanks :) It did work.

from i3status.

151henry151 avatar 151henry151 commented on July 18, 2024

This still doesn't allow mobile broadband users to see 3G connection strength... it is more like a wireless connection than it is like an ethernet connection

from i3status.

kamazeuci avatar kamazeuci commented on July 18, 2024

I followed the instructions in this thread to get i3status to show me info about my wwp0s20u4 mobile broadband connection. And, yes, it works, but I can only get the IP. Apparently, you can't get the speed, even if you add the privileges using setcap (although this function appears to be obsolete since 2011).
More information here:
https://www.reddit.com/r/i3wm/comments/b7h809/i3status_not_showing_speed_for_mobile_broadband/

Does anybody have an idea of how to show the mobile broadband module download/upload speed on any i3 status bar?

thanks

from i3status.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.