I would like to suspend my xubuntu (14.04) system from a keyboard shortcut without entering my superuser password (sudo). I'm looking a command line which I can convert to a shortcut.
So far, I tried two solutions:
Problem: The system doesn't lock the session. I don't need to enter my password for the wake-up and I want to do it.
dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
Problem: After wake-up, the Internet connection is down and I have to reboot the system to get it back.
Is there a third solution which 1. ask the password during the wake-up process, and 2. doesn't mess up with Internet connection?
In fact, the graphical default shortcut (from the menu) works fine. I just don't know which command line is called.