hi kingsly,<br><br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><br>
&gt; dear all,<br>
&gt;<br>
&gt; i&#39;d love to drift to sleep listening to some audio or music playing via mplayer<br>
&gt; on my ubuntu 9.04,<br>
&gt; but obviously, once asleep, don&#39;t want to get up to quit mplayer and shutdown<br>
&gt; the laptop.<br>
&gt; likewise, i&#39;d also love to wake up to mplayer after the laptop autoboots into<br>
&gt; ubuntu.<br>
&gt;<br>
&gt; any way of doing this automagically?<br>
<br>
</div>I used to use this to wake me up (Modify to suit your tastes!)<br>
<br>
#/bin/sh<br>
<br>
aumix -w 10<br>
aumix -v 10<br>
<br>
ogg123 -qz ~/Music/Vivaldi\,\ Antonio/The\ Four\ Seasons\ and\ Violin\ Concertos/*flac &amp;<br>
<br>
for vol in `seq 1 9`<br>
do<br>
        aumix -w +10<br>
        aumix -v +10<br>
        sleep 5<br>
done<br>
## End of Script ##<br>
<br></blockquote><div><br>vivaldi! now i knew of a guy long ago,<br>who claimed you could get him to sign a blank cheque<br>if he were in the middle of listening to the four seasons.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Save it as wakeup.sh<br>
<br>
 and<br>
<br>
at -f wakeup.sh now+5 hours<br>
<br>
or<br>
<br>
at -f wakeup.sh 5am<br>
(man at for more funky time options)<br></blockquote><div><br>yup! but... how do i ever wake up,<br>if my laptop never boots again<br>after lulling me to sleep and executing an auto-shutdown?<br>what a nightmarish scenario that would be<br>
if i did not have a biological override to that.<br><br>am using ubuntu 9.04 on a macbookpro 5,1<br>and ubuntu boots over rEFIt that then takes it to grub.<br><br>regards<br>n<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
You can do the whole volume thing with negative values and longer sleeps to<br>
create a lullaby.sh script<br>
<br>
Kingsly<br>
<font color="#888888"><br>
--<br>
---------------------------------------------------------------------------<br>
     Kingsly At Users Dot SourceForge Dot Net  -- <a href="http://kingsly.org/" target="_blank">http://kingsly.org/</a><br>
---------------------------------------------------------------------------<br>
</font><br>--<br>
ubuntu-in mailing list<br>
<a href="mailto:ubuntu-in@lists.ubuntu.com">ubuntu-in@lists.ubuntu.com</a><br>
<a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-in" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-in</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>niyam bhushan<br><br>