When I suspend my notebook, NetworkManager
disables the wireless network (in nm-manager.c:do_sleep_wake
).
However, I'd love to still use the network for a very short time (to unmount cifs
mounts, that otherwise make my system unusable when resuming).
How can I make NetworkManager
not disable my network? Is it possible to wait a few seconds (or until something is triggered; or a lock is released)?
Related: pm-utils: No network in suspend scripts?
debug log:
Feb 8 10:03:23 zenbook NetworkManager[3606]: <debug> [1360314203.373226] [nm-manager.c:3391] upower_sleeping_cb(): Received UPower sleeping signal
Feb 8 10:03:23 zenbook NetworkManager[3606]: <info> sleep requested (sleeping: no enabled: yes)
Feb 8 10:03:23 zenbook NetworkManager[3606]: <info> sleeping or disabling...
Feb 8 10:03:23 zenbook NetworkManager[3606]: <info> (wlan0): now unmanaged
EDIT: To make it clear, having scripts in /etc/pm/sleep.d
does not help as the network already is disabled as soon as a script is executed.
gnome-control-center
.