Re: Auto Connect through NetworkManager



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.

Thank!


 

Dan

______________________________
_________________
NetworkManager-list mailing list
NetworkManager-list gnome org
http://mail.gnome.org/mailman/listinfo/networkmanager-list


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
http://mail.gnome.org/mailman/listinfo/networkmanager-list



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