Reply
Thread Tools
Posts: 5 | Thanked: 1 time | Joined on Apr 2007 @ Atlanta, Ga USA
#1
Is it possible to use some timer to turn off my N800? I like to go to sleep listening to MP3 music but I don't want it to play all night. I looked in the apps download section and couldn't find anything. Any ideas?

Thanks, Dennis
 

The Following User Says Thank You to DennisDale For This Useful Post:
grantbob's Avatar
Posts: 7 | Thanked: 2 times | Joined on Oct 2007
#2
The only way I have found is to install becomeroot, then sudo gainroot from xterminal.

finally issue the command:
shutdown -hP 60

The system will halt and power off in 60 minutes.

I'd love a neater way to do this.

-grantbob
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#3
I think you could do that with cron (basically a command line task scheduler). Though I don't know where to find the cron build (you'll have to search the forums for it). But after that you just setup the commands in a file and have cron iniate it at whenever time you want.
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
heavyt's Avatar
Posts: 708 | Thanked: 125 times | Joined on Jan 2007 @ Too Close To D.C
#4
Originally Posted by grantbob View Post
The only way I have found is to install becomeroot, then sudo gainroot from xterminal.

finally issue the command:
shutdown -hP 60

The system will halt and power off in 60 minutes.

I'd love a neater way to do this.

-grantbob
Yes a neat way could be a setting in Statusbar Clock or the Alarm where there is now an option to wake up the NXXX, one could set the time to shut-down.

Last edited by heavyt; 2008-07-15 at 02:47.
 
grantbob's Avatar
Posts: 7 | Thanked: 2 times | Joined on Oct 2007
#5
Originally Posted by Laughing Man View Post
I think you could do that with cron (basically a command line task scheduler).
Yeah, I considered that but didn't see it anywhere handy. The shutdown command was already there so that's what I used.

With cron you could also just kill your media player app instead of shutting the whole tablet down.

-grantbob
 
Posts: 13 | Thanked: 3 times | Joined on Jun 2008 @ Lake Elsinore, CA
#6
Great idea!
 
Posts: 226 | Thanked: 47 times | Joined on Jan 2008 @ Poland / Bialystok
#7
If You consider killing player process - so if You already know the PID number - You can always use something like:

sleep 100m;kill -9 PID

If You don't want xterm window to be left open or even minimized - use screen and run this command on it.
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#8
Quick note: the busybox implementation of sleep only seems to take a value in seconds, so you'll have to multiply up.
 
Posts: 43 | Thanked: 33 times | Joined on Dec 2008
#9
sleep 3600 && killall vagalume <- or your processname works just fine
But vagalume does not exit completely. The icon on the top will still be open but thats not a problem as far as the music stops ^^
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:23.