The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Is there a way to change the degraded threshold for wireless in the i3status bar?

asked 2014-12-04 19:48:38 +0000

jefeyay gravatar image

Wireless status changes to degraded color when the quality is below 50%. Is there a way to change this threshold to something other than 50%?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-05 08:35:44 +0000

Adaephon gravatar image

There is no easy way:

  1. There is no configuration option for that in i3status.
  2. The value is not even hard coded into the i3status code, but it is retrieved with the iwlib library, which in turn seems to get it from the driver.

The wireless.h (from iwlib) has the following to say about avg_qual (which i3status uses - correctly so - as threshold value):

/* This should contain the average/typical values of the quality
 * indicator. This should be the threshold between a "good" and
 * a "bad" link (example : monitor going from green to orange).
 * Currently, user space apps like quality monitors don't have any
 * way to calibrate the measurement. With this, they can split
 * the range between 0 and max_qual in different quality level
 * (using a geometric subdivision centered on the average).
 * I expect that people doing the user space apps will feedback
 * us on which value we need to put in each driver... */
struct iw_quality avg_qual;

So unless there is a way to actually calibrate this setting now, it seems that the threshold i3status uses cannot be changed.


Of course you could always modify the code and compile i3status yourself.

edit flag offensive delete link more

Comments

Thank you for the detailed explanation.

jefeyay gravatar imagejefeyay ( 2014-12-05 12:32:38 +0000 )edit

Question Tools

Stats

Asked: 2014-12-04 19:48:38 +0000

Seen: 581 times

Last updated: Dec 05 '14