You are not logged in.

#1 2019-05-28 14:41:10

Radu
Member
Registered: 2019-05-28
Posts: 8

Polybar wlan module not showing

Just installed polybar but the wlan module is not showing for some reason
My config file:

[module/wireless]
type = internal/network
interface = wlp3s0f0u8
interval = 3.0

format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
label-connected = %essid%

;format-disconnected =
format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}

ramp-signal-0 = 1
ramp-signal-1 = 2
ramp-signal-2 = 3
ramp-signal-3 = 4
ramp-signal-4 = 5
ramp-signal-foreground = ${colors.foreground-alt}

When I launch it from the terminl I get this:

warn: Termination signal received, shutting down...
warn: module/i3: Attempting to reconnect socket (reason: Unexpected EOF while reading header)
Bars launched...
warn: No monitor specified, using "HDMI-1"
warn: pulseaudio: using default sink alsa_output.usb-SOMIC_Industrial_Co._Ltd_G941_000000000000-00.analog-stereo

Offline

#2 2019-05-28 22:27:21

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: Polybar wlan module not showing

There are two reasons that come to mind why it isn't displaying. Either you have not added the wireless module to one of the module lists or you are not connected to a wireless network.

Offline

#3 2019-05-29 07:15:37

Radu
Member
Registered: 2019-05-28
Posts: 8

Re: Polybar wlan module not showing

I added it and wireless is working. If I use nm-applet it displays fine

Offline

#4 2019-05-29 10:49:49

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: Polybar wlan module not showing

Could you add the

-l info

argument when you launch it from the command line and post that output.

Offline

#5 2019-05-30 13:13:11

Radu
Member
Registered: 2019-05-28
Posts: 8

Re: Polybar wlan module not showing

it has the same output

Offline

#6 2019-05-30 22:48:21

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: Polybar wlan module not showing

What command are you using to run polybar with

-l info

?

If you properly add that flag, it will give you a different output.

Last edited by patrickziegler (2019-05-30 22:48:47)

Offline

#7 2019-06-01 18:35:33

Radu
Member
Registered: 2019-05-28
Posts: 8

Re: Polybar wlan module not showing

My bad, I did it wrong
This is the actual output

* Loading config: /home/radu/.config/polybar/config
warn: No monitor specified, using "HDMI-0"
* Loaded monitor HDMI-0 (1920x1080+0+0)
* Bar geometry: 1920x27+0+0; Borders: 0,0,0,0
warn: pulseaudio: using default sink alsa_output.usb-SOMIC_Industrial_Co._Ltd_G941_000000000000-00.analog-stereo
* Starting application
* Starting module/i3
* Starting module/wireless
* Starting module/eth
* Starting module/filesystem
* Starting module/pulseaudio
* Starting module/xkeyboard
* Starting module/memory
* Starting module/cpu
* Starting module/date
* Starting module/powermenu
* Entering event loop (thread-id=1)
* Eventqueue worker (thread-id=12)
* Configured DPI = 96x96
* Loaded font "Noto Sans:size=10" (name=Noto Sans, offset=1, file=/usr/share/fonts/noto/NotoSans-Regular.ttf)
* Loaded font "unifont:fontformat=truetype:size=8:antialias=false" (name=Unifont, offset=0, file=/usr/share/fonts/TTF/Unifont.ttf)
* Loaded font "Font Awesome 5 Free Solid:size=10" (name=Font Awesome 5 Free, offset=1, file=/usr/share/fonts/TTF/fa-solid-900.ttf)
* Loaded font "Font Awesome 5 Brands:size=10" (name=Font Awesome 5 Brands, offset=1, file=/usr/share/fonts/TTF/fa-brands-400.ttf)
* Bar window: 0x2000002
* Activating tray manager
* Tray window: 0x2000006
warn: Systray selection already managed (window=0x0c00006)
* Deactivating tray manager
* module/i3: Rebuilding cache
* module/wireless: Rebuilding cache
* module/eth: Rebuilding cache
* module/filesystem: Rebuilding cache
* module/pulseaudio: Rebuilding cache
* module/xkeyboard: Rebuilding cache
* module/memory: Rebuilding cache
* module/cpu: Rebuilding cache
* module/date: Rebuilding cache
* module/powermenu: Rebuilding cache
* Redrawing bar window
* module/xkeyboard: Rebuilding cache
* Redrawing bar window
* module/memory: Rebuilding cache
* module/cpu: Rebuilding cache
* Redrawing bar window

