Eventually, the suspend resume capability is working on my Toshiba Tecra M3. And that's pretty cool!
To suspend, just run the command #uadmin 3 20 (You have to be root)
The system goes in "sleep" state in about three seconds.
You can then go away and take your coffee. And furthermore, you feel less guilty as you save power and your act is eco-responsible :=)
To resume the laptop, just push your power button again and your system is up again in the same state as you let it.
I am running Nevada build 86.
My very good friend Jérome help me at configuring the uadmin command as a profiled command with RBAC. This way, you do not need to start a terminal to run the command. You just add a Gnome Launcher. You can do it yourself in five steps. See the step by step instructions below:
1) First, edit a simple script for that command and save it as file sysresume:
#!/bin/ksh -p
#
#
# Allow the use of RBAC to control who can access this script. Useful for
# administrators without root permissions
#
if [ "$_" != "/usr/bin/pfexec" -a -x /usr/bin/pfexec ]; then
/usr/bin/pfexec $0 $*
exit $?
fi
/usr/sbin/uadmin 3 20
2) Add the following line in your /etc/security/exec_attr
sysresume:suser:cmd:::/home/dmerle/Tools/sysresume:uid=0
3) Add the following line in your /etc/security/prof_attr file
sysresume:::sysresume profile:
4) Add the profile sysresume in your /etc/user_attr
dmerle::::type=normal;profiles=Ginetmenu,punchin,sysresume;auths=solaris.network.wifi.config,solaris.network.wifi.wep;defaultpriv=basic,dtrace_proc,dtrace_kernel
5) Add a Gnome Launcher:
Right click on the background and select "Create Launcher". Choose the icon you like, mine is coffee, and insert your sysresume path:
