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 665194 - Wifi on/off switch cannot match hardware killswitch state
Wifi on/off switch cannot match hardware killswitch state
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: network-indicator
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-11-30 12:11 UTC by Kamil Páral
Modified: 2011-12-07 14:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
NetworkMenu: show hardware disabled when rfkill is active (1.38 KB, patch)
2011-12-02 20:53 UTC, Giovanni Campagna
committed Details | Review

Description Kamil Páral 2011-11-30 12:11:27 UTC
If I enable wifi killswitch (manually disabling wifi by a hardware slider on my notebook), the gnome-shell indicator just puts the wifi toggle into Off state. But it can be toggled back to On state. In that case nothing happens and the toggles reverts back to Off. A user that doesn't know/forgets about the hardware slider can then be confused.

I think it would be much better design to hide the On-Off toggle and put a "hardware switch off" text (or similar) there. It would follow the same design as when you unplug the wired cable - the toggle is hidden and a text "cable unplugged" appears instead.
Comment 1 Milan Bouchet-Valat 2011-11-30 13:31:14 UTC
OK, first I thought you were saying turning on the hardware killswitch wasn't bringing the WiFi on in the menu.

To be clear, the problem you describe is that when a *physical* kill switch is present, toggling the switch in the network menu cannot turn the WiFi on, since the physical switch won't magically move. So we'd need to remove the "virtual" switch. But maybe there's another solution: if we can detect whether the killswitch is a physical one or not, we can adapt the UI as needed.
Comment 2 Kamil Páral 2011-11-30 13:46:10 UTC
Thanks for clearing up my words, you're correct. If you detect the notebook has the physical wifi switch off, remove the virtual switch in gnome-shell because it can't have any effect.
Comment 3 Giovanni Campagna 2011-12-02 20:53:38 UTC
Created attachment 202656 [details] [review]
NetworkMenu: show hardware disabled when rfkill is active

When wifi or wwan are blocked by hardware killswitch, we should not
allow changing the switch (it won't work anyway), and show
"hardware disabled" instead, similar to what we already do in the
bluetooth menu.
Comment 4 drago01 2011-12-04 15:14:09 UTC
Review of attachment 202656 [details] [review]:

Looks good.
Comment 5 Giovanni Campagna 2011-12-07 14:36:52 UTC
Attachment 202656 [details] pushed as 7fa7d04 - NetworkMenu: show hardware disabled when rfkill is active