Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 39

Thread: [SOLVED] [12.04] No wifi working from sleep

  1. #11
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    22,032
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: [12.04] No wifi working from sleep

    Here is a technique that sometimes helps: http://ubuntuforums.org/showthread.p...1#post11694361

    Of course, you'll substitute iwl3945.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  2. #12
    Join Date
    Apr 2008
    Beans
    93

    Re: [12.04] No wifi working from sleep

    So, I've created /etc/pm/config.d/config with the "suspend" stanza.
    Totally no joy !
    This time, no LED lit after awakening the laptop, iwconfig says I'm not associated anymore and ifconfig shows no IP address...
    So I needed the couple ifdwon/ifup to get back on business.
    B.......

  3. #13
    Join Date
    Apr 2008
    Beans
    93

    Re: [12.04] No wifi working from sleep

    Hummm
    Today, I came home this mid day to gather some papers I forgot at home.
    I opened the laptop and was forced to ifdow/ifup the interface to make it work. I closed the laptop shut to go to work. It went into sleep mode.
    Now, after work, I opened the laptop and was surprised to see the Wifi led to blink !
    And astonished to get my mails downloaded without any intervention !
    So I've a problem going back from sleep but I wonder if it is not caused by anything else than the wifi interface/software....
    I'm more and more puzzled....
    P.S. : this very same laptop with this very same wifi card has been used a couple of years under Ubuntu (not the same release) without any problem. It came back from sleep without any problem. OK, at that time I used a Netgear 54 Mb/s wifi router instead of the set top box of my ISP (with 300 Mb/s wifi) I have now, but....

  4. #14
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    22,032
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: [12.04] No wifi working from sleep

    I am more than a little interested in this case because I have a Lenovo laptop with an Intel 3945 wireless card that resumes from sleep perfectly. It does, however, currently run 12.10. Another laptop runs 13.04 but uses an Intel 6200. One runs Network Manager; one does not.

    I am still suspicious of Network Manager. I'd like to see what, if anything, the logs say:
    Code:
    cat /var/log/syslog | grep etwork
    syslog fills up, archives and starts over from time to time, so let's look at the previous log as well:
    Code:
    cat /var/log/syslog.1 | grep etwork
    The next time you resume from sleep, let's see what the last several lines of the log is, whether wireless returns or not:
    Code:
    cat /var/log/syslog | tail -n25
    We hope there may be some clue as to what the fault is.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  5. #15
    Join Date
    Apr 2008
    Beans
    93

    Re: [12.04] No wifi working from sleep

    Hello !
    Tomorrow I'll try it without the config.d file just to see how it behave.
    I more and more think that we are chasing the wrong dog here.
    It worked twice this evening and none yesterday... As it's not Microsoft code, should be more consistent...
    See the requested information :
    here we are : cat /var/log/syslog | grep etwork
    Code:
    Jul  1 07:18:04 biniou dhclient: receive_packet failed on wlan0: Network is down
    Jul  1 12:19:27 biniou kernel: [31820.838472] iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, in-tree:s
    Jul  1 12:20:28 biniou dhclient: send_packet: Network is unreachable
    Jul  1 12:53:20 biniou dhclient: receive_packet failed on wlan0: Network is down
    Jul  1 19:17:24 biniou kernel: [33857.595299] iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, in-tree:s
    Jul  1 21:06:30 biniou dhclient: receive_packet failed on wlan0: Network is down
    Jul  1 23:13:06 biniou kernel: [40406.997400] iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, in-tree:s
    next : cat /var/log/syslog.1 | grep etwork
    Code:
    root@biniou:/etc/pm/config.d# cat /var/log/syslog.1 | grep etwork
    Jun 30 17:29:23 biniou dhclient: receive_packet failed on wlan0: Network is down
    Jun 30 18:42:47 biniou kernel: [19167.710370] iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, in-tree:s
    Jun 30 18:55:29 biniou dhclient: receive_packet failed on wlan0: Network is down
    Jun 30 20:55:08 biniou kernel: [19933.005180] iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, in-tree:s
    Jun 30 22:58:45 biniou dhclient: receive_packet failed on wlan0: Network is down
    Jul  1 06:03:44 biniou kernel: [27355.088246] iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, in-tree:s
    Jul  1 06:04:58 biniou kernel: [27429.653873] init: network-interface (wlan0) pre-start process (9274) killed by TERM signal
    Jul  1 06:04:58 biniou dhclient: send_packet: Network is unreachable
    root@biniou:/etc/pm/config.d#
    and last : cat /var/log/syslog | tail -n100
    Code:
    Jul  1 23:13:05 biniou kernel: [40404.428365] usb 5-1: reset low-speed USB device number 2 using uhci_hcd
    Jul  1 23:13:05 biniou kernel: [40404.735409] PM: resume of drv: dev:ep_00 complete after 1310.357 msecs
    Jul  1 23:13:05 biniou kernel: [40404.735434] PM: resume of drv:usbhid dev:5-1:1.0 complete after 1310.431 msecs
    Jul  1 23:13:05 biniou kernel: [40404.735468] PM: resume of drv: dev:ep_81 complete after 1310.439 msecs
    Jul  1 23:13:05 biniou kernel: [40404.828144] usb 6-2: reset full-speed USB device number 2 using uhci_hcd
    Jul  1 23:13:05 biniou kernel: [40404.974516] btusb 6-2:1.0: no reset_resume for driver btusb?
    Jul  1 23:13:05 biniou kernel: [40404.974521] btusb 6-2:1.1: no reset_resume for driver btusb?
    Jul  1 23:13:05 biniou kernel: [40405.224340] PM: resume of drv:usb dev:6-2:1.0 complete after 1799.242 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224352] PM: resume of drv: dev:ep_00 complete after 1798.992 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224358] PM: resume of drv:usb dev:6-2:1.3 complete after 1799.035 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224362] PM: resume of drv:usb dev:6-2:1.1 complete after 1799.173 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224365] PM: resume of drv:usb dev:6-2:1.2 complete after 1799.110 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224370] PM: resume of drv: dev:ep_81 complete after 1799.252 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224374] PM: resume of drv: dev:ep_84 complete after 1799.096 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224377] PM: resume of drv: dev:ep_82 complete after 1799.234 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224380] PM: resume of drv: dev:ep_04 complete after 1799.080 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224382] PM: resume of drv: dev:ep_02 complete after 1799.218 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224390] PM: resume of drv: dev:ep_03 complete after 1799.160 msecs
    Jul  1 23:13:05 biniou kernel: [40405.224394] PM: resume of drv: dev:ep_83 complete after 1799.182 msecs
    Jul  1 23:13:05 biniou kernel: [40406.712111] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    Jul  1 23:13:05 biniou kernel: [40406.713003] ata1.00: unexpected _GTF length (8)
    Jul  1 23:13:05 biniou kernel: [40406.716895] ata1.00: unexpected _GTF length (8)
    Jul  1 23:13:05 biniou kernel: [40406.717302] ata1.00: configured for UDMA/133
    Jul  1 23:13:05 biniou kernel: [40406.748487] PM: resume of drv:sd dev:0:0:0:0 complete after 3323.818 msecs
    Jul  1 23:13:05 biniou kernel: [40406.748502] PM: resume of drv:scsi_disk dev:0:0:0:0 complete after 3060.111 msecs
    Jul  1 23:13:05 biniou kernel: [40406.748527] PM: resume of drv:scsi_device dev:0:0:0:0 complete after 3323.812 msecs
    Jul  1 23:13:05 biniou kernel: [40406.748831] PM: resume of devices complete after 3331.215 msecs
    Jul  1 23:13:05 biniou kernel: [40406.749194] PM: resume devices took 3.332 seconds
    Jul  1 23:13:05 biniou kernel: [40406.749225] PM: Finishing wakeup.
    Jul  1 23:13:05 biniou bluetoothd[507]: HCI dev 0 down
    Jul  1 23:13:05 biniou bluetoothd[507]: Adapter /org/bluez/507/hci0 has been disabled
    Jul  1 23:13:05 biniou bluetoothd[507]: HCI dev 0 unregistered
    Jul  1 23:13:05 biniou bluetoothd[507]: Stopping hci0 event socket
    Jul  1 23:13:05 biniou bluetoothd[507]: Unregister path: /org/bluez/507/hci0
    Jul  1 23:13:05 biniou bluetoothd[507]: Endpoint unregistered: sender=:1.40 path=/MediaEndpoint/A2DPSink
    Jul  1 23:13:05 biniou bluetoothd[507]: Endpoint unregistered: sender=:1.40 path=/MediaEndpoint/A2DPSource
    Jul  1 23:13:05 biniou bluetoothd[507]: Endpoint unregistered: sender=:1.40 path=/MediaEndpoint/HFPAG
    Jul  1 23:13:05 biniou bluetoothd[507]: HCI dev 0 registered
    Jul  1 23:13:05 biniou bluetoothd[507]: Listening for HCI events on hci0
    Jul  1 23:13:05 biniou kernel: [40406.749226] Restarting tasks ... done.
    Jul  1 23:13:05 biniou bluetoothd[507]: HCI dev 0 up
    Jul  1 23:13:05 biniou bluetoothd[507]: input-headset driver probe failed for device 30:17:C8:11:5A:15
    Jul  1 23:13:05 biniou bluetoothd[507]: input-headset driver probe failed for device 84:00:D2:F4:66:A7
    Jul  1 23:13:05 biniou bluetoothd[507]: Adapter /org/bluez/507/hci0 has been enabled
    Jul  1 23:13:05 biniou bluetoothd[507]: Endpoint registered: sender=:1.40 path=/MediaEndpoint/HFPAG
    Jul  1 23:13:05 biniou bluetoothd[507]: Endpoint registered: sender=:1.40 path=/MediaEndpoint/A2DPSource
    Jul  1 23:13:05 biniou bluetoothd[507]: Endpoint registered: sender=:1.40 path=/MediaEndpoint/A2DPSink
    Jul  1 23:13:05 biniou kernel: [40406.884232] video LNXVIDEO:01: Restoring backlight state
    Jul  1 23:13:05 biniou acpid: client 1348[0:0] has disconnected
    Jul  1 23:13:05 biniou acpid: client connected from 1348[0:0]
    Jul  1 23:13:05 biniou acpid: 1 client rule loaded
    Jul  1 23:13:06 biniou anacron[13441]: Anacron 2.3 started on 2013-07-01
    Jul  1 23:13:06 biniou anacron[13441]: Normal exit (0 jobs run)
    Jul  1 23:13:06 biniou kernel: [40406.975102] cfg80211: Calling CRDA to update world regulatory domain
    Jul  1 23:13:06 biniou kernel: [40406.993144] cfg80211: World regulatory domain updated:
    Jul  1 23:13:06 biniou kernel: [40406.993148] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    Jul  1 23:13:06 biniou kernel: [40406.993151] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    Jul  1 23:13:06 biniou kernel: [40406.993153] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    Jul  1 23:13:06 biniou kernel: [40406.993156] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    Jul  1 23:13:06 biniou kernel: [40406.993158] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    Jul  1 23:13:06 biniou kernel: [40406.993161] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    Jul  1 23:13:06 biniou kernel: [40406.997400] iwl3945: Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux, in-tree:s
    Jul  1 23:13:06 biniou kernel: [40406.997403] iwl3945: Copyright(c) 2003-2011 Intel Corporation
    Jul  1 23:13:06 biniou kernel: [40406.997494] iwl3945 0000:04:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
    Jul  1 23:13:06 biniou kernel: [40406.997517] iwl3945 0000:04:00.0: setting latency timer to 64
    Jul  1 23:13:06 biniou kernel: [40407.051326] iwl3945 0000:04:00.0: Tunable channels: 13 802.11bg, 23 802.11a channels
    Jul  1 23:13:06 biniou kernel: [40407.051329] iwl3945 0000:04:00.0: Detected Intel Wireless WiFi Link 3945ABG
    Jul  1 23:13:06 biniou kernel: [40407.051476] iwl3945 0000:04:00.0: irq 47 for MSI/MSI-X
    Jul  1 23:13:06 biniou kernel: [40407.051620] Registered led device: phy0-led
    Jul  1 23:13:06 biniou kernel: [40407.051647] cfg80211: Ignoring regulatory request Set by core since the driver uses its own custom regulatory domain
    Jul  1 23:13:06 biniou kernel: [40407.051751] ieee80211 phy0: Selected rate control algorithm 'iwl-3945-rs'
    Jul  1 23:13:06 biniou wpa_supplicant[12150]: Failed to initiate AP scan.
    Jul  1 23:13:06 biniou kernel: [40407.079290] iwl3945 0000:04:00.0: loaded firmware version 15.32.2.9
    Jul  1 23:13:06 biniou wpa_supplicant[12150]: CTRL-EVENT-TERMINATING - signal 15 received
    Jul  1 23:13:06 biniou kernel: [40407.157665] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    Jul  1 23:13:06 biniou wpa_supplicant[13485]: Failed to initiate AP scan.
    Jul  1 23:13:06 biniou kernel: [40407.337303] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    Jul  1 23:13:06 biniou dhclient: DHCPREQUEST of 192.168.0.2 on wlan0 to 255.255.255.255 port 67
    Jul  1 23:13:06 biniou anacron[13634]: Anacron 2.3 started on 2013-07-01
    Jul  1 23:13:06 biniou anacron[13634]: Normal exit (0 jobs run)
    Jul  1 23:13:08 biniou kernel: [40409.020157] cfg80211: Found new beacon on frequency: 2467 MHz (Ch 12) on phy0
    Jul  1 23:13:08 biniou kernel: [40409.406067] cfg80211: Found new beacon on frequency: 5180 MHz (Ch 36) on phy0
    Jul  1 23:13:09 biniou dhclient: DHCPREQUEST of 192.168.0.2 on wlan0 to 255.255.255.255 port 67
    Jul  1 23:13:10 biniou wpa_supplicant[13485]: Trying to authenticate with 00:24:d4:66:6b:ac (SSID='FreeboxDeGeorges' freq=2412 MHz)
    Jul  1 23:13:10 biniou kernel: [40411.830870] wlan0: authenticate with 00:24:d4:66:6b:ac (try 1)
    Jul  1 23:13:10 biniou wpa_supplicant[13485]: Trying to associate with 00:24:d4:66:6b:ac (SSID='FreeboxDeGeorges' freq=2412 MHz)
    Jul  1 23:13:10 biniou kernel: [40411.832711] wlan0: authenticated
    Jul  1 23:13:10 biniou kernel: [40411.832904] wlan0: associate with 00:24:d4:66:6b:ac (try 1)
    Jul  1 23:13:10 biniou kernel: [40411.836951] wlan0: RX AssocResp from 00:24:d4:66:6b:ac (capab=0x411 status=0 aid=1)
    Jul  1 23:13:10 biniou kernel: [40411.836960] wlan0: associated
    Jul  1 23:13:10 biniou wpa_supplicant[13485]: Associated with 00:24:d4:66:6b:ac
    Jul  1 23:13:10 biniou kernel: [40411.841638] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    Jul  1 23:13:10 biniou wpa_supplicant[13485]: WPA: Key negotiation completed with 00:24:d4:66:6b:ac [PTK=CCMP GTK=TKIP]
    Jul  1 23:13:10 biniou wpa_supplicant[13485]: CTRL-EVENT-CONNECTED - Connection to 00:24:d4:66:6b:ac completed (auth) [id=0 id_str=]
    Jul  1 23:13:12 biniou dhclient: DHCPREQUEST of 192.168.0.2 on wlan0 to 255.255.255.255 port 67
    Jul  1 23:13:12 biniou dhclient: DHCPACK of 192.168.0.2 from 192.168.0.254
    Jul  1 23:13:12 biniou dhclient: bound to 192.168.0.2 -- renewal in 19411 seconds.
    Jul  1 23:13:22 biniou ntpdate[13804]: step time server 91.189.89.199 offset 1.044173 sec
    Jul  1 23:13:22 biniou kernel: [40422.848049] wlan0: no IPv6 routers present
    Jul  1 23:17:01 biniou CRON[13859]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
    root@biniou:/etc/pm/config.d#

  6. #16
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    22,032
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: [12.04] No wifi working from sleep

    I revert to a static interface definition and not on NM.
    However:
    Jul 1 23:13:12 biniou dhclient: DHCPREQUEST of 192.168.0.2 on wlan0 to 255.255.255.255 port 67
    Jul 1 23:13:12 biniou dhclient: DHCPACK of 192.168.0.2 from 192.168.0.254
    Jul 1 23:13:12 biniou dhclient: bound to 192.168.0.2 -- renewal in 19411 seconds.
    Jul 1 23:13:22 biniou ntpdate[13804]: step time server 91.189.89.199 offset 1.044173 sec
    Is it perhaps only the static configuration that won't resume correctly? Does the DHCP resume?

    I am troubled by this and I'm Googling:
    dhclient: receive_packet failed on wlan0: Network is down
    That may be a natural consequence of sleep.

    It all looks pretty solid.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  7. #17
    Join Date
    Apr 2008
    Beans
    93

    Re: [12.04] No wifi working from sleep

    Hello !
    This morning (very early), I booted the laptop without the config file in /etc/pm/config.d. Then after some time I put it to sleep and a while after, awakened it. No wifi. Zip.
    So I put back the /etc/pm/config.d/config file and restarted the whole ....and then put it to sleep.
    At noon, I awakened it, got a nice and clean wifi connection. Then I went back to work, with the laptop asleep.
    Now I'm home and the wifi is up and running. It start on awakening of the laptop.
    So your fix seems to work fine.
    The DHCP errors arose when the wifi link is not functional. Or when the wifi led blinks furiously but without any link set (iwconfig and ifconfig says that the link is up and set but.... ).
    With the /etc/pm/config.d/config file with the SUSPEND_MODULE stanza everything is like the last syslog I sent. The dhcp client send a request and got it's answer right away. (I fix all the IP addresses in the set top box DHCP server and the MAC filtering security also).
    So Maybe I should turn the whole subject as solved !
    Thanks for your help and advices !

  8. #18
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    22,032
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: [SOLVED] [12.04] No wifi working from sleep

    So Maybe I should turn the whole subject as solved !
    Awesome!

    https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  9. #19
    Join Date
    Apr 2008
    Beans
    93

    Re: [SOLVED] [12.04] No wifi working from sleep

    Well don't know if it is totally solved.
    Today, back from work. I open the laptop, the LED does not light. lsmod | grep 3945 shows all the modules are loaded. Ifconfig and iwconfig are a bit strange (iwconfig says it is associated with no access point...)
    sudo ifdown wlan0 works but sudo ifup wlan0 fails "wpa_supplicant failed to start".
    And :
    Code:
    georges@biniou:~$ ps ax | grep supplicant
     4270 ?        Ss     0:00 /sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -C /var/run/wpa_supplicant
    So I killed it
    Code:
    georges@biniou:~$ sudo  kill -TERM 4270
    georges@biniou:~$ ps ax | grep supplicant
     5801 pts/0    S+     0:00 grep supplicant
    georges@biniou:~$ sudo ifup wlan0
    ssh stop/waiting
    ssh start/running, process 5930
    georges@biniou:~$
    There is still a Gremlin left somewhere

  10. #20
    Join Date
    Apr 2008
    Beans
    93

    Re: [SOLVED] [12.04] No wifi working from sleep

    Well don't know if it is totally solved.
    Today, back from work. I open the laptop, the LED does not light. lsmod | grep 3945 shows all the modules are loaded. Ifconfig and iwconfig are a bit strange (iwconfig says it is associated with no access point...)
    sudo ifdown wlan0 works but sudo ifup wlan0 fails "wpa_supplicant failed to start".
    And :
    Code:
    georges@biniou:~$ ps ax | grep supplicant
     4270 ?        Ss     0:00 /sbin/wpa_supplicant -s -B -P /var/run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -C /var/run/wpa_supplicant
    So I killed it
    Code:
    georges@biniou:~$ sudo  kill -TERM 4270
    georges@biniou:~$ ps ax | grep supplicant
     5801 pts/0    S+     0:00 grep supplicant
    georges@biniou:~$ sudo ifup wlan0
    ssh stop/waiting
    ssh start/running, process 5930
    georges@biniou:~$
    There is still a Gremlin left somewhere

Page 2 of 4 FirstFirst 1234 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •