Re: nm-applet should track dbus setWirelessEnabled

Karl Hegbloom wrote:

> ... so that the wireless link is brought down when I hibernate my
> laptop.  What I've noticed is that even though the wireless network is

I'm doing the following:

dbus-send --system                               \
          --print-reply                          \
          --reply-timeout=2000                   \
          --dest=org.freedesktop.NetworkManager  \
          /org/freedesktop/NetworkManager        \
          org.freedesktop.NetworkManager.sleep >/dev/null 2>&1 0<&1

I think I found it in FC5 pm-utils and pulled it into my custom
sleep-script. This will disable all networking including VPN.

When the machine wakes up again do a

dbus-send --system                        \
          --dest=org.freedesktop.NetworkManager \
          /org/freedesktop/NetworkManager       \
          org.freedesktop.NetworkManager.wake >/dev/null 2>&1 0<&1

to get it scanning again. Is that what you intended to do?


    Tim Niemueller <tim niemueller de>
 Imagination is more important than knowledge. (Albert Einstein)

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]