polybar: Network module: failed to query interface

Hey,

I have a problem with the network module not working for my USB network interface.

This is a simple version config:

[colors]
background = #00000000
foreground = #ccffffff
dark-transparent = #40000000
focused-background = #99ffffff
focused-foreground = #cc000000
urgent-background = #99ff3333

[globalbars]
width = 100%
height = 50
radius = 0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
border-size = 0
border-color =
padding = 0
padding-right = 2
module-margin = 2
font-0 = "Source Code Pro Semibold:pixelsize=12;5"

[bar/top]
inherit = globalbars
padding-left = 0
background = ${colors.dark-transparent}
modules-left = network1
modules-center =
modules-right =
tray-position =

[module/network1]
type = internal/network
interface = enx949aa984ea97
unknown-as-up = true
interval = 3.0

format-connected-padding = 2
format-connected-prefix = " "
label-connected = %local_ip%

label-disconnected = "test"

[settings]
screenchange-reload = true

[global/wm]
margin-top = 0
margin-bottom = 0

The output of polybar top -s:

warn: No monitor specified, using "eDP1"
warn: module/network1: Failed to query interface 'enx949aa984ea97'
warn: module/network1: Failed to query interface 'enx949aa984ea97'
error: Disabling tray manager (reason: Invalid position "")
%{l}test
warn: module/network1: Failed to query interface 'enx949aa984ea97'
warn: module/network1: Failed to query interface 'enx949aa984ea97'
warn: Termination signal received, shutting down...

I debugged a bit myself and identified the IOCTL call as the issue, the parsed errno is always “Operation not supported”.

Now my question: Is this an issue with my driver or do I just lack some package dependency? Or is this a bug within ethtool or polybar? I’m using Ubuntu 17.10.

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (7 by maintainers)

Commits related to this issue

Most upvoted comments

I think you need to set unknown-as-up = true in your network module