• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

superkaramba - wo liegt der fehler im theme?

der rechner hat eine eth0 lan karte. die wird auch normal erkannt und war standardmäßig schon im theme integriert, nun habe ich noch eine usb wlan karte, die ich über persistent_name=net9 einstellung immer auf net9 gesetzt habe. Die wlan ip als auch die ip von eth0 wird richtig angezeigt, nur bei der grafischen laufanzeige erscheinen nicht die wlan geschwindigkeiten sondern die gleichen wie bei der eth0 -was natuerlich keinen sinn macht. kann mich jemand erleuchten wo der fehler steckt. das theme habe ich von kde-look.org und und hier der relevante ausschnitt:

################################################################################
# Network
################################################################################

x=10 y=425
image x=-5 y=-10 PATH="img/icons/network.png"
text x=70 y=10 value="Network eth0" color=110,220,255 fontsize=16 font="neuropol" shadow=1
text x=85 y=69 value="IP:" color=110,220,255 fontsize=11 font="nimbus sans l" shadow=1
text x=105 y=69 sensor=program program="/sbin/ip addr show eth0 | grep 'inet ' | cut -d t -f2 | cut -d / -f1 | cut -b 2-" color=109,255,10 fontsize=10 font="nimbus sans l" shadow=1

################################################################################

# Sensor network upload
# range is up to 100 kb. change 'max' value if needed.
image x=60 y=40 path="img/netgrid-up.png"
graph x=60 y=41 w=140 h=28 color=109,255,10 sensor=network format="%in" interval=1000 max=100
text x=20 y=42 sensor=network color=109,255,10 format="%in Kb" fontsize=11 font="nimbus sans l" decimals=1 shadow=1
text x=5 y=42 value="In:" color=110,220,255 fontsize=11 font="nimbus sans l" DECIMALS=1 shadow=1

################################################################################
# Sensor network download
# range is up to 16 kb. change 'max' value if needed.
image x=60 y=80 path="img/netgrid-down.png"
graph x=60 y=81 w=140 h=28 color=110,220,255 sensor=network format="%out" interval=1000 max=20
text x=20 y=82 sensor=NETWORK color=109,255,10 format="%out Kb" fontsize=11 font="nimbus sans l" DECIMALS=1 shadow=1
text x=-5 y=82 value="Out:" color=110,220,255 fontsize=11 font="nimbus sans l" DECIMALS=1 shadow=1

text x=55 y=57 sensor=program program="/sbin/ifconfig eth0 | grep 'RX byte' | awk '{print $3 $4}'"color=109,255,10 align=right fontsize=11 font="nimbus sans l" interval=1000 shadow=1
text x=30 y=97 sensor=program program="/sbin/ifconfig eth0 | grep 'RX byte' | awk '{print $7 $8}'" color=109,255,10 align=center fontsize=11 font="nimbus sans l" interval=1000 shadow=1

x=10 y=535
image x=-5 y=-10 PATH="img/icons/network.png"
text x=70 y=10 value="Network net9" color=110,220,255 fontsize=16 font="neuropol" shadow=1
text x=85 y=69 value="IP:" color=110,220,255 fontsize=11 font="nimbus sans l" shadow=1
text x=105 y=69 sensor=program program="/sbin/ip addr show net9 | grep 'inet ' | cut -d t -f2 | cut -d / -f1 | cut -b 2-" color=109,255,10 fontsize=10 font="nimbus sans l" shadow=1

################################################################################

# Sensor network upload
# range is up to 100 kb. change 'max' value if needed.
image x=60 y=40 path="img/netgrid-up.png"
graph x=60 y=41 w=140 h=28 color=109,255,10 sensor=network format="%in" interval=1000 max=100
text x=20 y=42 sensor=network color=109,255,10 format="%in Kb" fontsize=11 font="nimbus sans l" decimals=1 shadow=1
text x=5 y=42 value="In:" color=110,220,255 fontsize=11 font="nimbus sans l" DECIMALS=1 shadow=1

################################################################################
# Sensor network download
# range is up to 16 kb. change 'max' value if needed.
image x=60 y=80 path="img/netgrid-down.png"
graph x=60 y=81 w=140 h=28 color=110,220,255 sensor=network format="%out" interval=1000 max=20
text x=20 y=82 sensor=network color=109,255,10 format="%out Kb" fontsize=11 font="nimbus sans l" DECIMALS=1 shadow=1
text x=-5 y=82 value="Out:" color=110,220,255 fontsize=11 font="nimbus sans l" DECIMALS=1 shadow=1

text x=55 y=57 sensor=program program="/sbin/ifconfig net9 | grep 'RX byte' | awk '{print $3 $4}'"color=109,255,10 align=right fontsize=11 font="nimbus sans l" interval=1000 shadow=1
text x=30 y=97 sensor=program program="/sbin/ifconfig net9 | grep 'RX byte' | awk '{print $7 $8}'"color=109,255,10 align=center fontsize=11 font="nimbus sans l" interval=1000 shadow=1
 
ich binmir nicht 100% sicher aber ich glaube man musste stat eth0, ppoe oder so eingeben damit das angezeigt wird ;)
 
also meine LAN-Karte: eth0 (intranet)

meine WLAN-Karte: net9 (die habe ich mit persisten_name=net9 so gesetzt und wird auch so unter ifconfig und iwconfig so angezeigt)

und in dem theme habe ich ja einmal die einstellungen für eth0 und einmal für net9 angegeben, trotzdem werden aber bei der wlan einstellung die geschwindigkeiten von eth0 angezeigt im laufbalken :shock: :?:
 
swannema schrieb:
Bei mir ist es wlan0

Ich habe doch geschrieben, dass ich die Kartenbezeichnung der wlan karte über die einstellungen in der sysconfig auf wlan10 gestellt haben (persisten_name=wlan10) und nicht wlan0. wlan10 wird auch bei aufruf von iwconfig und ifconfig angezeigt. :?

Ich habe nun rausgefunden, dass man in der Zeile

text x=20 y=82 sensor=NETWORK color=109,255,10 format="%out Kb" fontsize=11 font="nimbus sans l" DECIMALS=1 shadow=1

noch das device eingeben muss, da per standard das device auf eth0 gesetzt ist, nur funktioniert dies nicht. Also meine neue Zeile lauten

text x=20 y=82 sensor=NETWORK device="wlan10" color=109,255,10 format="%out Kb" fontsize=11 font="nimbus sans l" DECIMALS=1 shadow=1

nun wird aber gar kein traffic angezeigt ;-( Hat jemand einen Lösungsvorschlag? Ich habe es auch schon mit device=wlan10 probiert, gleiches Ergebnis, keine Anzeige nur 0.0 kb obwohl ich einiges an upload hatte.
 
ok hab es gelöst, indem ich die netzwerkschnittstelle von wlan10 auf net9 gesetzt habe. Habe bei suse mal nachgelsen, und die empfehlen nicht, wlanXX bei persistent_name zu benutzten.
 
Oben