times out too early, stuck in PrepareForSleep, causing network and other services to not resume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd-shim (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Saucy |
Fix Released
|
High
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Unassigned |
Bug Description
After a suspend/resume, network-manager claimed that wireless was not available and would not let me reconnect to the wireless here. 'iwlist wlan1 scan' would also not work; so thinking that it was a driver problem, I rebooted the system. When it came back up, nm-applet in lightdm claimed that networking was disabled, and the option to enable it was greyed out. It could also not be enabled by nmcli. I ended up stopping network-manager, bringing up the interface via /etc/network/
So there are several problems here:
- after a reboot, network-manager claimed networking was disabled.
- nm-applet is not letting me enable networking from the lightdm session.
- the networking was failing after a suspend/resume cycle, and could not be enabled even from inside the user session.
The last issue probably *was* a kernel driver problem; but the first two issues are network-manager problems of some kind.
SRU INFORMATION:
----------------
Reproducer:
- Force suspend to take very long by adding a sleep:
echo -e '#!/bin/sh\nsleep 15\nexit 1' | sudo tee /usr/lib/
(this will also make suspend fail, which eases testing)
- Suspend from the menu or with
sudo gdbus call -y -d org.freedesktop
- With the 13.10 final version, systemd-shim will (often) time out, and the next Suspend call from above will fail with "Operation already in progress" and the network does not come back up. With the fixed version, network should be back up and the Suspend() call can be issued many times.
Fix:
https:/
https:/
Regression potential: Errors in this code could potentially break suspend/shutdown completely, so for verification both of these functionalities ought to be tested on real hardware.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: network-manager 0.9.8.0-0ubuntu8
ProcVersionSign
Uname: Linux 3.9.0-2-generic x86_64
ApportVersion: 2.10.2-0ubuntu1
Architecture: amd64
Date: Sat May 25 21:38:31 2013
InstallationDate: Installed on 2010-09-24 (974 days ago)
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
IpRoute:
default via 192.168.1.1 dev wlan1
10.0.3.0/24 dev lxcbr0 proto kernel scope link src 10.0.3.1
169.254.0.0/16 dev wlan1 scope link metric 1000
192.168.1.0/24 dev wlan1 proto kernel scope link src 192.168.1.106
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
MarkForUpload: True
NetworkManager.
[main]
NetworkingEnab
WirelessEnable
WWANEnabled=true
SourcePackage: network-manager
UpgradeStatus: Upgraded to saucy on 2013-05-06 (19 days ago)
WifiSyslog:
nmcli-con:
Error: command ['nmcli', '-f', 'all', 'con'] failed with exit code 9:
** (process:11977): WARNING **: Could not initialize NMClient /org/freedeskto
Error: nmcli (0.9.8.0) and NetworkManager (unknown) versions don't match. Force execution using --nocheck, but the results are unpredictable.
nmcli-dev: Error: command ['nmcli', '-f', 'all', 'dev'] failed with exit code 8: Error: NetworkManager is not running.
nmcli-nm:
RUNNING VERSION STATE NET-ENABLED WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
not running unknown unknown unknown unknown unknown unknown unknown
Steve Langasek (vorlon) wrote : | #1 |
- CRDA.txt Edit (257 bytes, text/plain; charset="utf-8")
- Dependencies.txt Edit (16.4 KiB, text/plain; charset="utf-8")
- IfupdownConfig.txt Edit (615 bytes, text/plain; charset="utf-8")
- IpAddr.txt Edit (1.3 KiB, text/plain; charset="utf-8")
- IwConfig.txt Edit (578 bytes, text/plain; charset="utf-8")
- NetDevice.eth0.txt Edit (350 bytes, text/plain; charset="utf-8")
- NetDevice.lo.txt Edit (190 bytes, text/plain; charset="utf-8")
- NetDevice.lxcbr0.txt Edit (220 bytes, text/plain; charset="utf-8")
- NetDevice.virbr0.txt Edit (220 bytes, text/plain; charset="utf-8")
- NetDevice.wlan1.txt Edit (394 bytes, text/plain; charset="utf-8")
- NetworkManager.conf.txt Edit (69 bytes, text/plain; charset="utf-8")
- PciNetwork.txt Edit (1.2 KiB, text/plain; charset="utf-8")
- ProcEnviron.txt Edit (313 bytes, text/plain; charset="utf-8")
- RfKill.txt Edit (182 bytes, text/plain; charset="utf-8")
Changed in network-manager (Ubuntu): | |
importance: | Undecided → High |
Launchpad Janitor (janitor) wrote : | #2 |
Changed in network-manager (Ubuntu): | |
status: | New → Confirmed |
Sameer Morar (smorar) wrote : | #3 |
A work around that works for me is killing the NetworkManager process using "sudo killall NetworkManager". The daemon re-starts and the network is restored.
Jimmy Sjölund (jimmy-sjolund) wrote : | #4 |
Sameer Morar's workaround worked like a charm on my Ubuntu Studio 13.10.
Evan Huus (eapache) wrote : | #5 |
I still see this fairly frequently, and it is strictly a network-manager problem. "sudo restart network-manager" causes it to reconnect gracefully without any problems or kernel magic.
I suspect a race condition, since it only happens about 1/3 of the time I suspend.
FWIW, I have a totally different network card (atheros).
Evan Huus (eapache) wrote : | #6 |
- Network Manager Log Output Edit (9.5 KiB, text/plain)
First I ran "sudo stop network-manager" then ran "sudo NetworkManager --no-daemon --log-level=DEBUG >nm.log 2>&1" and then I reproduced the issue. I have attached the complete log output of network-manager from the initial receive of the "suspend" signal to the point I ctrl-C'ed it after experiencing this bug.
For context, this system has two ethernet ports (eth0, eth1) that had no attached cable during the experiment, and one atheros wifi card (wlan0) which was connected.
Hopefully something in here (or the lack of something in here) will be helpful.
Tom Cameron (drdabbles) wrote : | #7 |
Not sure why my comment on my report of this bug didn't get merged into this one.
The work-around is to issue
nmcli nm sleep false
This tells NetworkManager to leave "sleep" mode. Restarting NetworkManager _happens_ to do this, but only by chance. I'd actually argue that restarting NetworkManager should _not_ reset sleep status, because you may actually want that to persist for lots of reasons over a restart.
Evan Huus (eapache) wrote : | #8 |
Interesting, so it's not even a NetworkManager bug - whatever is supposed to be sending that signal to nm isn't sending it sometimes, or is sending it before nm can receive it or something?
Dimitri John Ledkov (xnox) wrote : | #9 |
Maybe network-manager should ship shell snippet in pm-utils configuration directory to issue sleep false on resume/thaw?
Ritesh Khadgaray (khadgaray) wrote : | #10 |
- workaround Edit (363 bytes, text/plain)
We can send such signals using pm-utils . Needs testing .
<xnox> ritz: right, so pm-utils package has direcotries with scripts that are executed on suspend/resume, hibernate/thaw.
<ritz> aah, thanks
<xnox> ritz: so network-manager or user should just add scripts there.
ritz: see /usr/share/
ritz: you can ship things in /usr/lib/
<xnox> I think.<xnox> ritz: yeap, see $ man 8 pm-suspend.
Evan Huus (eapache) wrote : | #11 |
What component is *supposed* to be sending it that signal? I have noticed that in cases where this bug appears, other power management options also fail - trying to suspend again from the gear menu does nothing, I have to run pm-suspend from the cli. This indicates to me that some whole underlying subsystem is getting confused, and that other components may also need to be kicked - NetworkManager is just the most obvious one people notice right away.
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote : | #12 |
It looks like bug 1234469 might be a duplicate of this one.
Evan Huus (eapache) wrote : | #13 |
Yes, looks like a dupe.
Julien Olivier (julo) wrote : | #14 |
I had the exact same bug a few months ago. The issue was that NetworkManager is supposed to work with systemd, but Ubuntu chose to implement its own replacement to systemd instead (libsystemd-daemon0 I think). The issue I had previously was caused by libsystemd-daemon0 not sending the "resume" event to NetworkManager. I'd bet this is tre same issue here...
Julien Olivier (julo) wrote : | #15 |
I've just found it: it's probably this bug: https:/
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote : | #16 |
While inspecting the logind D-Bus object I've noticed that "PreparingForSleep" is still set to "true" after the suspend/resume cycle.
$ gdbus introspect --system --dest org.freedesktop
KoRnKloWn (kornklown) wrote : | #18 |
Somebody marked this as a duplicate to bug 1234469, which simply isn't the case, bug 1234469 is a duplicate of this one (as others already stated), just look at the creation dates, this one is the original, so, people need to use launchpad correctly ;) And why is it that everyone (like me) has the power to delete/set duplicate status and other things???
Anyways, I fixed the duplicate status, removed it from this one and set bug 1234469 as a duplicate of this bug.
summary: |
- network-manager has decided that networking is disabled, cannot be re- - enabled from lightdm + [logind] stuck in PrepareForSleep, causing network and other services to + not resume |
Changed in systemd (Ubuntu): | |
status: | New → Incomplete |
Sicco van Sas (sicco) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #19 |
I can confirm that the command 'sudo nmcli nm sleep false' works as a temporary fix (it only works when running it using sudo).
Pablo180 (paultait22) wrote : | #20 |
I'd just like to add that I have this problem, not on suspend (which I haven't tried since upgrading) but each and every time I resume from hibernate. I have to 'killall NetworkManager' to get networking back - every time.
nmcli nm sleep false - didn't work for me.
Ian Nicholson (imnichol) wrote : Re: [Bug 1184262] Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #21 |
On 10/22/2013 05:50 PM, Pablo180 wrote:
> I'd just like to add that I have this problem, not on suspend (which I
> haven't tried since upgrading) but each and every time I resume from
> hibernate. I have to 'killall NetworkManager' to get networking back -
> every time.
>
> nmcli nm sleep false - didn't work for me.
>
Did you run it with sudo?
Pablo180 (paultait22) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #22 |
Ian, just checked and no I didn't! I'll try it again next resume.
Craig Setera (craigjunk) wrote : | #23 |
I've just validated that
sudo nmcli nm sleep false
works for me after suspend
Alfredo Pacheco Jr (alfredo-pacheco32) wrote : | #24 |
I am also having this issue after upgrading from Lubuntu 13.04 to 13.10. However, I have my power settings to just turn off the screen when my laptop is closed. Sleep and hibernate are disabled unless I manually select them from the logout menu. But the logout menu is having its own issues on another bug report.
The only solution for me is to run
sudo shutdown -P now
or
sudo reboot
I haven't tried:
sudo nmcli nm sleed false. Will attempt save my files, close my lid and see if this is a temp fix for me.
Toshiba Satellite A135-S4427
Dan Gillmor (dan-gillmor) wrote : Re: [Bug 1184262] Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #25 |
I'm also having issues with shutdown/reboot. Menu doesn't work at times;
have to run shutdown or reboot -- and even that doesn't always work.
On 10/23/2013 09:27 AM, Alfredo Pacheco Jr wrote:
> I am also having this issue after upgrading from Lubuntu 13.04 to 13.10.
> However, I have my power settings to just turn off the screen when my
> laptop is closed. Sleep and hibernate are disabled unless I manually
> select them from the logout menu. But the logout menu is having its own
> issues on another bug report.
>
> The only solution for me is to run
>
> sudo shutdown -P now
> or
> sudo reboot
>
> I haven't tried:
>
> sudo nmcli nm sleed false. Will attempt save my files, close my lid and
> see if this is a temp fix for me.
>
> Toshiba Satellite A135-S4427
>
--
Dan Gillmor
dangillmor.
+1.650.868.7528
Alfredo Pacheco Jr (alfredo-pacheco32) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #26 |
Ok. I closed my lid and quickly opened it back up. The network was disabled and I was unable to open it.
Running | sudo nmcli nm sleep false | does infact work as a temp fix.
sdowney717 (sdowney717) wrote : | #27 |
I have found a serious issue now with the suspend.
The video card's fan (it is an x1300) will sometimes not spin up again!
I was using the PC and was getting video corruption then I looked down and the video fan is off.
It is free spinning so not stuck. I have the cover off as I was setting up 13.10 on the drive for another PC.
I can not use ubuntu if it is going to ruin my hardware. I certainly CAN NOT trust the suspend feature. It is totally random, sometimes following suspend the fan comes on, sometimes it does not.
Mark Whitley (mark-k-whitley) wrote : | #28 |
I started experiencing this same problem immediately after upgrading to saucy. Happens like clockwork every time my netbook wakes from suspend.
Hardware: MSI WIND U230
Ubuntu version: 13.10
Network driver: rt2800pci
I found a workaround on this thread:
http://
I was not able to use the "sudo service network-manager restart" fix because I do not have a 'network-manager' script in /etc/init.d/. I only have a 'networking' script and calling 'restart' on that locks up the system hard. I am able to use the "sudo killall NetworkManager" workaround.
Catalin Hritcu (catalin-hritcu) wrote : | #29 |
General question: since Ubuntu seems to not support reverting dist-upgrades, is there any collection of packages I can restore to their pre 13.10 working state to avoid this horrible problem? (If not I'll seriously consider switching distribution; this is just too much)
Pablo180 (paultait22) wrote : | #30 |
I don't know whether this means anything, but thought that it was worth mentioning. When using 13.04 I had previously had some problems with a kernel update and had gone back to using 3.8.0-30.
I manually updated to 3.11.0-12-generic, restarted, hibernated and resumed and networking was working fine. That's the first resume since upgrading in which networking has been working normally. I've since done it again to double check and it worked the second time too, so it looks like problem solved for me. Updating the kernel is the only change I have made today.
I don't know whether my problem is different to everyone else's, I only hibernate I don't suspend, but the same workarounds worked for me, so maybe this is relevant.
sdowney717 (sdowney717) wrote : | #31 |
I created an executable desktop file. Click on it and network comes up for me
Single line in the file says " gksu restart network-manager". I think putting "gksu nmcli nm sleep false" would also work.
For my video card fan not respinning from suspend, I unplugged fan wire from video card board and hardwired to a system fan plug on the motherboard. Now it spins up everytime the system awakens.
Ian Nicholson (imnichol) wrote : Re: [Bug 1184262] Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #32 |
On 10/23/2013 11:27 AM, Alfredo Pacheco Jr wrote:
> Toshiba Satellite A135-S4427
That's funny, I have a Satellite L875D-S7111.
Julien Olivier (julo) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #33 |
I occasionally have another suspend-related proble that might be related to this one somehow: after opening my lid, sometimes the laptop resumes, then suspends again automatically after a few seconds. If I then press the power button to resume again, it does the same again and again. And, after 3 or 4 suspend-resume loops, it finally settles down and resumes correctly. I guess some internal value is randomly stuck to the "suspended" state...
Catalin Hritcu (catalin-hritcu) wrote : | #34 |
@Pablo180 (paultait22) #30: I'm already running 3.11.0-12-generic, so changing to that can't be the fix.
@Julien Olivier (julo) #33: I also have this probably related problem, and so far I found no workaround for that, other than trying to resume again and again until it eventually works. I've already mentioned this in one of the duplicates (1234469), but I'll repeat the log I get from systemd-logind for a case in which the first 3 resumes failed, but the fourth one succeeded.
Lid closed.
Suspending...
Failed to execute operation: Message did not receive a reply (timeout by message bus)
Suspending...
Failed to execute operation: Message did not receive a reply (timeout by message bus)
Suspending...
Failed to execute operation: Message did not receive a reply (timeout by message bus)
Suspending...
Lid opened.
Operation finished.
Other problems I encountered that seem also related: sometimes the computer fails to suspend and sometimes even fails to shutdown. Everything worked fine before this crappy Ubuntu upgrade. I'm on a Dell Latitude 6400.
little jo (littel-jo) wrote : | #35 |
Hello,
I have the same bug. But there is no problem of network if you activate XMIR.
Pablo180 (paultait22) wrote : | #36 |
@Catalin you're right, it happened again. That is one in five resumes that the network fails to resume though, rather than every time like it did before, but still annoying.
Sicco van Sas (sicco) wrote : | #37 |
I have the same problem as #33 (julo), where my laptop automatically goes back to suspend after waking up. I can reproduce this as follows:
I start up my laptop, suspend it the first time, wake it up again and I can work on it just fine (except for this bug causing me to have no internet connection). The second time I then suspend and wake up, my laptop will automatically go back to suspend within 30 seconds (whether I log in or not). This cycle then continues and I'm forced to reboot in order to fix it. Note that this happens whether I do or do not use temporary internet connection fix 'sudo nmcli nm sleep false'.
Is this bug related, or should I (and julo) start a new bug report?
Alexander List (alexlist) wrote : | #38 |
I observed the same bug with current Saucy. Hardware is Lenovo TP x201 using iwlwifi.
After resume from suspend, networking is disabled. Enabling it in nm-applet has no effect.
Dan Gillmor (dan-gillmor) wrote : Re: [Bug 1184262] Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #39 |
This does work for me, every time:
sudo nmcli nm sleep false
On 10/24/2013 06:14 PM, Alexander List wrote:
> I observed the same bug with current Saucy. Hardware is Lenovo TP x201
> using iwlwifi.
>
> After resume from suspend, networking is disabled. Enabling it in nm-
> applet has no effect.
>
Alfredo Pacheco Jr (alfredo-pacheco32) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #40 |
***UPDATE***
Yesterday morning I decided to re-install Lubuntu. I spent a good time prepping/
I burned the Lubuntu 13.10 ISO in preparation to perform a fresh install seeing as how the upgrade from .04 to .10 had plagued me with many bugs. I rebooted, reformatted and partitioned the HDD and successfully installed Lubuntu 13.10.
As of now, 13.10 has been running with no issues. I did have the issue with Xfce4 power manager not running the first time, but that has since resolved itself.
I would also like to announce that network services resumes after I close and open the laptop. In power manager, I set my settings to "Do Nothing' when the lid is closed. The network icon does indicate no connection for a few seconds, but then restarts/resumes or establishes the saved WiFi connection.
This has resolved many issues that I have had and may work for others as well. Could I ask if anyone else having issues with the upgrade from 13.04 to 13.10 without a fresh install attempt a fresh install and also report if this solves the issue?
TOSHIBA SATELLITE A135-S4427
Lubuntu 13.10
3.11.0-12-generic (#19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013)
Matthew Babbs (matt-babbs) wrote : | #41 |
I have this problem, despite starting with a clean install.
However, I'm very rarely getting it since changing my disk setup: I moved /home off my netbook's main (very slow) SSD onto a separate SD card. I suspect that this has reduced demand on disk I/O, moving my netbook mostly beyond the theshold for the 'race condition' triggering this bug.
Formatting an HDD, as in Alfredo's comment #40, could have a similar effect on disk I/O speed. Might also explain why the bug wasn't spotted sooner, as devs tend to have faster PCs?
Ing. Radomír Polách (exander77) wrote : | #42 |
I am also experiencing this bug. I wonder what is wrong with you to release Ubuntu when such a huge bug is present. The bug was alraedy reported like in May. I doesn't even work on clean install.
hife (hife) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #44 |
I'm just going to list the symptoms I'm experiencing on Ubuntu 13.10 after most, but not all, sleep-resume cycles:
- Network Manager in sleep mode (fixable by executing: 'nmcli nm sleep false', works without sudo for me)
- System menu items for shutdown, reboot and sleep do nothing
- Sleep mode possible with sudo pm-suspend
- 'sudo shutdown now' is NOT working properly, but freezes at some point; I have not found a way to properly shut down my system. I'll go back and post the output I get when this happens, if that'll help.
I would like to know if there's a way to manually tell systemd to wake up. I have not been able to find a command for this in the manpages.
Ing. Radomír Polách (exander77) wrote : | #45 |
I am reproducing similar symptoms as hife, but I have also problems with resuming bluetooth after suspend. Maybe the problem is unrelated.
Dan Gillmor (dan-gillmor) wrote : Re: [Bug 1184262] Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #46 |
I'm having the same issues. I'm most concerned at this point about the
inability to shut down properly.
On 10/27/2013 09:46 AM, hife wrote:
> I'm just going to list the symptoms I'm experiencing on Ubuntu 13.10
> after most, but not all, sleep-resume cycles:
>
> - Network Manager in sleep mode (fixable by executing: 'nmcli nm sleep false', works without sudo for me)
> - System menu items for shutdown, reboot and sleep do nothing
> - Sleep mode possible with sudo pm-suspend
> - 'sudo shutdown now' is NOT working properly, but freezes at some point; I have not found a way to properly shut down my system. I'll go back and post the output I get when this happens, if that'll help.
>
> I would like to know if there's a way to manually tell systemd to wake
> up. I have not been able to find a command for this in the manpages.
>
Arild (arild-i) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #47 |
Contrary to #16 and the bug summary, for me PreparingForSleep is actually set to false when this occurs to me (at least this most recent time around). The commands and output below show how I observe this and wake Network Manager up.
Jean-Marc (m-balthazar) wrote : | #48 |
Same problems here after suspend.
I use "sudo nmcli nm sleep false" to restore the connection, "sudo reboot" to reboot, "sudo shutdown -h now" to shutdown and "sudo pm-suspend" to suspend.
Regards.
Id2ndR (id2ndr) wrote : | #49 |
After resuming, I got this bug. I tried $ sudo service networking restart => it crashed compiz. Apparently it seems to kill dbus but I don't know why. Am I the only one in this case ?
Tong Sun (suntong001) wrote : | #50 |
Contrary to Alfredo Pacheco's announce, my Lubuntu 13.10 is a fresh install from downloaded ISO, after reformatted the HDD partition, yet I get the same problem: wired & wireless network was not available. That's why I'm here.
The 1st solution in the thread, killing the NetworkManager process using "sudo killall NetworkManager" works for me. I think executing: 'nmcli nm sleep false' would work as well.
CBrider (zaknafien13) wrote : | #51 |
I am having similar issues with networking, and sometimes the sound card, and the video drivers. I also noticed that the time for this computer to boot, log-out, and log in is significantly (5-10 times) longer than it was when I was running 13.04. At first I had upgraded without a re-format. Today I re-installed after a reformat, and so far there have not been any videa or sound card issues, just the networking issue.
Tong Sun (suntong001) wrote : | #52 |
I remember reading the following but it took me more than 3 rounds of careful reading to find it again. So, re-posting again:
Evan Huus (eapache) wrote:
> it's not even a NetworkManager bug - whatever is supposed to be
> sending that signal to nm isn't sending it (correctly...)
>
> I have noticed that in cases where this bug appears, other power
> management options also fail - trying to suspend again from the
> gear menu does nothing, I have to run pm-suspend from the
> cli. This indicates to me that some whole underlying subsystem is
> getting confused, and that other components may also need to be
> kicked - NetworkManager is just the most obvious one people
> notice right away.
I believe this is the most accurate description of the problem:
- it's not merely a NetworkManager bug
- the whole suspend/wake up mechanize is not working properly
- NetworkManager is just the most obvious one people notice right away
On my machine, Acer Aspire AS5536, if I close the lid then open & wake it up, my wired & wireless network will be gone. If I close the lid a second time, the machine won't even go to the suspend stage again.
halfbeing (halfbeing) wrote : | #53 |
I am experiencing some of the same problems as reported by Hife above. The disabled network problem doesn't happen every time I wake my machine up, but on some of the occasions when it does I also find that sleep is disabled from the menu and from the function key, although I can still "sudo pm-suspend" from the terminal.
Rebooting from the Unity pull-down menu seems to be permanently disabled, regardless of whether networking or sleep are working, so I don't know if this is part of the same problem.
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote : | #54 |
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote : | #55 |
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote : | #56 |
Tong Sun (suntong001) wrote : | #57 |
The pm-utils and its configuration is fine, and maybe so of the network-manager.
I am able to further decouple the problem -- If I boot into text mode console, I am able to do "close the lid then open & wake it up" many many times without interruptting my wired & wireless network, while under Xorg (with fluxbox as WM), if I close the lid then open & wake it up, my wired & wireless network will be gone. If I close the lid a second time, the machine won't even go to the suspend stage again.
Conclusion: I think the problem has something to do with Xorg.
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote : | #58 |
The log files indicate that there is a problem with the D-Bus communication between systemd-logind and systemd-shim. Following entry is missing the systemd-shim log file:
=======
GDBus-debug:Call:
<<<< ASYNC COMPLETE org.freedesktop
SUCCESS
Martin Pitt (pitti) wrote : | #59 |
Something just crossed my mind: gnome-settings-
Craig Setera (craigjunk) wrote : | #60 |
I was seeing this on Unity before I decided to roll back to my backed-up 13.04 installation.
Evan Huus (eapache) wrote : | #61 |
Martin, I am seeing this regularly under Unity. Smells like a race condition to me.
Catalin Hritcu (catalin-hritcu) wrote : Re: [Bug 1184262] Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #63 |
I'm getting this with GNOME classic.
On Mon, Oct 28, 2013 at 4:19 PM, Evan Huus <email address hidden> wrote:
> Martin, I am seeing this regularly under Unity. Smells like a race
> condition to me.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1234469).
> https:/
>
> Title:
> [logind] stuck in PrepareForSleep, causing network and other services
> to not resume
>
> Status in “network-manager” package in Ubuntu:
> Confirmed
> Status in “systemd” package in Ubuntu:
> Incomplete
>
> Bug description:
> After a suspend/resume, network-manager claimed that wireless was not
> available and would not let me reconnect to the wireless here.
> 'iwlist wlan1 scan' would also not work; so thinking that it was a
> driver problem, I rebooted the system. When it came back up, nm-
> applet in lightdm claimed that networking was disabled, and the option
> to enable it was greyed out. It could also not be enabled by nmcli.
> I ended up stopping network-manager, bringing up the interface via
> /etc/network/
> network-manager *did* let me enable networking from my logged-in
> session.
>
> So there are several problems here:
> - after a reboot, network-manager claimed networking was disabled.
> - nm-applet is not letting me enable networking from the lightdm session.
> - the networking was failing after a suspend/resume cycle, and could not be enabled even from inside the user session.
>
> The last issue probably *was* a kernel driver problem; but the first
> two issues are network-manager problems of some kind.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 13.10
> Package: network-manager 0.9.8.0-0ubuntu8
> ProcVersionSign
> Uname: Linux 3.9.0-2-generic x86_64
> ApportVersion: 2.10.2-0ubuntu1
> Architecture: amd64
> Date: Sat May 25 21:38:31 2013
> InstallationDate: Installed on 2010-09-24 (974 days ago)
> InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
> IpRoute:
> default via 192.168.1.1 dev wlan1
> 10.0.3.0/24 dev lxcbr0 proto kernel scope link src 10.0.3.1
> 169.254.0.0/16 dev wlan1 scope link metric 1000
> 192.168.1.0/24 dev wlan1 proto kernel scope link src 192.168.1.106
> 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
> MarkForUpload: True
> NetworkManager.
> [main]
> NetworkingEnabl
> WirelessEnabled
> WWANEnabled=true
> SourcePackage: network-manager
> UpgradeStatus: Upgraded to saucy on 2013-05-06 (19 days ago)
> WifiSyslog:
>
> nmcli-con:
> Error: command ['nmcli', '-f', 'all', 'con'] failed with exit code 9:
> ** (process:11977): WARNING **: Could not initialize NMClient /org/freedeskto
> Error: nmcli (0.9.8.0) and NetworkManager (unknown) versions don't match. Force execution using --nocheck, but the results are unpredictable.
> nmcli-dev: Error: command ['nmcli', '-f', 'all', ...
Sicco van Sas (sicco) wrote : | #62 |
@Martin (#59) I am also experiencing the bug under Unity.
Julien Olivier (julo) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #64 |
I'm getting this all the time with GNOME Shell.
Pablo180 (paultait22) wrote : | #65 |
I too am using Unity.
Daniel Lombraña González (teleyinex) wrote : | #66 |
Hi,
I've also this problem. I upgraded yesterday to 13.10 and after suspend the network was gone. Then, I looked for the bug and I found it here. Applying the nmcli command fixes it, however, if I suspend the machine again and resume it, after few seconds it starts again to suspend without me doing anything, leaving the machine in an unusable state.
I think this is a big issue. How can I help?
Daniel Lombraña González (teleyinex) wrote : | #67 |
Ohh, and I'm using Unity too.
Catalin Hritcu (catalin-hritcu) wrote : | #68 |
@Daniel Lombraña González (teleyinex) #66
> however, if I suspend the machine again and resume it,
> after few seconds it starts again to suspend without me doing anything,
> leaving the machine in an unusable state.
Just try resuming again and again. For me this eventually works, but it sometimes takes 4-5 retries.
Nick (c-nick) wrote : | #69 |
I'm using Lubuntu 13.10 on an HP G62 and also have this issue.
When mine wakes from suspend it comes back, then very quickly switches back to a bash screen with a few lines that don't appear for long enough for me to read, then goes back to whetever I was doing.
Sometimes it has network and sometimes it doesn't.
Tong Sun (suntong001) wrote : | #70 |
I'm using gnome-settings-
Family5p (family5p) wrote : | #71 |
I am experiencing this bug after upgrade to Xubuntu 13.10 from Xubuntu 13.04.
- Network manager is often disabled after resume;
- The menu item for Suspend creates a `Do you want to suspend to RAM?' dialog, but after confirming, seems to only disable the Network manager (does not actually suspend the laptop);
- Log out->Restart from the menu logs me out but does not restart the laptop (shows the login screen instead).
- sudo pm-suspend works fine.
I am having to restart the newtork manager by running `sudo restart network-manager'
Changed in systemd (Ubuntu): | |
status: | Incomplete → Confirmed |
Martin Pitt (pitti) wrote : | #72 |
Wrt comment 57:
> Conclusion: I think the problem has something to do with Xorg.
In particular, if other people can confirm this, it seems related to the logind inhibitor that gnome-settings-
Martin Pitt (pitti) wrote : | #73 |
We have one theory what the problem could be (shim times out before finishing the method call). To test this, it would be great if affected people could install the systemd-shim version from my PPA: https:/
sudo add-apt-repository ppa:pitti/sru-test
sudo apt-get update
sudo apt-get upgrade
There are no other packages in it at the moment, so it's safe to upgrade. If you only want this specific package, grab one of these (depending on your architecture):
https:/
https:/
and install with "sudo dpkg -i /path/to/
Do you still get the problem with this? Does it behave any different?
affects: | network-manager (Ubuntu) → systemd-shim (Ubuntu) |
Changed in systemd-shim (Ubuntu): | |
status: | Confirmed → Incomplete |
Deep Security (deepsecurity) wrote : | #74 |
Dear Martin,
I installed systemd-shim as you described. Nothing's changed.
I still need to restart my network to be able to online after coming back from lock or sleep.
Regards.
Deep Security (deepsecurity) wrote : | #75 |
Dear Martin,
Actually after restarting my computer, everthing seemed fine to me.
I can easily come back from sleep and access to Internet without doing anything. I will be monitoring this 1 more day and let you know if everything is fine.
Thanks a lot for your helps.
Shaw Terwilliger (sterwill) wrote : | #76 |
@Daniel Lombraña González (teleyinex) #66
> however, if I suspend the machine again and resume it,
> after few seconds it starts again to suspend without me doing anything,
> leaving the machine in an unusable state.
I get the same behavior on my Thinkpad T420. Sleep works great, but when I wake it up the network is disabled. When I re-enable NetworkManager ("nmcli nm sleep false"), the machine starts putting itself to sleep repeatedly.
Having to manually enable wifi is a small annoyance, but the repeating-sleep behavior is extremely annoying. It can take 5 minutes of waking it back up before I can use it.
lebechec (lebechec) wrote : | #77 |
Sorry Martin, I installed systemd-shim (.deb) and nothing's changed (after reboot)
Gabriel A. Devenyi (gadevenyi) wrote : | #78 |
For those who don't want to restart to fix the problem
sudo pkill NetworkManager
reliably fixes the problem
Pablo180 (paultait22) wrote : | #79 |
Martin,
Thanks, I installed from the PPA and ran upgrade and then restarted, but on first resume afterwards networking was disabled. So it hasn't worked for me. Sorry.
Gabriel A. Devenyi (gadevenyi) wrote : | #80 |
Installed PPA, updated, upgraded, restarted
Suspend -> Resume -> Networking Disabled
Matthew Babbs (matt-babbs) wrote : | #81 |
Martin, the packages from your PPA seem to have fixed the problm on my netbook -- no problems with a several suspends. Closing lid, suspend from menu, or sleep key all seem to be OK.
WIll try on my desktop PC later as I've also been having the problem there.
I'd be happy to add some "before and after" log files if that would be helpful. Which log files would you want?
guillaume ramelet (guillaume-ramelet) wrote : | #82 |
Martin, it seems to work as well on my netbook.
Will have to live several days with it to be 100% positive.
I was thinking to reinstall 13.04, you saved my week. Thank you very much
Evan Huus (eapache) wrote : | #83 |
Martin, your package seems to have fixed the problem on my end (after four successful suspend/resume cycles, which would have been extremely unlikely previously).
Given that we don't have a consensus on whether the package works or not, we may have two interrelated issues at play. Yuck :(
guillaume ramelet (guillaume-ramelet) wrote : | #84 |
Martin,
After closing the lid and being away for a couple of hours, I have just resumed :
the network is up. However 4-5 seconds after, the network is disconnected and it looks like it will fall in suspend again. An action on the touchpad seems to get it back from sleep, then the network is up again for good.
It is much better than before because when it happened, I had to hard stop or remove battery.
But there is still an issue with suspend state in 13.10. (maybe in another bug entry)
Family5p (family5p) wrote : | #85 |
Martin,
I installed your package on Xubuntu 13.10.
- Network manager is ok after resume;
- I can now suspend the laptop from the menu;
- I can now restart the laptop from the menu.
However, one thing is now broken:
- previously the laptop would hibernate when the lid was closed, now it goes to sleep, despite `When the lid is closed' being set to `Hibernate' in the Power Manager settings. But `sudo pm-hibernate' works.
Jean-Marc (m-balthazar) wrote : | #86 |
Martin,
Your solution works for me on a desktop running 13.10 with 3.11.0-13 kernel and Unity 7.1.2.
Thank you.
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote : | #87 |
Family5p, for information regarding the broken lid event see bug 1222021 (Xfce).
Catalin Hritcu (catalin-hritcu) wrote : | #88 |
For me Martin's package solves the problem ~96.6% of the time, which is already great progress since before I was having the problem almost every time. I've tried suspending my machine about 30 times (10 times by closing the lid, 10 times by clicking the suspend button in the menu, and 10 times with pm-suspend), and I got only one case when the network didn't come back. In the failing case the error reported by systemd-logind was slightly different than before (see #34 for the previous error message):
Lid closed.
Suspending...
Failed to send delayed message: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Lid opened.
I no longer encountered the case when resumption didn't work at all (machine going back to sleep as in #34). And it happened twice that pm-suspend wouldn't do anything (with output from systemd-logind).
Anyway, this is a step in the right direction, I would say :)
Vladimir (vladimir-l) wrote : | #89 |
Hi Martin,
installing "systemd-shim" from your PPA seems to solve my problem, at least I do not experience the problem at the moment
Thanks a lot!
vladimir
Id2ndR (id-2ndr) wrote : Re: [Bug 1184262] Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #90 |
systemd-
Pablo180 (paultait22) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #91 |
Martin,
I previously said that your fix didn't work for me, but other than the first suspend after a reboot and subsequent resume in which networking was disabled, every other suspend and resume cycle (and also hybrid and hibernate) has come back with the network working fine again after resuming. Perhaps five or six times in a row now without problem. However I shall keep my eye on it and see if this has fixed the problem permanently. Thanks.
Ian Nicholson (imnichol) wrote : Re: [Bug 1184262] Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #92 |
On 10/30/2013 04:59 AM, Martin Pitt wrote:
> We have one theory what the problem could be (shim times out before finishing the method call). To test this, it would be great if affected people could install the systemd-shim version from my PPA: https:/
>
> sudo add-apt-repository ppa:pitti/sru-test
> sudo apt-get update
> sudo apt-get upgrade
>
> There are no other packages in it at the moment, so it's safe to
> upgrade. If you only want this specific package, grab one of these
> (depending on your architecture):
>
> https:/
> https:/
>
> and install with "sudo dpkg -i /path/to/
> shim_*.deb".
>
> Do you still get the problem with this? Does it behave any different?
>
> ** Package changed: network-manager (Ubuntu) => systemd-shim (Ubuntu)
>
> ** Changed in: systemd-shim (Ubuntu)
> Status: Confirmed => Incomplete
>
This seems to have resolved the bug for me as well.
Rafael Levi (rlevi66) wrote : Re: [logind] stuck in PrepareForSleep, causing network and other services to not resume | #93 |
Hi Martin,
I tryed twice and after fool reboot and it didn't work for me. Still the network is disabled after resume from suspend.
Cheers,
Rafi
Family5p (family5p) wrote : | #94 |
Just to say that I installed Martin's shim package, and, following Thaddäus's comment, applied a suggested workaround for a (perhaps unrelated) Xfce bug 1222021. As of now I do not see any of the earlier problems recur.
Daniel Lombraña González (teleyinex) wrote : | #95 |
Hi,
I've installed Martin's package, and after a reboot, if I suspend the laptop the result is exactly the same: no wifi at all.
However, the if I run pm-suspend with a fresh restart it works like a charm (even without Martin's package), so obviously there is something messing with the suspend mode from Unity or something similar.
Shaw Terwilliger (sterwill) wrote : | #96 |
I installed Martin's package, but it doesn't fix the issue on my Thinkpad T420. After resume, the network isn't usable and I have to run "nmcli nm sleep false" to enable it.
bruper (bruper59) wrote : | #97 |
Hi Martin,
I tryed and after reboot, it don't work for me.
Still the network is disabled after resume from suspend.
:-(
Tommy Trussell (tommy-trussell) wrote : | #98 |
I just added Martin Pitt's sru-test PPA and have been through several suspend/resume cycles. So far so good. It will take several hours to be sure this solves it, though.
QUESTION (is this the same issue?): About the same time the network fails (sometimes before sometimes after) I also notice I cannot use the "gear" panel menu in Unity to shut down, restart, or log out. The Shutdown/Restart or logout dialog usually comes up and I can click the shutdown or restart or logout button, but nothing happens, or at least not within the few tens of seconds I have waited. I usually resort to a VT or terminal window and a "sudo reboot" or "sudo shutdown -h now" command.
If this is a separate issue I will search for a different bug, but since I am also experiencing the loss of networking AND this bug has been applied to logind I presume I might be seeing a manifestation of the same problem. I'm also experiencing some other Unity flakiness that I associate (rightly or wrongly) with the same issues.
Jürgen (jurgen-depicker) wrote : | #99 |
Same for me: the ppa did the thing ( i also applied the workaround mentioned in #10 though). I'm using ub!ntu gnome - after resume, i'm no longer asked for a password?! Anyone alse with this issue?
Evan Huus (eapache) wrote : | #100 |
For fun (having read the changelog of Martin's shim package) I overloaded my system so much that suspend took slightly over a minute to complete, at which point I was able to reproduce the same failure as before installing the updated shim package. I have not otherwise experienced the problem (in numerous tests) since installing the updated shim.
This indicates conclusively that at least in my case, the timeout/race is the culprit. It also suggests a way that Martin (or another dev) might be able to reproduce. Find an older/weaker system, launch some VMs and start some compiles, and then run a suspend. Hopefully that will be enough to trigger it.
Ronald (ronald645) wrote : | #101 |
I'm assuming that I'm suffering from the same symptom. Packages from comment #73 fixed it after I manually resetted NetworkManager with nmcli.
I think that the comment #16 is mentioning the root cause of all this.
Possibly related bug: https:/
Tommy Trussell (tommy-trussell) wrote : | #102 |
UPDATE 1: regarding my question in comment #98: I read through the existing comments again and I see the non-functioning Shut Down, Restart, and Log Out menus ARE listed in comment #44.
UPDATE 2: I have been using the updated package Martin Pitt described in comment #73 and have NOT seen the bug through several dozen sleep/resume cycles under full load.
As others have commented, the problem is triggered under heavy system load. This netbook is an Acer Aspire One D260 with a 1.66Ghz dual-core Intel Atom N450 processor and Intel graphics, so opening Chrome with a couple of dozen tabs, Thunderbird, Firefox, DropBox, Ubuntu One PLUS a few more apps (as I am wont to do) is definitely a bit of a strain on the hardware. ;-)
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote : | #103 |
logind is waiting for systemd-shim to finish the actual suspend/resume progress, but the D-Bus connection will timeout, If the whole suspend/resume cycle takes longer than 30 sec. In this case logind reverts back to normal mode (PreparingForSleep = false), but the signal to inform clients like network-manager about the state change does not get emitted.
Pablo180 (paultait22) wrote : | #104 |
I'd just like to echo what some other have said regarding Martin's PPA. It has improved things, but it hasn't fixed it. I now have about one resume a day where networking is disabled and won't come back without the workarounds above, it was previously about 50/50. This is out of about 10 resume a day. I am not sure whether this is related but the one that fails tend to be the first resume of the day, with the laptop being hibernating overnight (at least for two days running now so could still be coincidence).
tophill (tp) wrote : | #105 |
This seems to have fixed an annoying problem for me, thank you very much. Network OK after every suspend so far.
In case others have this, I noticed another problem since upgrade to 13.10. Sound settings output device is not saved. On reboot It defaults to wrong choice. After being reset manually, it works fine. Didn't spot this in bug reports.
Giuseppe (giusepm) wrote : | #106 |
Hi! Martin's PPA didn't fix for me!
Duarte Gomes (dnunogomes) wrote : | #107 |
replaced the package as told in commment #73. Now i can suspend and resume several times with NetworkManager sorting things out good. it worked , thanks.
description: | updated |
Emil Maric (emil-maric) wrote : | #108 |
Martin's package didn't fix it for me.
I'd also like to add that it seems Ubuntu's behavior has changed with regards to "Suspending". In earlier versions, my computer would be put to sleep after I pressed suspend. Now it just seems to take me to the log in screen, without turning off my display. Once I log back in, my display is turned off within 5 seconds. I then press "Enter", and it resumes normally.
Martin Pitt (pitti) wrote : Re: [logind] times out too early, stuck in PrepareForSleep, causing network and other services to not resume | #109 |
Thanks everyone for testing! So it seems this fixes the issue for about half the people. The others have a different bug which breaks suspend similarly, but for a different reason. We need a new bug report for this then, with a D-BUS monitor log during suspend (https:/
summary: |
- [logind] stuck in PrepareForSleep, causing network and other services to - not resume + [logind] times out too early, stuck in PrepareForSleep, causing network + and other services to not resume |
Changed in systemd (Ubuntu): | |
status: | Confirmed → Invalid |
Changed in systemd-shim (Ubuntu): | |
assignee: | nobody → Martin Pitt (pitti) |
status: | Incomplete → In Progress |
Martin Pitt (pitti) wrote : | #110 |
Note to Ryan and myself: For the final fix we should not just make the timeout longer, as that would still cause a resume failure when suspending for more than 10 minutes (in my PPA case), but completely disable the timeout while a method call is being executed. That might help for a few more people here (or perhaps even most of them).
Changed in systemd (Ubuntu Saucy): | |
status: | New → Invalid |
Changed in systemd-shim (Ubuntu Saucy): | |
status: | New → Triaged |
importance: | Undecided → High |
Rafael Levi (rlevi66) wrote : | #111 |
- dbus-monitor > dbus.log Edit (3.5 MiB, text/plain)
I wasn't sure what output you need so I add the whole dbus-monitor output. The system went to suspend and woke up but the network stayed disabled. Killall NetworkManager did the trick.
Guido Do (guido-dornbusch) wrote : | #112 |
- dBus log from suspend -> wake - and force reboot Edit (123.9 KiB, text/plain)
attaching a dBus log from a suspend.
I also have the missing network connection issue - in addition after wake from suspend the graphic is corrupted in addition in my case. A forced reboot (ctrl-alt-delete in F1 terminal) reboots and the network is not even available.
Non of these instruction works in this case
- nmcli nm sleep false
- sudo service network-manager restart
- sudo killall NetworkManager
Only complete switching off the Desktop power supply for several seconds an rebooting afterwards helps to recover network.
no problems with 13.04 and all older version on this machine.
Shaw Terwilliger (sterwill) wrote : | #113 |
In my previous comment I said that Martin's package didn't fix my issue, but two days after I said that, the suspend-repeat loop seems to have gone away. Sometimes my wifi turns on automatically on resume, sometimes it doesn't.
Overall, it's a much better experience, but there's still some work to do. Thanks, Martin!
Paul Smedley (paul-smedley) wrote : | #114 |
Comment in #73 seems to have fixed things for me too
Martin Pitt (pitti) wrote : Re: [Bug 1184262] Re: [logind] times out too early, stuck in PrepareForSleep, causing network and other services to not resume | #115 |
Hello Rafael,
Rafael Levi [2013-11-04 22:45 -0000]:
> I wasn't sure what output you need so I add the whole dbus-monitor
> output.
That was the session D-BUS, though. Sorry if I was unclear, you need
to follow the "system bus" recipe on https:/
Martin Pitt (pitti) wrote : | #116 |
Hello Guido,
Guido Do [2013-11-04 22:49 -0000]:
> attaching a dBus log from a suspend.
>
> I also have the missing network connection issue
Did that happen after the particular suspend you monitored with your
log? That did have the "PrepareForSleep False" signal which was
otherwise missing. However, your D-BUS log is incomplete (only
signals, no method calls), you need to follow the "system bus" recipe
on https:/
> - in addition after
> wake from suspend the graphic is corrupted in addition in my case.
That's a different bug, I'm afraid.
b3nmore (b3nmore) wrote : Re: [logind] times out too early, stuck in PrepareForSleep, causing network and other services to not resume | #117 |
- sys_bus_w_methods.log Edit (65.6 KiB, text/plain)
Finally I could reproduce this issue, even with systemd-shim from #73 installed. Attached is the system dbus monitor log of a hibernate/resume cycle, where nm wasn't awoke.
It seems to me , that (at least in my case) the duration of the hibernation period plays a role, i.e. I could only reproduce it, if resume takes place a few hours after hibernation.
b3nmore (b3nmore) wrote : | #118 |
- sys_bus_w_methods_later.log Edit (149.8 KiB, text/plain)
I ran another hibernate/resume cycle directly after the failed cycled documented in the previous post, leaving nm in its unconnected state. After resume, nm managed to connect to my wifi as it should.
Duke (duke1995) wrote : | #119 |
- D-Bus system bus monitoring log Edit (89.1 KiB, text/plain)
Here's another D-Bus system bus monitoring log. I followed the instructions at https:/
After suspending and resuming networking was not working. I had to execute 'sudo nmcli nm sleep false' in order to get the networking working again.
The only fix I have applied up to now is the one I found at http://
Aside: It seems that when I run 'nmcli nm sleep false' as a non-sudo user, the networking starts working again, but afterwards I am unable to suspend/
Emil Maric (emil-maric) wrote : | #120 |
Martin Pitt (pitti) wrote : Re: [Bug 1184262] Re: [logind] times out too early, stuck in PrepareForSleep, causing network and other services to not resume | #121 |
b3nmore [2013-11-07 18:20 -0000]:
> It seems to me , that (at least in my case) the duration of the
> hibernation period plays a role, i.e. I could only reproduce it, if
> resume takes place a few hours after hibernation.
Indeed, the cutoff point would be 10 minutes (that's the timeout of
the current PPA version). As I wrote, that's just an experimental one
which confirms that this is the problem. The real solution is to
completely disable the timeout until a method call is fully done.
b3nmore (b3nmore) wrote : Re: [logind] times out too early, stuck in PrepareForSleep, causing network and other services to not resume | #122 |
> Indeed, the cutoff point would be 10 minutes (that's the timeout of
> the current PPA version). As I wrote, that's just an experimental one
> which confirms that this is the problem. The real solution is to
> completely disable the timeout until a method call is fully done.
That was my first thought too, when trying to find reproducible conditions. But in my case 30 minutes are definitive not long enough (just tested it). I would even say the hibernation period must be longer than 1h (not tested thoroughly).
Btw, at which point in the hibernation/resume cycle does the timeout start counting?
Tin Tvrtkovic (tinchester) wrote : | #123 |
I'm affected by this problem and I'd like to help. Are you still collecting system DBus logs?
Martin Pitt (pitti) wrote : Re: [Bug 1184262] Re: [logind] times out too early, stuck in PrepareForSleep, causing network and other services to not resume | #124 |
Tin Tvrtkovic [2013-11-08 8:56 -0000]:
> I'm affected by this problem and I'd like to help. Are you still
> collecting system DBus logs?
Not for now, thanks. The recent logs pretty much all agree that the
PrepareForSleep
description: | updated |
Changed in systemd-shim (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
description: | updated |
Duke (duke1995) wrote : Re: [logind] times out too early, stuck in PrepareForSleep, causing network and other services to not resume | #125 |
I am glad to see a fix has been committed for Trusty, I hope the same fix will be applied soon for Saucy too (for the moment the bug has not been assigned for Saucy yet).
Thanks a lot in advance.
Martin Pitt (pitti) wrote : | #126 |
I uploaded systemd-shim 4 to trusty, and to the saucy-proposed SRU review queue.
Changed in systemd-shim (Ubuntu Saucy): | |
importance: | High → Undecided |
status: | Triaged → In Progress |
importance: | Undecided → High |
assignee: | nobody → Martin Pitt (pitti) |
summary: |
- [logind] times out too early, stuck in PrepareForSleep, causing network - and other services to not resume + times out too early, stuck in PrepareForSleep, causing network and other + services to not resume |
Launchpad Janitor (janitor) wrote : | #127 |
This bug was fixed in the package systemd-shim - 4-0ubuntu1
---------------
systemd-shim (4-0ubuntu1) trusty; urgency=low
* New upstream release:
- Flush bus before exiting on idle to avoid a race where a message is
queued up but not yet sent. (LP: #1184262, part 1)
- Adjust the definition of "inactivity" to be 10 seconds after done
processing the last request instead of 10 seconds after we started.
This matters for long-running tasks like suspend. (LP: #1184262, part 2)
- Don't exit-on-idle while shutting down to avoid losing the flag that
tells us we are in the middle of a shutdown. (Necessary, but not
sufficient for LP #1211514)
-- Martin Pitt <email address hidden> Tue, 12 Nov 2013 09:31:19 +0100
Changed in systemd-shim (Ubuntu Trusty): | |
status: | Fix Committed → Fix Released |
Martin Pitt (pitti) wrote : | #128 |
For our friends on 13.10, I updated my PPA (https:/
Changed in systemd-shim (Ubuntu Trusty): | |
milestone: | none → ubuntu-13.11 |
Gabriel A. Devenyi (gadevenyi) wrote : | #129 |
This bug isn't fixed, I still lose network on suspend/resume when installing the latest systemd-shim from the linked PPA.
Pablo180 (paultait22) wrote : | #130 |
Have to agree with Gabriel #129. I installed the latest version from PPA yesterday and restarted, but today I also lost network on resume again.
Martin Farrell (fazzuk) wrote : | #131 |
Thanks Martin for all your efforts on this bug. You're PPA has totally fixed the bug for me on 13.10.
Sorry to hear its not working for everyone.
A. Richard Miller (themillers) wrote : | #132 |
Big thanks from me, too, Martin Pitt!
I installed your PPA on my Ubuntu 13.10/Acer AO722 netbook about eight hours ago, and have exercised it quite a bit. As with Martin Farrell, your PPA seems to have totally fixed my Suspend failures. (They began with the beta of Ubuntu 13.10; see my comments in the parallel bug 1027202.)
Here's hoping all affected Ubuntu users can breathe this sigh of relief, real soon now.
Brian Murray (brian-murray) wrote : Please test proposed package | #133 |
Hello Steve, or anyone else affected,
Accepted systemd-shim into saucy-proposed. The package will build now and be available at http://
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
Changed in systemd-shim (Ubuntu Saucy): | |
status: | In Progress → Fix Committed |
tags: | added: verification-needed |
Rafael Levi (rlevi66) wrote : | #134 |
systemd-
tags: |
added: verification-failed removed: verification-needed |
Martin Pitt (pitti) wrote : | #135 |
Rafael, thanks for testing. We know that this update does not fix the problem for everyone, but it seems to fix it for half/most of the reporters here. So may I ask for only declaring this verification-failed if you see a regression, i. e. if this version makes it worse than before? After you get this update, and we can exclude that particular failure mode, we need a new bug report (as this has grown way too big and noisy with too many subscribers, and this particular root cause has been understood and fixed), where we do a new round of debugging and log collection. Thank you!
tags: |
added: verification-needed removed: verification-failed |
Peng (pengwg) wrote : | #136 |
Unfortunately my problem wasn't fix either using saucy proposed. Looking forward to a new bug report.
Philipp Keck (philipp-v) wrote : | #137 |
Doesn't work for me either. I installed "systemd-
Rafael Levi (rlevi66) wrote : Re: [Bug 1184262] Re: times out too early, stuck in PrepareForSleep, causing network and other services to not resume | #138 |
Hi,
I understand that it's difficult to deal with several bugs that look the
same. Before I file a new bug. Is there anything I can do to distinguish
the bug I have from the solve one? They have the same symptoms.
Rafael.
On Nov 14, 2013 10:31 PM, "Martin Pitt" <email address hidden> wrote:
> Rafael, thanks for testing. We know that this update does not fix the
> problem for everyone, but it seems to fix it for half/most of the
> reporters here. So may I ask for only declaring this verification-failed
> if you see a regression, i. e. if this version makes it worse than
> before? After you get this update, and we can exclude that particular
> failure mode, we need a new bug report (as this has grown way too big
> and noisy with too many subscribers, and this particular root cause has
> been understood and fixed), where we do a new round of debugging and log
> collection. Thank you!
>
> ** Tags removed: verification-failed
> ** Tags added: verification-needed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> times out too early, stuck in PrepareForSleep, causing network and
> other services to not resume
>
> Status in “systemd” package in Ubuntu:
> Invalid
> Status in “systemd-shim” package in Ubuntu:
> Fix Released
> Status in “systemd” source package in Saucy:
> Invalid
> Status in “systemd-shim” source package in Saucy:
> Fix Committed
> Status in “systemd” source package in Trusty:
> Invalid
> Status in “systemd-shim” source package in Trusty:
> Fix Released
>
> Bug description:
> After a suspend/resume, network-manager claimed that wireless was not
> available and would not let me reconnect to the wireless here.
> 'iwlist wlan1 scan' would also not work; so thinking that it was a
> driver problem, I rebooted the system. When it came back up, nm-
> applet in lightdm claimed that networking was disabled, and the option
> to enable it was greyed out. It could also not be enabled by nmcli.
> I ended up stopping network-manager, bringing up the interface via
> /etc/network/
> network-manager *did* let me enable networking from my logged-in
> session.
>
> So there are several problems here:
> - after a reboot, network-manager claimed networking was disabled.
> - nm-applet is not letting me enable networking from the lightdm
> session.
> - the networking was failing after a suspend/resume cycle, and could
> not be enabled even from inside the user session.
>
> The last issue probably *was* a kernel driver problem; but the first
> two issues are network-manager problems of some kind.
>
> SRU INFORMATION:
> ----------------
> Reproducer:
> - Force suspend to take very long by adding a sleep:
> echo -e '#!/bin/sh\nsleep 15\nexit 1' | sudo tee
> /usr/lib/
> (this will also make suspend fail, which eases testing)
> - Suspend from the menu or with
> sudo gdbus call -y -d org.freedesktop
> /org/freedeskto
> - With the 13.10 final version...
Horst Schirmeier (horst) wrote : | #139 |
systemd-shim 4-0ubuntu0.13.10 from saucy-proposed solved the problem for me. Thanks for your bug-hunting efforts!
Martin Pitt (pitti) wrote : | #140 |
Rafael Levi [2013-11-15 19:44 -0000]:
> I understand that it's difficult to deal with several bugs that look the
> same. Before I file a new bug. Is there anything I can do to distinguish
> the bug I have from the solve one?
For one, if the -proposed package didn't help then that's a strong
indication that it's a different bug. I suggest with the proposed
package installed, you create a D-BUS system monitor log
(https:/
Just start with "apport-bug systemd-services", we'll figure out along
the way which package it really belongs to.
Thanks!
Gabriel A. Devenyi (gadevenyi) wrote : | #141 |
As per comment #140, I have submitted a new bug #1252121 with Dbus logging.
Martin Pitt (pitti) wrote : | #142 |
Can we please get some more people to test this, so that this can be released into -updates soon? Both "it fixed my problem" and "I still have the problem, but the update does not make it worse" are appreciated. And of course, if this update makes it worse, this would be a showstopper and we definitively need to hear about it (although the nature of the patch makes that very unlikely).
Catalin Hritcu (catalin-hritcu) wrote : | #143 |
This doesn't make it worse for me, it makes it better, but it still doesn't completely solve the network failing to resume problem. As with the first patch I get a failure rate of around 1 in 30. I've tried suspending 30 times in 3 different ways: using the lid, using "sudo pm-suspend" and the menu or the power button menu. The X below shows the failure :)
lid: ||||| X||||
pm-suspend: ||||| |||||
menu/power button: ||||| |||||
The failure case was solved by running "nmcli nm sleep false".
Julien Olivier (julo) wrote : | #144 |
As for me, that completely fixes the problem. Thanks!
Martin Pitt (pitti) wrote : | #145 |
Hello Catalin,
thanks for your feedback!
Catalin Hritcu [2013-11-19 8:17 -0000]:
> lid: ||||| X||||
> pm-suspend: ||||| |||||
> menu/power button: ||||| |||||
Interesting, thanks for pointing that out. If it can be confirmed that
this now only happens if you close the lid, then this indeed deserves
a new bug report, or perhaps it's the same issue as Gabriel has in bug
1252121. I'll ask there, too.
It would also be interesting if you ever get a suspend failure with
this:
sudo gdbus call -y -d org.freedesktop
This should ideally be equivalent to running pm-suspend or the
menu/power button, but it is only sometimes equivalent to closing the
lid. The lid is handled by logind internally *unless* there is a
running Unity/GNOME session. On some laptops there are pm-suspend
quirks which switch to VT1 before suspend, which might be related.
Catalin Hritcu (catalin-hritcu) wrote : | #146 |
I'll try this experiment and report in the next 24 hours then. It takes quite a bit, and I'll try to get a larger number of repeats.
Philipp Keck (philipp-v) wrote : | #147 |
I don't have the time to repeat the experiments, however in my case it seems to be pretty deterministic: None of the suggested ways works (menu, pm-suspend, the other command or lid-close, which i usually do).
Martin Pitt (pitti) wrote : | #148 |
Philipp Keck [2013-11-19 10:11 -0000]:
> I don't have the time to repeat the experiments, however in my case it
> seems to be pretty deterministic: None of the suggested ways works
> (menu, pm-suspend, the other command or lid-close, which i usually do).
If even "sudo pm-suspend" does not work, then this isn't related to
logind/systemd-shim at all, and you seem to have an entirely different
bug. Presumably the network driver which does not get along with
suspend?
Matthew Babbs (matt-babbs) wrote : | #149 |
The fix in -proposed repo makes the situation much better for me. Both my desktop and netbook, which were hitting the bug every suspend, now show it only occasionally -- as in, it may happen once every few days.
I presume that's from a different cause so I'll try to get logs for bug #1252121 next time it happens.
Martin Pitt (pitti) wrote : | #150 |
Thanks everyone for testing and your patience! We got sufficiently many verification results now. Let's move this to -updates after the 7 days are over, and close this bug report which already got way out of hand. Remaining network failures after resume should be discussed on bug 1252121, I left some debugging questions there.
tags: |
added: verification-done removed: verification-needed |
Martin Pitt (pitti) wrote : | #151 |
For the record: anyone who is still affected by this particular symptom (network not coming up after suspend), please subscribe to and have a look at bug 1252121. I put a fix into my https:/
If you have another suspend problem (some people reported that suspend takes very long), please file a new bug.
Thanks!
Launchpad Janitor (janitor) wrote : | #152 |
This bug was fixed in the package systemd-shim - 4-0ubuntu0.13.10
---------------
systemd-shim (4-0ubuntu0.13.10) saucy-proposed; urgency=low
* New upstream release:
- Flush bus before exiting on idle to avoid a race where a message is
queued up but not yet sent. (LP: #1184262, part 1)
- Adjust the definition of "inactivity" to be 10 seconds after done
processing the last request instead of 10 seconds after we started.
This matters for long-running tasks like suspend. (LP: #1184262, part 2)
- Don't exit-on-idle while shutting down to avoid losing the flag that
tells us we are in the middle of a shutdown. (Necessary, but not
sufficient for LP #1211514)
-- Martin Pitt <email address hidden> Tue, 12 Nov 2013 09:31:19 +0100
Changed in systemd-shim (Ubuntu Saucy): | |
status: | Fix Committed → Fix Released |
Brian Murray (brian-murray) wrote : Update Released | #153 |
The verification of the Stable Release Update for systemd-shim has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.
Changed in systemd-shim (Ubuntu Saucy): | |
assignee: | Martin Pitt (pitti) → nobody |
Changed in systemd-shim (Ubuntu Trusty): | |
assignee: | Martin Pitt (pitti) → Gruia Catalin (catalynn-nr1) |
Anton Statutov (astatutov) wrote : | #154 |
I still have this issue. The system is up-to-date.
My network controller:
44:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)
Linux kernel:
Linux stant-laptop 3.11.0-14-generic #21-Ubuntu SMP Tue Nov 12 17:07:40 UTC 2013 i686 i686 i686 GNU/Linux
Package version:
ii systemd-shim 4-0ubuntu0.13.10
Can someone hint me what have I missed?
penalvch (penalvch) wrote : | #155 |
Anton Statutov, if you still have this issue, than this report doesn't cover your problem as it is marked Fix Released. Please file a new report via a terminal:
ubuntu-bug systemd-shim
Martin Pitt (pitti) wrote : | #156 |
Changed in systemd-shim (Ubuntu Trusty): | |
assignee: | Gruia Catalin (catalynn-nr1) → nobody |
Daniel Lombraña González (teleyinex) wrote : | #157 |
This bugs keeps affecting me even with the latest version. Can I do something to get this fixed?
penalvch (penalvch) wrote : | #158 |
Daniel Lombraña González, Please see https:/
Sergei Solo (solomatkins) wrote : | #159 |
In latest version of Ubuntu 14.04 this bug not fixed!
I can't enable wireless networking after my laptop resumed from suspend.
p.s. suspend turning with some errors too:
1) It take more time (in Ubuntu 12.04 laptop suspend faster)
2) before display turns off and laptop become full suspended - I see Ubuntu lock screen and hear Ubuntu notice sound.
Sergei Solo (solomatkins) wrote : | #160 |
Bug report here: https:/
Brad Figg (brad-figg) wrote : Missing required logs. | #161 |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1184262
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.
Changed in linux (Ubuntu): | |
status: | New → Incomplete |
Changed in linux (Ubuntu Saucy): | |
status: | New → Incomplete |
Changed in linux (Ubuntu Trusty): | |
status: | New → Incomplete |
Carlos A. (cif2cif) wrote : apport information | #162 |
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: Unity
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2014-04-15 (16 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Beta amd64 (20140326)
MachineType: Dell Inc. Dell System XPS L322X
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.127
Tags: trusty trusty trusty
Uname: Linux 3.13.0-24-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare scanner sudo
_MarkForUpload: True
dmi.bios.date: 01/22/2013
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A07
dmi.board.name: 0WG38X
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.
dmi.modalias: dmi:bvnDellInc.
dmi.product.name: Dell System XPS L322X
dmi.sys.vendor: Dell Inc.
tags: | added: apport-collected trusty |
Carlos A. (cif2cif) wrote : AlsaInfo.txt | #163 |
apport information
Carlos A. (cif2cif) wrote : BootDmesg.txt | #164 |
apport information
Carlos A. (cif2cif) wrote : CRDA.txt | #165 |
apport information
Carlos A. (cif2cif) wrote : CurrentDmesg.txt | #166 |
apport information
Carlos A. (cif2cif) wrote : IwConfig.txt | #167 |
apport information
Carlos A. (cif2cif) wrote : Lspci.txt | #168 |
apport information
Carlos A. (cif2cif) wrote : Lsusb.txt | #169 |
apport information
Carlos A. (cif2cif) wrote : ProcCpuinfo.txt | #170 |
apport information
Carlos A. (cif2cif) wrote : ProcEnviron.txt | #171 |
apport information
Carlos A. (cif2cif) wrote : ProcInterrupts.txt | #172 |
apport information
Carlos A. (cif2cif) wrote : ProcModules.txt | #173 |
apport information
Carlos A. (cif2cif) wrote : PulseList.txt | #174 |
apport information
Carlos A. (cif2cif) wrote : RfKill.txt | #175 |
apport information
Carlos A. (cif2cif) wrote : UdevDb.txt | #176 |
apport information
Carlos A. (cif2cif) wrote : UdevLog.txt | #177 |
apport information
Carlos A. (cif2cif) wrote : WifiSyslog.txt | #178 |
apport information
penalvch (penalvch) wrote : | #179 |
Joao Natali / Carlos A., please do not add bug tasks nor apport collect to this report, as it is closed. If you are having a bug in Ubuntu, so your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux
For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https:/
Ubuntu Kernel Team: https:/
Ubuntu Community: https:/
When opening up the new report, please feel free to subscribe me to it.
Thank you for your understanding.
Helpful bug reporting tips:
https:/
no longer affects: | linux (Ubuntu) |
no longer affects: | linux (Ubuntu Saucy) |
no longer affects: | linux (Ubuntu Trusty) |
Anton Statutov (astatutov) wrote : | #180 |
Christopher M. Penalver, Carlos A., there is already a continuation of this bug #1252121.
sayth (flebber-crue) wrote : | #181 |
This bug exists in 14.04. I can manually reconnect to wireless by typing
sudo service network-manager restart
Yanpas (yanpaso) wrote : | #182 |
Have somebody tried to install the latests kernel versions? Will it fix the trouble?
Pavel Roskin (proski) wrote : | #183 |
I'm on fully up-to-date Ubuntu 14.04 with the latest kernel 3.13.0-36-generic, and I got this error. I have a Lenovo ThinkPad W530. I use it either with the internal monitor or with an external monitor connected to displayport. I don't remember what I did today. I think I connected the display cable, closed the lid and then logged in. I do it every day, but something must have been slightly different today.
I got "network disabled". I clicked on "Enable Networking" several times, but it didn't help. There was no error message and no change in the menus shown on left-click or right-click on the nm-applet.
This didn't work:
# service network-manager restart
stop: Unknown job: network-manager
start: Unknown job: network-manager
This worked:
# nmcli nm
RUNNING STATE WIFI-HARDWARE WIFI WWAN-HARDWARE WWAN
running asleep enabled enabled enabled enabled
# nmcli nm sleep false
nm-applet should show the sleep state and should wake up NetworkManager if requested by the user.
Ideally, it would be great not to put the network to sleep if the computer is not going to sleep. And the computer should not go to sleep if the lid is being closed but there is a display connection.
information type: | Public → Public Security |
information type: | Public Security → Public |
Alberto Salvia Novella (es20490446e) wrote : | #184 |
@ madmin314:
If you are sure this is a security bug, please:
1. Explain why do you think so.
2. Mark it as "Public Security" again.
Pavel Roskin (proski) wrote : | #185 |
I got the problem with "sleeping network" again. This time I'm absolutely sure I wasn't doing anything that could provoke the sleep. The computer was with the lid closed, HDMI connected to the external monitor. I left for lunch. When I returned. the network was "sleeping", the crescent shaped LED on the lid was blinking.
The last messages from "dmesg -T":
[Thu Sep 11 07:57:39 2014] type=1400 audit(141043660
[Thu Sep 11 10:14:42 2014] perf samples too long (2523 > 2500), lowering kernel.
[Thu Sep 11 12:13:22 2014] PM: Syncing filesystems ... done.
[Thu Sep 11 12:13:22 2014] PM: Preparing system for mem sleep
I was away at 12:13.
Chris Morris (chriswillmorris) wrote : | #186 |
I am on Ubuntu 14.04 and am still experiencing this issue.
penalvch (penalvch) wrote : | #187 |
Chris Morris, if you are experiencing an issue still, then this bug report had nothing to do with your problem. Please file a new report.
Pablo180 (paultait22) wrote : | #188 |
There's no need to file another bug report, it will only be marked as a duplicate. This bug has not been fixed for everyone and continues on here:-
https:/
Changed in systemd-shim (Ubuntu Trusty): | |
milestone: | ubuntu-13.11 → none |
no longer affects: | systemd (Ubuntu Trusty) |
no longer affects: | systemd (Ubuntu Saucy) |
no longer affects: | systemd (Ubuntu) |
Jan Schürmann (visionfactory.net) wrote : | #189 |
still present in Xenial
Status changed to 'Confirmed' because the bug affects multiple users.