A tune at startup/shutdown...?

Discussion in 'Linux' started by rowantree, Sep 13, 2008.

  1. rowantree

    rowantree

    Joined:
    Sep 11, 2008
    Messages:
    113
    Likes Received:
    0
    Location:
    Scotlandshire
    Can I make my AA1 play a tune at startup/shutdown a la the "other operating system"...? ;)

    Anyone know?

    Thanks,
    Rowantree
     
    rowantree, Sep 13, 2008
    #1
  2. rowantree

    rowantree

    Joined:
    Sep 11, 2008
    Messages:
    113
    Likes Received:
    0
    Location:
    Scotlandshire
    Aw, c'mawwwnnn, someone must know how to make it play a tune on startup and shutdown...? :roll:

    Cheers,
    Rowantree
     
    rowantree, Sep 17, 2008
    #2
  3. rowantree

    daldred

    Joined:
    Aug 25, 2008
    Messages:
    887
    Likes Received:
    0
    If you've got a suitable sound file, and mplayer installed, you could put something like '/usr/bin/mplayer whatever.wav' at the end of the file /etc/rc.d/rc.local - but that will mean the startup waits until the sound has been played.

    I'm not keen enough on the idea myself to try it out :)
     
    daldred, Sep 17, 2008
    #3
  4. rowantree

    rowantree

    Joined:
    Sep 11, 2008
    Messages:
    113
    Likes Received:
    0
    Location:
    Scotlandshire
    OK, cheers.
     
    rowantree, Sep 19, 2008
    #4
  5. rowantree

    kevin

    Joined:
    Sep 18, 2008
    Messages:
    274
    Likes Received:
    0
    Well you could add

    /usr/bin/mplayer whatever.wav &

    and then it would play in the background.

    Probably the `right' way to do this is to create scripts called something like S90playsound and K90playsound to call mplayer with the start and stop sounds respectively. But you might have to fiddle about with the numbers because you don't want to be trying to play a sound while the OS is trying to unload the audio drivers.

    Personally, one of the reasons for preferring Linux is that it _doesn't_ indulgence in this sort of ear-candy :)
     
    kevin, Sep 19, 2008
    #5
  6. rowantree

    rowantree

    Joined:
    Sep 11, 2008
    Messages:
    113
    Likes Received:
    0
    Location:
    Scotlandshire
    Well, you know, the fast boot is fab but I do miss my wee tune after listening to it for 10 years+ on various "other operating systems".

    Thanks for the suggestions guys (though not sure am quite brave enough to try just yet...)

    Cheers,
    Rowantree
     
    rowantree, Sep 19, 2008
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.