NetworkManager.state - remove and restart

I’ve just succeeded in solving my problem. I describe the solution in the third post here.

Hello Everybody,

I have 2 computer on both i have installed 12.1 , and same brand Wlan atheros, but when i type “cat /var/lib/NetworkManager/NetworkManager.state”
on 1 comp. it shows the content of the file , and on 2nd computer it gives error that no such file or directory, then i checked so there is no file named NetworkManager.state, so what does this file do and how much important is this file? (i can connect to internet from both computer using default connection Wlan).

thanks n regards

The Network Manager .state file keeps track if an interface (ie wirless, wired etc) is enbled. Removing it causes Network Manager to rethink the existing interfaces and the file is meant to save time for such a task if the file exists and was not removed on purpose. If you have a wired only network and do not use Network Manager and have never enabled Network Manager, which is only helpful if you have two or more interfaces or multiple wireless configurations, then the .state file may not exist.

Thank You,

Caprus’ post on the other thread says this:

I just found a post on the KDE forums:
bcooksley - an administrator of that forum and an openSUSE user posted the following:
Please confirm that your wireless connection is indeed a “System connection” and that no power saving systems or physical switches are telling NetworkManager to start with Wireless disabled.

In my experience, connections must be created as System Connections, and cannot be switched afterward (at least for me, the state never stuck - I had to recreate it).
In my case I merely had to check “System Connection” and enter the root password and the change held through a reboot. After that the connections functioned normally.

It seems to have had a beneficial effect for me as well.

Thanks to all who have spent some time and effort in suggesting different solutions, and for persevering when I couldn’t get the answer I wanted!

Hello, jdmcdaniel3,

Thanks for the explanation, i would like to know more regarding NetworkManager.state, can you give link to some post or reference regarding such topic, as earlier when i typed “cat /var/lib/NetworkManager/NetworkManager.state” on one system i get details of that file and on another i get error of file does not exist , but today when i checked once more its showing content of that file on both system, i didn’t touched networkmanager , so what really happened i don’t know, is there any way to check why the file was not there earlier and now it exists? here are my ifconfig and output of NetworkManager.state file :

1st system:
ifconfig
eth0 Link encap:Ethernet HWaddr 90:E6:BA:97:2C DD
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:1
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:47

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6631 (6.4 Kb) TX bytes:6631 (6.4 Kb)

wlan0 Link encap:Ethernet HWaddr 54:E6:FC DB:6D:50
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::56e6:fcff:fedb:6d50/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3717 errors:0 dropped:0 overruns:0 frame:0
TX packets:1830 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4687580 (4.4 Mb) TX bytes:193946 (189.4 Kb)

cat /var/lib/NetworkManager/NetworkManager.state

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

2nd system:
ifconfig
eth0 Link encap:Ethernet HWaddr 1C:6F:65:CF:11 dB
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:41 Base address:0x2000

eth1 Link encap:Ethernet HWaddr 1C:6F:65:CF:11:EB
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:42 Base address:0x4000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:179 errors:0 dropped:0 overruns:0 frame:0
TX packets:179 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29599 (28.9 Kb) TX bytes:29599 (28.9 Kb)

wlan0 Link encap:Ethernet HWaddr 54:E6:FC dB:6D:44
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::56e6:fcff:fedb:6d44/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6710 errors:0 dropped:0 overruns:0 frame:0
TX packets:3772 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8022600 (7.6 Mb) TX bytes:520253 (508.0 Kb)

cat /var/lib/NetworkManager/NetworkManager.state

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

Thanks n regards