Description: This script allows Amarok to shutdown your computer. Who does not like to fell asleep while listening music? We like it. Do you remember Nightingale? So this is Nightingale for Amarok 2. With cronos you could set when you want your computer to shutdown. Actually cronos supports two shutdown methods. Shutdown your computer after a period of time o after you have listened a concret amount of tracks.Last changelog:
Maybe you have tried cronos, but didn't work. That could be because file shutdown.sh must be executable. You only need to do [quote]chmod +x ~/.kde/share/apps/amarok/scripts/cronos/shutdown.sh[/quote]
this code didn't work
now I use the following commands
for hibernate:
qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Hibernate
for suspend:
qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Suspend
Ratings & Comments
4 Comments
are u going to add hibernate and suspend in your script?
I have just to change "shutdown.sh", right?
Hi!, yes, you have to modify the shutdown.sh script. It seams that you cannot use ksmserver because it doesn't support that. You could use hal instead, here is a page explaining how (http://linux-tipps.blogspot.com/2008/08/standbysuspend-to-ram-with-dbus-in-kde.html)
this code didn't work now I use the following commands for hibernate: qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Hibernate for suspend: qdbus org.freedesktop.PowerManagement.Inhibit /org/freedesktop/PowerManagement/Inhibit org.freedesktop.PowerManagement.Suspend