Also, I forgot to mention that I'm using a wireless adapter.

Last edited by Radu (2019-06-01 18:40:55)

Offline

#8 2019-06-01 22:56:43

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: Polybar wlan module not showing

Hmm, so the module is definitely running. My guess is that the wifi interface wlp3s0f0u8 is disconnected and your wireless adapter has a different name.

What is the output of

ip link

Offline

#9 2019-06-02 15:42:50

Radu
Member
Registered: 2019-05-28
Posts: 8

Re: Polybar wlan module not showing

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp30s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 30:9c:23:28:ab:ee brd ff:ff:ff:ff:ff:ff
6: wlp3s0f0u8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether f4:f2:6d:16:5b:81 brd ff:ff:ff:ff:ff:ff

Offline

#10 2019-06-02 16:51:42

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: Polybar wlan module not showing

Does your computer have a physical ethernet port?

Try setting

interface = enp30s0

and see if this works.

If this doesn't work, revert those changes and uncomment the line containing

;label-disconnected = %ifname% disconnected

and then run polybar again. This should then explicitly tell you whether or not polybar thinks your interface is disconnected.

Offline

#11 2019-06-02 18:23:17

Radu
Member
Registered: 2019-05-28
Posts: 8

Re: Polybar wlan module not showing

Still nothing even with enp30s0.
Using the other method, it says that wlp3s0f0u8 is disconnected. sad

Offline

#12 2019-06-07 11:21:37

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: Polybar wlan module not showing

Alright so polybar (wrongly) thinks it's disconnected. Since you didn't get a "Failed to query interface" warning, I am suspecting that the file

/sys/class/net/wlp3s0f0u8/operstate

, contains "unknown". If this is the case, try to set

unknown-as-up = true

in your network module.

If this isn't the case, I need the following information from you:

- The output of

polybar -vvv

- The contents of

/sys/class/net/wlp3s0f0u8/wireless

Offline

#13 2019-06-08 17:00:08

Radu
Member
Registered: 2019-05-28
Posts: 8

Re: Polybar wlan module not showing

The operstate file contains "up"
Here is the first output:

polybar 3.3.0-92-g7724c4dc

Features: +alsa +curl +i3 -mpd +network(libnl) +pulseaudio +xkeyboard

X extensions: +randr (+monitors) -render -damage -sync +composite +xkb +xrm +xcursor

Build type: Release
Compiler: /usr/bin/c++
Compiler flags: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -Wall -Wextra -Wpedantic -O3 -DNDEBUG
Linker flags: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now 

The wireless folder is empty

Offline

#14 2019-06-09 20:01:44

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: Polybar wlan module not showing

Strange. The only other reason why polybar would think it is disconnected is because it detects the ESSID being an empty string. Could you run

iw dev wlp3s0f0u8 info

.

Offline

#15 2019-06-11 08:08:16

Radu
Member
Registered: 2019-05-28
Posts: 8

Re: Polybar wlan module not showing

I get:

 command failed: No such device (-19)

Offline

#16 2019-06-11 09:25:32

patrickziegler
Member
From: ::1
Registered: 2018-11-02
Posts: 29
Website

Re: Polybar wlan module not showing

Is this like a real old piece of hardware? Does

iwconfig

work for you? It seems that your driver doesn't support libnl, which is supposed to replace wireless_tools. If iwconfig works for you, you may be able to get it working by recompiling polybar and adding

-DWITH_LIBNL=OFF

to the first cmake call (line 41 in the polybar-git PKGBUILD).

Offline

Board footer

Powered by FluxBB