thanks for the script and for the link!
I have 2 questions about this topic:
1) is it possible to change the batterysave script to force it to go to "sleep" instead of shutdown? How could it be done? I can't find any hibernate or sleep command like shutdown... I ask because in my system, although sleep works, it doesn't go automatically in sleep when battery is low (i don't know where is the preference to control/adjust that ... if anyone knows it, please let me know because it's what i am looking for now... thanks
2) I know there is smartsleep that should do that, but in my system it doesn't work. The question is : Is it possible to "force" SmartSleep to use hibernatemode 5 instead of 1 for hibernating ? it uses hibernatemode 1 by default and with this mode hibernatemode here doesn't work (also unchecking secure virtual memory under preferences-security). Here mode5 works, mode1 not and that's the reason why i am asking... the smartmode is the option i am looking for, if i just can replace hibernatemode=5,instead of hibernatemode=1 set by default by smartmode in smartsleep.
Thanks in advance!