Author Topic: shutdown program lxde  (Read 3297 times)

uncleV

  • Guest
Re: shutdown program lxde
« Reply #15 on: August 03, 2010, 06:30:16 AM »
hoe about shutdown with at?
Quote
At allows you to specify that a command will be run at a particular time
(now or a specified time in the future).

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12801
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: shutdown program lxde
« Reply #16 on: August 03, 2010, 08:16:29 AM »
a little question...
What is need for automic shutdown program?
Maybe two scripts...
First script for shutdown
Code: [Select]
#!/bin/bash

dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown

Second script
A script where can add the minutes to wait before shutdown the computer...

When it's needed, i can create a little app for it...


EDIT:
Done...
Tester can download it here
http://dl.dropbox.com/u/2077694/sleeptimer-0.01-1pclos2010.i586.rpm

Install it, and you find the app under Start>More Applications>Monitoring>sleeptimer

Any suggestion write here, thanks...

WoW I am on it dude!

Downloaded - testing!

Andy
« Last Edit: August 03, 2010, 08:50:08 AM by AndrzejL »

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12801
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: shutdown program lxde
« Reply #17 on: August 03, 2010, 09:59:36 AM »
hoe about shutdown with at?
Quote
At allows you to specify that a command will be run at a particular time
(now or a specified time in the future).

Sounds good.

Andy

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12801
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: shutdown program lxde
« Reply #18 on: August 03, 2010, 10:02:58 AM »
a little question...
What is need for automic shutdown program?
Maybe two scripts...
First script for shutdown
Code: [Select]
#!/bin/bash

dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown

Second script
A script where can add the minutes to wait before shutdown the computer...

When it's needed, i can create a little app for it...


EDIT:
Done...
Tester can download it here
http://dl.dropbox.com/u/2077694/sleeptimer-0.01-1pclos2010.i586.rpm

Install it, and you find the app under Start>More Applications>Monitoring>sleeptimer

Any suggestion write here, thanks...

WoW I am on it dude!

Downloaded - testing!

Andy

Leiche You did it again ;)! Its great.

One suggestion Sleeptimer in the KMenu should start with capital S.

We might work on this script to add different features like to choose between seconds / minutes / hours... so the users dont have to know that one hour is 3600 seconds and 2 hours 7200 ;)... ;) that may be to hard for some of them :D!

So far this is a very simple yet very effective and very well working little program. Congrats.

I want it in the repo! ;)! Send it to Dropbox Freund.

Danke Schon!

Andy
« Last Edit: August 03, 2010, 10:04:40 AM by AndrzejL »

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: shutdown program lxde
« Reply #19 on: August 03, 2010, 10:40:25 AM »
a little question...
What is need for automic shutdown program?
Maybe two scripts...
First script for shutdown
Code: [Select]
#!/bin/bash

dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Shutdown

Second script
A script where can add the minutes to wait before shutdown the computer...

When it's needed, i can create a little app for it...


EDIT:
Done...
Tester can download it here
http://dl.dropbox.com/u/2077694/sleeptimer-0.01-1pclos2010.i586.rpm

Install it, and you find the app under Start>More Applications>Monitoring>sleeptimer

Any suggestion write here, thanks...

WoW I am on it dude!

Downloaded - testing!

Andy

Leiche You did it again ;)! Its great.

One suggestion Sleeptimer in the KMenu should start with capital S.

We might work on this script to add different features like to choose between seconds / minutes / hours... so the users dont have to know that one hour is 3600 seconds and 2 hours 7200 ;)... ;) that may be to hard for some of them :D!

So far this is a very simple yet very effective and very well working little program. Congrats.

I want it in the repo! ;)! Send it to Dropbox Freund.

Danke Schon!

Andy


Thanks for testing...
I think, a good way is minutes, i'm work on it...;)

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12801
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: shutdown program lxde
« Reply #20 on: August 03, 2010, 11:01:56 AM »
;) I am waiting for testing download link :D.

Andy

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: shutdown program lxde
« Reply #21 on: August 03, 2010, 12:36:09 PM »

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12801
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: shutdown program lxde
« Reply #22 on: August 03, 2010, 01:05:13 PM »
ready...
http://dl.dropbox.com/u/2077694/sleeptimer-0.25-1pclos2010.i586.rpm
Happy testing...

Dude You rock!

I tried with short timing like 1 or 2 minutes but it works very well. I like this 10 seconds warning at the end. You can change Your mind at last moment!

Definitely should be in our repo!

Works very very well.

Andy
« Last Edit: August 03, 2010, 01:07:08 PM by AndrzejL »

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3739
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: shutdown program lxde
« Reply #23 on: August 03, 2010, 01:14:23 PM »
okay, sent it to the dropbox...
Thanks for testing... ;)

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12801
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: shutdown program lxde
« Reply #24 on: August 03, 2010, 03:00:40 PM »

uncleV

  • Guest
Re: shutdown program lxde
« Reply #25 on: August 04, 2010, 03:29:00 AM »
ready...
http://dl.dropbox.com/u/2077694/sleeptimer-0.25-1pclos2010.i586.rpm
Happy testing...

Works like a charm! :)

But if it could turn off monitor too... would work like two charms! :D

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12801
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: shutdown program lxde
« Reply #26 on: August 04, 2010, 04:58:16 AM »
ready...
http://dl.dropbox.com/u/2077694/sleeptimer-0.25-1pclos2010.i586.rpm
Happy testing...

Works like a charm! :)

But if it could turn off monitor too... would work like two charms! :D

Buahahahaha :D... sorry could't help it! LOL! I have 3 laptops... Turning off the screen is not a problem once the machine is powered off :D!

You could use the method I used in the past. Power Your screen from the special socket on the PSU. Power comes into the psu via one cable. Power comes out and powers the screen from another socket via a special cable. No power in the PSU - no power on the Screen.


Its the bottom one here. You need a special cable.

Regards.

Andy

P.S. Maybe a Power Saving scheme in the Screen Settings itself? I mean in the monitor.
« Last Edit: August 04, 2010, 05:04:05 AM by AndrzejL »

uncleV

  • Guest
Re: shutdown program lxde
« Reply #27 on: August 04, 2010, 05:03:55 AM »
I was joking only but you reminded me this feature, thanks.
Your advice could be useful to somebody. :)

Offline AndrzejL

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 12801
  • RLU #490933
    • Wordpress On The Wardrobe...
Re: shutdown program lxde
« Reply #28 on: August 04, 2010, 05:05:00 AM »
I was joking only but you reminded me this feature, thanks.
Your advice could be useful to somebody. :)

I know :D very funny Dude :D!

LOL

Andy

uncleV

  • Guest
Re: shutdown program lxde
« Reply #29 on: August 04, 2010, 05:24:37 AM »
A very useful; ) add to this applet would be an audible beeping while the last warning about shutdown is displaying.
How do you think?