startkde script and the soundcard volume restauration

Lubos Lunak l.lunak at suse.cz
Fri Oct 5 17:21:53 BST 2007


On Friday 05 of October 2007, Christian Esken wrote:
> Hello,
>
> there is an issue with the audio volume level of the KDE startup sound. The
> reason is: The order of "play the startup sound" and "restore volume
> levels" is undefined.

 Actually, the order of "play the startup sound" is defined, see 
ksmserver/README.

> This can lead to all kinds of unpleasant results, 
> like volume is too low for hearing the sound or the changing the volume
> level *during* playpack of the startup sound (see KMix's oldest open bug:
> https://bugs.kde.org/show_bug.cgi?id=91267 ). I would like to avoid that in
> KDE4. My recommendation is to remove the restore_kmix_volumes.desktop
> autostart script and move that an early stage of startkde.

 No - kmixctrl is a KDE app and pulling in KDE libs early in startkde is a 
no-no.

> These are the 
> important lines from restore_kmix_volumes.desktop:
>
> X-KDE-autostart-phase=1
> X-KDE-autostart-condition=kmixrc::startkdeRestore:true
> Type=Application
> Exec=kmixctrl --restore
>
> Is this sensible? And how could the "X-KDE-autostart-condition" be
> implemented?

 I suggest a kcminit module, probably with X-KDE-Init-Phase=0. That will 
easily allow you to handle the condition and will make the position 
of "restore volume levels" in the startup sequence defined as well (which is 
actually the problem - kmixctrl is launched before the startup sound, but 
it's fire&forget, so it takes a while for kmixctrl to actually do its job).

-- 
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o.   e-mail: l.lunak at suse.cz , l.lunak at kde.org
Lihovarska 1060/12   tel: +420 284 028 972
190 00 Prague 9      fax: +420 284 028 951
Czech Republic       http//www.suse.cz




More information about the kde-core-devel mailing list