Re: Auto Connect through NetworkManager

On Thu, 2009-05-14 at 09:31 +0800, 代尔欣 wrote:
> Hi sanjeev,
>      Change 
> g_signal_emit_by_name (device, "state-changed", state, old_state,  0);
>       to 
> g_signal_emit_by_name (device, "state-changed", state, old_state,
> reason);
> in function src/nm-device.c nm_device_state_changed(). This is why you
> always receive reason 0. After change, you should receive the correct
> reason.
> Hi Dan,
>      If user want to GSM auto connect, but not always want to auto
> connect e.g. user disconnect manually,  The current networkmanager do
> not act like this. 
>     Now when click the disconnect , the device will reconnect again.
> This behavior is a little strange I think. 
>       It is better if the auto connect occur when system up, network
> not available(e.g. unplug the net plug). But when user disconnect
> manually, do not auto connect.

What I'm afraid of here is user confusion.  You have to remember that
now, after you've clicked disconnect, the device needs to be *manually*
reactivated, even though your connections have a "Connect automatically"
checkbox.  The behavior is now inconsistent.  Automatic no longer means
automatic.  So now you suspend the laptop and resume later, and you're
not reconnected to anything.  I'm not opposed to this sort of
"disconnected" device property, but it's a larger job than just an
attribute in NetworkManager.  It also involves figuring out how the UI
should handle it, how users should be alerted that their networks won't
be automatically reconnected.  The user is more apt to blame the
computer or NetworkManager when it doesn't do what they expect, rather
than blame themselves for something they did an hour ago which they've
already forgotten.


> Thank!
> Dan
> ______________________________
> _________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> 2009/5/13 Dan Williams <dcbw redhat com>
>         On Wed, 2009-05-13 at 10:20 +0530, sanjeev sharma wrote:
>         > Hi All,
>         >
>         > Is there any possibility to Disable "Auto Connect" through
>         > NetworkManager Code. in my Scenario If "Auto Connect"  Is
>         enabled In
>         > GSM Profile and User Click on Disconnect button then I
>         wanted to Set
>         > "Auto Connect" flag disabled so networkManager won't retry
>         to Start
>         > Connection again.
>         That would imply you want to uncheck "Connect automatically",
>         because
>         you don't actually want the connection to be automatically
>         activated
>         when its available.
>         > I don't want to change "Auto Connect" manually through
>         Connection
>         > editior because during resume my System has been checking
>         mail and its
>         > will start Connection if only Auto Connect is set.
>         Instead, on resume you want NM to re-activate connections that
>         were
>         active when the system went to sleep (as long as that
>         connection is
>         available).  Does that sound right?
>         Dan
>         _______________________________________________
>         NetworkManager-list mailing list
>         NetworkManager-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]