After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 728512 - network: turning off soft rfkill doesn't work
network: turning off soft rfkill doesn't work
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: network-indicator
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2014-04-18 15:35 UTC by Matthias Clasen
Modified: 2014-06-26 13:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rfkill: fix turning off airplane mode from the menu (1.08 KB, patch)
2014-04-21 16:59 UTC, Giovanni Campagna
committed Details | Review

Description Matthias Clasen 2014-04-18 15:35:41 UTC
When I use the airplane mode switch in the network panel, the shell properly reacts and shows the airplane icon and submenu. But the 'turn off' menuitem in there doesn't work.
Comment 1 Giovanni Campagna 2014-04-18 18:15:46 UTC
Are you sure it doesn't work?
If you turn off the airplane mode from the shell after you disabled wifi from the shell or cc panel, you still need to reenable it manually (airplane mode only reenables the radio)

Anyway, "rfkill list" would shed some light on the matter.
Comment 2 Matthias Clasen 2014-04-21 12:35:20 UTC
rfkill list before:

0: tpacpi_bluetooth_sw: Bluetooth
        Soft blocked: no
        Hard blocked: no
2: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
9: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

rfkill list after using the airplane mode switch in the network panel:

0: tpacpi_bluetooth_sw: Bluetooth
        Soft blocked: yes
        Hard blocked: no
2: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: no

rfkill list after using airplane mode > turn off in the shell:

0: tpacpi_bluetooth_sw: Bluetooth
        Soft blocked: yes
        Hard blocked: no
2: phy0: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
Comment 3 Matthias Clasen 2014-04-21 12:36:19 UTC
Using wifi > turn on in this situation does succeed in dropping airplane mode and getting me back online - is that intentional ?
Comment 4 Matthias Clasen 2014-04-21 12:37:42 UTC
I see stuff like

Apr 17 15:13:00 localhost.localdomain gnome-session[9537]: (gnome-shell:9678): Gjs-WARNING **: JS ERROR: Exception in callback for signal: activate: TypeError: this._proxy is u
Apr 17 15:13:00 localhost.localdomain gnome-session[9537]: @resource:///org/gnome/shell/ui/status/rfkill.js:86



in the logs when trying this
Comment 5 Giovanni Campagna 2014-04-21 16:59:53 UTC
Created attachment 274818 [details] [review]
rfkill: fix turning off airplane mode from the menu

The menu does not have a proxy anymore, it needs to go through
the manager.
Comment 6 Jasper St. Pierre (not reading bugmail) 2014-04-21 17:03:14 UTC
Review of attachment 274818 [details] [review]:

Of course.
Comment 7 Giovanni Campagna 2014-04-21 17:12:20 UTC
Attachment 274818 [details] pushed as 2f720e2 - rfkill: fix turning off airplane mode from the menu
Comment 8 leck 2014-06-26 13:03:29 UTC
i've been reading a lot of different websites, and i've narrowed this problem down to a gnome problem.  i'm running debian and it might be due to the way i install debian or something.  

this is the 3rd computer i've installed debian wheezy with the net install and i've been able to use rfkill with the others to enable wireless, but on this computer i'm unable to figure out how to get the wireless usb modem to connect to the wireless router.  it's a relatively new modem the netgear wireless n150 usb adapter.  

this thread isn't so much as a cry to help me with my problem bc chances are i'll have it fixed in some way by the time any mod reads this.  there is an inherent problem in gnome which ISN"T FIXED.  airplane mode will not turn off on this computer at all.  i'm not sure if this is linked to maybe the fact i don't have the right driver for my wireless card.  either way i should be able to disable airplane and it should remember it.  i've unblacklisted everything in the etc files, and that didn't help.  i did notice wireless cannot find the right drivers when gnome is loading in the msdos/linux screen before boot.  i am able to connect with a wire, but still unable to get wireless working.  for the wireless usb thing, both the hard and soft are unblocked, but the computer apparently has another thing which is always blocked hard and soft in rfkill list my dell wireless lan is always blocked.  

i just submitted a request for distrowatch in order to make a linux distro to pretty much pick up where ubuntu left off, and i am attempting to use debian as a base, but if there are regular major problems, i will reconsider.  ubuntu was plagued with bugs, so i'm not surprised ubuntu has stopped official production this year.  i like everything debian does, but how has this bug slipped by unnoticed?  i didn't load anything special on the install, but i use the expert install of debian and i don't create a root password.  is it that airplane mode will only work for a root account and not a user who has admin priveldges?  seriously i don't know why debian uses users anyway.  there is a big security risk with multiple users on a computer.  multiple users should not be enabled by default.  i still think it's a good idea not to let the user have root priveledges upon login, but we still have this unfiexed airplane bug problem.  you can see my frustration when the mod claims to have it fixed by rfkill, but it's not fixed.  

once again to summarize in case the mod missed this problem... airplane mode will not turn off in any way i try.  i don't know what else to do.  maybe i'll try a different linux or virtualbox windows to try to get wireless internet.  this wire is not practical for what this computer needs to do.
Comment 9 Florian Müllner 2014-06-26 13:17:19 UTC
(In reply to comment #8)
> this is the 3rd computer i've installed debian wheezy with the net install and
> i've been able to use rfkill with the others to enable wireless

Debian wheezy uses GNOME 3.4, which is old - in particular this fix is about GNOME 3.12, which was released two years after that. So it's not really surprising that it doesn't fix the issue for you ;-)
Also note that the network menu code has been rewritten several times between those versions, so whatever the problem you're seeing is, the patch won't help you. If you can reproduce the problem with a recent version of GNOME, please file a new bug. For fixing 3.4.x, I'm afraid you'd have to file a Debian bug, as we no longer support that version upstream.