Package: wicd-gtk
Version: 1.7.2.4-4.1
Severity: important
Tags: upstream patch
Dear wicd-gtk maintainer,
I discovered that when the wicd-gtk gui is started in Jessie, the button
"Switch Off/On Wi-Fi" assumes that the Wi-Fi is already powered off, even
when it's alreay on.
To reproduce the problem encountered;
1) Enable the Wi-Fi in the system BIOS before booting Debian, or toggle
the Wi-Fi to a power on state using the Fn+F2 hot-key after Debian has
booted.
2) Start the wicd-gtk gui by clicking the applet in the taskbar.
3) The wicd-gtk gui displays a "Switch On Wi-Fi" button!!! This is
clearly incorrect since the Wi-Fi is ALREADY powered on. The gui
should display a "Switch Off Wi-Fi" button.
I did a little poking around in the code, and verified that when the
pyGTK widgets are initialized, the present state of the wifi is not
properly accounted for.
I came up with a simple patch to /usr/share/wicd/gtk/gui.py shown
inline below. The patch has worked fine for me for almost a year now.
--- /usr/share/wicd/gtk/gui.py.orig 2012-01-15 06:24:23.000000000 -0800
+++ /usr/share/wicd/gtk/gui.py 2013-07-12 18:26:38.143103875 -0700
@@ -191,6 +191,12 @@
probar.set_text(_('Connecting'))
self.rfkill_button = self.wTree.get_object("rfkill_button")
+ if wireless.GetRfKillEnabled():
+ self.rfkill_button.set_stock_id(gtk.STOCK_MEDIA_PLAY)
+ self.rfkill_button.set_label(_('Switch On Wi-Fi'))
+ else:
+ self.rfkill_button.set_stock_id(gtk.STOCK_MEDIA_STOP)
+ self.rfkill_button.set_label(_('Switch Off Wi-Fi'))
self.all_network_list = self.wTree.get_object("network_list_vbox")
self.all_network_list.show_all()
self.wired_network_box = gtk.VBox(False, 0)
This problem was clearly not specific to Debian, so I reported it to
the upstream developers about a year ago. We developers all have other
things to do at times, so unfortunately nothing has transpired since
reporting the problem. The bug report url is;
https://bugs.launchpad.net/wicd/+bug/1232521
Thank you, John...
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968)
(ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Versions of packages wicd-gtk depends on:
ii python 2.7.6-2
ii python-glade2 2.24.0-3+b1
ii python-gtk2 2.24.0-3+b1
ii wicd-daemon 1.7.2.4-4.1
Versions of packages wicd-gtk recommends:
ii gksu 2.0.2-6
ii python-notify 0.1.1-3
wicd-gtk suggests no packages.
Versions of packages wicd depends on:
ii wicd-daemon 1.7.2.4-4.1
Versions of packages wicd-cli depends on:
ii python 2.7.6-2
ii wicd-daemon 1.7.2.4-4.1
Versions of packages wicd-cli recommends:
ii sudo 1.8.9p5-1
Versions of packages wicd-curses depends on:
ii python 2.7.6-2
ii python-urwid 1.1.1-1+b2
ii wicd-daemon 1.7.2.4-4.1
Versions of packages wicd-curses recommends:
ii sudo 1.8.9p5-1
Versions of packages wicd-daemon depends on:
ii adduser 3.113+nmu3
ii dbus 1.8.4-1
ii debconf 1.5.53
ii ethtool 1:3.13-1
ii iproute 1:3.15.0-2
ii iputils-ping 3:20121221-5+b1
ii isc-dhcp-client 4.2.4-7
ii lsb-base 4.1+Debian13
ii net-tools 1.60-26
ii psmisc 22.21-2
ii python 2.7.6-2
ii python-dbus 1.2.0-2+b3
ii python-gobject 3.12.1-1
ii python-wicd 1.7.2.4-4.1
ii wireless-tools 30~pre9-8
ii wpasupplicant 1.1-1
Versions of packages wicd-daemon recommends:
ii rfkill 0.5-1
Versions of packages wicd-daemon suggests:
ii pm-utils 1.4.1-14
Versions of packages python-wicd depends on:
ii python 2.7.6-2
-- debconf information:
* wicd/users:
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]