LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-17-2012, 06:52 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,427

Rep: Reputation: 53
Shutdown sound fails to work


Hi all,

I followed the answer of following posting to setup "Start Up" and "Shutdown" sound.
http://ask.fedoraproject.org/questio...startup-sounds

To my understanding;
Start Up = Login
Shutdwon = Power off

"Start Up" works but "Shutdown" sound fail to work.

$ cat /etc/init.d/K99shutdownsound.sh
Code:
#! /bin/bash

/usr/bin/playwave /usr/share/MusicBox.wav
$ ls -al /etc/init.d/K99shutdownsound.sh
Code:
-rwxr-xr-x. 1 root root 56 Aug 17 16:57 /etc/init.d/K99shutdownsound.sh
$ ls -l /etc/rc0.d/K99shutdownsound.sh
Code:
lrwxrwxrwx. 1 root root 31 Aug 17 17:03 /etc/rc0.d/K99shutdownsound.sh -> /etc/init.d/K99shutdownsound.sh
$ ls -l /etc/rc6.d/K99shutdownsound.sh
Code:
lrwxrwxrwx. 1 root root 31 Aug 17 17:03 /etc/rc6.d/K99shutdownsound.sh -> /etc/init.d/K99shutdownsound.sh
$ playwave /usr/share/MusicBox.wav
Code:
Opened audio at 22050 Hz 16 bit stereo
The sound file works.

Please help. TIA

B.R.
satimis
 
Old 08-18-2012, 10:12 PM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
I looked at your link and I don't use Fedora but I bet your K number is higher than a K number to stop sound


eg K01alsa-utils

what this means is....if you change your sound to K01....it will still execute after K01alsa due to alphabetic order....AFAIK

so it might be easier to play the sound first so it gets

K01shutdownsound.sh

remove the symlinks for alsa and redo them so they have

K02alsa-utils

K numbers can be shared.

2) startup.....you need alsa before sound so the symlinks for that can remain but I suspect you are going to relink

on that basis it might be better to have in /etc/init.d

sound.sh....chmod +x sound.sh

then create sym links and ONLY then add the correct numbers

let me know if you have understood

good luck

Last edited by aus9; 08-18-2012 at 10:15 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User shutdown - 'cp -i -p shutdown /usr/sbin/shutdown2 - why does this not work, can? mitchellray Linux - Desktop 4 03-20-2009 09:31 PM
ISA Sound card on old MB fails to work jolphil Mandriva 5 02-24-2007 07:13 AM
'shutdown now' successful, 'shutdown -r now' fails Stomatella Linux - Hardware 4 05-23-2006 10:45 PM
FAM always fails during shutdown. greythorne Arch 3 06-26-2005 09:57 PM
Killall fails at shutdown/reboot. JMC Linux - General 6 07-22-2002 06:45 PM


All times are GMT -5. The time now is 09:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration