Wireless networking not reconnecting after sleep on M2

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Wireless networking not reconnecting after sleep on M2

Postby DiBosco » Dec 26th, '12, 12:21

I thought I had an issue with Broadcom drivers but am no longer sure.

Much against my better judgement I just upgraded to M2 and now, after sleep, I have to reboot to connect to the wifi. My friend had a similar problem and he said installing plasma-applet-networkmanagement worked for him, but that's not worked for me. :(

Can anyone help with this please? I don't know where to start with what information to help track it down, so will supply anything relevant.

Thanks!
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Wireless networking not reconnecting after sleep on M2

Postby doktor5000 » Dec 27th, '12, 01:10

Do you suspend or do you hibernate? Does /var/log/pm-suspend.log contain any errors or hints?
Are you using a laptop, and if so, which model?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Wireless networking not reconnecting after sleep on M2

Postby DiBosco » Dec 27th, '12, 01:33

It's a Macbook pro. worked fine under M1 once I'd compiled the Broadcom drivers. I am sleeping rather than suspending. Same whether I close the lid or choose Start Menu | Leave | Sleep

The log file looks like this:
Code: Select all
Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
Linux MacbookPro17 3.3.8-server-2.mga2 #1 SMP Mon Jul 30 21:54:12 UTC 2012 i686 i686 i386 GNU/Linux
Module                  Size  Used by
nfsd                  227059  13
exportfs               12842  1 nfsd
nfs                   287439  0
nfs_acl                12733  2 nfs,nfsd
lockd                  74024  2 nfs,nfsd
auth_rpcgss            39266  2 nfs,nfsd
sunrpc                203822  14 auth_rpcgss,lockd,nfs_acl,nfs,nfsd
fscache                59501  1 nfs
af_packet              30650  4
rfcomm                 57543  8
bnep                   18867  2
nls_utf8               12493  1
nls_cp437              12751  1
vfat                   17208  1
fat                    55309  1 vfat
nvidia              10971512  43
snd_hda_codec_hdmi     31470  4
snd_hda_codec_cirrus    23166  1
btusb                  23231  2
bluetooth             239658  23 btusb,bnep,rfcomm
snd_hda_intel          32340  7
snd_hda_codec         108688  3 snd_hda_codec_cirrus,snd_hda_codec_hdmi,snd_hda_intel
lib80211_crypt_tkip    17229  0
dm_mirror              21654  0
dm_region_hash         15977  1 dm_mirror
dm_log                 18111  2 dm_region_hash,dm_mirror
dm_mod                 71824  2 dm_log,dm_mirror
uvcvideo               66915  0
videobuf2_vmalloc      12884  1 uvcvideo
videobuf2_memops       13262  1 videobuf2_vmalloc
wl                   2438684  0
videobuf2_core         27899  1 uvcvideo
rfkill                 20866  2 bluetooth
videodev               90368  1 uvcvideo
snd_pcm                88532  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
media                  20527  2 videodev,uvcvideo
bcm5974                17093  0
i2c_i801               17506  0
tg3                   130278  0
snd_page_alloc         14036  2 snd_pcm,snd_hda_intel
snd_hwdep              13276  1 snd_hda_codec
i2c_core               29836  3 i2c_i801,videodev,nvidia
iTCO_wdt               17652  0
iTCO_vendor_support    13502  1 iTCO_wdt
snd_timer              24502  1 snd_pcm
snd                    65929  20 snd_hda_codec_cirrus,snd_hda_codec_hdmi,snd_timer,snd_hwdep,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore              14599  1 snd
libphy                 27793  1 tg3
intel_ips              18015  0
joydev                 17161  0
lib80211               14040  2 wl,lib80211_crypt_tkip
applesmc               18811  0
battery                13522  0
ac                     12742  0
evdev                  17445  7
input_polldev          13648  1 applesmc
apple_bl               13049  0
cpufreq_ondemand       13452  4
cpufreq_conservative    13495  0
cpufreq_powersave      12554  0
acpi_cpufreq           14206  1
mperf                  12603  1 acpi_cpufreq
processor              30340  1 acpi_cpufreq
freq_table             14322  2 acpi_cpufreq,cpufreq_ondemand
nvram                  13957  0
ipv6                  286826  0
autofs4                37327  3
hid_apple              13045  0
usbhid                 47272  0
hid                    77399  2 usbhid,hid_apple
ext4                  428767  4
crc16                  12595  2 ext4,bluetooth
jbd2                   75163  1 ext4
sd_mod                 39838  7
sr_mod                 21872  0
crc_t10dif             12507  1 sd_mod
ehci_hcd               59678  0
uhci_hcd               31495  0
usbcore               177288  7 uhci_hcd,ehci_hcd,usbhid,bcm5974,uvcvideo,btusb
firewire_ohci          39558  0
firewire_core          56535  1 firewire_ohci
crc_itu_t              12627  1 firewire_core
usb_common             12525  1 usbcore
video                  18640  0
button                 13561  0
ahci                   25496  0
libahci                25805  1 ahci
ata_piix               22146  7
libata                183151  3 ata_piix,libahci,ahci
scsi_mod              186048  3 libata,sr_mod,sd_mod
             total       used       free     shared    buffers     cached
Mem:       3986728    2645896    1340832          0      72200    1687036
-/+ buffers/cache:     886660    3100068
Swap:      4095996          0    4095996

/usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:

/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/01bootloader suspend suspend:

/usr/lib/pm-utils/sleep.d/01bootloader suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/06mysqld suspend suspend:
[  OK  ]
Stopping mysqld (via systemctl):  [  OK  ]

/usr/lib/pm-utils/sleep.d/06mysqld suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/10network suspend suspend:
Cannot find nfs service
Configured devices:
lo eth0 eth1 eth2 usb0 wlan0
Currently active devices:
lo eth1
Stopping network (via systemctl):  [  OK  ]

/usr/lib/pm-utils/sleep.d/10network suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/15sound suspend suspend:

/usr/lib/pm-utils/sleep.d/15sound suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/30pcmcia suspend suspend:

/usr/lib/pm-utils/sleep.d/30pcmcia suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/40xlock suspend suspend:

/usr/lib/pm-utils/sleep.d/40xlock suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:

/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:
Having NetworkManager put all interaces to sleep...Done.

/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:

/usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:

/usr/lib/pm-utils/sleep.d/90clock suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/91laptop-mode suspend suspend:

/usr/lib/pm-utils/sleep.d/91laptop-mode suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/92disk suspend suspend:

/usr/lib/pm-utils/sleep.d/92disk suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:

/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:

/usr/lib/pm-utils/sleep.d/95led suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95packagekit suspend suspend:

/usr/lib/pm-utils/sleep.d/95packagekit suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
nVidia binary video drive detected, not using quirks.

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:

/usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
Wed Dec 26 16:43:37 GMT 2012: performing suspend
Wed Dec 26 23:22:01 GMT 2012: Awake.
Wed Dec 26 23:22:01 GMT 2012: Running hooks for resume
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:

/usr/lib/pm-utils/sleep.d/99video resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95packagekit resume suspend:
method return sender=:1.172 -> dest=:1.171 reply_serial=2

/usr/lib/pm-utils/sleep.d/95packagekit resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led resume suspend:

/usr/lib/pm-utils/sleep.d/95led resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq resume suspend:

/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/92disk resume suspend:

/usr/lib/pm-utils/sleep.d/92disk resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/91laptop-mode resume suspend:
Cannot find laptop-mode service
Usage: service -[Rfshv] SERVICE ARGUMENTS
   -f|--full-restart:   Do a fullrestart of the service.
   -R|--full-restart-all:   Do a fullrestart of all running services.
   -s|--status-all:   Print a status of all services.
   --ignore-dependencies:  Do not start required systemd services
   --skip-redirect:   Do not redirect to systemd
   -d|--debug:      Launch with debug.
   -h|--help:      This help.

/usr/lib/pm-utils/sleep.d/91laptop-mode resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock resume suspend:

/usr/lib/pm-utils/sleep.d/90clock resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/75modules resume suspend:
Reloaded unloaded modules.

/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend:
Having NetworkManager wake interfaces back up...Done.

/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/49bluetooth resume suspend:

/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/40xlock resume suspend:

/usr/lib/pm-utils/sleep.d/40xlock resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/30pcmcia resume suspend:

/usr/lib/pm-utils/sleep.d/30pcmcia resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/15sound resume suspend:

/usr/lib/pm-utils/sleep.d/15sound resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/10network resume suspend:
Starting network (via systemctl):  Job failed. See system journal and 'systemctl status' for details.
[FAILED]
Starting network-up (via systemctl):  [  OK  ]

