LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   logout sound (https://www.linuxquestions.org/questions/linux-newbie-8/logout-sound-76757/)

hobylinux 07-28-2003 06:58 PM

logout sound
 
This is a very minor problem, but it would still be cool to fix. I am running Mandrake 9.1 on my Inspiron 8200 with a Cirrus Logic Crystal WDM Audio Codec. My sound works fine--I can play mp3s, watch dvds, have system notifications working, etc. The only teeny tiny problem is that when I logout of KDE, the system notification sound for logging out always gets cut off. Is there any way to put a delay in the logout process long enough for the sound to finish playing? It just sounds kind of wierd like that, but I like having a logout sound.

Like I said, minor problem. Any help greatly appreciated.

emence 07-28-2003 07:07 PM

You could try using a shorter sound file........

hobylinux 07-28-2003 10:31 PM

yeah, i thought of that. there are two problems, though.

1. sometimes it gets cut off after no more than a split second, so that even a really short sound would still get cut off.

2. i kind of like the one that i have now :D

thanks for the suggestion, though. if there's nothing else anyone can think of, i'll just go ahead and do that.

Shade 07-29-2003 08:24 PM

The linux way of doing it (non-specific):

First, find out what happens when you log out.
--What files does KDE read for procedure?
I know that IceWM includes lines in the preferences file for logout options, commands to be run on logout, etc. Look for something like that in KDE or preferences.

--Find the appropriate place/file to insert a wait command after the soundfile is played, but before Xserver is killed. I wouldn't know the syntax, or whether KDE uses a file with scripts or lists of commands like this.

--Enjoy, knowing you did something the right way.

I'd consider using a shorter sound file to be an ugly workaround, something that would bug me for a long time:)

good luck!
-Shade

hobylinux 08-02-2003 06:09 PM

Shade--

thanks a lot for the reply. unofortunately, i've been unsuccessful at finding out what kde reads for procedure when it logs out. i've looked around on this site and the rest of the internet, but i can't seem to figure it out. does anybody happen to know? i'm running kde 3.1.0 in mandrake 9.1

thanks a lot.

Trumptight 08-03-2003 07:12 PM

Help
 
Hoby I have the same sound card as you unfortunatly I cant get it to work. Could you please possibly email me the driver you are using? I would greatly appriciate it

tmciver 02-05-2004 07:12 PM

I have the same problem. My sound works fine normally. I just want to hear the .wav file I have choosen to play at logout. Sometimes it will play a second or two but never the entire 3.7 second file. Is there anybody out there that has the answer. I went to "~/.kde/shutdown" and added a shell script named "delay5" which contained.
----------Start Script------------------------------------
#!/bin/bash
sleep 5
exit 0
-----------End Script------------------------------------
It made no difference. Is there anyway to delay the shutdown to get the .wav to play?

tmciver

Klogg 05-29-2006 11:11 PM

I also have the same problem, except with Gnome and Fedora Core 5. Most of the time, I either hear no logout sound or a split-second of it. Very rarely, however, the whole thing will play. Has anyone figured this out yet? I'd appreciate it if you could help me.


All times are GMT -5. The time now is 04:01 AM.