<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Autarchy of the Private Cave &#187; NetworkManager</title> <atom:link href="https://bogdan.org.ua/tags/networkmanager/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 28 Dec 2022 16:09:04 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>Gnome, NetworkManager, and FireFox/IceWeasel 3 starting in Offline mode (also: Pidgin Waiting for network connection)</title><link>https://bogdan.org.ua/2008/07/19/gnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html</link> <comments>https://bogdan.org.ua/2008/07/19/gnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html#comments</comments> <pubDate>Sat, 19 Jul 2008 14:48:33 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[FireFox]]></category> <category><![CDATA[Gnome]]></category> <category><![CDATA[IceWeasel]]></category> <category><![CDATA[NetworkManager]]></category> <category><![CDATA[Offline mode]]></category> <category><![CDATA[startup]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/?p=315</guid> <description><![CDATA[For some reason, my IW 3 is now starting in Offline mode each time, despite my attempts to remove that checkbox every time. Also, Pidgin says &#8220;Waiting for network connection&#8221; in the status drop-down. Update: as suggested by Donny Kurnia (based on the recent post by Hobgoblin), the simplest and the most correct way to [&#8230;]]]></description> <content:encoded><![CDATA[<p>For some reason, my <abbr
title="IceWeasel 3">IW 3</abbr> is now starting in Offline mode each time, despite my attempts to remove that checkbox every time. Also, Pidgin says &#8220;Waiting for network connection&#8221; in the status drop-down.</p><p><ins
datetime="2008-11-16T01:30:37+00:00">Update:</ins> as suggested by <a
href="http://bogdan.org.ua/2008/07/19/gnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html#comment-87677">Donny Kurnia</a> (based on the recent <a
href="http://ubuntuforums.org/showpost.php?p=6128756&#038;postcount=34">post by Hobgoblin</a>), the simplest and the most correct way to fix the problem for FireFox/IceWeasel is to go to about:config and set <a
href="http://kb.mozillazine.org/Toolkit.networkmanager.disable">toolkit.networkmanager.disable</a> to <strong>true</strong>.</p><p>The simplest workaround for Pidgin is to open Accounts -> Manage, then remove and then set again the checkbox near the account you wish to get connected. This has to be done every time you start pidgin <img
src="https://bogdan.org.ua/wp-includes/images/smilies/icon_sad.gif" alt=":(" class="wp-smiley" /> .</p><p>Below you will find other (worse and obsolete &#8211; for FireFox/IceWeasel, but good for Pidgin) solutions.<br
/> <span
id="more-315"></span></p><p><del
datetime="2008-10-09T10:30:18+00:00">Little research had shown that the <strong>simplest solution</strong> is to disable FireFox&#8217;s/IceWeasel&#8217;s feature to auto-detect if Internet connection is available: go to <strong>about:config</strong>, find <strong>browser.offline-apps.notify</strong> and set it to <strong>false</strong>. After this, FireFox/IceWeasel 3 will no longer try to check if you have Internet connection.</del><ins
datetime="2008-10-09T10:30:18+00:00"> (this was wrong, and here is why: <a
href="http://kb.mozillazine.org/Browser.offline-apps.notify">kb.mozillazine.org/Browser.offline-apps.notify</a>)</ins></p><p>However, this is not a good solution, because auto-detection generally improves user experience (e.g. by automatically using cached page versions for tabs open at startup). The actual reason (in many cases) is the network detection by the NetworkManager &#8211; it reports &#8220;no connection&#8221; although connection is present (<a
href="https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/191889">bug report</a>).</p><p>The <strong>simple solution</strong> (and, possibly, the <strong>best solution for Pidgin</strong>) is to disable (or even remove) NetworkManager. On Debian, this can easily be done by following these steps:<ol><li>sudo aptitude install sysv-rc-conf</li><li>sudo sysv-rc-conf</li><li>find the service named <strong>network-manager</strong>, highlight it in the 2nd column (for runlevel 2); press &#8211; (minus) to stop the service, then press space to uncheck it (thus disabling automatic start), then press q to quit sysv-rc-conf</li></ol><p>This should have an immediate effect, but Pidgin restart might still be required.</p><p>Another <strong>simple solution</strong> (without disabling/removing NetworkManager) is to disallow NetworkManager to notify other desktop applications about the presence of the internet connection (slightly edited; <strong>note: might be no longer a good option for Debian Squeeze, but should still work for Lenny</strong>):</p><blockquote><p> Open the terminal/konsole (Applications&#8211;>Accessories&#8212;>Terminal), and type <strong>gksudo gedit /etc/dbus-1/system.d/NetworkManager.conf</strong> (note: path might differ for your Linux distribution &#8211; try <strong>locate NetworkManager.conf</strong>). Then replace all lines</p><p><strong>< allow send_interface="org.freedesktop.NetworkManager"/ ></strong><br
/> with<br
/> <strong>< deny send_interface="org.freedesktop.NetworkManager"/ ></strong></p><p>Save the changes and either reboot or just stop/kill/restart the running instance of NetworkManager. This change will stop NetworkManager from notifying FireFox/IceWeasel and other desktop applications about the presence/absence of internet connection &#8211; and FireFox will no longer start in Offline mode.</p></blockquote><p>(Thanks <a
href="http://ubuntuforums.org/member.php?u=185037">Nikitas350</a> from <a
href="http://ubuntuforums.org/showthread.php?t=800179">Ubuntu forums</a> for this fix.)</p><p>The even better solution would be to make NetworkManager detect the availability of connection properly. However, I did not dig deep enough to find how to do that &#8211; comments and better solutions are welcome.</p><p>One of the more complicated solutions (and still not a perfect one) was also found at <a
href="http://ubuntuforums.org/showthread.php?t=767045">Ubuntu forums</a> (slightly edited for contextual clarity):</p><blockquote><p> I am using USB modem to connect to internet and the Offline mode issue was also bothering me after upgrading to Firefox 3.</p><p>The solution I have found was: <strong>disable Network Applet</strong> from System -> Preferences -> Sessions, and <strong>add the following lines</strong> to the file &#8220;/etc/network/interfaces&#8221;:</p><p><strong><br
/> auto eth0<br
/> iface eth0 inet dhcp<br
/> </strong></p><p>Thus, I guess, Firefox believes that eth0 (i.e. ethernet card) is active, although Internet connection is established via ppp0 (i.e. USB modem).</p></blockquote><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Fgnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html&amp;linkname=Gnome%2C%20NetworkManager%2C%20and%20FireFox%2FIceWeasel%203%20starting%20in%20Offline%20mode%20%28also%3A%20Pidgin%20Waiting%20for%20network%20connection%29" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Fgnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html&amp;linkname=Gnome%2C%20NetworkManager%2C%20and%20FireFox%2FIceWeasel%203%20starting%20in%20Offline%20mode%20%28also%3A%20Pidgin%20Waiting%20for%20network%20connection%29" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Fgnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html&amp;linkname=Gnome%2C%20NetworkManager%2C%20and%20FireFox%2FIceWeasel%203%20starting%20in%20Offline%20mode%20%28also%3A%20Pidgin%20Waiting%20for%20network%20connection%29" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Fgnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html&amp;linkname=Gnome%2C%20NetworkManager%2C%20and%20FireFox%2FIceWeasel%203%20starting%20in%20Offline%20mode%20%28also%3A%20Pidgin%20Waiting%20for%20network%20connection%29" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Fgnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html&amp;linkname=Gnome%2C%20NetworkManager%2C%20and%20FireFox%2FIceWeasel%203%20starting%20in%20Offline%20mode%20%28also%3A%20Pidgin%20Waiting%20for%20network%20connection%29" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2008%2F07%2F19%2Fgnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html&#038;title=Gnome%2C%20NetworkManager%2C%20and%20FireFox%2FIceWeasel%203%20starting%20in%20Offline%20mode%20%28also%3A%20Pidgin%20Waiting%20for%20network%20connection%29" data-a2a-url="https://bogdan.org.ua/2008/07/19/gnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html" data-a2a-title="Gnome, NetworkManager, and FireFox/IceWeasel 3 starting in Offline mode (also: Pidgin Waiting for network connection)"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2008/07/19/gnome-networkmanager-firefox-iceweasel-3-starting-in-offline-mode-pidgin-waiting-for-network-connection.html/feed</wfw:commentRss> <slash:comments>19</slash:comments> </item> </channel> </rss>