comand line that would simulate pressing the power button
by krazyivan from LinuxQuestions.org on (#5P6V2)
Hi,
I am lazy and often fall asleep watching anime on my pc.Trying to conserve energy I'm looking for a way to put the shutdown dialog (as if I were to press the powerbutton) in crontab. Why the dialog and not just `shutdown -h now` you ask? I sometimes work/play late at night on that pc as well, so a dialog window waiting 30 sec that would not kill all my work sounds perfect.
ps. I'm a KDE user.
thanks in advance
I am lazy and often fall asleep watching anime on my pc.Trying to conserve energy I'm looking for a way to put the shutdown dialog (as if I were to press the powerbutton) in crontab. Why the dialog and not just `shutdown -h now` you ask? I sometimes work/play late at night on that pc as well, so a dialog window waiting 30 sec that would not kill all my work sounds perfect.
ps. I'm a KDE user.
thanks in advance