/usr/lib/pm-utils/sleep.d/10network resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/06mysqld resume suspend:
Starting mysqld (via systemctl):  [  OK  ]

/usr/lib/pm-utils/sleep.d/06mysqld resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/01bootloader resume suspend:

/usr/lib/pm-utils/sleep.d/01bootloader resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend:

/usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/00logging resume suspend:

/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
Wed Dec 26 23:22:05 GMT 2012: Finished.
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Wireless networking not reconnecting after sleep on M2

Postby doktor5000 » Dec 27th, '12, 21:59

DiBosco wrote:It's a Macbook pro. worked fine under M1 once I'd compiled the Broadcom drivers.
Code: Select all
Running hook /usr/lib/pm-utils/sleep.d/10network resume suspend:
Starting network (via systemctl):  Job failed. See system journal and 'systemctl status' for details.
[FAILED]
Starting network-up (via systemctl):  [  OK  ]

By "compiled the Broadcom drivers" you mean manually or by using the dkms-broadcom-wl mageia package?

For the log, the part i've cut out looks problematic, if the network service cannot be brought up again,
then there'll be no network afterwards. Sou you have at least a rough direction for what you have to look.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Wireless networking not reconnecting after sleep on M2

Postby DiBosco » Dec 28th, '12, 00:29

I mean compiled them from source, not installed them. On M1, it was the only way to get the computer to always connected to WPA.

There do I find system journal and 'systemctl status' please?

Thanks.
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Wireless networking not reconnecting after sleep on M2

Postby tom_ » Dec 28th, '12, 01:29

DiBosco wrote:There do I find system journal and 'systemctl status' please?


system journal is /var/log/syslog

systemctl status is a command, type it in a console
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: Wireless networking not reconnecting after sleep on M2

Postby DiBosco » Dec 28th, '12, 02:50

The syslog has these lines which might help?
Code: Select all

Dec 26 23:22:01 MacbookPro17 network[7796]: Bringing up interface eth1:  Error for wireless request "Set Encode" (8B2A) :
Dec 26 23:22:01 MacbookPro17 network[7796]: SET failed on device eth1 ; Invalid argument.
Dec 26 23:22:01 MacbookPro17 network[7796]: Error for wireless request "Set Encode" (8B2A) :
Dec 26 23:22:01 MacbookPro17 network[7796]: SET failed on device eth1 ; Invalid argument.
Dec 26 23:22:01 MacbookPro17 network[7796]: Another wpa_supplicant instance is already running for device eth1
Dec 26 23:22:01 MacbookPro17 network[7796]: Sorry, there is already an instance of ifplugd for eth1 running.


Typing:

systemctl status just tells me there aren't enough parameters.

Would you be able to advise what parameters do I need for the systemctl status command? Thanks.
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Wireless networking not reconnecting after sleep on M2

Postby DiBosco » Dec 28th, '12, 11:14

One thing I noticed was that on boot/shutdown in verbose mode it was complaining about LSB not being installed. I have installed that and it might have fixed itself. I have no idea what LSB is and why it wasn't installed this time. I will mark this as solved if it continues to behave.
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Wireless networking not reconnecting after sleep on M2

Postby doktor5000 » Dec 28th, '12, 12:18

LSB means linux standards base: http://www.linuxfoundation.org/collabor ... groups/lsb
This is bogus i'd say, and just and informational message, should change nothing. But cross your fingers, who knows if it might not help inspite?

Also please as root show the output of
Code: Select all
systemctl status network.service -n 55

You used the right command, but you need to tell it of which service you want the status ;)
The -n 55 tells it to additionally show 55 lines of log for that service (weirdly over here only 21 lines are shown ...)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Wireless networking not reconnecting after sleep on M2

Postby DiBosco » Dec 28th, '12, 19:26

Yep, you're right, next time I came out of sleep I had to ****ing reboot again.
Code: Select all
systemctl status network.service -n 55

