Main
Personal Messaging temporarily unavailable.
sleep 180&&poweroff
Maybe running this command from console or creating .desktop file with this command will do it?Code: [Select]sleep 180&&poweroffIt should wait 3 hours and then turn off the computer. Click on the .desktop file or run it from console before running the movie. 3 hours later machine is off . I bet its bit later then ordinary 90 mins movie BUT if You are Lord of the Rings movie fan... It may not be enough as the longest LOTR is about 195 mins including subtitles .I don't know... Try it .Andy
Quote from: AndrzejL on July 31, 2010, 06:49:48 AMMaybe running this command from console or creating .desktop file with this command will do it?Code: [Select]sleep 180&&poweroffIt should wait 3 hours and then turn off the computer. Click on the .desktop file or run it from console before running the movie. 3 hours later machine is off . I bet its bit later then ordinary 90 mins movie BUT if You are Lord of the Rings movie fan... It may not be enough as the longest LOTR is about 195 mins including subtitles .I don't know... Try it .AndyI like the lord of the rings but they are already seen many times makes the test tonightThank you very much friend
sleep 7200&&poweroff
Oh and since I am the SMPlayer forum member too I suggested a sleep option to be added to the SMPlayer in the future...If You are interested: +1 it Cheers.Andy
Quote from: AndrzejL on July 31, 2010, 07:08:52 AMOh and since I am the SMPlayer forum member too I suggested a sleep option to be added to the SMPlayer in the future...If You are interested: +1 it Cheers.Andyvery interestingI join the cause thank you very much friend
OUCH... I messed up! 120 is in seconds LOLLLLLLLLLLLLLLLLLL!It should beCode: [Select]sleep 7200&&poweroff60 minutes times 60 seconds times 2 (hours)... = 7200... not 120 ! I hope it will be short movie !Sorry Dude my bad ! Andy
Quote from: pclxd3os on August 01, 2010, 05:40:01 PMQuote from: AndrzejL on July 31, 2010, 07:08:52 AMOh and since I am the SMPlayer forum member too I suggested a sleep option to be added to the SMPlayer in the future...If You are interested: +1 it Cheers.Andyvery interestingI join the cause thank you very much friendI am not sure will the smplayer devs be able to add this code. I was speaking to one of them on IRC and he told me that its not likely to happen.Anyway we will see.Check the post above for corrected timing otherwise Your laptop will turn off after 2 minutes not 2 hours !Andy
#!/bin/bashdbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown