No suspend to disk because of automount/autofs and nis ?

Hello,

I am not able to use the suspend-to-disk function since I updated to OpenSuse 12.1 (worked fine with 11.2).

After seeing all logs and searching the Internet, my best guess is that the system cannot go to the suspend mode because the network mount (/home) point cannot be unmounted.

Here a line of the /var/log/messages:
> Apr 12 10:17:52 myhost automount[3111]: umount_autofs_indirect: ask umount returned busy /home

And in /var/log/pm-suspend.log:

Shutting down network interfaces:
    eth0      device: D-Link System Inc DGE-528T Gigabit Ethernet A
..done
/usr/lib/pm-utils/sleep.d/50rcnetwork hibernate hibernate: success.
Running hook /usr/lib/pm-utils/sleep.d/55NetworkManager hibernate hibernate:
Having NetworkManager put all interaces to sleep...Error org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Failed.

What can I do?

Some of my system’s data:
-OpenSuse 12.1 32 Bit
-RAM: 2GB
-Kernel: 3.1.9-1.4-desktop
-Windowmanager: KDE 3.5.10
-The users directories are mounted through NIS under /home

PD: Don’t know if this is related, but I installed kpowersave and the icon is grayed out and the popup shows “No infomration about battery and AC status available”.

go3d wrote:
> After seeing all logs and searching the Internet, my best guess is that
> the system cannot go to the suspend mode because the network mount
> (/home) point cannot be unmounted.
>
> Here a line of the /var/log/messages:
>> Apr 12 10:17:52 myhost automount[3111]: umount_autofs_indirect: ask
> umount returned busy /home

This is a complete guess but it might be worth experimenting with
umount’s -f (force) and/or -l (lazy) options

Ok… and where can I set those options?

On 2012-04-12 15:32, go3d wrote:
>
> Ok… and where can I set those options?

hack the sleep scripts.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

hack the sleep scripts.

Thanks. Unfortunately, I am not a hacker :slight_smile: so I don’t know what scripts I am looking for. I searched the /etc/pm folder, but couldn’t find anything appropriate. In which file is the umount command that I am looking for?

Cheers!

On 2012-04-13 15:36, go3d wrote:
>
>> hack the sleep scripts.
>
> Thanks. Unfortunately, I am not a hacker :slight_smile: so I don’t know what
> scripts I am looking for. I searched the /etc/pm folder, but couldn’t
> find anything appropriate. In which file is the umount command that I am
> looking for?

Mmm. It may not be possible at all. An umount lazy will not work if there
are opened files. And force… I don’t think it will work.

I remember I opened a bug about this: the system would simply crash on
hibernation if NFS was in use. I wrote an addition that would instead abort
hibernation; instead, they solved the root issue impeding hibernation. I
hope this still works.

And after all, that is not what is halting hibernate, I didn’t notice the
other error related to network manager. It is this code:

/usr/lib/pm-utils/sleep.d/55NetworkManager


suspend_nm()
{
# Tell NetworkManager to shut down networking
printf "Having NetworkManager put all interaces to sleep..."
dbus_send --system                         \
--print-reply --reply-timeout=200      \
--dest=org.freedesktop.NetworkManager  \
/org/freedesktop/NetworkManager        \
org.freedesktop.NetworkManager.Sleep boolean:true && \
echo Done. || echo Failed.
}

I have no idea what the problem might be there.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)