Dec 28 17:18:37 MacbookPro17 network[15573]: Bringing up loopback interface:  ./ifup: interface ifcfg-lo is controlled by Network...ipping.
Dec 28 17:18:37 MacbookPro17 network[15573]: [  OK  ]
Dec 28 17:18:37 MacbookPro17 network[15573]: Configuring wireless regulatory domain  nl80211 not found.
Dec 28 17:18:37 MacbookPro17 network[15573]: [FAILED]
Dec 28 17:18:37 MacbookPro17 network[15573]: Bringing up interface eth0:  ./ifup: interface eth0 is controlled by NetworkManager; skipping.
Dec 28 17:18:37 MacbookPro17 network[15573]: [  OK  ]
Dec 28 17:18:37 MacbookPro17 ifplugd(eth1)[1161]: Link beat lost.
Dec 28 17:18:37 MacbookPro17 ifplugd(eth1)[1161]: SIGUSR1: Daemon suspended (#1)
Dec 28 17:18:37 MacbookPro17 dhclient[32362]: receive_packet failed on eth1: Network is down
Dec 28 17:18:37 MacbookPro17 ifplugd(eth1)[1161]: SIGUSR2: Daemon resumed (#1)
Dec 28 17:18:38 MacbookPro17 network[15573]: Bringing up interface eth1:  Error for wireless request "Set Encode" (8B2A) :
Dec 28 17:18:38 MacbookPro17 network[15573]: SET failed on device eth1 ; Invalid argument.
Dec 28 17:18:38 MacbookPro17 network[15573]: Error for wireless request "Set Encode" (8B2A) :
Dec 28 17:18:38 MacbookPro17 network[15573]: SET failed on device eth1 ; Invalid argument.
Dec 28 17:18:38 MacbookPro17 network[15573]: Another wpa_supplicant instance is already running for device eth1
Dec 28 17:18:38 MacbookPro17 network[15573]: Sorry, there is already an instance of ifplugd for eth1 running.
Dec 28 17:18:38 MacbookPro17 network[15573]: [FAILED]
Dec 28 17:18:38 MacbookPro17 network[15573]: Bringing up interface eth2:  ./ifup: interface eth2 is controlled by NetworkManager; skipping.
Dec 28 17:18:38 MacbookPro17 network[15573]: [  OK  ]
Dec 28 17:18:38 MacbookPro17 network[15573]: Bringing up interface usb0:  ERROR    : [/etc/sysconfig/network-scripts/ifup-eth] De...zation.
Dec 28 17:18:38 MacbookPro17 network[15573]: [FAILED]
Dec 28 17:18:38 MacbookPro17 network[15573]: Bringing up interface wlan0:  ./ifup: interface wlan0 is controlled by NetworkManage...ipping.
Dec 28 17:18:38 MacbookPro17 network[15573]: [  OK  ]
Dec 28 17:18:40 MacbookPro17 ifplugd(eth1)[1161]: Link beat detected.
Dec 28 17:19:56 MacbookPro17 ifplugd(eth1)[1161]: Executing '/etc/ifplugd/ifplugd.action eth1 down'.


Something to do with wpa_supplcant already running? How can that be?
DiBosco
 
Posts: 331
Joined: Aug 31st, '11, 10:22

Re: Wireless networking not reconnecting after sleep on M2

Postby doktor5000 » Dec 28th, '12, 22:54

Either networkmanager does not catch up nicely the suspend/resume cycle, or it detects that there's still a PID file
below /var/run/wpa_supplicant ... Can you please take a look there after resuming?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18017
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Wireless networking not reconnecting after sleep on M2

Postby dutchman » Dec 29th, '12, 06:45

You may have the same problem I had with a HP laptop last year. Seems it's an on-going bug with networkmanager (though they claim it's d-bus or pm-utils). The gist of it is that networkmanager doesn't always get the "wake" signal from d-bus, or doesn't always understand it. You can view the latest (AFAIK) bug report here: https://bugs.freedesktop.org/show_bug.cgi?id=30701

What ended up working for me was creating a script to run the following:

Code: Select all
dbus-send --system --print-reply --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.Sleep boolean:false && echo Done. || echo Failed.


That's all on one line. It has to be executed as root in a console. If networkmanager is sleeping, receives the message and wakes, it will return "Done." and the wifi will be back on. If it doesn't wake or doesn't understand the message, it will return "Failed." If it works, you may want to create a script so you can easily run it when you resume the laptop, it's a hack but easier than rebooting. Worked on my old HP. Unfortunately I don't have it anymore so I can't test it with Mageia to see if it still works.

Hope it helps.
Be the change you want to see in the world - Gandhi
User avatar
dutchman
 
Posts: 6
Joined: Dec 28th, '12, 02:36
Location: Missoula, Montana USA


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest