You are not logged in.
I'm writing a widget for awesomeWM that displays my current wifi signal. The guide I'm using says to check the value of /sys/class/net/wlan0/wireless/link however, I don't have a /wireless/ directory. Some Google suggests this was changed a while back in the Linux kernel, but I can't find the new way to get it.
Last edited by adeligen (2012-10-25 20:01:27)
Offline
What if you use "iwconfig" like conky does and parse the values?
iwconfig wlan0 | grep -i quality
Link Quality=70/70 Signal level=-30 dBm
Or I think you have some info in /proc/net/wireless:
cat /proc/net/wireless
Inter-| sta-| Quality | Discarded packets | Missed | WE
face | tus | link level noise | nwid crypt frag retry misc | beacon | 22
wlan0: 0000 70. -31. -256 0 0 0 0 0 0
EDIT: found a simple script to parse info in /proc/net/wireless that you could use:
watch -n 1 "awk 'NR==3 {print \$3 \"00 %\"}''' /proc/net/wireless"
Source: http://www.upubuntu.com/2012/06/display … -real.html
Last edited by Fedes (2012-10-25 00:56:26)
Offline
What if you use "iwconfig" like conky does and parse the values?
iwconfig wlan0 | grep -i quality
Link Quality=70/70 Signal level=-30 dBm
Or I think you have some info in /proc/net/wireless:
cat /proc/net/wireless Inter-| sta-| Quality | Discarded packets | Missed | WE face | tus | link level noise | nwid crypt frag retry misc | beacon | 22 wlan0: 0000 70. -31. -256 0 0 0 0 0 0
EDIT: found a simple script to parse info in /proc/net/wireless that you could use:
watch -n 1 "awk 'NR==3 {print \$3 \"00 %\"}''' /proc/net/wireless"
Source: http://www.upubuntu.com/2012/06/display … -real.html
Yep! Info I needed was in /proc/net/wireless, and that script returns exactly what I needed. Thanks!
Offline