Automated Shutdown or Hibernate or Sleep

Hello,

I apologize if this is not the correct Sub-Forum, but none of the others look like they appropriate. I realize that I can do something simple with cron, but I am looking for something more.

I need to have my system shutdown or hibernate or sleep at the end of the week. I would like something more interactive than just a wall message which does not create a KDE notification. What i would like is a pop up that lets be know that a shutdown is scheduled and then provides me with the option to postpone or cancel and requires a password to do either. I realize I can simply cancel the shutdown which shutdown -c and ultimately I may just do that, but again I would like something more interactive. At the risk of being flamed, I am looking for something like the dialog Windows pops up after automatically installing updates that provides a postpone option.

I am running OpenSuSE 12.3 with KDE as my primary interface. It was installed from the KDE live DVD and I have all updates installed. I am not pulling updates from Tumbleweed‎, Factory, etc.

Thank you for you assistance,

Rhongomiant

Rhongomiant wrote:
> I am running OpenSuSE 12.3 with KDE as my primary interface. It was
> installed from the KDE live DVD and I have all updates installed. I am
> not pulling updates from Tumbleweed‎, Factory, etc.

you shouldn’t pull updates from factory or tumbleweed unless you know
what you are doing :slight_smile:

The following are the repos you will need on openSUSE
==>OSS,
==>Non-Oss,
==>Update,
==>Non-Oss-Update
==>and finally packman


GNOME 3.6.2
openSUSE Release 12.3 (Dartmouth) 64-bit
Kernel Linux 3.7.10-1.16-desktop

Install and have a look at kcron. The package installs an entry in KDE’s Systemsettings (you may have to logout to see the new module). Add a new task, the only thing you have to enter is the command that executes hibernation / suspend

Knurpht,

Thanks for the info. I don’t really need a GUI for cron, but it could come in handy. I am not finding anything that is built to automate shutdowns on inactivity during specific times of the week, so I will probably keep it simple or write a script.

Thanks,

Rhongomiant

On 2013-10-07 23:56, Rhongomiant wrote:
>
> Knurpht,
>
> Thanks for the info. I don’t really need a GUI for cron, but it could
> come in handy. I am not finding anything that is built to automate
> shutdowns on inactivity during specific times of the week, so I will
> probably keep it simple or write a script.

The command “batch” executes things when the load is low.

But your requirement is so specific that you really need to program it.


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))

A wall message should create a KDE notification.
Run “Configure Desktop”->“Launch and Quit”->“Service Manager” and check that the “Write Daemon” is activated:

Watch for messages from local users sent with write(1) or wall(1)

Hava a look at KShutdown (available in KDE:Extra): KShutdown / Home | A graphical shutdown utility for Linux and Windows

Maybe this does what you want?

wolfi323,

I was not specific enough. It does show up in notifications, but in OpenSuSE the option to make notifications stay up is removed so if I am not sitting there when the notification pops up up there is a when I get back to my PC I will not notice the little notification indicator right away. I wish that for selected notifications you could additionally have an in your face pop up.

I have looked at KShutdown and there are some issues.

  1. It only notices inactivity in the session for which it is running, not across all sessions, which I realize may be a bit impossible.

  2. I do not see a way to determine if there is an active alarm.

This is basically what I need. I need to automatically schedule a shutdown every 30 minutes starting Friday evening and ending at about 4AM on Monday. I need this to happen repeatedly because if I am using the system I will cancel the shutdown. I was thinking that I need to be able to determine if a shutdown operation is in progress as I do not want a new one to reset another, but I guess I can set the shutdown for 30 minutes and the run to run every 40 minutes.

That was a change in KDE a while ago.
If you disable the notifications plasmoid, those notifications should pop up in your face and only disappear if you click on them I think.
Right-click on the small green up-arrow in the system tray (just left of the digital clock), select “System Tray Settings” and disable it there.
You may have to logout/login for the notifications to work then.

PS: You don’t have to completely disable it. Click on the arrow (to show the hidden icons), right-click on the “Notifications” symbol and choose “Notification Settings”. You can then disable the “Application notifications” specifically. Things like file-copy progress information will then still be shown by the plasmoid. And this setting should take effect immediately, you don’t have to logout.