LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   looking for a graceful-shutdown timer for gnome (https://www.linuxquestions.org/questions/linux-newbie-8/looking-for-a-graceful-shutdown-timer-for-gnome-580789/)

oskar 08-29-2007 05:46 PM

looking for a graceful-shutdown timer for gnome
 
I usually have music or a movie running when I go to sleep. I've always just used the time argument of 'shutdown' to do this... The good thing is it kills everything that moves and powers off the pc reliably. But a lot of times when I boot up again, the maximum resolution is set to 1024x768. It's not all that bad... I can just kill x at the login screen (ctrl-alt-backspace), and it's back to normal. But I was wondering if there is a nicer solution. When I use the shutdown button in gnome I never get that.

mmmmtmmmm 08-29-2007 06:18 PM

Do you not have a system shutdown script. I don't know about Ubuntu, but in Gentoo, there is a /etc/conf.d/local.stop file which is a list of user defined commands to run upon shutdown. Perhaps your system has something similar?

---mmmmtmmmm

oskar 08-29-2007 06:27 PM

nope... I don't even have a /etc/conf.d directory

linuxid 09-04-2007 03:04 PM

Quote:

Originally Posted by oskar (Post 2875008)
I've always just used the time argument of 'shutdown' to do this.

Hi, I'm brand new to linux & just installed Ubuntu Feisty. Could you explain how to do this? TIA

oskar 09-05-2007 10:15 AM

from the gnome terminal (Applications - Accessoirs - Gnome Terminal)
or alt-f2 'gnome-terminal'

type:

Code:

$ sudo shutdown -h 1:30
or
Code:

$ sudo shutdown -h 90
for 90 minutes


All times are GMT -5. The time now is 01:39 PM.