From: Fabien Crespel <fabien@crespel.net>
To: linux-wireless@vger.kernel.org
Cc: Henrique de Moraes Holschuh
<public-hmh-N3TV7GIv+o9fyO9Q7EP/yw@ciao.gmane.org>,
Zhu Yi <public-yi.zhu-ral2JQCrhuEAvxtiuMwx3w@ciao.gmane.org>
Subject: Re: Question on rfkill double block
Date: Mon, 07 Jul 2008 21:48:23 +0200 [thread overview]
Message-ID: <48727307.6070507@crespel.net> (raw)
In-Reply-To: <1215450664.17128.64.camel@localhost.localdomain>
Dan Williams wrote:
> But if the HW block is on, NM doesn't care about softblock because you
> can't use the radio anyway. If the HW switch is unblocked, NM will
> un-SW-block the radio anyway, since HW-unblock is definitely a
> user-initiated option and signals user intent to unblock the radio
> irregardless of SW block state from something else.
Removing the SW switch after the user unblocks the HW switch seems wrong to me:
HW-unblock doesn't necessarily mean the user wants to unblock WLAN if it was
SW-blocked before (which is most likely the user's choice).
Consider the following situation:
- the computer has a WLAN device and Bluetooth device
- both devices can be HW-blocked with a single physical switch
- each device can be toggled with a key
With the following scenario:
- I (the user) don't want to use WLAN for whatever reason (like using a wired
network, or to save energy)
- I want to have Bluetooth enabled for my wireless mouse
- I temporarily enable the HW switch (because I don't need the mouse anymore, or
to let someone else use it on his/her own computer)
- A bit later, I want to use Bluetooth again and disable the HW switch
- Both Bluetooth and WLAN would now be enabled
This can be annoying, especially if NM connects to a wireless network
automatically. It would consume energy needlessly, or break the network config if
both the wired and wireless connections are configured for the same IP.
So generally, I would say that assuming to know what the user wants is dangerous,
as it can result in doing something against his will. If the user wants to enable
WLAN, there is a key for it.
Also note that this would still happen without NM but with rfkill-input, since
currently it doesn't restore the previous state when the HW switch is disabled.
It just unblocks the device (Andy posted about it half an hour ago).
Any news on this, Henrique? I think you talked about it some time ago, and with
the new double block enum, it should be easier to know the previous state.
- Fabien.
next prev parent reply other threads:[~2008-07-07 19:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-02 7:03 Question on rfkill double block Zhu Yi
2008-07-02 17:03 ` Dan Williams
2008-07-04 19:55 ` Henrique de Moraes Holschuh
2008-07-07 17:11 ` Dan Williams
2008-07-07 19:48 ` Fabien Crespel [this message]
2008-07-07 20:47 ` Henrique de Moraes Holschuh
2008-07-08 5:12 ` Andy Lutomirski
2008-07-08 15:05 ` Henrique de Moraes Holschuh
2008-07-02 19:32 ` Henrique de Moraes Holschuh
2008-07-05 21:28 ` Tomas Winkler
2008-07-06 0:20 ` Henrique de Moraes Holschuh
2008-07-07 4:44 ` Andy Lutomirski
2008-07-07 16:56 ` Henrique de Moraes Holschuh
2008-07-07 18:47 ` Andrew Lutomirski
2008-07-07 19:18 ` Andrew Lutomirski
2008-07-07 21:09 ` Andrew Lutomirski
2008-07-07 21:21 ` Henrique de Moraes Holschuh
2008-07-07 20:59 ` Henrique de Moraes Holschuh
2008-07-07 17:02 ` Dan Williams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48727307.6070507@crespel.net \
--to=fabien@crespel.net \
--cc=linux-wireless@vger.kernel.org \
--cc=public-hmh-N3TV7GIv+o9fyO9Q7EP/yw@ciao.gmane.org \
--cc=public-yi.zhu-ral2JQCrhuEAvxtiuMwx3w@ciao.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.